pcbnew: Add hotkeys for Select Trivial Connection and Select Copper Connection
This commit is contained in:
parent
da051379de
commit
4e908da057
|
@ -237,6 +237,10 @@ static EDA_HOTKEY HkIncLayerAlhpa( _HKI( "Increment Layer Transparency" ), HK_IN
|
|||
|
||||
static EDA_HOTKEY HkDecLayerAlhpa( _HKI( "Decrement Layer Transparency" ), HK_DEC_LAYER_ALHPA, '{' );
|
||||
|
||||
static EDA_HOTKEY HkSelectConnection( _HKI( "Select Trivial Connection" ), HK_SEL_TRIVIAL_CONNECTION, 'U' );
|
||||
|
||||
static EDA_HOTKEY HkSelectCopper( _HKI( "Select Copper Connection" ), HK_SEL_COPPER_CONNECTION, 'I' );
|
||||
|
||||
// List of common hotkey descriptors
|
||||
EDA_HOTKEY* common_Hotkey_List[] =
|
||||
{
|
||||
|
@ -289,6 +293,7 @@ EDA_HOTKEY* board_edit_Hotkey_List[] =
|
|||
&HkSwitchHighContrastMode,
|
||||
&HkCanvasDefault, &HkCanvasCairo, &HkCanvasOpenGL,
|
||||
&HkZoneFillOrRefill, &HkZoneRemoveFilled,
|
||||
&HkSelectConnection, &HkSelectCopper,
|
||||
NULL
|
||||
};
|
||||
|
||||
|
|
|
@ -103,7 +103,9 @@ enum hotkey_id_commnand {
|
|||
HK_ZONE_FILL_OR_REFILL,
|
||||
HK_ZONE_REMOVE_FILLED,
|
||||
HK_INC_LAYER_ALHPA,
|
||||
HK_DEC_LAYER_ALHPA
|
||||
HK_DEC_LAYER_ALHPA,
|
||||
HK_SEL_TRIVIAL_CONNECTION,
|
||||
HK_SEL_COPPER_CONNECTION
|
||||
};
|
||||
|
||||
// Full list of hotkey descriptors for board editor and footprint editor
|
||||
|
|
|
@ -126,7 +126,7 @@ TOOL_ACTION PCB_ACTIONS::crossProbeSchToPcb( "pcbnew.EditorControl.crossProbSchT
|
|||
"", "" );
|
||||
|
||||
TOOL_ACTION PCB_ACTIONS::toggleLock( "pcbnew.EditorControl.toggleLock",
|
||||
AS_GLOBAL, 'L',
|
||||
AS_GLOBAL, TOOL_ACTION::LegacyHotKey( HK_LOCK_UNLOCK_FOOTPRINT ),
|
||||
"Toggle Lock", "" );
|
||||
|
||||
TOOL_ACTION PCB_ACTIONS::lock( "pcbnew.EditorControl.lock",
|
||||
|
|
|
@ -87,11 +87,11 @@ TOOL_ACTION PCB_ACTIONS::selectionClear( "pcbnew.InteractiveSelection.Clear",
|
|||
"", "" ); // No description, it is not supposed to be shown anywhere
|
||||
|
||||
TOOL_ACTION PCB_ACTIONS::selectConnection( "pcbnew.InteractiveSelection.SelectConnection",
|
||||
AS_GLOBAL, 'U',
|
||||
AS_GLOBAL, TOOL_ACTION::LegacyHotKey( HK_SEL_TRIVIAL_CONNECTION ),
|
||||
_( "Trivial Connection" ), _( "Selects a connection between two junctions." ) );
|
||||
|
||||
TOOL_ACTION PCB_ACTIONS::selectCopper( "pcbnew.InteractiveSelection.SelectCopper",
|
||||
AS_GLOBAL, 'I',
|
||||
AS_GLOBAL, TOOL_ACTION::LegacyHotKey( HK_SEL_COPPER_CONNECTION ),
|
||||
_( "Copper Connection" ), _( "Selects whole copper connection." ) );
|
||||
|
||||
TOOL_ACTION PCB_ACTIONS::selectNet( "pcbnew.InteractiveSelection.SelectNet",
|
||||
|
|
Loading…
Reference in New Issue