parent
cbe4b79107
commit
df5b093fda
|
@ -239,10 +239,22 @@ void LIB_EDIT_FRAME::SaveSettings( APP_SETTINGS_BASE* aCfg)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
WINDOW_SETTINGS* LIB_EDIT_FRAME::GetWindowSettings( APP_SETTINGS_BASE* aCfg )
|
||||||
|
{
|
||||||
|
auto cfg = Pgm().GetSettingsManager().GetAppSettings<LIBEDIT_SETTINGS>();
|
||||||
|
|
||||||
|
wxCHECK_MSG( cfg, nullptr, "Could not load libedit settings" );
|
||||||
|
|
||||||
|
return &cfg->m_Window;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
COLOR_SETTINGS* LIB_EDIT_FRAME::GetColorSettings()
|
COLOR_SETTINGS* LIB_EDIT_FRAME::GetColorSettings()
|
||||||
{
|
{
|
||||||
auto cfg = Pgm().GetSettingsManager().GetAppSettings<LIBEDIT_SETTINGS>();
|
auto cfg = Pgm().GetSettingsManager().GetAppSettings<LIBEDIT_SETTINGS>();
|
||||||
|
|
||||||
|
wxCHECK_MSG( cfg, nullptr, "Could not load libedit settings" );
|
||||||
|
|
||||||
if( cfg->m_UseEeschemaColorSettings )
|
if( cfg->m_UseEeschemaColorSettings )
|
||||||
return m_colorSettings;
|
return m_colorSettings;
|
||||||
else
|
else
|
||||||
|
|
|
@ -234,6 +234,8 @@ public:
|
||||||
void LoadSettings( APP_SETTINGS_BASE* aCfg ) override;
|
void LoadSettings( APP_SETTINGS_BASE* aCfg ) override;
|
||||||
void SaveSettings( APP_SETTINGS_BASE* aCfg ) override;
|
void SaveSettings( APP_SETTINGS_BASE* aCfg ) override;
|
||||||
|
|
||||||
|
WINDOW_SETTINGS* GetWindowSettings( APP_SETTINGS_BASE* aCfg ) override;
|
||||||
|
|
||||||
LIBEDIT_SETTINGS* GetSettings()
|
LIBEDIT_SETTINGS* GetSettings()
|
||||||
{
|
{
|
||||||
return m_settings;
|
return m_settings;
|
||||||
|
|
Loading…
Reference in New Issue