diff --git a/pcbnew/tools/common_actions.cpp b/pcbnew/tools/common_actions.cpp index 5f0fdf5d3c..343f1813f3 100644 --- a/pcbnew/tools/common_actions.cpp +++ b/pcbnew/tools/common_actions.cpp @@ -261,6 +261,10 @@ TOOL_ACTION COMMON_ACTIONS::showHelp( "pcbnew.Control.showHelp", AS_GLOBAL, '?', "", "" ); +TOOL_ACTION COMMON_ACTIONS::toBeDone( "pcbnew.Control.toBeDone", + AS_GLOBAL, 0, // dialog saying it is not implemented yet + "", "" ); // so users are aware of that + TOOL_ACTION COMMON_ACTIONS::routerActivate( "pcbnew.InteractiveRouter", AS_GLOBAL, 'X', "Run push & shove router", "Run push & shove router", AF_ACTIVATE ); @@ -317,6 +321,17 @@ boost::optional COMMON_ACTIONS::TranslateLegacyId( int aId ) case ID_ZOOM_PAGE: // toolbar button "Fit on Screen" return COMMON_ACTIONS::zoomFitScreen.MakeEvent(); + + case ID_PCB_DELETE_ITEM_BUTT: + case ID_PCB_HIGHLIGHT_BUTT: + case ID_PCB_SHOW_1_RATSNEST_BUTT: + case ID_PCB_PLACE_OFFSET_COORD_BUTT: + case ID_TB_OPTIONS_SHOW_MODULE_RATSNEST: + case ID_TB_OPTIONS_SELECT_CURSOR: + case ID_TB_OPTIONS_SHOW_EXTRA_VERTICAL_TOOLBAR_MICROWAVE: + case ID_MENU_PCB_SHOW_HIDE_MUWAVE_TOOLBAR: + case ID_MICROWAVE_V_TOOLBAR: + return COMMON_ACTIONS::toBeDone.MakeEvent(); } return boost::optional(); diff --git a/pcbnew/tools/common_actions.h b/pcbnew/tools/common_actions.h index ec98e65abd..9eec3ce112 100644 --- a/pcbnew/tools/common_actions.h +++ b/pcbnew/tools/common_actions.h @@ -148,6 +148,7 @@ public: static TOOL_ACTION resetCoords; static TOOL_ACTION switchUnits; static TOOL_ACTION showHelp; + static TOOL_ACTION toBeDone; /** * Function TranslateLegacyId() diff --git a/pcbnew/tools/pcbnew_control.cpp b/pcbnew/tools/pcbnew_control.cpp index 1702cfe64b..89b356c38c 100644 --- a/pcbnew/tools/pcbnew_control.cpp +++ b/pcbnew/tools/pcbnew_control.cpp @@ -506,6 +506,15 @@ int PCBNEW_CONTROL::ShowHelp( TOOL_EVENT& aEvent ) } +int PCBNEW_CONTROL::ToBeDone( TOOL_EVENT& aEvent ) +{ + DisplayInfoMessage( m_frame, _( "Not implemented yet." ) ); + setTransitions(); + + return 0; +} + + void PCBNEW_CONTROL::setTransitions() { // View controls @@ -549,4 +558,5 @@ void PCBNEW_CONTROL::setTransitions() Go( &PCBNEW_CONTROL::ResetCoords, COMMON_ACTIONS::resetCoords.MakeEvent() ); Go( &PCBNEW_CONTROL::SwitchUnits, COMMON_ACTIONS::switchUnits.MakeEvent() ); Go( &PCBNEW_CONTROL::ShowHelp, COMMON_ACTIONS::showHelp.MakeEvent() ); + Go( &PCBNEW_CONTROL::ToBeDone, COMMON_ACTIONS::toBeDone.MakeEvent() ); } diff --git a/pcbnew/tools/pcbnew_control.h b/pcbnew/tools/pcbnew_control.h index c5bd7e8841..62c7a9c7cd 100644 --- a/pcbnew/tools/pcbnew_control.h +++ b/pcbnew/tools/pcbnew_control.h @@ -91,6 +91,7 @@ public: int ResetCoords( TOOL_EVENT& aEvent ); int SwitchUnits( TOOL_EVENT& aEvent ); int ShowHelp( TOOL_EVENT& aEvent ); + int ToBeDone( TOOL_EVENT& aEvent ); private: ///> Sets up handlers for various events.