Switch remainder of cvpcb actions to new args system

This commit is contained in:
Ian McInerney 2022-09-28 02:25:01 +01:00
parent b04e54dbea
commit 9b63c57f5f
1 changed files with 64 additions and 54 deletions

View File

@ -34,47 +34,53 @@
// Selection tool action for the footprint viewer window // Selection tool action for the footprint viewer window
TOOL_ACTION CVPCB_ACTIONS::selectionActivate( "cvpcb.FootprintViewerInteractiveSelection", // No description, it is not supposed to be shown anywhere
AS_GLOBAL, 0, "", TOOL_ACTION CVPCB_ACTIONS::selectionActivate( TOOL_ACTION_ARGS()
"", .Name( "cvpcb.FootprintViewerInteractiveSelection" )
"", // No description, it is not supposed to be shown anywhere .Scope( AS_GLOBAL )
BITMAPS::INVALID_BITMAP, AF_ACTIVATE ); .Flags( AF_ACTIVATE ) );
TOOL_ACTION CVPCB_ACTIONS::controlActivate( "cvpcb.Control", // No description, it is not supposed to be shown anywhere
AS_GLOBAL, 0, "", TOOL_ACTION CVPCB_ACTIONS::controlActivate( TOOL_ACTION_ARGS()
"", .Name( "cvpcb.Control" )
"", // No description, it is not supposed to be shown anywhere .Scope( AS_GLOBAL )
BITMAPS::INVALID_BITMAP, AF_ACTIVATE ); .Flags( AF_ACTIVATE ) );
// Action to show the footprint viewer window // Action to show the footprint viewer window
TOOL_ACTION CVPCB_ACTIONS::showFootprintViewer( "cvpcb.Control.ShowFootprintViewer", TOOL_ACTION CVPCB_ACTIONS::showFootprintViewer( TOOL_ACTION_ARGS()
AS_GLOBAL, 0, "", .Name( "cvpcb.Control.ShowFootprintViewer" )
_( "View selected footprint" ), .Scope( AS_GLOBAL )
_( "View the selected footprint in the footprint viewer" ), .MenuText( _( "View selected footprint" ) )
BITMAPS::show_footprint ); .Tooltip( _( "View the selected footprint in the footprint viewer" ) )
.Icon( BITMAPS::show_footprint ) );
// Actions to handle management tasks // Actions to handle management tasks
TOOL_ACTION CVPCB_ACTIONS::showEquFileTable( "cvpcb.Control.ShowEquFileTable", TOOL_ACTION CVPCB_ACTIONS::showEquFileTable( TOOL_ACTION_ARGS()
AS_GLOBAL, 0, "", .Name( "cvpcb.Control.ShowEquFileTable" )
_( "Manage Footprint Association Files" ), .Scope( AS_GLOBAL )
_( "Configure footprint association file (.equ) list. These files are " .MenuText( _( "Manage Footprint Association Files" ) )
"used to automatically assign footprint names from symbol values." ) ); .Tooltip( _( "Configure footprint association file (.equ) list. These files are "
"used to automatically assign footprint names from symbol values." ) ) );
TOOL_ACTION CVPCB_ACTIONS::saveAssociationsToSchematic( "cvpcb.Control.SaveAssociationsToSchematic", TOOL_ACTION CVPCB_ACTIONS::saveAssociationsToSchematic( TOOL_ACTION_ARGS()
AS_GLOBAL, .Name( "cvpcb.Control.SaveAssociationsToSchematic" )
MD_CTRL + 'S', LEGACY_HK_NAME( "Save" ), .Scope( AS_GLOBAL )
_( "Save to Schematic" ), .DefaultHotkey( MD_CTRL + 'S' )
_( "Save footprint associations in schematic symbol footprint fields" ), .LegacyHotkeyName( "Save" )
BITMAPS::save ); .MenuText( _( "Save to Schematic" ) )
.Tooltip( _( "Save footprint associations in schematic symbol footprint fields" ) )
.Icon( BITMAPS::save ) );
TOOL_ACTION CVPCB_ACTIONS::saveAssociationsToFile( "cvpcb.Control.SaveAssociationsToFile", TOOL_ACTION CVPCB_ACTIONS::saveAssociationsToFile( TOOL_ACTION_ARGS()
AS_GLOBAL, .Name( "cvpcb.Control.SaveAssociationsToFile" )
MD_CTRL + 'S', LEGACY_HK_NAME( "Save" ), .Scope( AS_GLOBAL )
_( "Save to Schematic and File" ), .DefaultHotkey( MD_CTRL + 'S' )
_( "Save footprint associations in schematic symbol footprint fields and schematic files" ), .LegacyHotkeyName( "Save" )
BITMAPS::save ); .MenuText( _( "Save to Schematic and File" ) )
.Tooltip( _( "Save footprint associations in schematic symbol footprint fields and schematic files" ) )
.Icon( BITMAPS::save ) );
// Actions to navigate the display // Actions to navigate the display
TOOL_ACTION CVPCB_ACTIONS::changeFocusRight( TOOL_ACTION_ARGS() TOOL_ACTION CVPCB_ACTIONS::changeFocusRight( TOOL_ACTION_ARGS()
@ -112,31 +118,35 @@ TOOL_ACTION CVPCB_ACTIONS::gotoPreviousNA( TOOL_ACTION_ARGS()
// Actions to modify component associations // Actions to modify component associations
TOOL_ACTION CVPCB_ACTIONS::associate( "cvpcb.Association.Associate", TOOL_ACTION CVPCB_ACTIONS::associate( TOOL_ACTION_ARGS()
AS_GLOBAL, .Name( "cvpcb.Association.Associate" )
WXK_RETURN, "", .Scope( AS_GLOBAL )
_( "Assign footprint" ), .DefaultHotkey( WXK_RETURN )
_( "Assign footprint to selected symbols" ), .MenuText( _( "Assign footprint" ) )
BITMAPS::auto_associate ); .Tooltip( _( "Assign footprint to selected symbols" ) )
.Icon( BITMAPS::auto_associate ) );
TOOL_ACTION CVPCB_ACTIONS::autoAssociate( "cvpcb.Association.AutoAssociate", TOOL_ACTION CVPCB_ACTIONS::autoAssociate( TOOL_ACTION_ARGS()
AS_GLOBAL, 0, "", .Name( "cvpcb.Association.AutoAssociate" )
_( "Automatically assign footprints" ), .Scope( AS_GLOBAL )
_( "Perform automatic footprint assignment" ), .MenuText( _( "Automatically assign footprints" ) )
BITMAPS::auto_associate ); .Tooltip( _( "Perform automatic footprint assignment" ) )
.Icon( BITMAPS::auto_associate ) );
TOOL_ACTION CVPCB_ACTIONS::deleteAssoc( "cvpcb.Association.Delete", TOOL_ACTION CVPCB_ACTIONS::deleteAssoc( TOOL_ACTION_ARGS()
AS_GLOBAL, .Name( "cvpcb.Association.Delete" )
WXK_DELETE, "", .Scope( AS_GLOBAL )
_( "Delete association" ), .DefaultHotkey( WXK_DELETE )
_( "Delete selected footprint associations" ), .MenuText( _( "Delete association" ) )
BITMAPS::delete_association ); .Tooltip( _( "Delete selected footprint associations" ) )
.Icon( BITMAPS::delete_association ) );
TOOL_ACTION CVPCB_ACTIONS::deleteAll( "cvpcb.Association.DeleteAll", TOOL_ACTION CVPCB_ACTIONS::deleteAll( TOOL_ACTION_ARGS()
AS_GLOBAL, 0, "", .Name( "cvpcb.Association.DeleteAll" )
_( "Delete all footprint associations" ), .Scope( AS_GLOBAL )
_( "Delete all footprint associations" ), .MenuText( _( "Delete all footprint associations" ) )
BITMAPS::delete_association ); .Tooltip( _( "Delete all footprint associations" ) )
.Icon( BITMAPS::delete_association ) );
// Actions to filter the footprint list // Actions to filter the footprint list