21#ifndef _APP_SETTINGS_H
22#define _APP_SETTINGS_H
205 std::vector<std::pair<wxString, bool>>
actions;
212 virtual bool MigrateFromLegacy( wxConfigBase* aCfg )
override;
214 const std::vector<GRID> DefaultGridSizeList()
const;
216 const std::vector<double> DefaultZoomList()
const;
256 void migrateFindReplace( wxConfigBase* aCfg );
266 bool migrateWindowConfig( wxConfigBase* aCfg,
const std::string& aFrameName,
267 const std::string& aJsonPath );
275 void addParamsForWindow(
WINDOW_SETTINGS* aWindow,
const std::string& aJsonPath,
276 int aDefaultWidth = 0,
int aDefaultHeight = 0 );
281 bool migrateLibTreeWidth();
ARC_EDIT_MODE
Settings for arc editing.
@ KEEP_ENDPOINTS_OR_START_DIRECTION
Whe editing endpoints, the other end remains in place.
@ KEEP_CENTER_ENDS_ADJUST_ANGLE
When editing endpoints, only the angle is adjusted.
@ KEEP_CENTER_ADJUST_ANGLE_RADIUS
When editing endpoints, the angle and radius are adjusted.
APP_SETTINGS_BASE(const std::string &aFilename, int aSchemaVersion)
FIND_REPLACE m_FindReplace
bool m_CustomToolbars
Use custom toolbars.
PANEL_DESIGN_BLOCK_CHOOSER m_DesignBlockChooserPanel
COLOR_PICKER m_ColorPicker
virtual ~APP_SETTINGS_BASE()
virtual std::string getLegacyFrameName() const
wxString m_ColorTheme
Active color theme name.
CROSS_PROBING_SETTINGS m_CrossProbing
int m_appSettingsSchemaVersion
! Local schema version for common app settings.
JSON_SETTINGS(const wxString &aFilename, SETTINGS_LOC aLocation, int aSchemaVersion)
The Cairo implementation of the graphics abstraction layer.
std::vector< wxString > replace_history
std::vector< wxString > find_history
float highlight_factor
How much to brighten highlighted objects by.
float select_factor
How much to brighten selected objects by.
std::vector< wxString > columns
Ordered list of visible columns in the tree.
std::map< wxString, int > column_widths
Column widths, keyed by header name.
std::vector< wxString > open_libs
list of libraries the user has open in the tree.
std::vector< std::pair< wxString, bool > > actions
Ordered list of plugin actions mapped to whether or not they are shown in the toolbar.
bool monochrome
Whether or not to print in monochrome.
bool background
Whether or not to print background color.
std::vector< int > layers
List of enabled layers for printing.
wxString color_theme
Color theme to use for printing.
double scale
Printout scale.
bool title_block
Whether or not to print title block.
bool use_theme
If false, display color theme will be used.
SELECTION_ZOOM selection_zoom
bool search_hidden_fields
bool show_import_issues
Stored value for "show import issues" when importing non-KiCad designs to this application.
std::vector< wxString > file_history
bool flash_selection
Flash newly cross-probed selection (visual attention aid).
bool on_selection
Synchronize the selection for multiple items too.
bool zoom_to_fit
Zoom to fit items (ignored if center_on_items is off).
bool center_on_items
Automatically pan to cross-probed items.
bool auto_highlight
Automatically turn on highlight mode in the target frame.
Common cursor settings, available to every frame.
KIGFX::CROSS_HAIR_MODE cross_hair_mode
Store the common settings that are saved and loaded for each window / frame.
std::vector< double > zoom_factors
Store the window positioning/state.