Fix footprint editor default grid
Fixes https://gitlab.com/kicad/code/kicad/-/issues/7659
This commit is contained in:
parent
0518d9c546
commit
aedc65f20f
|
@ -327,3 +327,30 @@ void APP_SETTINGS_BASE::addParamsForWindow( WINDOW_SETTINGS* aWindow, const std:
|
|||
m_params.emplace_back( new PARAM<bool>( aJsonPath + ".cursor.fullscreen_cursor",
|
||||
&aWindow->cursor.fullscreen_cursor, false ) );
|
||||
}
|
||||
|
||||
|
||||
const std::vector<wxString> APP_SETTINGS_BASE::DefaultGridSizeList() const
|
||||
{
|
||||
return { "1000 mil",
|
||||
"500 mil",
|
||||
"250 mil",
|
||||
"200 mil",
|
||||
"100 mil",
|
||||
"50 mil",
|
||||
"25 mil",
|
||||
"20 mil",
|
||||
"10 mil",
|
||||
"5 mil",
|
||||
"2 mil",
|
||||
"1 mil",
|
||||
"5.0 mm",
|
||||
"2.5 mm",
|
||||
"1.0 mm",
|
||||
"0.5 mm",
|
||||
"0.25 mm",
|
||||
"0.2 mm",
|
||||
"0.1 mm",
|
||||
"0.05 mm",
|
||||
"0.025 mm",
|
||||
"0.01 mm" };
|
||||
}
|
||||
|
|
|
@ -155,8 +155,13 @@ public:
|
|||
|
||||
virtual bool MigrateFromLegacy( wxConfigBase* aCfg ) override;
|
||||
|
||||
/// Override in child classes to define the default for the window.grid.sizes parameter
|
||||
virtual const std::vector<wxString> DefaultGridSizeList() const { return {}; }
|
||||
/**
|
||||
* By default, this returns the list of grids available in PcbNew-based applications.
|
||||
* Eeschema does not allow customization of the grid. If it ever does, override this in
|
||||
* Eeschema settings to provide a different set of defaults.
|
||||
* @return a default value for the the window.grid.sizes parameter
|
||||
*/
|
||||
virtual const std::vector<wxString> DefaultGridSizeList() const;
|
||||
|
||||
public:
|
||||
CROSS_PROBING_SETTINGS m_CrossProbing;
|
||||
|
|
|
@ -790,30 +790,3 @@ bool PCBNEW_SETTINGS::MigrateFromLegacy( wxConfigBase* aCfg )
|
|||
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
||||
const std::vector<wxString> PCBNEW_SETTINGS::DefaultGridSizeList() const
|
||||
{
|
||||
return { "1000 mil",
|
||||
"500 mil",
|
||||
"250 mil",
|
||||
"200 mil",
|
||||
"100 mil",
|
||||
"50 mil",
|
||||
"25 mil",
|
||||
"20 mil",
|
||||
"10 mil",
|
||||
"5 mil",
|
||||
"2 mil",
|
||||
"1 mil",
|
||||
"5.0 mm",
|
||||
"2.5 mm",
|
||||
"1.0 mm",
|
||||
"0.5 mm",
|
||||
"0.25 mm",
|
||||
"0.2 mm",
|
||||
"0.1 mm",
|
||||
"0.05 mm",
|
||||
"0.025 mm",
|
||||
"0.01 mm" };
|
||||
}
|
||||
|
|
|
@ -234,8 +234,6 @@ public:
|
|||
|
||||
virtual bool MigrateFromLegacy( wxConfigBase* aLegacyConfig ) override;
|
||||
|
||||
const std::vector<wxString> DefaultGridSizeList() const override;
|
||||
|
||||
AUI_PANELS m_AuiPanels;
|
||||
|
||||
DIALOG_CLEANUP m_Cleanup;
|
||||
|
|
Loading…
Reference in New Issue