21 #ifndef KICAD_BOARD_PROJECT_SETTINGS_H 22 #define KICAD_BOARD_PROJECT_SETTINGS_H 28 #include <nlohmann/json.hpp> 174 PARAM_LAYER_PRESET(
const std::string& aPath, std::vector<LAYER_PRESET>* aPresetList );
184 #endif // KICAD_BOARD_PROJECT_SETTINGS_H
A saved set of layers that are visible.
LAYER_PRESET(const wxString &aName, const LSET &aVisibleLayers)
bool otherItems
Anything not fitting one of the above categories.
Like a normal param, but with custom getter and setter functions.
Ratsnest lines are drawn to items on visible layers only.
Net/netclass colors are shown on all net copper.
Net/netclass colors are shown on ratsnest lines only.
LAYER_PRESET(const wxString &aName=wxEmptyString)
std::vector< LAYER_PRESET > * m_presets
GAL_SET renderLayers
Render layers (e.g. object types) that are visible.
PCB_LAYER_ID activeLayer
Optional layer to set active when this preset is loaded.
Ratsnest lines are drawn to items on all layers (default)
wxString name
A name for this layer set.
bool LayersMatch(const LAYER_PRESET &aOther)
Inactive layers are dimmed (old high-contrast mode)
LSET is a set of PCB_LAYER_IDs.
bool text
Text (free or attached to a footprint)
bool readOnly
True if this is a read-only (built-in) preset.
bool dimensions
Dimension items.
SELECTION_FILTER_OPTIONS()
bool keepouts
Keepout zones.
bool graphics
Graphic lines, shapes, polygons.
Inactive layers are shown normally (no high-contrast mode)
HIGH_CONTRAST_MODE
Determine how inactive layers should be displayed.
Helper for storing and iterating over GAL_LAYER_IDs.
static GAL_SET DefaultVisible()
static LSET AllLayersMask()
This file contains data structures that are saved in the project file or project local settings file ...
LSET layers
Board layers that are visible.
bool tracks
Copper tracks.
bool footprints
Allow selecting entire footprints.
void jsonToPresets(const nlohmann::json &aJson)
PARAM_LAYER_PRESET(const std::string &aPath, std::vector< LAYER_PRESET > *aPresetList)
bool vias
Vias (all types>
bool lockedItems
Allow selecting locked items.
PCB_LAYER_ID
A quick note on layer IDs:
Net (and netclass) colors are not shown.
nlohmann::json presetsToJson()
LAYER_PRESET(const wxString &aName, const LSET &aVisibleLayers, const GAL_SET &aVisibleObjects, PCB_LAYER_ID aActiveLayer)
Inactive layers are hidden.