Browse Source

Clicking on the Selection Tool toolbar button deactivates the current tool (GAL).

pull/1/head
Maciej Suminski 11 years ago
parent
commit
568fc74a3c
  1. 7
      pcbnew/tools/common_actions.cpp
  2. 1
      pcbnew/tools/common_actions.h

7
pcbnew/tools/common_actions.cpp

@ -313,6 +313,10 @@ TOOL_ACTION COMMON_ACTIONS::moduleTextOutlines( "pcbnew.ModuleEditor.textOutline
// Miscellaneous
TOOL_ACTION COMMON_ACTIONS::selectionTool( "pcbnew.Control.selectionTool",
AS_GLOBAL, ' ',
"", "", AF_ACTIVATE );
TOOL_ACTION COMMON_ACTIONS::resetCoords( "pcbnew.Control.resetCoords",
AS_GLOBAL, ' ',
"", "" );
@ -470,6 +474,9 @@ boost::optional<TOOL_EVENT> COMMON_ACTIONS::TranslateLegacyId( int aId )
case ID_TB_OPTIONS_SELECT_CURSOR:
return COMMON_ACTIONS::switchCursor.MakeEvent();
case ID_NO_TOOL_SELECTED:
return COMMON_ACTIONS::selectionTool.MakeEvent();
case ID_PCB_DELETE_ITEM_BUTT:
case ID_PCB_HIGHLIGHT_BUTT:
case ID_PCB_SHOW_1_RATSNEST_BUTT:

1
pcbnew/tools/common_actions.h

@ -201,6 +201,7 @@ public:
static TOOL_ACTION moduleTextOutlines;
// Miscellaneous
static TOOL_ACTION selectionTool;
static TOOL_ACTION resetCoords;
static TOOL_ACTION switchCursor;
static TOOL_ACTION switchUnits;

Loading…
Cancel
Save