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
917e4739
Commit
917e4739
authored
May 13, 2014
by
Maciej Suminski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Custom track/via size settings nicely cooperate with other options.
parent
ffe212ea
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
0 deletions
+16
-0
pcbnew_id.h
pcbnew/pcbnew_id.h
+1
-0
common_actions.cpp
pcbnew/tools/common_actions.cpp
+1
-0
common_actions.h
pcbnew/tools/common_actions.h
+2
-0
pcbnew_control.cpp
pcbnew/tools/pcbnew_control.cpp
+12
-0
No files found.
pcbnew/pcbnew_id.h
View file @
917e4739
...
...
@@ -170,6 +170,7 @@ enum pcbnew_ids
ID_AUX_TOOLBAR_PCB_SELECT_AUTO_WIDTH
,
ID_POPUP_PCB_SELECT_WIDTH_START_RANGE
,
ID_POPUP_PCB_SELECT_WIDTH
,
ID_POPUP_PCB_SELECT_CUSTOM
,
ID_POPUP_PCB_SELECT_AUTO_WIDTH
,
ID_POPUP_PCB_SELECT_USE_NETCLASS_VALUES
,
ID_POPUP_PCB_SELECT_WIDTH1
,
...
...
pcbnew/tools/common_actions.cpp
View file @
917e4739
...
...
@@ -241,6 +241,7 @@ TOOL_ACTION COMMON_ACTIONS::viaSizeDec( "pcbnew.viaSizeDec",
AS_GLOBAL
,
'\\'
,
""
,
""
);
TOOL_ACTION
COMMON_ACTIONS
::
trackViaSizeChanged
(
"pcbnew.trackViaSizeChanged"
,
AS_GLOBAL
,
0
,
""
,
""
);
// Miscellaneous
TOOL_ACTION
COMMON_ACTIONS
::
resetCoords
(
"pcbnew.resetCoords"
,
...
...
pcbnew/tools/common_actions.h
View file @
917e4739
...
...
@@ -137,6 +137,8 @@ public:
static
TOOL_ACTION
viaSizeInc
;
static
TOOL_ACTION
viaSizeDec
;
static
TOOL_ACTION
trackViaSizeChanged
;
// notification
// Miscellaneous
static
TOOL_ACTION
resetCoords
;
static
TOOL_ACTION
switchUnits
;
...
...
pcbnew/tools/pcbnew_control.cpp
View file @
917e4739
...
...
@@ -422,11 +422,14 @@ int PCBNEW_CONTROL::TrackWidthInc( TOOL_EVENT& aEvent )
widthIndex
=
board
->
m_TrackWidthList
.
size
()
-
1
;
board
->
SetTrackWidthIndex
(
widthIndex
);
board
->
UseCustomTrackViaSize
(
false
);
wxUpdateUIEvent
dummy
;
getEditFrame
<
PCB_EDIT_FRAME
>
()
->
OnUpdateSelectTrackWidth
(
dummy
);
setTransitions
();
m_toolMgr
->
RunAction
(
COMMON_ACTIONS
::
trackViaSizeChanged
);
return
0
;
}
...
...
@@ -440,11 +443,14 @@ int PCBNEW_CONTROL::TrackWidthDec( TOOL_EVENT& aEvent )
widthIndex
=
0
;
board
->
SetTrackWidthIndex
(
widthIndex
);
board
->
UseCustomTrackViaSize
(
false
);
wxUpdateUIEvent
dummy
;
getEditFrame
<
PCB_EDIT_FRAME
>
()
->
OnUpdateSelectTrackWidth
(
dummy
);
setTransitions
();
m_toolMgr
->
RunAction
(
COMMON_ACTIONS
::
trackViaSizeChanged
);
return
0
;
}
...
...
@@ -458,11 +464,14 @@ int PCBNEW_CONTROL::ViaSizeInc( TOOL_EVENT& aEvent )
sizeIndex
=
board
->
m_ViasDimensionsList
.
size
()
-
1
;
board
->
SetViaSizeIndex
(
sizeIndex
);
board
->
UseCustomTrackViaSize
(
false
);
wxUpdateUIEvent
dummy
;
getEditFrame
<
PCB_EDIT_FRAME
>
()
->
OnUpdateSelectViaSize
(
dummy
);
setTransitions
();
m_toolMgr
->
RunAction
(
COMMON_ACTIONS
::
trackViaSizeChanged
);
return
0
;
}
...
...
@@ -476,11 +485,14 @@ int PCBNEW_CONTROL::ViaSizeDec( TOOL_EVENT& aEvent )
sizeIndex
=
0
;
board
->
SetViaSizeIndex
(
sizeIndex
);
board
->
UseCustomTrackViaSize
(
false
);
wxUpdateUIEvent
dummy
;
getEditFrame
<
PCB_EDIT_FRAME
>
()
->
OnUpdateSelectViaSize
(
dummy
);
setTransitions
();
m_toolMgr
->
RunAction
(
COMMON_ACTIONS
::
trackViaSizeChanged
);
return
0
;
}
...
...
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