Move actions around

This commit is contained in:
Jon Evans 2020-08-29 10:43:05 -04:00
parent b653df2b21
commit a390b19f97
2 changed files with 31 additions and 25 deletions

View File

@ -41,31 +41,6 @@
#include "convert_tool.h"
TOOL_ACTION PCB_ACTIONS::convertToPoly( "pcbnew.Convert.convertToPoly",
AS_GLOBAL, 0, "", _( "Convert to Polygon" ),
_( "Creates a graphic polygon from the selection" ), add_graphical_polygon_xpm );
TOOL_ACTION PCB_ACTIONS::convertToZone( "pcbnew.Convert.convertToZone",
AS_GLOBAL, 0, "", _( "Convert to Zone" ), _( "Creates a copper zone from the selection" ),
add_zone_xpm );
TOOL_ACTION PCB_ACTIONS::convertToKeepout( "pcbnew.Convert.convertToKeepout",
AS_GLOBAL, 0, "", _( "Convert to Keepout" ),
_( "Creates a keepout zone from the selection" ), add_keepout_area_xpm );
TOOL_ACTION PCB_ACTIONS::convertToLines( "pcbnew.Convert.convertToLines",
AS_GLOBAL, 0, "", _( "Convert to Lines" ), _( "Creates graphic lines from the selection" ),
add_line_xpm );
TOOL_ACTION PCB_ACTIONS::convertToArc( "pcbnew.Convert.convertToArc",
AS_GLOBAL, 0, "", _( "Convert to Arc" ), _( "Converts selected line segment to an arc" ),
add_arc_xpm );
TOOL_ACTION PCB_ACTIONS::convertToTracks( "pcbnew.Convert.convertToTracks",
AS_GLOBAL, 0, "", _( "Convert to Tracks" ),
_( "Converts selected graphic lines to tracks" ), add_tracks_xpm );
CONVERT_TOOL::CONVERT_TOOL() :
TOOL_INTERACTIVE( "pcbnew.Convert" ), m_selectionTool( NULL ),
m_menu( NULL ), m_frame( NULL )
@ -158,6 +133,8 @@ int CONVERT_TOOL::LinesToPoly( const TOOL_EVENT& aEvent )
aCollector.Remove( item );
}
break;
case PCB_TRACE_T:
// case PCB_ARC_T: // Not yet
break;
@ -391,6 +368,8 @@ int CONVERT_TOOL::PolyToLines( const TOOL_EVENT& aEvent )
aCollector.Remove( item );
}
break;
case PCB_ZONE_AREA_T:
break;

View File

@ -52,6 +52,33 @@ OPT<TOOL_EVENT> PCB_ACTIONS::TranslateLegacyId( int aId )
#define _(s) s
// CONVERT_TOOL
//
TOOL_ACTION PCB_ACTIONS::convertToPoly( "pcbnew.Convert.convertToPoly",
AS_GLOBAL, 0, "", _( "Convert to Polygon" ),
_( "Creates a graphic polygon from the selection" ), add_graphical_polygon_xpm );
TOOL_ACTION PCB_ACTIONS::convertToZone( "pcbnew.Convert.convertToZone",
AS_GLOBAL, 0, "", _( "Convert to Zone" ), _( "Creates a copper zone from the selection" ),
add_zone_xpm );
TOOL_ACTION PCB_ACTIONS::convertToKeepout( "pcbnew.Convert.convertToKeepout",
AS_GLOBAL, 0, "", _( "Convert to Keepout" ),
_( "Creates a keepout zone from the selection" ), add_keepout_area_xpm );
TOOL_ACTION PCB_ACTIONS::convertToLines( "pcbnew.Convert.convertToLines",
AS_GLOBAL, 0, "", _( "Convert to Lines" ), _( "Creates graphic lines from the selection" ),
add_line_xpm );
TOOL_ACTION PCB_ACTIONS::convertToArc( "pcbnew.Convert.convertToArc",
AS_GLOBAL, 0, "", _( "Convert to Arc" ), _( "Converts selected line segment to an arc" ),
add_arc_xpm );
TOOL_ACTION PCB_ACTIONS::convertToTracks( "pcbnew.Convert.convertToTracks",
AS_GLOBAL, 0, "", _( "Convert to Tracks" ),
_( "Converts selected graphic lines to tracks" ), add_tracks_xpm );
// DRAWING_TOOL
//
TOOL_ACTION PCB_ACTIONS::drawLine( "pcbnew.InteractiveDrawing.line",