Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
kicad-source-mirror
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
kicad-source-mirror
Commits
d7ac3682
Commit
d7ac3682
authored
May 14, 2014
by
Maciej Suminski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PNS routing settings are stored between router invocations.
parent
f31dd1cd
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
0 deletions
+16
-0
pns_router.h
pcbnew/router/pns_router.h
+11
-0
router_tool.cpp
pcbnew/router/router_tool.cpp
+3
-0
router_tool.h
pcbnew/router/router_tool.h
+2
-0
No files found.
pcbnew/router/pns_router.h
View file @
d7ac3682
...
...
@@ -172,6 +172,17 @@ public:
*/
void
ApplySettings
();
/**
* Changes routing settings to ones passed in the parameter.
* @param aSettings are the new settings.
*/
void
LoadSettings
(
const
PNS_ROUTING_SETTINGS
&
aSettings
)
{
m_settings
=
aSettings
;
ApplySettings
();
}
void
EnableSnapping
(
bool
aEnable
)
{
m_snappingEnabled
=
aEnable
;
...
...
pcbnew/router/router_tool.cpp
View file @
d7ac3682
...
...
@@ -244,6 +244,7 @@ void ROUTER_TOOL::Reset( RESET_REASON aReason )
m_router
->
ClearWorld
();
m_router
->
SetBoard
(
getModel
<
BOARD
>
(
PCB_T
)
);
m_router
->
SyncWorld
();
m_router
->
LoadSettings
(
m_settings
);
m_needsSync
=
false
;
if
(
getView
()
)
...
...
@@ -620,6 +621,8 @@ void ROUTER_TOOL::performRouting()
m_needsSync
=
true
;
}
m_settings
=
m_router
->
Settings
();
ctls
->
SetAutoPan
(
false
);
ctls
->
ForceCursorPosition
(
false
);
highlightNet
(
false
);
...
...
pcbnew/router/router_tool.h
View file @
d7ac3682
...
...
@@ -34,6 +34,7 @@
#include <msgpanel.h>
#include "pns_layerset.h"
#include "pns_routing_settings.h"
class
PNS_ROUTER
;
class
PNS_ITEM
;
...
...
@@ -68,6 +69,7 @@ private:
MSG_PANEL_ITEMS
m_panelItems
;
PNS_ROUTER
*
m_router
;
PNS_ROUTING_SETTINGS
m_settings
;
///< Stores routing settings between router invocations
PNS_ITEM
*
m_startItem
;
int
m_startLayer
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment