21 #ifndef KICAD_PROJECT_LOCAL_SETTINGS_H 22 #define KICAD_PROJECT_LOCAL_SETTINGS_H 61 bool SaveToFile(
const wxString& aDirectory =
"",
bool aForce =
false )
override;
77 return wxT(
"NO_SUCH_FILE_EXTENSION" );
91 std::vector<PROJECT_FILE_STATE>
m_files;
LSET m_VisibleLayers
Board settings.
void SaveFileState(const wxString &aFileName, const WINDOW_SETTINGS *aWindowCfg, bool aOpen)
Container for project specific data.
ZONE_DISPLAY_MODE
Determines how zones should be displayed
double m_TrackOpacity
Opacity override for all tracks.
wxString getLegacyFileExt() const override
ZONE_DISPLAY_MODE m_ZoneDisplayMode
How zones are drawn.
bool MigrateFromLegacy(wxConfigBase *aLegacyConfig) override
Migrates from wxConfig to JSON-based configuration.
The project local settings are things that are attached to a particular project, but also might be pa...
double m_ViaOpacity
Opacity override for all types of via.
bool SaveToFile(const wxString &aDirectory="", bool aForce=false) override
NET_COLOR_MODE m_NetColorMode
The current net color mode.
PCB_LAYER_ID m_ActiveLayer
The current (active) board layer for editing.
wxString getFileExt() const override
const std::string ProjectLocalSettingsFileExtension
double m_PadOpacity
Opacity override for SMD pads and PTH.
Stores the common settings that are saved and loaded for each window / frame.
PCB_LAYER_ID
A quick note on layer IDs:
LSET is a set of PCB_LAYER_IDs.
GAL_SET m_VisibleItems
The GAL layers (aka items) that are turned on for viewing (.
wxString m_ActiveLayerPreset
The name of a LAYER_PRESET that is currently activated (or blank if none)
struct WINDOW_STATE window
PROJECT * m_project
A link to the owning project.
HIGH_CONTRAST_MODE
Determines how inactive layers should be displayed.
Helper for storing and iterating over GAL_LAYER_IDs.
Definition of file extensions used in Kicad.
RATSNEST_MODE m_RatsnestMode
The current ratsnest draw mode.
bool m_AutoTrackWidth
The current setting for whether to automatically adjust track widths to match.
This file contains data structures that are saved in the project file or project local settings file ...
double m_ZoneOpacity
Opacity override for filled zones.
NET_COLOR_MODE
Determines how net color overrides should be applied
Stores the window positioning/state.
virtual ~PROJECT_LOCAL_SETTINGS()
const PROJECT_FILE_STATE * GetFileState(const wxString &aFileName)
HIGH_CONTRAST_MODE m_ContrastModeDisplay
The current contrast mode.
Board layer functions and definitions.
std::vector< wxString > m_HiddenNets
A list of netnames that have been manually hidden in the board editor.
SELECTION_FILTER_OPTIONS m_SelectionFilter
State of the selection filter widget.
PROJECT_LOCAL_SETTINGS(PROJECT *aProject, const wxString &aFilename)
RATSNEST_MODE
Determines how ratsnest lines are drawn
std::vector< PROJECT_FILE_STATE > m_files
Project scope.
void SetProject(PROJECT *aProject)