Expose a bunch of cursor, panning and grid shortcuts.

Fixes: lp:1819249
* https://bugs.launchpad.net/kicad/+bug/1819249
This commit is contained in:
Jeff Young 2019-06-26 21:08:47 +01:00
parent 7292ce6a8b
commit 7099614041
1 changed files with 20 additions and 20 deletions

View File

@ -296,107 +296,107 @@ TOOL_ACTION ACTIONS::centerContents( "common.Control.centerContents",
TOOL_ACTION ACTIONS::cursorUp( "common.Control.cursorUp", TOOL_ACTION ACTIONS::cursorUp( "common.Control.cursorUp",
AS_GLOBAL, AS_GLOBAL,
WXK_UP, "", WXK_UP, "",
"", "", _( "Cursor Up" ), "",
nullptr, AF_NONE, (void*) CURSOR_UP ); nullptr, AF_NONE, (void*) CURSOR_UP );
TOOL_ACTION ACTIONS::cursorDown( "common.Control.cursorDown", TOOL_ACTION ACTIONS::cursorDown( "common.Control.cursorDown",
AS_GLOBAL, AS_GLOBAL,
WXK_DOWN, "", WXK_DOWN, "",
"", "" , _( "Cursor Down" ), "" ,
nullptr, AF_NONE, (void*) CURSOR_DOWN ); nullptr, AF_NONE, (void*) CURSOR_DOWN );
TOOL_ACTION ACTIONS::cursorLeft( "common.Control.cursorLeft", TOOL_ACTION ACTIONS::cursorLeft( "common.Control.cursorLeft",
AS_GLOBAL, AS_GLOBAL,
WXK_LEFT, "", WXK_LEFT, "",
"", "" , _( "Cursor Left" ), "" ,
nullptr, AF_NONE, (void*) CURSOR_LEFT ); nullptr, AF_NONE, (void*) CURSOR_LEFT );
TOOL_ACTION ACTIONS::cursorRight( "common.Control.cursorRight", TOOL_ACTION ACTIONS::cursorRight( "common.Control.cursorRight",
AS_GLOBAL, AS_GLOBAL,
WXK_RIGHT, "", WXK_RIGHT, "",
"", "" , _( "Cursor Right" ), "" ,
nullptr, AF_NONE, (void*) CURSOR_RIGHT ); nullptr, AF_NONE, (void*) CURSOR_RIGHT );
TOOL_ACTION ACTIONS::cursorUpFast( "common.Control.cursorUpFast", TOOL_ACTION ACTIONS::cursorUpFast( "common.Control.cursorUpFast",
AS_GLOBAL, AS_GLOBAL,
MD_CTRL + WXK_UP, "", MD_CTRL + WXK_UP, "",
"", "", _( "Cursor Up Fast" ), "",
nullptr, AF_NONE, (void*) ( CURSOR_UP | CURSOR_FAST_MOVE ) ); nullptr, AF_NONE, (void*) ( CURSOR_UP | CURSOR_FAST_MOVE ) );
TOOL_ACTION ACTIONS::cursorDownFast( "common.Control.cursorDownFast", TOOL_ACTION ACTIONS::cursorDownFast( "common.Control.cursorDownFast",
AS_GLOBAL, AS_GLOBAL,
MD_CTRL + WXK_DOWN, "", MD_CTRL + WXK_DOWN, "",
"", "" , _( "Cursor Down Fast" ), "" ,
nullptr, AF_NONE, (void*) ( CURSOR_DOWN | CURSOR_FAST_MOVE ) ); nullptr, AF_NONE, (void*) ( CURSOR_DOWN | CURSOR_FAST_MOVE ) );
TOOL_ACTION ACTIONS::cursorLeftFast( "common.Control.cursorLeftFast", TOOL_ACTION ACTIONS::cursorLeftFast( "common.Control.cursorLeftFast",
AS_GLOBAL, AS_GLOBAL,
MD_CTRL + WXK_LEFT, "", MD_CTRL + WXK_LEFT, "",
"", "" , _( "Cursor Left Fast" ), "" ,
nullptr, AF_NONE, (void*) ( CURSOR_LEFT | CURSOR_FAST_MOVE ) ); nullptr, AF_NONE, (void*) ( CURSOR_LEFT | CURSOR_FAST_MOVE ) );
TOOL_ACTION ACTIONS::cursorRightFast( "common.Control.cursorRightFast", TOOL_ACTION ACTIONS::cursorRightFast( "common.Control.cursorRightFast",
AS_GLOBAL, AS_GLOBAL,
MD_CTRL + WXK_RIGHT, "", MD_CTRL + WXK_RIGHT, "",
"", "" , _( "Cursor Right Fast" ), "" ,
nullptr, AF_NONE, (void*) ( CURSOR_RIGHT | CURSOR_FAST_MOVE ) ); nullptr, AF_NONE, (void*) ( CURSOR_RIGHT | CURSOR_FAST_MOVE ) );
TOOL_ACTION ACTIONS::cursorClick( "common.Control.cursorClick", TOOL_ACTION ACTIONS::cursorClick( "common.Control.cursorClick",
AS_GLOBAL, AS_GLOBAL,
WXK_RETURN, LEGACY_HK_NAME( "Mouse Left Click" ), WXK_RETURN, LEGACY_HK_NAME( "Mouse Left Click" ),
"", "", _( "Click" ), "Performs left mouse button click",
nullptr, AF_NONE, (void*) CURSOR_CLICK ); nullptr, AF_NONE, (void*) CURSOR_CLICK );
TOOL_ACTION ACTIONS::cursorDblClick( "common.Control.cursorDblClick", TOOL_ACTION ACTIONS::cursorDblClick( "common.Control.cursorDblClick",
AS_GLOBAL, AS_GLOBAL,
WXK_END, LEGACY_HK_NAME( "Mouse Left Double Click" ), WXK_END, LEGACY_HK_NAME( "Mouse Left Double Click" ),
"", "", _( "Double-click" ), "Performs left mouse button double-click",
nullptr, AF_NONE, (void*) CURSOR_DBL_CLICK ); nullptr, AF_NONE, (void*) CURSOR_DBL_CLICK );
TOOL_ACTION ACTIONS::panUp( "common.Control.panUp", TOOL_ACTION ACTIONS::panUp( "common.Control.panUp",
AS_GLOBAL, AS_GLOBAL,
MD_SHIFT + WXK_UP, "", MD_SHIFT + WXK_UP, "",
"", "", _( "Pan Up" ), "",
nullptr, AF_NONE, (void*) CURSOR_UP ); nullptr, AF_NONE, (void*) CURSOR_UP );
TOOL_ACTION ACTIONS::panDown( "common.Control.panDown", TOOL_ACTION ACTIONS::panDown( "common.Control.panDown",
AS_GLOBAL, AS_GLOBAL,
MD_SHIFT + WXK_DOWN, "", MD_SHIFT + WXK_DOWN, "",
"", "" , _( "Pan Down" ), "" ,
nullptr, AF_NONE, (void*) CURSOR_DOWN ); nullptr, AF_NONE, (void*) CURSOR_DOWN );
TOOL_ACTION ACTIONS::panLeft( "common.Control.panLeft", TOOL_ACTION ACTIONS::panLeft( "common.Control.panLeft",
AS_GLOBAL, AS_GLOBAL,
MD_SHIFT + WXK_LEFT, "", MD_SHIFT + WXK_LEFT, "",
"", "" , _( "Pan Left" ), "" ,
nullptr, AF_NONE, (void*) CURSOR_LEFT ); nullptr, AF_NONE, (void*) CURSOR_LEFT );
TOOL_ACTION ACTIONS::panRight( "common.Control.panRight", TOOL_ACTION ACTIONS::panRight( "common.Control.panRight",
AS_GLOBAL, AS_GLOBAL,
MD_SHIFT + WXK_RIGHT, "", MD_SHIFT + WXK_RIGHT, "",
"", "" , _( "Pan Right" ), "" ,
nullptr, AF_NONE, (void*) CURSOR_RIGHT ); nullptr, AF_NONE, (void*) CURSOR_RIGHT );
// Grid control // Grid control
TOOL_ACTION ACTIONS::gridFast1( "common.Control.gridFast1", TOOL_ACTION ACTIONS::gridFast1( "common.Control.gridFast1",
AS_GLOBAL, AS_GLOBAL,
MD_ALT + '1', LEGACY_HK_NAME( "Switch Grid To Fast Grid1" ), MD_ALT + '1', LEGACY_HK_NAME( "Switch Grid To Fast Grid1" ),
"", "" ); _( "Switch to Fast Grid 1" ), "" );
TOOL_ACTION ACTIONS::gridFast2( "common.Control.gridFast2", TOOL_ACTION ACTIONS::gridFast2( "common.Control.gridFast2",
AS_GLOBAL, AS_GLOBAL,
MD_ALT + '2', LEGACY_HK_NAME( "Switch Grid To Fast Grid2" ), MD_ALT + '2', LEGACY_HK_NAME( "Switch Grid To Fast Grid2" ),
"", "" ); _( "Switch to Fast Grid 2" ), "" );
TOOL_ACTION ACTIONS::gridNext( "common.Control.gridNext", TOOL_ACTION ACTIONS::gridNext( "common.Control.gridNext",
AS_GLOBAL, AS_GLOBAL,
'N', LEGACY_HK_NAME( "Switch Grid To Next" ), 'N', LEGACY_HK_NAME( "Switch Grid To Next" ),
"", "" ); _("Switch to Next Grid" ), "" );
TOOL_ACTION ACTIONS::gridPrev( "common.Control.gridPrev", TOOL_ACTION ACTIONS::gridPrev( "common.Control.gridPrev",
AS_GLOBAL, MD_SHIFT + 'N', LEGACY_HK_NAME( "Switch Grid To Previous" ), AS_GLOBAL, MD_SHIFT + 'N', LEGACY_HK_NAME( "Switch Grid To Previous" ),
"", "" ); _( "Switch to Previous Grid" ), "" );
TOOL_ACTION ACTIONS::gridSetOrigin( "common.Control.gridSetOrigin", TOOL_ACTION ACTIONS::gridSetOrigin( "common.Control.gridSetOrigin",
AS_GLOBAL, AS_GLOBAL,
@ -407,7 +407,7 @@ TOOL_ACTION ACTIONS::gridSetOrigin( "common.Control.gridSetOrigin",
TOOL_ACTION ACTIONS::gridResetOrigin( "common.Control.gridResetOrigin", TOOL_ACTION ACTIONS::gridResetOrigin( "common.Control.gridResetOrigin",
AS_GLOBAL, AS_GLOBAL,
'Z', LEGACY_HK_NAME( "Reset Grid Origin" ), 'Z', LEGACY_HK_NAME( "Reset Grid Origin" ),
"", "" ); _( "Reset Grid Origin" ), "" );
TOOL_ACTION ACTIONS::gridPreset( "common.Control.gridPreset", TOOL_ACTION ACTIONS::gridPreset( "common.Control.gridPreset",
AS_GLOBAL ); AS_GLOBAL );
@ -446,7 +446,7 @@ TOOL_ACTION ACTIONS::togglePolarCoords( "common.Control.togglePolarCoords",
TOOL_ACTION ACTIONS::resetLocalCoords( "common.Control.resetLocalCoords", TOOL_ACTION ACTIONS::resetLocalCoords( "common.Control.resetLocalCoords",
AS_GLOBAL, AS_GLOBAL,
' ', LEGACY_HK_NAME( "Reset Local Coordinates" ), ' ', LEGACY_HK_NAME( "Reset Local Coordinates" ),
"", "" ); _( "Reset Local Coordinates" ), "" );
TOOL_ACTION ACTIONS::toggleCursor( "common.Control.toggleCursor", TOOL_ACTION ACTIONS::toggleCursor( "common.Control.toggleCursor",
AS_GLOBAL, AS_GLOBAL,