Give unfold bus a default parameter for hotkey invocation

Fixes KICAD-2JN
This commit is contained in:
Ian McInerney 2023-07-06 23:07:24 +01:00
parent 10d32bb1d6
commit 0fd2efa283
1 changed files with 10 additions and 5 deletions

View File

@ -1024,11 +1024,16 @@ TOOL_ACTION EE_ACTIONS::drawBus( TOOL_ACTION_ARGS()
.Flags( AF_ACTIVATE ) .Flags( AF_ACTIVATE )
.Parameter( &drawBusActionParam ) ); .Parameter( &drawBusActionParam ) );
TOOL_ACTION EE_ACTIONS::unfoldBus( "eeschema.InteractiveDrawingLineWireBus.unfoldBus", TOOL_ACTION EE_ACTIONS::unfoldBus( TOOL_ACTION_ARGS()
AS_GLOBAL, .Name( "eeschema.InteractiveDrawingLineWireBus.unfoldBus" )
'C', LEGACY_HK_NAME( "Unfold from Bus" ), .Scope( AS_GLOBAL )
_( "Unfold from Bus" ), _( "Break a wire out of a bus" ), .DefaultHotkey( 'C' )
BITMAPS::INVALID_BITMAP, AF_ACTIVATE ); .LegacyHotkeyName( "Unfold from Bus" )
.MenuText( _( "Unfold from Bus" ) )
.Tooltip( _( "Break a wire out of a bus" ) )
.Icon( BITMAPS::INVALID_BITMAP )
.Flags( AF_ACTIVATE )
.Parameter<wxString*>( nullptr ) );
const DRAW_SEGMENT_EVENT_PARAMS drawLinesActionParam = { LAYER_NOTES, false, nullptr }; const DRAW_SEGMENT_EVENT_PARAMS drawLinesActionParam = { LAYER_NOTES, false, nullptr };
TOOL_ACTION EE_ACTIONS::drawLines( TOOL_ACTION_ARGS() TOOL_ACTION EE_ACTIONS::drawLines( TOOL_ACTION_ARGS()