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
74522d5b
Commit
74522d5b
authored
Jul 09, 2014
by
Maciej Suminski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Corrected names of common tool actions.
parent
e3015930
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
39 additions
and
37 deletions
+39
-37
common_actions.cpp
pcbnew/tools/common_actions.cpp
+39
-37
No files found.
pcbnew/tools/common_actions.cpp
View file @
74522d5b
...
@@ -37,6 +37,7 @@ TOOL_ACTION COMMON_ACTIONS::selectionSingle( "pcbnew.InteractiveSelection.Single
...
@@ -37,6 +37,7 @@ TOOL_ACTION COMMON_ACTIONS::selectionSingle( "pcbnew.InteractiveSelection.Single
TOOL_ACTION
COMMON_ACTIONS
::
selectionClear
(
"pcbnew.InteractiveSelection.Clear"
,
TOOL_ACTION
COMMON_ACTIONS
::
selectionClear
(
"pcbnew.InteractiveSelection.Clear"
,
AS_GLOBAL
,
0
,
""
,
""
);
// No description, it is not supposed to be shown anywhere
AS_GLOBAL
,
0
,
""
,
""
);
// No description, it is not supposed to be shown anywhere
// Edit tool actions
// Edit tool actions
TOOL_ACTION
COMMON_ACTIONS
::
editActivate
(
"pcbnew.InteractiveEdit"
,
TOOL_ACTION
COMMON_ACTIONS
::
editActivate
(
"pcbnew.InteractiveEdit"
,
AS_GLOBAL
,
'M'
,
AS_GLOBAL
,
'M'
,
...
@@ -109,160 +110,161 @@ TOOL_ACTION COMMON_ACTIONS::pointEditorUpdate( "pcbnew.PointEditor.update",
...
@@ -109,160 +110,161 @@ TOOL_ACTION COMMON_ACTIONS::pointEditorUpdate( "pcbnew.PointEditor.update",
// View Controls
// View Controls
TOOL_ACTION
COMMON_ACTIONS
::
zoomIn
(
"pcbnew.zoomIn"
,
TOOL_ACTION
COMMON_ACTIONS
::
zoomIn
(
"pcbnew.
Control.
zoomIn"
,
AS_GLOBAL
,
WXK_F1
,
AS_GLOBAL
,
WXK_F1
,
""
,
""
);
""
,
""
);
TOOL_ACTION
COMMON_ACTIONS
::
zoomOut
(
"pcbnew.zoomOut"
,
TOOL_ACTION
COMMON_ACTIONS
::
zoomOut
(
"pcbnew.
Control.
zoomOut"
,
AS_GLOBAL
,
WXK_F2
,
AS_GLOBAL
,
WXK_F2
,
""
,
""
);
""
,
""
);
TOOL_ACTION
COMMON_ACTIONS
::
zoomInCenter
(
"pcbnew.zoomInCenter"
,
TOOL_ACTION
COMMON_ACTIONS
::
zoomInCenter
(
"pcbnew.
Control.
zoomInCenter"
,
AS_GLOBAL
,
0
,
AS_GLOBAL
,
0
,
""
,
""
);
""
,
""
);
TOOL_ACTION
COMMON_ACTIONS
::
zoomOutCenter
(
"pcbnew.zoomOutCenter"
,
TOOL_ACTION
COMMON_ACTIONS
::
zoomOutCenter
(
"pcbnew.
Control.
zoomOutCenter"
,
AS_GLOBAL
,
0
,
AS_GLOBAL
,
0
,
""
,
""
);
""
,
""
);
TOOL_ACTION
COMMON_ACTIONS
::
zoomCenter
(
"pcbnew.zoomCenter"
,
TOOL_ACTION
COMMON_ACTIONS
::
zoomCenter
(
"pcbnew.
Control.
zoomCenter"
,
AS_GLOBAL
,
WXK_F4
,
AS_GLOBAL
,
WXK_F4
,
""
,
""
);
""
,
""
);
TOOL_ACTION
COMMON_ACTIONS
::
zoomFitScreen
(
"pcbnew.zoomFitScreen"
,
TOOL_ACTION
COMMON_ACTIONS
::
zoomFitScreen
(
"pcbnew.
Control.
zoomFitScreen"
,
AS_GLOBAL
,
WXK_HOME
,
AS_GLOBAL
,
WXK_HOME
,
""
,
""
);
""
,
""
);
// Display modes
// Display modes
TOOL_ACTION
COMMON_ACTIONS
::
trackDisplayMode
(
"pcbnew.trackDisplayMode"
,
TOOL_ACTION
COMMON_ACTIONS
::
trackDisplayMode
(
"pcbnew.
Control.
trackDisplayMode"
,
AS_GLOBAL
,
'K'
,
AS_GLOBAL
,
'K'
,
""
,
""
);
""
,
""
);
TOOL_ACTION
COMMON_ACTIONS
::
padDisplayMode
(
"pcbnew.padDisplayMode"
,
TOOL_ACTION
COMMON_ACTIONS
::
padDisplayMode
(
"pcbnew.
Control.
padDisplayMode"
,
AS_GLOBAL
,
'J'
,
// TODO temporarily, find a better hot key
AS_GLOBAL
,
'J'
,
// TODO temporarily, find a better hot key
""
,
""
);
""
,
""
);
TOOL_ACTION
COMMON_ACTIONS
::
viaDisplayMode
(
"pcbnew.viaDisplayMode"
,
TOOL_ACTION
COMMON_ACTIONS
::
viaDisplayMode
(
"pcbnew.
Control.
viaDisplayMode"
,
AS_GLOBAL
,
'L'
,
// TODO temporarily, find a better hot key
AS_GLOBAL
,
'L'
,
// TODO temporarily, find a better hot key
""
,
""
);
""
,
""
);
TOOL_ACTION
COMMON_ACTIONS
::
highContrastMode
(
"pcbnew.highContrastMode"
,
TOOL_ACTION
COMMON_ACTIONS
::
highContrastMode
(
"pcbnew.
Control.
highContrastMode"
,
AS_GLOBAL
,
'H'
,
AS_GLOBAL
,
'H'
,
""
,
""
);
""
,
""
);
TOOL_ACTION
COMMON_ACTIONS
::
highContrastInc
(
"pcbnew.highContrastInc"
,
TOOL_ACTION
COMMON_ACTIONS
::
highContrastInc
(
"pcbnew.
Control.
highContrastInc"
,
AS_GLOBAL
,
'>'
,
AS_GLOBAL
,
'>'
,
""
,
""
);
""
,
""
);
TOOL_ACTION
COMMON_ACTIONS
::
highContrastDec
(
"pcbnew.highContrastDec"
,
TOOL_ACTION
COMMON_ACTIONS
::
highContrastDec
(
"pcbnew.
Control.
highContrastDec"
,
AS_GLOBAL
,
'<'
,
AS_GLOBAL
,
'<'
,
""
,
""
);
""
,
""
);
// Layer control
// Layer control
TOOL_ACTION
COMMON_ACTIONS
::
layerTop
(
"pcbnew.layerTop"
,
TOOL_ACTION
COMMON_ACTIONS
::
layerTop
(
"pcbnew.
Control.
layerTop"
,
AS_GLOBAL
,
WXK_PAGEUP
,
AS_GLOBAL
,
WXK_PAGEUP
,
""
,
""
);
""
,
""
);
TOOL_ACTION
COMMON_ACTIONS
::
layerInner1
(
"pcbnew.layerInner1"
,
TOOL_ACTION
COMMON_ACTIONS
::
layerInner1
(
"pcbnew.
Control.
layerInner1"
,
AS_GLOBAL
,
WXK_F5
,
AS_GLOBAL
,
WXK_F5
,
""
,
""
);
""
,
""
);
TOOL_ACTION
COMMON_ACTIONS
::
layerInner2
(
"pcbnew.layerInner2"
,
TOOL_ACTION
COMMON_ACTIONS
::
layerInner2
(
"pcbnew.
Control.
layerInner2"
,
AS_GLOBAL
,
WXK_F6
,
AS_GLOBAL
,
WXK_F6
,
""
,
""
);
""
,
""
);
TOOL_ACTION
COMMON_ACTIONS
::
layerInner3
(
"pcbnew.layerInner3"
,
TOOL_ACTION
COMMON_ACTIONS
::
layerInner3
(
"pcbnew.
Control.
layerInner3"
,
AS_GLOBAL
,
WXK_F7
,
AS_GLOBAL
,
WXK_F7
,
""
,
""
);
""
,
""
);
TOOL_ACTION
COMMON_ACTIONS
::
layerInner4
(
"pcbnew.layerInner4"
,
TOOL_ACTION
COMMON_ACTIONS
::
layerInner4
(
"pcbnew.
Control.
layerInner4"
,
AS_GLOBAL
,
WXK_F8
,
AS_GLOBAL
,
WXK_F8
,
""
,
""
);
""
,
""
);
TOOL_ACTION
COMMON_ACTIONS
::
layerInner5
(
"pcbnew.layerInner5"
,
TOOL_ACTION
COMMON_ACTIONS
::
layerInner5
(
"pcbnew.
Control.
layerInner5"
,
AS_GLOBAL
,
WXK_F9
,
AS_GLOBAL
,
WXK_F9
,
""
,
""
);
""
,
""
);
TOOL_ACTION
COMMON_ACTIONS
::
layerInner6
(
"pcbnew.layerInner6"
,
TOOL_ACTION
COMMON_ACTIONS
::
layerInner6
(
"pcbnew.
Control.
layerInner6"
,
AS_GLOBAL
,
WXK_F10
,
AS_GLOBAL
,
WXK_F10
,
""
,
""
);
""
,
""
);
TOOL_ACTION
COMMON_ACTIONS
::
layerBottom
(
"pcbnew.layerBottom"
,
TOOL_ACTION
COMMON_ACTIONS
::
layerBottom
(
"pcbnew.
Control.
layerBottom"
,
AS_GLOBAL
,
WXK_PAGEDOWN
,
AS_GLOBAL
,
WXK_PAGEDOWN
,
""
,
""
);
""
,
""
);
TOOL_ACTION
COMMON_ACTIONS
::
layerNext
(
"pcbnew.layerNext"
,
TOOL_ACTION
COMMON_ACTIONS
::
layerNext
(
"pcbnew.
Control.
layerNext"
,
AS_GLOBAL
,
'='
,
AS_GLOBAL
,
'='
,
""
,
""
);
""
,
""
);
TOOL_ACTION
COMMON_ACTIONS
::
layerPrev
(
"pcbnew.layerPrev"
,
TOOL_ACTION
COMMON_ACTIONS
::
layerPrev
(
"pcbnew.
Control.
layerPrev"
,
AS_GLOBAL
,
'-'
,
AS_GLOBAL
,
'-'
,
""
,
""
);
""
,
""
);
TOOL_ACTION
COMMON_ACTIONS
::
layerAlphaInc
(
"pcbnew.layerAlphaInc"
,
TOOL_ACTION
COMMON_ACTIONS
::
layerAlphaInc
(
"pcbnew.
Control.
layerAlphaInc"
,
AS_GLOBAL
,
'}'
,
AS_GLOBAL
,
'}'
,
""
,
""
);
""
,
""
);
TOOL_ACTION
COMMON_ACTIONS
::
layerAlphaDec
(
"pcbnew.layerAlphaDec"
,
TOOL_ACTION
COMMON_ACTIONS
::
layerAlphaDec
(
"pcbnew.
Control.
layerAlphaDec"
,
AS_GLOBAL
,
'{'
,
AS_GLOBAL
,
'{'
,
""
,
""
);
""
,
""
);
// Grid control
// Grid control
TOOL_ACTION
COMMON_ACTIONS
::
gridFast1
(
"pcbnew.gridFast1"
,
TOOL_ACTION
COMMON_ACTIONS
::
gridFast1
(
"pcbnew.
Control.
gridFast1"
,
AS_GLOBAL
,
MD_ALT
+
int
(
'1'
),
AS_GLOBAL
,
MD_ALT
+
int
(
'1'
),
""
,
""
);
""
,
""
);
TOOL_ACTION
COMMON_ACTIONS
::
gridFast2
(
"pcbnew.gridFast2"
,
TOOL_ACTION
COMMON_ACTIONS
::
gridFast2
(
"pcbnew.
Control.
gridFast2"
,
AS_GLOBAL
,
MD_ALT
+
int
(
'2'
),
AS_GLOBAL
,
MD_ALT
+
int
(
'2'
),
""
,
""
);
""
,
""
);
TOOL_ACTION
COMMON_ACTIONS
::
gridNext
(
"pcbnew.gridNext"
,
TOOL_ACTION
COMMON_ACTIONS
::
gridNext
(
"pcbnew.
Control.
gridNext"
,
AS_GLOBAL
,
'`'
,
AS_GLOBAL
,
'`'
,
""
,
""
);
""
,
""
);
TOOL_ACTION
COMMON_ACTIONS
::
gridPrev
(
"pcbnew.gridPrev"
,
TOOL_ACTION
COMMON_ACTIONS
::
gridPrev
(
"pcbnew.
Control.
gridPrev"
,
AS_GLOBAL
,
MD_CTRL
+
int
(
'`'
),
AS_GLOBAL
,
MD_CTRL
+
int
(
'`'
),
""
,
""
);
""
,
""
);
TOOL_ACTION
COMMON_ACTIONS
::
gridSetOrigin
(
"pcbnew.gridSetOrigin"
,
TOOL_ACTION
COMMON_ACTIONS
::
gridSetOrigin
(
"pcbnew.
Control.
gridSetOrigin"
,
AS_GLOBAL
,
0
,
AS_GLOBAL
,
0
,
""
,
""
);
""
,
""
);
// Track & via size control
// Track & via size control
TOOL_ACTION
COMMON_ACTIONS
::
trackWidthInc
(
"pcbnew.trackWidthInc"
,
TOOL_ACTION
COMMON_ACTIONS
::
trackWidthInc
(
"pcbnew.
EditorControl.
trackWidthInc"
,
AS_GLOBAL
,
'['
,
AS_GLOBAL
,
'['
,
""
,
""
);
""
,
""
);
TOOL_ACTION
COMMON_ACTIONS
::
trackWidthDec
(
"pcbnew.trackWidthDec"
,
TOOL_ACTION
COMMON_ACTIONS
::
trackWidthDec
(
"pcbnew.
EditorControl.
trackWidthDec"
,
AS_GLOBAL
,
']'
,
AS_GLOBAL
,
']'
,
""
,
""
);
""
,
""
);
TOOL_ACTION
COMMON_ACTIONS
::
viaSizeInc
(
"pcbnew.viaSizeInc"
,
TOOL_ACTION
COMMON_ACTIONS
::
viaSizeInc
(
"pcbnew.
EditorControl.
viaSizeInc"
,
AS_GLOBAL
,
'\''
,
AS_GLOBAL
,
'\''
,
""
,
""
);
""
,
""
);
TOOL_ACTION
COMMON_ACTIONS
::
viaSizeDec
(
"pcbnew.viaSizeDec"
,
TOOL_ACTION
COMMON_ACTIONS
::
viaSizeDec
(
"pcbnew.
EditorControl.
viaSizeDec"
,
AS_GLOBAL
,
'\\'
,
AS_GLOBAL
,
'\\'
,
""
,
""
);
""
,
""
);
TOOL_ACTION
COMMON_ACTIONS
::
trackViaSizeChanged
(
"pcbnew.trackViaSizeChanged"
,
TOOL_ACTION
COMMON_ACTIONS
::
trackViaSizeChanged
(
"pcbnew.
EditorControl.
trackViaSizeChanged"
,
AS_GLOBAL
,
0
,
AS_GLOBAL
,
0
,
""
,
""
);
""
,
""
);
// Miscellaneous
// Miscellaneous
TOOL_ACTION
COMMON_ACTIONS
::
resetCoords
(
"pcbnew.resetCoords"
,
TOOL_ACTION
COMMON_ACTIONS
::
resetCoords
(
"pcbnew.
Control.
resetCoords"
,
AS_GLOBAL
,
' '
,
AS_GLOBAL
,
' '
,
""
,
""
);
""
,
""
);
TOOL_ACTION
COMMON_ACTIONS
::
switchUnits
(
"pcbnew.switchUnits"
,
TOOL_ACTION
COMMON_ACTIONS
::
switchUnits
(
"pcbnew.
Control.
switchUnits"
,
AS_GLOBAL
,
MD_CTRL
+
int
(
'U'
),
AS_GLOBAL
,
MD_CTRL
+
int
(
'U'
),
""
,
""
);
""
,
""
);
TOOL_ACTION
COMMON_ACTIONS
::
showHelp
(
"pcbnew.showHelp"
,
TOOL_ACTION
COMMON_ACTIONS
::
showHelp
(
"pcbnew.
Control.
showHelp"
,
AS_GLOBAL
,
'?'
,
AS_GLOBAL
,
'?'
,
""
,
""
);
""
,
""
);
...
...
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