pcbnew: Adding meander hotkeys to assignment
Allows increase/decrease spacing/amplitude hotkeys to be assigned/changed. Fixes: lp:94fb13aec * https://bugs.launchpad.net/kicad/+bug/94fb13aec
This commit is contained in:
parent
aae30cc7c1
commit
47106b6861
|
@ -108,6 +108,15 @@ static EDA_HOTKEY HkRouteTuneSkew( _HKI( "Tune Differential Pair Skew (Modern To
|
||||||
static EDA_HOTKEY HkRouteTuneSettings( _HKI( "Length Tuning Settings (Modern Toolset only)" ),
|
static EDA_HOTKEY HkRouteTuneSettings( _HKI( "Length Tuning Settings (Modern Toolset only)" ),
|
||||||
HK_ROUTE_TUNE_SETTINGS, 'L' + GR_KB_CTRL );
|
HK_ROUTE_TUNE_SETTINGS, 'L' + GR_KB_CTRL );
|
||||||
|
|
||||||
|
static EDA_HOTKEY HkRouteTuneIncreaseSpacing( _HKI( "Increase meander spacing by one step." ),
|
||||||
|
HK_ROUTE_TUNE_INCREASE_SPACING, '1' );
|
||||||
|
static EDA_HOTKEY HkRouteTuneDecreaseSpacing( _HKI( "Decrease meander spacing by one step." ),
|
||||||
|
HK_ROUTE_TUNE_DECREASE_SPACING, '2' );
|
||||||
|
static EDA_HOTKEY HkRouteTuneIncreaseAmp( _HKI( "Increase meander amplitude by one step." ),
|
||||||
|
HK_ROUTE_TUNE_INCREASE_AMP, '3' );
|
||||||
|
static EDA_HOTKEY HkRouteTuneDecreaseAmp( _HKI( "Decrease meander amplitude by one step." ),
|
||||||
|
HK_ROUTE_TUNE_DECREASE_AMP, '4' );
|
||||||
|
|
||||||
static EDA_HOTKEY HkAddThroughVia( _HKI( "Add Through Via" ), HK_ADD_THROUGH_VIA, 'V' );
|
static EDA_HOTKEY HkAddThroughVia( _HKI( "Add Through Via" ), HK_ADD_THROUGH_VIA, 'V' );
|
||||||
static EDA_HOTKEY HkSelLayerAndAddThroughVia( _HKI( "Select Layer and Add Through Via" ),
|
static EDA_HOTKEY HkSelLayerAndAddThroughVia( _HKI( "Select Layer and Add Through Via" ),
|
||||||
HK_SEL_LAYER_AND_ADD_THROUGH_VIA, '<' );
|
HK_SEL_LAYER_AND_ADD_THROUGH_VIA, '<' );
|
||||||
|
@ -335,6 +344,10 @@ EDA_HOTKEY* board_edit_Hotkey_List[] =
|
||||||
// Routing Options
|
// Routing Options
|
||||||
&HkRoutingOptions,
|
&HkRoutingOptions,
|
||||||
&HkRouteTuneSettings,
|
&HkRouteTuneSettings,
|
||||||
|
&HkRouteTuneIncreaseSpacing,
|
||||||
|
&HkRouteTuneDecreaseSpacing,
|
||||||
|
&HkRouteTuneIncreaseAmp,
|
||||||
|
&HkRouteTuneDecreaseAmp,
|
||||||
&HkDpDimension,
|
&HkDpDimension,
|
||||||
|
|
||||||
// Zones
|
// Zones
|
||||||
|
|
|
@ -53,6 +53,10 @@ enum hotkey_id_commnand {
|
||||||
HK_ROUTE_TUNE_DIFF_PAIR,
|
HK_ROUTE_TUNE_DIFF_PAIR,
|
||||||
HK_ROUTE_TUNE_SKEW,
|
HK_ROUTE_TUNE_SKEW,
|
||||||
HK_ROUTE_TUNE_SETTINGS,
|
HK_ROUTE_TUNE_SETTINGS,
|
||||||
|
HK_ROUTE_TUNE_INCREASE_SPACING,
|
||||||
|
HK_ROUTE_TUNE_DECREASE_SPACING,
|
||||||
|
HK_ROUTE_TUNE_INCREASE_AMP,
|
||||||
|
HK_ROUTE_TUNE_DECREASE_AMP,
|
||||||
HK_ADD_THROUGH_VIA,
|
HK_ADD_THROUGH_VIA,
|
||||||
HK_SEL_LAYER_AND_ADD_THROUGH_VIA,
|
HK_SEL_LAYER_AND_ADD_THROUGH_VIA,
|
||||||
HK_ADD_BLIND_BURIED_VIA,
|
HK_ADD_BLIND_BURIED_VIA,
|
||||||
|
|
|
@ -58,19 +58,23 @@ static TOOL_ACTION ACT_Settings( "pcbnew.LengthTuner.Settings", AS_CONTEXT,
|
||||||
_( "Length Tuning Settings..." ), _( "Sets the length tuning parameters for currently routed item." ),
|
_( "Length Tuning Settings..." ), _( "Sets the length tuning parameters for currently routed item." ),
|
||||||
router_len_tuner_setup_xpm );
|
router_len_tuner_setup_xpm );
|
||||||
|
|
||||||
static TOOL_ACTION ACT_SpacingIncrease( "pcbnew.LengthTuner.SpacingIncrease", AS_CONTEXT, '1',
|
static TOOL_ACTION ACT_SpacingIncrease( "pcbnew.LengthTuner.SpacingIncrease", AS_CONTEXT,
|
||||||
|
TOOL_ACTION::LegacyHotKey( HK_ROUTE_TUNE_INCREASE_SPACING ),
|
||||||
_( "Increase Spacing" ), _( "Increase meander spacing by one step." ),
|
_( "Increase Spacing" ), _( "Increase meander spacing by one step." ),
|
||||||
router_len_tuner_dist_incr_xpm );
|
router_len_tuner_dist_incr_xpm );
|
||||||
|
|
||||||
static TOOL_ACTION ACT_SpacingDecrease( "pcbnew.LengthTuner.SpacingDecrease", AS_CONTEXT, '2',
|
static TOOL_ACTION ACT_SpacingDecrease( "pcbnew.LengthTuner.SpacingDecrease", AS_CONTEXT,
|
||||||
|
TOOL_ACTION::LegacyHotKey( HK_ROUTE_TUNE_DECREASE_SPACING ),
|
||||||
_( "Decrease Spacing" ), _( "Decrease meander spacing by one step." ),
|
_( "Decrease Spacing" ), _( "Decrease meander spacing by one step." ),
|
||||||
router_len_tuner_dist_decr_xpm );
|
router_len_tuner_dist_decr_xpm );
|
||||||
|
|
||||||
static TOOL_ACTION ACT_AmplIncrease( "pcbnew.LengthTuner.AmplIncrease", AS_CONTEXT, '3',
|
static TOOL_ACTION ACT_AmplIncrease( "pcbnew.LengthTuner.AmplIncrease", AS_CONTEXT,
|
||||||
|
TOOL_ACTION::LegacyHotKey( HK_ROUTE_TUNE_INCREASE_AMP ),
|
||||||
_( "Increase Amplitude" ), _( "Increase meander amplitude by one step." ),
|
_( "Increase Amplitude" ), _( "Increase meander amplitude by one step." ),
|
||||||
router_len_tuner_amplitude_incr_xpm );
|
router_len_tuner_amplitude_incr_xpm );
|
||||||
|
|
||||||
static TOOL_ACTION ACT_AmplDecrease( "pcbnew.LengthTuner.AmplDecrease", AS_CONTEXT, '4',
|
static TOOL_ACTION ACT_AmplDecrease( "pcbnew.LengthTuner.AmplDecrease", AS_CONTEXT,
|
||||||
|
TOOL_ACTION::LegacyHotKey( HK_ROUTE_TUNE_DECREASE_AMP ),
|
||||||
_( "Decrease Amplitude" ), _( "Decrease meander amplitude by one step." ),
|
_( "Decrease Amplitude" ), _( "Decrease meander amplitude by one step." ),
|
||||||
router_len_tuner_amplitude_decr_xpm );
|
router_len_tuner_amplitude_decr_xpm );
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue