21 #ifndef _APP_SETTINGS_H 22 #define _APP_SETTINGS_H 204 const std::string& aJsonPath );
void addParamsForWindow(WINDOW_SETTINGS *aWindow, const std::string &aJsonPath)
Adds parameters for the given window object.
std::vector< wxString > file_history
std::vector< wxString > find_history
virtual bool MigrateFromLegacy(wxConfigBase *aCfg) override
Migrates from wxConfig to JSON-based configuration.
Common cursor settings, available to every frame.
wxString color_theme
Color theme to use for printing.
bool title_block
Whether or not to print title block.
void migrateFindReplace(wxConfigBase *aCfg)
! Migrates the find/replace history string lists
virtual ~APP_SETTINGS_BASE()
bool use_theme
If false, display color theme will be used.
float high_contrast_factor
How much to darken inactive layers by.
std::vector< double > zoom_factors
bool monochrome
Whether or not to print in monochrome.
virtual std::string getLegacyFrameName() const
Stores the common settings that are saved and loaded for each window / frame.
std::vector< wxString > sizes
APP_SETTINGS_BASE is a settings class that should be derived for each standalone KiCad application.
FIND_REPLACE m_FindReplace
APP_SETTINGS_BASE(const std::string &aFilename, int aSchemaVersion)
std::vector< int > layers
List of enabled layers for printing.
std::vector< wxString > replace_history
float select_factor
How much to brighten selected objects by.
bool background
Whether or not to print background color.
Stores the window positioning/state.
bool zoom_to_fit
Zoom to fit items (ignored if center_on_items is off)
int m_appSettingsSchemaVersion
! Local schema version for common app settings
bool auto_highlight
Automatically turn on highlight mode in the target frame.
float highlight_factor
How much to brighten highlighted objects by.
double scale
Printout scale.
CROSS_PROBING_SETTINGS m_CrossProbing
COLOR_PICKER m_ColorPicker
bool center_on_items
Automatically pan to cross-probed items.
bool migrateWindowConfig(wxConfigBase *aCfg, const std::string &aFrameName, const std::string &aJsonPath)
Migrates legacy window settings into the JSON document.
virtual const std::vector< wxString > DefaultGridSizeList() const
By default, this returns the list of grids available in PcbNew-based applications.
Common grid settings, available to every frame.
wxString m_ColorTheme
Active color theme name.