21#ifndef KICAD_BOARD_PROJECT_SETTINGS_H
22#define KICAD_BOARD_PROJECT_SETTINGS_H
28#include <nlohmann/json.hpp>
76 return ( footprints ||
text || tracks || vias || pads || graphics || zones
77 || keepouts || dimensions || otherItems );
85 return ( footprints &&
text && tracks && vias && pads && graphics && zones
86 && keepouts && dimensions && otherItems );
144 layers(
LSET::AllLayersMask() ),
145 renderLayers(
GAL_SET::DefaultVisible() ),
154 layers( aVisibleLayers ),
155 renderLayers(
GAL_SET::DefaultVisible() ),
156 flipBoard( aFlipBoard ),
165 layers( aVisibleLayers ),
166 renderLayers( aVisibleObjects ),
167 flipBoard( aFlipBoard ),
168 activeLayer( aActiveLayer )
190 PARAM_LAYER_PRESET(
const std::string& aPath, std::vector<LAYER_PRESET>* aPresetList );
193 nlohmann::json presetsToJson();
195 void jsonToPresets(
const nlohmann::json& aJson );
203 VIEWPORT(
const wxString& aName = wxEmptyString ) :
220 PARAM_VIEWPORT(
const std::string& aPath, std::vector<VIEWPORT>* aViewportList );
223 nlohmann::json viewportsToJson();
225 void jsonToViewports(
const nlohmann::json& aJson );
239 matrix(
std::
move( aViewMatrix ) )
250 PARAM_VIEWPORT3D(
const std::string& aPath, std::vector<VIEWPORT3D>* aViewportList );
253 nlohmann::json viewportsToJson();
255 void jsonToViewports(
const nlohmann::json & aJson );
284 filter_by_net_name =
true;
285 filter_by_netclass =
true;
286 group_by_netclass =
false;
287 group_by_constraint =
false;
288 show_zero_pad_nets =
false;
289 show_unconnected_nets =
false;
291 sort_order_asc =
true;
HIGH_CONTRAST_MODE
Determine how inactive layers should be displayed.
@ NORMAL
Inactive layers are shown normally (no high-contrast mode)
@ HIDDEN
Inactive layers are hidden.
@ DIMMED
Inactive layers are dimmed (old high-contrast mode)
@ RATSNEST
Net/netclass colors are shown on ratsnest lines only.
@ ALL
Net/netclass colors are shown on all net copper.
@ OFF
Net (and netclass) colors are not shown.
@ VISIBLE
Ratsnest lines are drawn to items on visible layers only.
Helper for storing and iterating over GAL_LAYER_IDs.
LSET is a set of PCB_LAYER_IDs.
Like a normal param, but with custom getter and setter functions.
std::vector< LAYER_PRESET > * m_presets
std::vector< VIEWPORT3D > * m_viewports
std::vector< VIEWPORT > * m_viewports
PCB_LAYER_ID
A quick note on layer IDs:
wxString mfg
Manufacturer name column.
wxString MPN
Manufacturer part number column.
wxString id
Internal ID column.
wxString dist
Distributor name column.
wxString distPN
Distributor part number column.
A saved set of layers that are visible.
GAL_SET renderLayers
Render layers (e.g. object types) that are visible.
wxString name
A name for this layer set.
LAYER_PRESET(const wxString &aName=wxS(""))
bool flipBoard
True if the flip board is enabled.
LSET layers
Board layers that are visible.
bool readOnly
True if this is a read-only (built-in) preset.
bool LayersMatch(const LAYER_PRESET &aOther)
PCB_LAYER_ID activeLayer
Optional layer to set active when this preset is loaded.
LAYER_PRESET(const wxString &aName, const LSET &aVisibleLayers, bool aFlipBoard)
LAYER_PRESET(const wxString &aName, const LSET &aVisibleLayers, const GAL_SET &aVisibleObjects, PCB_LAYER_ID aActiveLayer, bool aFlipBoard)
Persisted state for the net inspector panel.
std::vector< int > col_order
std::vector< bool > col_hidden
std::vector< wxString > expanded_rows
std::vector< int > col_widths
std::vector< wxString > custom_group_rules
bool show_unconnected_nets
PANEL_NET_INSPECTOR_SETTINGS()
This file contains data structures that are saved in the project file or project local settings file ...
bool otherItems
Anything not fitting one of the above categories.
bool vias
Vias (all types>
bool keepouts
Keepout zones.
bool graphics
Graphic lines, shapes, polygons.
bool footprints
Allow selecting entire footprints.
bool text
Text (free or attached to a footprint)
PCB_SELECTION_FILTER_OPTIONS()
bool lockedItems
Allow selecting locked items.
bool tracks
Copper tracks.
bool dimensions
Dimension items.
VIEWPORT3D(const wxString &aName=wxEmptyString)
VIEWPORT3D(const wxString &aName, glm::mat4 aViewMatrix)
VIEWPORT(const wxString &aName, const BOX2D &aRect)
VIEWPORT(const wxString &aName=wxEmptyString)