KiCad PCB EDA Suite
|
Container for design settings for a BOARD object. More...
#include <board_design_settings.h>
Public Member Functions | |
BOARD_DESIGN_SETTINGS (JSON_SETTINGS *aParent, const std::string &aPath) | |
virtual | ~BOARD_DESIGN_SETTINGS () |
bool | operator== (const BOARD_DESIGN_SETTINGS &aOther) const |
bool | operator!= (const BOARD_DESIGN_SETTINGS &aOther) const |
BOARD_DESIGN_SETTINGS (const BOARD_DESIGN_SETTINGS &aOther) | |
BOARD_DESIGN_SETTINGS & | operator= (const BOARD_DESIGN_SETTINGS &aOther) |
bool | LoadFromFile (const wxString &aDirectory="") override |
Loads the backing file from disk and then calls Load() | |
BOARD_STACKUP & | GetStackupDescriptor () |
const BOARD_STACKUP & | GetStackupDescriptor () const |
TEARDROP_PARAMETERS_LIST * | GetTeadropParamsList () |
SEVERITY | GetSeverity (int aDRCErrorCode) |
bool | Ignore (int aDRCErrorCode) |
Return true if the DRC error code's severity is SEVERITY_IGNORE. | |
ZONE_SETTINGS & | GetDefaultZoneSettings () |
void | SetDefaultZoneSettings (const ZONE_SETTINGS &aSettings) |
const wxString & | GetCurrentNetClassName () const |
bool | UseNetClassTrack () const |
Return true if netclass values should be used to obtain appropriate track width. | |
bool | UseNetClassVia () const |
Return true if netclass values should be used to obtain appropriate via size. | |
bool | UseNetClassDiffPair () const |
Return true if netclass values should be used to obtain appropriate diff pair dimensions. | |
int | GetBiggestClearanceValue () const |
int | GetSmallestClearanceValue () const |
int | GetTrackWidthIndex () const |
void | SetTrackWidthIndex (int aIndex) |
Set the current track width list index to aIndex. | |
int | GetCurrentTrackWidth () const |
void | SetCustomTrackWidth (int aWidth) |
Sets custom width for track (i.e. | |
int | GetCustomTrackWidth () const |
int | GetViaSizeIndex () const |
void | SetViaSizeIndex (int aIndex) |
Set the current via size list index to aIndex. | |
int | GetCurrentViaSize () const |
void | SetCustomViaSize (int aSize) |
Set custom size for via diameter (i.e. | |
int | GetCustomViaSize () const |
int | GetCurrentViaDrill () const |
void | SetCustomViaDrill (int aDrill) |
Sets custom size for via drill (i.e. | |
int | GetCustomViaDrill () const |
void | UseCustomTrackViaSize (bool aEnabled) |
Enables/disables custom track/via size settings. | |
bool | UseCustomTrackViaSize () const |
int | GetDiffPairIndex () const |
void | SetDiffPairIndex (int aIndex) |
void | SetCustomDiffPairWidth (int aWidth) |
Sets custom track width for differential pairs (i.e. | |
int | GetCustomDiffPairWidth () |
void | SetCustomDiffPairGap (int aGap) |
Sets custom gap for differential pairs (i.e. | |
int | GetCustomDiffPairGap () |
Function GetCustomDiffPairGap. | |
void | SetCustomDiffPairViaGap (int aGap) |
Sets custom via gap for differential pairs (i.e. | |
int | GetCustomDiffPairViaGap () |
void | UseCustomDiffPairDimensions (bool aEnabled) |
Enables/disables custom differential pair dimensions. | |
bool | UseCustomDiffPairDimensions () const |
int | GetCurrentDiffPairWidth () const |
int | GetCurrentDiffPairGap () const |
int | GetCurrentDiffPairViaGap () const |
const LSET & | GetEnabledLayers () const |
Return a bit-mask of all the layers that are enabled. | |
void | SetEnabledLayers (const LSET &aMask) |
Change the bit-mask of enabled layers to aMask. | |
bool | IsLayerEnabled (PCB_LAYER_ID aLayerId) const |
Test whether a given layer aLayerId is enabled. | |
int | GetCopperLayerCount () const |
void | SetCopperLayerCount (int aNewLayerCount) |
Set the copper layer count to aNewLayerCount. | |
int | GetUserDefinedLayerCount () const |
void | SetUserDefinedLayerCount (int aNewLayerCount) |
Set the number of user defined layers to aNewLayerCount. | |
int | GetBoardThickness () const |
The full thickness of the board including copper and masks. | |
void | SetBoardThickness (int aThickness) |
int | GetDRCEpsilon () const |
Return an epsilon which accounts for rounding errors, etc. | |
int | GetHolePlatingThickness () const |
Pad & via drills are finish size. | |
int | GetLineThickness (PCB_LAYER_ID aLayer) const |
Return the default graphic segment thickness from the layer class for the given layer. | |
VECTOR2I | GetTextSize (PCB_LAYER_ID aLayer) const |
Return the default text size from the layer class for the given layer. | |
int | GetTextThickness (PCB_LAYER_ID aLayer) const |
Return the default text thickness from the layer class for the given layer. | |
bool | GetTextItalic (PCB_LAYER_ID aLayer) const |
bool | GetTextUpright (PCB_LAYER_ID aLayer) const |
int | GetLayerClass (PCB_LAYER_ID aLayer) const |
void | SetAuxOrigin (const VECTOR2I &aOrigin) |
const VECTOR2I & | GetAuxOrigin () const |
void | SetGridOrigin (const VECTOR2I &aOrigin) |
const VECTOR2I & | GetGridOrigin () const |
void | SetDefaultMasterPad () |
bool | SaveToFile (const wxString &aDirectory="", bool aForce=false) override |
Calls Store() and then saves the JSON document contents into the parent JSON_SETTINGS. | |
void | SetParent (JSON_SETTINGS *aParent, bool aLoadFromFile=true) |
JSON_SETTINGS * | GetParent () |
wxString | GetFilename () const |
wxString | GetFullFilename () const |
void | SetFilename (const wxString &aFilename) |
void | SetLocation (SETTINGS_LOC aLocation) |
SETTINGS_LOC | GetLocation () const |
void | SetLegacyFilename (const wxString &aFilename) |
bool | IsReadOnly () const |
void | SetReadOnly (bool aReadOnly) |
nlohmann::json & | At (const std::string &aPath) |
Wrappers for the underlying JSON API so that most consumers don't need json.hpp All of these functions take a string that is passed to PointerFromString internally. | |
bool | Contains (const std::string &aPath) const |
JSON_SETTINGS_INTERNALS * | Internals () |
virtual void | Load () |
Updates the parameters of this object based on the current JSON document contents. | |
virtual bool | Store () |
Stores the current parameters into the JSON document represented by this object Note: this doesn't do any writing to disk; that's handled by SETTINGS_MANAGER. | |
void | ResetToDefaults () |
Resets all parameters to default values. | |
std::optional< nlohmann::json > | GetJson (const std::string &aPath) const |
Fetches a JSON object that is a subset of this JSON_SETTINGS object, using a path of the form "key1.key2.key3" to refer to nested objects. | |
template<typename ValueType> | |
std::optional< ValueType > | Get (const std::string &aPath) const |
Fetches a value from within the JSON document. | |
template<> | |
std::optional< wxString > | Get (const std::string &aPath) const |
template<> | |
KICOMMON_API std::optional< wxString > | Get (const std::string &aPath) const |
template<typename ValueType> | |
void | Set (const std::string &aPath, ValueType aVal) |
Stores a value into the JSON document Will throw an exception if ValueType isn't something that the library can handle. | |
template<> | |
void | Set (const std::string &aPath, wxString aVal) |
template<> | |
KICOMMON_API void | Set (const std::string &aPath, wxString aVal) |
virtual std::map< std::string, nlohmann::json > | GetFileHistories () |
bool | Migrate () |
Migrates the schema of this settings from the version in the file to the latest version. | |
virtual bool | MigrateFromLegacy (wxConfigBase *aLegacyConfig) |
Migrates from wxConfig to JSON-based configuration. | |
void | AddNestedSettings (NESTED_SETTINGS *aSettings) |
Transfers ownership of a given NESTED_SETTINGS to this object. | |
void | ReleaseNestedSettings (NESTED_SETTINGS *aSettings) |
Saves and frees a nested settings object, if it exists within this one. | |
void | SetManager (SETTINGS_MANAGER *aManager) |
const std::string | FormatAsString () |
bool | LoadFromRawFile (const wxString &aPath) |
Static Public Member Functions | |
static bool | SetIfPresent (const nlohmann::json &aObj, const std::string &aPath, wxString &aTarget) |
Sets the given string if the given key/path is present. | |
static bool | SetIfPresent (const nlohmann::json &aObj, const std::string &aPath, bool &aTarget) |
Sets the given bool if the given key/path is present. | |
static bool | SetIfPresent (const nlohmann::json &aObj, const std::string &aPath, int &aTarget) |
Sets the given int if the given key/path is present. | |
static bool | SetIfPresent (const nlohmann::json &aObj, const std::string &aPath, unsigned int &aTarget) |
Sets the given unsigned int if the given key/path is present. | |
Protected Member Functions | |
void | registerMigration (int aOldSchemaVersion, int aNewSchemaVersion, std::function< bool(void)> aMigrator) |
Registers a migration from one schema version to another. | |
template<typename ValueType> | |
bool | fromLegacy (wxConfigBase *aConfig, const std::string &aKey, const std::string &aDest) |
Translates a legacy wxConfig value to a given JSON pointer value. | |
bool | fromLegacyString (wxConfigBase *aConfig, const std::string &aKey, const std::string &aDest) |
Translates a legacy wxConfig string value to a given JSON pointer value. | |
bool | fromLegacyColor (wxConfigBase *aConfig, const std::string &aKey, const std::string &aDest) |
Translates a legacy COLOR4D stored in a wxConfig string to a given JSON pointer value. | |
virtual wxString | getFileExt () const |
virtual wxString | getLegacyFileExt () const |
Static Protected Member Functions | |
template<typename ResultType> | |
static ResultType | fetchOrDefault (const nlohmann::json &aJson, const std::string &aKey, ResultType aDefault=ResultType()) |
Helper to retrieve a value from a JSON object (dictionary) as a certain result type. | |
Protected Attributes | |
JSON_SETTINGS * | m_parent |
A pointer to the parent object to load and store from. | |
std::string | m_path |
The path (in pointer format) of where to store this document in the parent. | |
wxString | m_filename |
The filename (not including path) of this settings file (inicode) | |
wxString | m_legacy_filename |
The filename of the wxConfig legacy file (if different from m_filename) | |
SETTINGS_LOC | m_location |
The location of this settings file (. | |
std::vector< PARAM_BASE * > | m_params |
The list of parameters (owned by this object) | |
std::vector< NESTED_SETTINGS * > | m_nested_settings |
Nested settings files that live inside this one, if any. | |
bool | m_createIfMissing |
Whether or not the backing store file should be created it if doesn't exist. | |
bool | m_createIfDefault |
Whether or not the backing store file should be created if all parameters are still at their default values. | |
bool | m_writeFile |
Whether or not the backing store file should be written. | |
bool | m_modified |
True if the JSON data store has been written to since the last file write. | |
bool | m_deleteLegacyAfterMigration |
Whether or not to delete legacy file after migration. | |
bool | m_resetParamsIfMissing |
Whether or not to set parameters to their default value if missing from JSON on Load() | |
int | m_schemaVersion |
Version of this settings schema. | |
bool | m_isFutureFormat |
Set to true if this settings is loaded from a file with a newer schema version than is known. | |
SETTINGS_MANAGER * | m_manager |
A pointer to the settings manager managing this file (may be null) | |
std::map< int, std::pair< int, std::function< bool()> > > | m_migrators |
A map of starting schema version to a pair of <ending version, migrator function> | |
std::unique_ptr< JSON_SETTINGS_INTERNALS > | m_internals |
Private Member Functions | |
void | initFromOther (const BOARD_DESIGN_SETTINGS &aOther) |
bool | migrateSchema0to1 () |
Private Attributes | |
VECTOR2I | m_auxOrigin |
origin for plot exports | |
VECTOR2I | m_gridOrigin |
origin for grid offsets | |
int | m_trackWidthIndex |
int | m_viaSizeIndex |
int | m_diffPairIndex |
bool | m_useCustomTrackVia |
int | m_customTrackWidth |
VIA_DIMENSION | m_customViaSize |
bool | m_useCustomDiffPair |
DIFF_PAIR_DIMENSION | m_customDiffPair |
int | m_copperLayerCount |
Number of copper layers for this design. | |
int | m_userDefinedLayerCount |
Number of user defined layers for this design. | |
LSET | m_enabledLayers |
Bit-mask for layer enabling. | |
int | m_boardThickness |
Board thickness for 3D viewer. | |
wxString | m_currentNetClassName |
Current net class name used to display netclass info. | |
BOARD_STACKUP | m_stackup |
The description of layers stackup, for board fabrication only physical layers are in layers stackup. | |
ZONE_SETTINGS | m_defaultZoneSettings |
The default settings that will be used for new zones. | |
Container for design settings for a BOARD object.
Definition at line 249 of file board_design_settings.h.
BOARD_DESIGN_SETTINGS::BOARD_DESIGN_SETTINGS | ( | JSON_SETTINGS * | aParent, |
const std::string & | aPath ) |
Definition at line 41 of file board_design_settings.cpp.
References PADSTACK::ALL_LAYERS, ARC_HIGH_DEF, JSON_SETTINGS::At(), AUTOMATIC, bdsSchemaVersion, DEFAULT_BOARD_THICKNESS_MM, DEFAULT_COPPER_LINE_WIDTH, DEFAULT_COPPER_TEXT_SIZE, DEFAULT_COPPER_TEXT_WIDTH, DEFAULT_COPPEREDGECLEARANCE, DEFAULT_COURTYARD_WIDTH, DEFAULT_CUSTOMDPAIRGAP, DEFAULT_CUSTOMDPAIRVIAGAP, DEFAULT_CUSTOMDPAIRWIDTH, DEFAULT_CUSTOMTRACKWIDTH, DEFAULT_DIMENSION_ARROW_LENGTH, DEFAULT_DIMENSION_EXTENSION_OFFSET, DEFAULT_DP_MEANDER_SPACING, DEFAULT_EDGE_WIDTH, DEFAULT_HOLECLEARANCE, DEFAULT_HOLETOHOLEMIN, DEFAULT_LINE_WIDTH, DEFAULT_MEANDER_SPACING, DEFAULT_MICROVIASMINDRILL, DEFAULT_MICROVIASMINSIZE, DEFAULT_MINCLEARANCE, DEFAULT_MINCONNECTION, DEFAULT_MINGROOVEWIDTH, DEFAULT_MINRESOLVEDSPOKES, DEFAULT_MINTHROUGHDRILL, DEFAULT_SILK_LINE_WIDTH, DEFAULT_SILK_TEXT_SIZE, DEFAULT_SILK_TEXT_WIDTH, DEFAULT_SILKCLEARANCE, DEFAULT_SOLDERMASK_EXPANSION, DEFAULT_SOLDERMASK_MIN_WIDTH, DEFAULT_SOLDERMASK_TO_COPPER_CLEARANCE, DEFAULT_SOLDERPASTE_CLEARANCE, DEFAULT_SOLDERPASTE_RATIO, DEFAULT_TEXT_SIZE, DEFAULT_TEXT_WIDTH, DEFAULT_TRACKMINWIDTH, DEFAULT_VIASMINSIZE, DRCE_CONNECTION_WIDTH, DRCE_COPPER_SLIVER, DRCE_DANGLING_TRACK, DRCE_DANGLING_VIA, DRCE_DRILLED_HOLES_COLOCATED, DRCE_DRILLED_HOLES_TOO_CLOSE, DRCE_DUPLICATE_FOOTPRINT, DRCE_EXTRA_FOOTPRINT, DRCE_FIRST, DRCE_FOOTPRINT_FILTERS, DRCE_FOOTPRINT_TYPE_MISMATCH, DRCE_ISOLATED_COPPER, DRCE_LAST, DRCE_LIB_FOOTPRINT_ISSUES, DRCE_LIB_FOOTPRINT_MISMATCH, DRCE_MIRRORED_TEXT_ON_FRONT_LAYER, DRCE_MISSING_COURTYARD, DRCE_MISSING_FOOTPRINT, DRCE_NET_CONFLICT, DRCE_NONMIRRORED_TEXT_ON_BACK_LAYER, DRCE_NPTH_IN_COURTYARD, DRCE_OVERLAPPING_SILK, DRCE_PADSTACK, DRCE_PTH_IN_COURTYARD, DRCE_SCHEMATIC_PARITY, DRCE_SILK_EDGE_CLEARANCE, DRCE_SILK_MASK_CLEARANCE, DRCE_TEXT_HEIGHT, DRCE_TEXT_THICKNESS, F_Fab, F_SilkS, JSON_SETTINGS::Get(), DRC_ITEM::GetItemsWithSeverities(), GetTeardropTargetCanonicalName(), GetTeardropTargetTypeFromCanonicalName(), INCH, INLINE, JSON_SETTINGS::JSON_SETTINGS(), LAYER_CLASS_COPPER, LAYER_CLASS_COURTYARD, LAYER_CLASS_EDGES, LAYER_CLASS_FAB, LAYER_CLASS_OTHERS, LAYER_CLASS_SILK, m_AllowSoldermaskBridgesInFPs, TEARDROP_PARAMETERS::m_AllowUseTwoTracks, TEARDROP_PARAMETERS::m_BestLengthRatio, TEARDROP_PARAMETERS::m_BestWidthRatio, m_boardThickness, m_CapVias, m_CopperEdgeClearance, PNS::MEANDER_SETTINGS::m_cornerRadiusPercentage, PNS::MEANDER_SETTINGS::m_cornerStyle, m_CoverViasBack, m_CoverViasFront, m_CurrentViaType, TEARDROP_PARAMETERS::m_CurvedEdges, m_customDiffPair, m_customTrackWidth, m_customViaSize, m_DefaultFPTextItems, m_defaultZoneSettings, m_DiffPairDimensionsList, m_diffPairIndex, m_DiffPairMeanderSettings, m_DimensionArrowLength, m_DimensionExtensionOffset, m_DimensionKeepTextAligned, m_DimensionPrecision, m_DimensionSuppressZeroes, m_DimensionTextPosition, m_DimensionUnitsFormat, m_DimensionUnitsMode, m_DrcExclusionComments, m_DrcExclusions, m_DRCSeverities, m_enabledLayers, m_FillVias, m_HasStackup, m_HoleClearance, m_HoleToHoleMin, m_LineThickness, PNS::MEANDER_SETTINGS::m_maxAmplitude, m_MaxError, m_MicroViasMinDrill, m_MicroViasMinSize, PNS::MEANDER_SETTINGS::m_minAmplitude, m_MinClearance, m_MinConn, m_MinGrooveWidth, m_MinResolvedSpokes, m_MinSilkTextHeight, m_MinSilkTextThickness, m_MinThroughDrill, m_NetSettings, m_Pad_Master, JSON_SETTINGS::m_params, m_PlugViasBack, m_PlugViasFront, JSON_SETTINGS::m_resetParamsIfMissing, m_SilkClearance, PNS::MEANDER_SETTINGS::m_singleSided, m_SingleTrackMeanderSettings, m_SkewMeanderSettings, m_SolderMaskExpansion, m_SolderMaskMinWidth, m_SolderMaskToCopperClearance, m_SolderPasteMargin, m_SolderPasteMarginRatio, PNS::MEANDER_SETTINGS::m_spacing, m_StyleFPFields, m_StyleFPShapes, m_StyleFPText, TEARDROP_PARAMETERS::m_TdMaxLen, TEARDROP_PARAMETERS::m_TdMaxWidth, TEARDROP_PARAMETERS::m_TdOnPadsInZones, m_TeardropParamsList, m_TempOverrideTrackWidth, m_TentViasBack, m_TentViasFront, m_TextItalic, m_TextSize, m_TextThickness, m_TextUpright, m_TrackMinWidth, m_trackWidthIndex, m_TrackWidthList, m_UseConnectedTrackWidth, m_useCustomDiffPair, m_useCustomTrackVia, m_UseHeightForLengthCalcs, m_ViasDimensionsList, m_viaSizeIndex, m_ViasMinAnnularWidth, m_ViasMinSize, TEARDROP_PARAMETERS::m_WidthtoSizeFilterRatio, m_ZoneKeepExternalFillets, PNS::MEANDER_STYLE_CHAMFER, PNS::MEANDER_STYLE_ROUND, migrateSchema0to1(), name, NESTED_SETTINGS::NESTED_SETTINGS(), NO_SUFFIX, OUTSIDE, PAREN_SUFFIX, pcbIUScale, JSON_SETTINGS::registerMigration(), RPT_SEVERITY_ERROR, RPT_SEVERITY_IGNORE, RPT_SEVERITY_WARNING, BASE_SET::set(), SetCopperLayerCount(), SetDefaultMasterPad(), SetUserDefinedLayerCount(), SeverityFromString(), SeverityToString(), TEXT_MAX_SIZE_MM, TEXT_MIN_SIZE_MM, THROUGH, V_VVVVV, via, X, VECTOR2< T >::x, X_XXXX, VECTOR2< T >::y, and ZONE_CLEARANCE_MM.
Referenced by BOARD_DESIGN_SETTINGS(), initFromOther(), operator!=(), operator=(), and operator==().
|
virtual |
Definition at line 939 of file board_design_settings.cpp.
References NESTED_SETTINGS::m_parent.
BOARD_DESIGN_SETTINGS::BOARD_DESIGN_SETTINGS | ( | const BOARD_DESIGN_SETTINGS & | aOther | ) |
Definition at line 949 of file board_design_settings.cpp.
References bdsSchemaVersion, BOARD_DESIGN_SETTINGS(), initFromOther(), m_Pad_Master, NESTED_SETTINGS::m_parent, NESTED_SETTINGS::m_path, and NESTED_SETTINGS::NESTED_SETTINGS().
|
inherited |
Transfers ownership of a given NESTED_SETTINGS to this object.
Can be used to construct a NESTED_SETTINGS without the parent object needing to know about the implementation of the nested object;
aSettings | is the settings object to take ownership of |
aTarget | is a pointer to update to the passed in settings |
Definition at line 907 of file json_settings.cpp.
References GetFilename(), m_nested_settings, NESTED_SETTINGS, and traceSettings.
|
inherited |
Wrappers for the underlying JSON API so that most consumers don't need json.hpp All of these functions take a string that is passed to PointerFromString internally.
Definition at line 119 of file json_settings.cpp.
References m_internals.
Referenced by BOARD_DESIGN_SETTINGS::BOARD_DESIGN_SETTINGS(), EDA_3D_VIEWER_SETTINGS::EDA_3D_VIEWER_SETTINGS(), EESCHEMA_SETTINGS::migrateBomSettings(), GERBVIEW_SETTINGS::MigrateFromLegacy(), APP_SETTINGS_BASE::migrateLibTreeWidth(), BOARD_DESIGN_SETTINGS::migrateSchema0to1(), COLOR_SETTINGS::migrateSchema0to1(), and FOOTPRINT_EDITOR_SETTINGS::migrateSchema0to1().
|
inherited |
Definition at line 125 of file json_settings.cpp.
References m_internals, and JSON_SETTINGS_INTERNALS::PointerFromString().
Referenced by EDA_3D_VIEWER_SETTINGS::EDA_3D_VIEWER_SETTINGS(), GERBVIEW_SETTINGS::GetFileHistories(), GetFileHistories(), BOARD_DESIGN_SETTINGS::LoadFromFile(), EESCHEMA_SETTINGS::migrateBomSettings(), BOARD_DESIGN_SETTINGS::migrateSchema0to1(), COLOR_SETTINGS::migrateSchema0to1(), FOOTPRINT_EDITOR_SETTINGS::migrateSchema0to1(), and SETTINGS_MANAGER::SaveColorSettings().
|
staticprotectedinherited |
Helper to retrieve a value from a JSON object (dictionary) as a certain result type.
ResultType | is the type of the retrieved value. |
aJson | is the object to act on . |
aKey | is the object key to retrieve the value for. |
Definition at line 955 of file json_settings.cpp.
|
inherited |
Definition at line 538 of file json_settings.cpp.
References dummy, m_internals, and Store().
|
protectedinherited |
Translates a legacy wxConfig value to a given JSON pointer value.
ValueType | is the basic type of the value |
aConfig | is the legacy config to read from |
aKey | is the key (within the current path) to read |
aDest | is a string that will form a JSON pointer (key1.key2.key3) to write to |
Definition at line 816 of file json_settings.cpp.
Referenced by APP_SETTINGS_BASE::MigrateFromLegacy(), BITMAP2CMP_SETTINGS::MigrateFromLegacy(), COMMON_SETTINGS::MigrateFromLegacy(), CVPCB_SETTINGS::MigrateFromLegacy(), EDA_3D_VIEWER_SETTINGS::MigrateFromLegacy(), EESCHEMA_SETTINGS::MigrateFromLegacy(), FOOTPRINT_EDITOR_SETTINGS::MigrateFromLegacy(), GERBVIEW_SETTINGS::MigrateFromLegacy(), KICAD_SETTINGS::MigrateFromLegacy(), PCB_CALCULATOR_SETTINGS::MigrateFromLegacy(), PCBNEW_SETTINGS::MigrateFromLegacy(), PL_EDITOR_SETTINGS::MigrateFromLegacy(), PROJECT_FILE::MigrateFromLegacy(), SYMBOL_EDITOR_SETTINGS::MigrateFromLegacy(), and APP_SETTINGS_BASE::migrateWindowConfig().
|
protectedinherited |
Translates a legacy COLOR4D stored in a wxConfig string to a given JSON pointer value.
aConfig | is the legacy config to read from |
aKey | is the key (within the current path) to read |
aDest | is a string that will form a JSON pointer (key1.key2.key3) to write to |
Definition at line 879 of file json_settings.cpp.
References color.
Referenced by APP_SETTINGS_BASE::migrateWindowConfig().
|
protectedinherited |
Translates a legacy wxConfig string value to a given JSON pointer value.
aConfig | is the legacy config to read from |
aKey | is the key (within the current path) to read |
aDest | is a string that will form a JSON pointer (key1.key2.key3) to write to |
Definition at line 855 of file json_settings.cpp.
Referenced by APP_SETTINGS_BASE::MigrateFromLegacy(), BITMAP2CMP_SETTINGS::MigrateFromLegacy(), COMMON_SETTINGS::MigrateFromLegacy(), EESCHEMA_SETTINGS::MigrateFromLegacy(), FOOTPRINT_EDITOR_SETTINGS::MigrateFromLegacy(), GERBVIEW_SETTINGS::MigrateFromLegacy(), PCB_CALCULATOR_SETTINGS::MigrateFromLegacy(), PCBNEW_SETTINGS::MigrateFromLegacy(), PROJECT_FILE::MigrateFromLegacy(), SYMBOL_EDITOR_SETTINGS::MigrateFromLegacy(), and APP_SETTINGS_BASE::migrateWindowConfig().
|
inherited |
Definition at line 938 of file json_settings.cpp.
References GetJson().
|
inherited |
Fetches a value from within the JSON document.
Will return an empty optional if the value is not found or a mismatching type.
ValueType | is the type to cast to |
aPath | is the path within the document to retrieve |
Definition at line 603 of file json_settings.cpp.
References GetJson().
Referenced by BITMAP2CMP_SETTINGS::BITMAP2CMP_SETTINGS(), BOARD_DESIGN_SETTINGS::BOARD_DESIGN_SETTINGS(), COLOR_SETTINGS::COLOR_SETTINGS(), EDA_3D_VIEWER_SETTINGS::EDA_3D_VIEWER_SETTINGS(), EESCHEMA_SETTINGS::EESCHEMA_SETTINGS(), JSON_SETTINGS::Get< KIGFX::COLOR4D >(), JSON_SETTINGS::Get< KIGFX::CROSS_HAIR_MODE >(), JSON_SETTINGS::Get< nlohmann::json >(), JSON_SETTINGS::Get< std::string >(), COLOR_MAP_PARAM::Load(), PARAM< ValueType >::Load(), PARAM_ENUM< EnumType >::Load(), PARAM_LAMBDA< ValueType >::Load(), PARAM_SCALED< ValueType >::Load(), COLOR_MAP_PARAM::MatchesFile(), PARAM< ValueType >::MatchesFile(), PARAM_ENUM< EnumType >::MatchesFile(), PARAM_LAMBDA< ValueType >::MatchesFile(), PARAM_PATH::MatchesFile(), PARAM_SCALED< ValueType >::MatchesFile(), EESCHEMA_SETTINGS::migrateBomSettings(), COMMON_SETTINGS::MigrateFromLegacy(), EESCHEMA_SETTINGS::MigrateFromLegacy(), SYMBOL_EDITOR_SETTINGS::MigrateFromLegacy(), APP_SETTINGS_BASE::migrateLibTreeWidth(), BOARD_DESIGN_SETTINGS::migrateSchema0to1(), PROJECT_FILE::SaveAs(), and SCHEMATIC_SETTINGS::SCHEMATIC_SETTINGS().
|
inherited |
References KICOMMON_API.
|
inline |
Definition at line 662 of file board_design_settings.h.
References m_auxOrigin.
Referenced by AddGerberX2Header(), IPC356D_WRITER::build_pad_testpoints(), build_via_testpoints(), PCB_IO_KICAD_SEXPR::formatSetup(), API_HANDLER_PCB::handleGetBoardOrigin(), initializePlotter(), ODB_NET_LIST::InitPadNetPoints(), ODB_NET_LIST::InitViaNetPoints(), PCBNEW_JOBS_HANDLER::JobExportDrill(), PCBNEW_JOBS_HANDLER::JobExportGencad(), and ALTIUM_PCB::Parse().
int BOARD_DESIGN_SETTINGS::GetBiggestClearanceValue | ( | ) | const |
Definition at line 1306 of file board_design_settings.cpp.
References CLEARANCE_CONSTRAINT, EDGE_CLEARANCE_CONSTRAINT, HOLE_CLEARANCE_CONSTRAINT, HOLE_TO_HOLE_CONSTRAINT, m_CopperEdgeClearance, m_DRCEngine, m_HoleClearance, m_HoleToHoleMin, m_MinClearance, MAXIMUM_CLEARANCE, MINOPTMAX< T >::Min(), PHYSICAL_CLEARANCE_CONSTRAINT, and DRC_CONSTRAINT::Value().
Referenced by ZONE_FILLER::buildThermalSpokes().
|
inline |
The full thickness of the board including copper and masks.
Definition at line 623 of file board_design_settings.h.
References m_boardThickness.
Referenced by BOARD_STACKUP::BuildDefaultStackupList(), PCB_EDIT_FRAME::Export_IDF3(), PCB_IO_KICAD_SEXPR::formatGeneral(), PANEL_PREVIEW_3D_MODEL::PANEL_PREVIEW_3D_MODEL(), PCB_CONTROL::PlaceCharacteristics(), and PANEL_PREVIEW_3D_MODEL::View3DSettings().
|
inline |
Definition at line 592 of file board_design_settings.h.
References m_copperLayerCount.
Referenced by BOARD_STACKUP::BuildDefaultStackupList(), BOARD::GetCopperLayerCount(), ROUTER_TOOL::handleLayerSwitch(), and PCB_CONTROL::PlaceCharacteristics().
int BOARD_DESIGN_SETTINGS::GetCurrentDiffPairGap | ( | ) | const |
Definition at line 1428 of file board_design_settings.cpp.
References m_customDiffPair, m_DiffPairDimensionsList, m_diffPairIndex, m_NetSettings, and m_useCustomDiffPair.
Referenced by GetCurrentDiffPairViaGap(), and PNS_KICAD_IFACE_BASE::ImportSizes().
int BOARD_DESIGN_SETTINGS::GetCurrentDiffPairViaGap | ( | ) | const |
Definition at line 1448 of file board_design_settings.cpp.
References GetCurrentDiffPairGap(), m_customDiffPair, m_DiffPairDimensionsList, m_diffPairIndex, m_NetSettings, and m_useCustomDiffPair.
Referenced by PNS_KICAD_IFACE_BASE::ImportSizes().
int BOARD_DESIGN_SETTINGS::GetCurrentDiffPairWidth | ( | ) | const |
Definition at line 1408 of file board_design_settings.cpp.
References m_customDiffPair, m_DiffPairDimensionsList, m_diffPairIndex, m_NetSettings, and m_useCustomDiffPair.
Referenced by PNS_KICAD_IFACE_BASE::ImportSizes().
|
inline |
Definition at line 296 of file board_design_settings.h.
References m_currentNetClassName.
int BOARD_DESIGN_SETTINGS::GetCurrentTrackWidth | ( | ) | const |
Definition at line 1388 of file board_design_settings.cpp.
References m_customTrackWidth, m_NetSettings, m_trackWidthIndex, m_TrackWidthList, and m_useCustomTrackVia.
Referenced by MICROWAVE_TOOL::createBaseFootprint(), MICROWAVE_TOOL::createFootprint(), MICROWAVE_TOOL::createInductorBetween(), PNS_KICAD_IFACE_BASE::ImportSizes(), and PCB_EDIT_FRAME::SetTrackSegmentWidth().
int BOARD_DESIGN_SETTINGS::GetCurrentViaDrill | ( | ) | const |
Definition at line 1366 of file board_design_settings.cpp.
References m_customViaSize, m_NetSettings, m_useCustomTrackVia, m_ViasDimensionsList, and m_viaSizeIndex.
Referenced by DRAWING_TOOL::DrawVia(), ROUTER_TOOL::handleLayerSwitch(), PNS_KICAD_IFACE_BASE::ImportSizes(), and PCB_EDIT_FRAME::SetTrackSegmentWidth().
int BOARD_DESIGN_SETTINGS::GetCurrentViaSize | ( | ) | const |
Definition at line 1355 of file board_design_settings.cpp.
References m_customViaSize, m_NetSettings, m_useCustomTrackVia, m_ViasDimensionsList, and m_viaSizeIndex.
Referenced by DRAWING_TOOL::DrawVia(), ROUTER_TOOL::handleLayerSwitch(), PNS_KICAD_IFACE_BASE::ImportSizes(), and PCB_EDIT_FRAME::SetTrackSegmentWidth().
|
inline |
Function GetCustomDiffPairGap.
Definition at line 497 of file board_design_settings.h.
References m_customDiffPair.
|
inline |
Definition at line 516 of file board_design_settings.h.
References m_customDiffPair.
|
inline |
Definition at line 478 of file board_design_settings.h.
References m_customDiffPair.
|
inline |
Definition at line 363 of file board_design_settings.h.
References m_customTrackWidth.
|
inline |
Definition at line 428 of file board_design_settings.h.
References m_customViaSize.
|
inline |
Definition at line 400 of file board_design_settings.h.
References m_customViaSize.
|
inline |
Definition at line 283 of file board_design_settings.h.
References m_defaultZoneSettings.
Referenced by CONVERT_TOOL::CreatePolys(), PCB_IO_KICAD_SEXPR::formatSetup(), PCB_IO_KICAD_LEGACY::loadSETUP(), PCB_IO_KICAD_SEXPR_PARSER::parseSetup(), and ZONE::ZONE().
|
inline |
Definition at line 457 of file board_design_settings.h.
References m_diffPairIndex.
Referenced by BOARD_EDITOR_CONTROL::TrackWidthDec(), BOARD_EDITOR_CONTROL::TrackWidthInc(), and DIFF_PAIR_MENU::update().
int BOARD_DESIGN_SETTINGS::GetDRCEpsilon | ( | ) | const |
Return an epsilon which accounts for rounding errors, etc.
While currently an advanced cfg, going through this API allows us to easily change it to board-specific if so desired.
Definition at line 1532 of file board_design_settings.cpp.
References ADVANCED_CFG::GetCfg(), and pcbIUScale.
Referenced by collidesWithArea(), DRAWING_TOOL::DrawVia(), PCB_TUNING_PATTERN::EditFinish(), DRC_ENGINE::IsNetTieExclusion(), DRC_TEST_PROVIDER_CONNECTION_WIDTH::Run(), and DRC_TEST_PROVIDER_DISALLOW::Run().
|
inline |
Return a bit-mask of all the layers that are enabled.
Definition at line 563 of file board_design_settings.h.
References m_enabledLayers.
Referenced by BOARD_STACKUP::BuildDefaultStackupList(), LENGTH_DELAY_CALCULATION_ITEM::CalculateViaLayers(), and BOARD::GetEnabledLayers().
|
inlineprotectedvirtualinherited |
Reimplemented in DATABASE_LIB_SETTINGS, HTTP_LIB_SETTINGS, JOBSET, PROJECT_FILE, and PROJECT_LOCAL_SETTINGS.
Definition at line 291 of file json_settings.h.
Referenced by GetFullFilename(), LoadFromFile(), and SaveToFile().
|
virtualinherited |
Reimplemented in GERBVIEW_SETTINGS.
Definition at line 400 of file json_settings.cpp.
References Contains(), and GetJson().
Referenced by GERBVIEW_SETTINGS::GetFileHistories().
|
inlineinherited |
Definition at line 87 of file json_settings.h.
References m_filename.
Referenced by AddNestedSettings(), SETTINGS_MANAGER::loadColorSettingsByName(), NESTED_SETTINGS::LoadFromFile(), EESCHEMA_SETTINGS::MigrateFromLegacy(), GERBVIEW_SETTINGS::MigrateFromLegacy(), PCBNEW_SETTINGS::MigrateFromLegacy(), COLOR_SETTINGS::migrateSchema0to1(), PANEL_COLOR_SETTINGS::OnThemeChanged(), PANEL_EESCHEMA_COLOR_SETTINGS::PANEL_EESCHEMA_COLOR_SETTINGS(), PANEL_GERBVIEW_COLOR_SETTINGS::PANEL_GERBVIEW_COLOR_SETTINGS(), PANEL_PCBNEW_COLOR_SETTINGS::PANEL_PCBNEW_COLOR_SETTINGS(), PCB_PLOTTER::PlotJobToPlotOpts(), DIALOG_PLOT_SCHEMATIC::plotSchematic(), PROJECT_FILE::SaveAs(), SETTINGS_MANAGER::SaveColorSettings(), DIALOG_PRINT::SavePrintOptions(), DIALOG_PRINT_PCBNEW::saveSettings(), NESTED_SETTINGS::SaveToFile(), PANEL_PL_EDITOR_COLOR_SETTINGS::TransferDataFromWindow(), and PANEL_SYM_COLOR_SETTINGS::TransferDataFromWindow().
|
inherited |
Definition at line 110 of file json_settings.cpp.
References getFileExt(), and m_filename.
Referenced by JSON_SETTINGS(), LoadFromFile(), NESTED_SETTINGS::LoadFromFile(), and SaveToFile().
|
inline |
Definition at line 665 of file board_design_settings.h.
References m_gridOrigin.
Referenced by PCB_IO_KICAD_SEXPR::formatSetup(), DIALOG_POSITION_RELATIVE::getAnchorPos(), API_HANDLER_PCB::handleGetBoardOrigin(), ALTIUM_PCB::Parse(), and PCB_BASE_EDIT_FRAME::SetBoard().
int BOARD_DESIGN_SETTINGS::GetHolePlatingThickness | ( | ) | const |
Pad & via drills are finish size.
Adding the hole plating thickness gives you the actual hole size.
Definition at line 1538 of file board_design_settings.cpp.
References ADVANCED_CFG::GetCfg(), and pcbIUScale.
Referenced by KIGFX::PCB_PAINTER::Draw().
|
inherited |
Fetches a JSON object that is a subset of this JSON_SETTINGS object, using a path of the form "key1.key2.key3" to refer to nested objects.
aPath | is a string containing one or more keys separated by '.' |
Definition at line 583 of file json_settings.cpp.
References m_internals.
Referenced by Get(), GERBVIEW_SETTINGS::GetFileHistories(), GetFileHistories(), PARAM_LAMBDA< ValueType >::Load(), PARAM_LIST< Type >::Load(), PARAM_MAP< Value >::Load(), PARAM_SET< Type >::Load(), PARAM_WXSTRING_MAP::Load(), PARAM_LAMBDA< ValueType >::MatchesFile(), PARAM_LIST< Type >::MatchesFile(), PARAM_MAP< Value >::MatchesFile(), PARAM_PATH_LIST::MatchesFile(), PARAM_SET< Type >::MatchesFile(), PARAM_WXSTRING_MAP::MatchesFile(), and SETTINGS_MANAGER::SaveColorSettings().
int BOARD_DESIGN_SETTINGS::GetLayerClass | ( | PCB_LAYER_ID | aLayer | ) | const |
Definition at line 1515 of file board_design_settings.cpp.
References B_CrtYd, B_Fab, B_SilkS, Edge_Cuts, F_CrtYd, F_Fab, F_SilkS, IsCopperLayer(), LAYER_CLASS_COPPER, LAYER_CLASS_COURTYARD, LAYER_CLASS_EDGES, LAYER_CLASS_FAB, LAYER_CLASS_OTHERS, and LAYER_CLASS_SILK.
Referenced by CONVERT_TOOL::CreatePolys(), GetLineThickness(), GetTextItalic(), GetTextSize(), GetTextThickness(), and GetTextUpright().
|
inlineprotectedvirtualinherited |
Reimplemented in PROJECT_FILE, and PROJECT_LOCAL_SETTINGS.
Definition at line 296 of file json_settings.h.
Referenced by LoadFromFile().
int BOARD_DESIGN_SETTINGS::GetLineThickness | ( | PCB_LAYER_ID | aLayer | ) | const |
Return the default graphic segment thickness from the layer class for the given layer.
Definition at line 1544 of file board_design_settings.cpp.
References GetLayerClass(), and m_LineThickness.
Referenced by ZONE_CREATE_HELPER::commitZone(), FABMASTER::createBoardItems(), KIGFX::PCB_PAINTER::Draw(), DRAWING_TOOL::DrawDimension(), DRAWING_TOOL::drawShape(), DRAWING_TOOL::DrawTable(), PCB_IO_EAGLE::loadPlain(), FABMASTER::loadPolygon(), CADSTAR_PCB_ARCHIVE_LOADER::loadTemplates(), DIALOG_TEXTBOX_PROPERTIES::onBorderChecked(), DIALOG_TABLE_PROPERTIES::onHeaderChecked(), DIALOG_OUTSET_ITEMS::OnLayerDefaultClick(), PCB_IO_EAGLE::packageWire(), DIALOG_PLOT::Plot(), DRAWING_TOOL::Reset(), and PCB_SHAPE::StyleFromSettings().
|
inlineinherited |
Definition at line 94 of file json_settings.h.
References m_location.
Referenced by SETTINGS_MANAGER::GetPathForSettingsFile(), and COLOR_SETTINGS::migrateSchema0to1().
|
inlineinherited |
Definition at line 54 of file nested_settings.h.
References JSON_SETTINGS::JSON_SETTINGS(), and m_parent.
Referenced by BOARD_DESIGN_SETTINGS::LoadFromFile().
SEVERITY BOARD_DESIGN_SETTINGS::GetSeverity | ( | int | aDRCErrorCode | ) |
Definition at line 1294 of file board_design_settings.cpp.
References m_DRCSeverities.
Referenced by BOOST_DATA_TEST_CASE_F(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), PCB_MARKER::GetSeverity(), DIALOG_DRC::updateDisplayedCounts(), WriteDRCReport(), DRC_REPORT::WriteJsonReport(), and DRC_REPORT::WriteTextReport().
int BOARD_DESIGN_SETTINGS::GetSmallestClearanceValue | ( | ) | const |
Definition at line 1337 of file board_design_settings.cpp.
References clearance, m_NetSettings, and name.
Referenced by DIALOG_PLOT::TransferDataToWindow().
|
inline |
Definition at line 268 of file board_design_settings.h.
References m_stackup.
Referenced by FOOTPRINT_CHOOSER_FRAME::build3DCanvas(), BOARD_STACKUP::BuildDefaultStackupList(), PCB_IO_KICAD_SEXPR::formatSetup(), PCB_IO_IPC2581::generateCadLayers(), PCB_IO_IPC2581::generateCadSpecs(), PCB_IO_IPC2581::generateContentStackup(), PCB_IO_IPC2581::generateStackup(), BOARD::GetStackupOrDefault(), ODB_MATRIX_ENTITY::InitMatrixLayerData(), BOARD_ADAPTER::InitSettings(), CADSTAR_PCB_ARCHIVE_LOADER::loadBoardStackup(), ALTIUM_PCB::ParseBoard6Data(), PCB_IO_KICAD_SEXPR_PARSER::parseSetup(), PCB_CONTROL::PlaceCharacteristics(), PCB_CONTROL::PlaceStackup(), and BOARD_STACKUP::SynchronizeWithBoard().
|
inline |
Definition at line 269 of file board_design_settings.h.
References m_stackup.
|
inline |
Definition at line 271 of file board_design_settings.h.
References m_TeardropParamsList.
Referenced by DIALOG_GLOBAL_EDIT_TEARDROPS::processItem().
bool BOARD_DESIGN_SETTINGS::GetTextItalic | ( | PCB_LAYER_ID | aLayer | ) | const |
Definition at line 1562 of file board_design_settings.cpp.
References GetLayerClass(), and m_TextItalic.
Referenced by PCB_BASE_FRAME::CreateNewFootprint(), DRAWING_TOOL::DrawDimension(), DRAWING_TOOL::drawShape(), DIALOG_FOOTPRINT_PROPERTIES_FP_EDITOR::OnAddField(), DRAWING_TOOL::PlaceText(), DRAWING_TOOL::Reset(), PCB_TEXT::StyleFromSettings(), and PCB_TEXTBOX::StyleFromSettings().
VECTOR2I BOARD_DESIGN_SETTINGS::GetTextSize | ( | PCB_LAYER_ID | aLayer | ) | const |
Return the default text size from the layer class for the given layer.
Definition at line 1550 of file board_design_settings.cpp.
References GetLayerClass(), and m_TextSize.
Referenced by PCB_BASE_FRAME::CreateNewFootprint(), DRAWING_TOOL::DrawDimension(), DRAWING_TOOL::drawShape(), DRAWING_TOOL::DrawTable(), PCB_IO_EAGLE::loadPlain(), DIALOG_FOOTPRINT_PROPERTIES_FP_EDITOR::OnAddField(), DRAWING_TOOL::PlaceText(), DRAWING_TOOL::Reset(), PCB_TEXT::StyleFromSettings(), and PCB_TEXTBOX::StyleFromSettings().
int BOARD_DESIGN_SETTINGS::GetTextThickness | ( | PCB_LAYER_ID | aLayer | ) | const |
Return the default text thickness from the layer class for the given layer.
Definition at line 1556 of file board_design_settings.cpp.
References GetLayerClass(), and m_TextThickness.
Referenced by PCB_BASE_FRAME::CreateNewFootprint(), DRAWING_TOOL::DrawDimension(), DRAWING_TOOL::drawShape(), DIALOG_FOOTPRINT_PROPERTIES_FP_EDITOR::OnAddField(), DRAWING_TOOL::PlaceText(), DRAWING_TOOL::Reset(), PCB_TEXT::StyleFromSettings(), and PCB_TEXTBOX::StyleFromSettings().
bool BOARD_DESIGN_SETTINGS::GetTextUpright | ( | PCB_LAYER_ID | aLayer | ) | const |
Definition at line 1568 of file board_design_settings.cpp.
References GetLayerClass(), and m_TextUpright.
Referenced by PCB_BASE_FRAME::CreateNewFootprint(), DRAWING_TOOL::drawShape(), DRAWING_TOOL::PlaceText(), DRAWING_TOOL::Reset(), PCB_TEXT::StyleFromSettings(), and PCB_TEXTBOX::StyleFromSettings().
|
inline |
Definition at line 338 of file board_design_settings.h.
References m_trackWidthIndex.
Referenced by PCB_EDIT_FRAME::OnUpdateSelectTrackWidth(), DIALOG_GLOBAL_EDIT_TRACKS_AND_VIAS::processItem(), BOARD_EDITOR_CONTROL::TrackWidthDec(), BOARD_EDITOR_CONTROL::TrackWidthInc(), and TRACK_WIDTH_MENU::update().
|
inline |
Definition at line 607 of file board_design_settings.h.
References m_userDefinedLayerCount.
Referenced by BOARD::GetUserDefinedLayerCount().
|
inline |
Definition at line 368 of file board_design_settings.h.
References m_viaSizeIndex.
Referenced by PCB_EDIT_FRAME::OnUpdateSelectViaSize(), DIALOG_GLOBAL_EDIT_TRACKS_AND_VIAS::processItem(), TRACK_WIDTH_MENU::update(), VIA_SIZE_MENU::update(), BOARD_EDITOR_CONTROL::ViaSizeDec(), and BOARD_EDITOR_CONTROL::ViaSizeInc().
bool BOARD_DESIGN_SETTINGS::Ignore | ( | int | aDRCErrorCode | ) |
Return true if the DRC error code's severity is SEVERITY_IGNORE.
Definition at line 1300 of file board_design_settings.cpp.
References m_DRCSeverities, and RPT_SEVERITY_IGNORE.
|
private |
Definition at line 965 of file board_design_settings.cpp.
References BOARD_DESIGN_SETTINGS(), m_AllowSoldermaskBridgesInFPs, m_auxOrigin, m_boardThickness, m_CapVias, m_CopperEdgeClearance, m_copperLayerCount, m_CoverViasBack, m_CoverViasFront, m_currentNetClassName, m_CurrentViaType, m_customDiffPair, m_customTrackWidth, m_customViaSize, m_DefaultFPTextItems, m_defaultZoneSettings, m_DiffPairDimensionsList, m_diffPairIndex, m_DimensionArrowLength, m_DimensionExtensionOffset, m_DimensionKeepTextAligned, m_DimensionPrecision, m_DimensionSuppressZeroes, m_DimensionTextPosition, m_DimensionUnitsFormat, m_DimensionUnitsMode, m_DrcExclusionComments, m_DrcExclusions, m_DRCSeverities, m_enabledLayers, m_FillVias, m_gridOrigin, m_HasStackup, m_HoleClearance, m_HoleToHoleMin, m_LineThickness, m_MaxError, m_MicroViasMinDrill, m_MicroViasMinSize, m_MinClearance, m_MinConn, m_MinGrooveWidth, m_MinResolvedSpokes, m_MinSilkTextHeight, m_MinSilkTextThickness, m_MinThroughDrill, m_NetSettings, m_Pad_Master, m_PlugViasBack, m_PlugViasFront, m_SilkClearance, m_SolderMaskExpansion, m_SolderMaskMinWidth, m_SolderMaskToCopperClearance, m_SolderPasteMargin, m_SolderPasteMarginRatio, m_stackup, m_StyleFPFields, m_StyleFPShapes, m_StyleFPText, m_TempOverrideTrackWidth, m_TentViasBack, m_TentViasFront, m_TextItalic, m_TextSize, m_TextThickness, m_TextUpright, m_TrackMinWidth, m_trackWidthIndex, m_TrackWidthList, m_UseConnectedTrackWidth, m_useCustomDiffPair, m_useCustomTrackVia, m_UseHeightForLengthCalcs, m_userDefinedLayerCount, m_UserLayerNames, m_ViasDimensionsList, m_viaSizeIndex, m_ViasMinAnnularWidth, m_ViasMinSize, and m_ZoneKeepExternalFillets.
Referenced by BOARD_DESIGN_SETTINGS(), and operator=().
|
inherited |
Definition at line 131 of file json_settings.cpp.
References m_internals.
Referenced by COLOR_SETTINGS::migrateSchema0to1(), and SETTINGS_MANAGER::SaveColorSettings().
|
inline |
Test whether a given layer aLayerId is enabled.
aLayerId | The layer to be tested. |
Definition at line 581 of file board_design_settings.h.
References m_enabledLayers, and PCB_LAYER_ID_COUNT.
Referenced by BOARD::IsLayerEnabled(), and BOARD::IsLayerVisible().
|
inlineinherited |
Definition at line 98 of file json_settings.h.
References m_writeFile.
Referenced by PANEL_COLOR_SETTINGS::GetSettingsDropdownName(), PANEL_COLOR_SETTINGS::OnThemeChanged(), APPEARANCE_CONTROLS::rebuildLayers(), SETTINGS_MANAGER::SaveColorSettings(), and APPEARANCE_CONTROLS::syncColorsAndVisibility().
|
virtualinherited |
Updates the parameters of this object based on the current JSON document contents.
Definition at line 137 of file json_settings.cpp.
References m_params, m_resetParamsIfMissing, and traceSettings.
Referenced by COLOR_SETTINGS::CreateBuiltinColorSettings(), BOARD_DESIGN_SETTINGS::LoadFromFile(), LoadFromFile(), NESTED_SETTINGS::LoadFromFile(), LoadFromRawFile(), PCB_TEST_FRAME_BASE::LoadSettings(), PCBNEW_SETTINGS::MigrateFromLegacy(), COLOR_SETTINGS::migrateSchema0to1(), PANEL_3D_DISPLAY_OPTIONS::ResetPanel(), PANEL_3D_OPENGL_OPTIONS::ResetPanel(), PANEL_3D_RAYTRACING_OPTIONS::ResetPanel(), PANEL_DISPLAY_OPTIONS::ResetPanel(), PANEL_EDIT_OPTIONS::ResetPanel(), PANEL_EESCHEMA_DISPLAY_OPTIONS::ResetPanel(), PANEL_EESCHEMA_EDITING_OPTIONS::ResetPanel(), PANEL_FP_EDITOR_FIELD_DEFAULTS::ResetPanel(), PANEL_FP_EDITOR_GRAPHICS_DEFAULTS::ResetPanel(), PANEL_GERBVIEW_DISPLAY_OPTIONS::ResetPanel(), PANEL_PCBNEW_DISPLAY_ORIGIN::ResetPanel(), PANEL_PL_EDITOR_DISPLAY_OPTIONS::ResetPanel(), PANEL_SYM_DISPLAY_OPTIONS::ResetPanel(), PANEL_SYM_EDITING_OPTIONS::ResetPanel(), and SETTINGS_MANAGER::SaveColorSettings().
|
overridevirtual |
Loads the backing file from disk and then calls Load()
aDirectory | is the path to the file |
Reimplemented from JSON_SETTINGS.
Definition at line 1221 of file board_design_settings.cpp.
References JSON_SETTINGS::Contains(), DRC_ITEM::Create(), DRCE_MISSING_COURTYARD, DRCE_OVERLAPPING_FOOTPRINTS, NESTED_SETTINGS::GetParent(), JSON_SETTINGS::Load(), NESTED_SETTINGS::LoadFromFile(), m_ZoneKeepExternalFillets, project, and JSON_SETTINGS::Set().
|
inherited |
Definition at line 551 of file json_settings.cpp.
References Load(), m_internals, and traceSettings.
|
inherited |
Migrates the schema of this settings from the version in the file to the latest version.
Schema migration doesn't need to be used every time a setting is added! This is intended to be more of an "escape hatch" in the event that we decide to move settings around or make other changes to a settings file format that can't simply be handled by loading a new default
Definition at line 706 of file json_settings.cpp.
References m_internals, m_migrators, m_schemaVersion, and traceSettings.
Referenced by LoadFromFile(), and NESTED_SETTINGS::LoadFromFile().
|
virtualinherited |
Migrates from wxConfig to JSON-based configuration.
Should be implemented by any subclasses of JSON_SETTINGS that map to a legacy (wxConfig-based) config file.
aLegacyConfig | is a wxConfigBase holding a loaded configuration to migrate |
Reimplemented in APP_SETTINGS_BASE, BITMAP2CMP_SETTINGS, COLOR_SETTINGS, COMMON_SETTINGS, CVPCB_SETTINGS, EDA_3D_VIEWER_SETTINGS, EESCHEMA_SETTINGS, FOOTPRINT_EDITOR_SETTINGS, GERBVIEW_SETTINGS, KICAD_SETTINGS, PCB_CALCULATOR_SETTINGS, PCBNEW_SETTINGS, PL_EDITOR_SETTINGS, PROJECT_FILE, PROJECT_LOCAL_SETTINGS, and SYMBOL_EDITOR_SETTINGS.
Definition at line 747 of file json_settings.cpp.
References traceSettings.
Referenced by LoadFromFile().
|
private |
Schema 0 to 1: default dimension precision changed in meaning. Previously it was an enum with the following meaning:
0: 0.01mm / 1 mil / 0.001 in 1: 0.001mm / 0.1 mil / 0.0001 in 2: 0.0001mm / 0.01 mil / 0.00001 in
Now it is independent of display units and is an integer meaning the number of digits displayed after the decimal point, so we have to migrate based on the default units.
The units is an integer with the following mapping:
0: Inches 1: Mils 2: Millimeters
Definition at line 1169 of file board_design_settings.cpp.
References JSON_SETTINGS::At(), JSON_SETTINGS::Contains(), JSON_SETTINGS::Get(), and JSON_SETTINGS::Set().
Referenced by BOARD_DESIGN_SETTINGS().
|
inline |
Definition at line 257 of file board_design_settings.h.
References BOARD_DESIGN_SETTINGS(), and operator==().
BOARD_DESIGN_SETTINGS & BOARD_DESIGN_SETTINGS::operator= | ( | const BOARD_DESIGN_SETTINGS & | aOther | ) |
Definition at line 958 of file board_design_settings.cpp.
References BOARD_DESIGN_SETTINGS(), and initFromOther().
bool BOARD_DESIGN_SETTINGS::operator== | ( | const BOARD_DESIGN_SETTINGS & | aOther | ) | const |
Definition at line 1065 of file board_design_settings.cpp.
References BOARD_DESIGN_SETTINGS(), m_AllowSoldermaskBridgesInFPs, m_auxOrigin, m_boardThickness, m_CapVias, m_CopperEdgeClearance, m_copperLayerCount, m_CoverViasBack, m_CoverViasFront, m_currentNetClassName, m_CurrentViaType, m_customDiffPair, m_customTrackWidth, m_customViaSize, m_DefaultFPTextItems, m_defaultZoneSettings, m_DiffPairDimensionsList, m_diffPairIndex, m_DimensionArrowLength, m_DimensionExtensionOffset, m_DimensionKeepTextAligned, m_DimensionPrecision, m_DimensionSuppressZeroes, m_DimensionTextPosition, m_DimensionUnitsFormat, m_DimensionUnitsMode, m_DrcExclusionComments, m_DrcExclusions, m_DRCSeverities, m_enabledLayers, m_FillVias, m_gridOrigin, m_HasStackup, m_HoleClearance, m_HoleToHoleMin, m_LineThickness, m_MaxError, m_MicroViasMinDrill, m_MicroViasMinSize, m_MinClearance, m_MinConn, m_MinGrooveWidth, m_MinResolvedSpokes, m_MinSilkTextHeight, m_MinSilkTextThickness, m_MinThroughDrill, m_NetSettings, m_Pad_Master, m_PlugViasBack, m_PlugViasFront, m_SilkClearance, m_SolderMaskExpansion, m_SolderMaskMinWidth, m_SolderMaskToCopperClearance, m_SolderPasteMargin, m_SolderPasteMarginRatio, m_stackup, m_StyleFPFields, m_StyleFPShapes, m_StyleFPText, m_TempOverrideTrackWidth, m_TentViasBack, m_TentViasFront, m_TextItalic, m_TextSize, m_TextThickness, m_TextUpright, m_TrackMinWidth, m_trackWidthIndex, m_TrackWidthList, m_UseConnectedTrackWidth, m_useCustomDiffPair, m_useCustomTrackVia, m_UseHeightForLengthCalcs, m_userDefinedLayerCount, m_UserLayerNames, m_ViasDimensionsList, m_viaSizeIndex, m_ViasMinAnnularWidth, m_ViasMinSize, and m_ZoneKeepExternalFillets.
Referenced by operator!=().
|
protectedinherited |
Registers a migration from one schema version to another.
If the schema version in the file loaded from disk is less than the schema version of the JSON_SETTINGS class, migration functions will be called one after the other until the data is up-to-date.
aOldSchemaVersion | is the starting schema version for this migration |
aNewSchemaVersion | is the ending schema version for this migration |
aMigrator | is a function that performs the migration and returns true if successful |
Definition at line 697 of file json_settings.cpp.
References m_migrators, and m_schemaVersion.
Referenced by BITMAP2CMP_SETTINGS::BITMAP2CMP_SETTINGS(), BOARD_DESIGN_SETTINGS::BOARD_DESIGN_SETTINGS(), COLOR_SETTINGS::COLOR_SETTINGS(), EDA_3D_VIEWER_SETTINGS::EDA_3D_VIEWER_SETTINGS(), EESCHEMA_SETTINGS::EESCHEMA_SETTINGS(), NET_SETTINGS::NET_SETTINGS(), PROJECT_FILE::PROJECT_FILE(), SCHEMATIC_SETTINGS::SCHEMATIC_SETTINGS(), and SYMBOL_EDITOR_SETTINGS::SYMBOL_EDITOR_SETTINGS().
|
inherited |
Saves and frees a nested settings object, if it exists within this one.
aSettings | is a pointer to a NESTED_SETTINGS that has already been added to this one |
Definition at line 914 of file json_settings.cpp.
References JSON_SETTINGS(), m_manager, m_modified, m_nested_settings, NESTED_SETTINGS, NESTED_SETTINGS::SetParent(), and traceSettings.
Referenced by SCHEMATIC_SETTINGS::~SCHEMATIC_SETTINGS().
|
inherited |
Resets all parameters to default values.
Does NOT write to file or update underlying JSON.
Definition at line 393 of file json_settings.cpp.
References m_params.
Referenced by PANEL_COMMON_SETTINGS::ResetPanel(), PANEL_MAINTENANCE::ResetPanel(), PANEL_MOUSE_SETTINGS::ResetPanel(), and PANEL_SPACEMOUSE::ResetPanel().
|
overridevirtualinherited |
Calls Store() and then saves the JSON document contents into the parent JSON_SETTINGS.
aDirectory | is ignored |
Reimplemented from JSON_SETTINGS.
Definition at line 128 of file nested_settings.cpp.
References dummy, JSON_SETTINGS::GetFilename(), JSON_SETTINGS::m_filename, JSON_SETTINGS::m_internals, m_parent, m_path, JSON_SETTINGS::m_schemaVersion, JSON_SETTINGS::Store(), and traceSettings.
Referenced by SCH_EDIT_FRAME::saveProjectSettings(), and SIMULATOR_FRAME::SaveSettings().
|
inherited |
Stores a value into the JSON document Will throw an exception if ValueType isn't something that the library can handle.
ValueType | is the type to store |
aPath | is a path to store in the form "key1.key2.key3" |
aVal | is the value to store |
Definition at line 658 of file json_settings.cpp.
References m_internals.
Referenced by BITMAP2CMP_SETTINGS::BITMAP2CMP_SETTINGS(), COLOR_SETTINGS::COLOR_SETTINGS(), EDA_3D_VIEWER_SETTINGS::EDA_3D_VIEWER_SETTINGS(), EESCHEMA_SETTINGS::EESCHEMA_SETTINGS(), JSON_SETTINGS::Set< KIGFX::COLOR4D >(), JSON_SETTINGS::Set< KIGFX::CROSS_HAIR_MODE >(), JSON_SETTINGS::Set< nlohmann::json >(), JSON_SETTINGS::Set< std::string >(), BOARD_DESIGN_SETTINGS::LoadFromFile(), APP_SETTINGS_BASE::migrateFindReplace(), APP_SETTINGS_BASE::MigrateFromLegacy(), COMMON_SETTINGS::MigrateFromLegacy(), EDA_3D_VIEWER_SETTINGS::MigrateFromLegacy(), EESCHEMA_SETTINGS::MigrateFromLegacy(), FOOTPRINT_EDITOR_SETTINGS::MigrateFromLegacy(), GERBVIEW_SETTINGS::MigrateFromLegacy(), KICAD_SETTINGS::MigrateFromLegacy(), PCBNEW_SETTINGS::MigrateFromLegacy(), PROJECT_FILE::MigrateFromLegacy(), SYMBOL_EDITOR_SETTINGS::MigrateFromLegacy(), BOARD_DESIGN_SETTINGS::migrateSchema0to1(), COLOR_SETTINGS::migrateSchema0to1(), FOOTPRINT_EDITOR_SETTINGS::migrateSchema0to1(), PROJECT_FILE::SaveAs(), PROJECT_LOCAL_SETTINGS::SaveAs(), PROJECT_FILE::SaveToFile(), PROJECT_LOCAL_SETTINGS::SaveToFile(), SCHEMATIC_SETTINGS::SCHEMATIC_SETTINGS(), COLOR_MAP_PARAM::Store(), PARAM< ValueType >::Store(), PARAM_ENUM< EnumType >::Store(), PARAM_LAMBDA< ValueType >::Store(), PARAM_LIST< Type >::Store(), PARAM_MAP< Value >::Store(), PARAM_PATH::Store(), PARAM_PATH_LIST::Store(), PARAM_SCALED< ValueType >::Store(), PARAM_SET< Type >::Store(), and PARAM_WXSTRING_MAP::Store().
|
inherited |
Definition at line 948 of file json_settings.cpp.
|
inherited |
References KICOMMON_API.
|
inline |
Definition at line 661 of file board_design_settings.h.
References m_auxOrigin.
Referenced by BOARD_EDITOR_CONTROL::DoSetDrillOrigin(), PCB_IO_EASYEDA::LoadBoard(), PCB_IO_KICAD_LEGACY::loadSETUP(), ALTIUM_PCB::Parse(), PCB_IO_EASYEDAPRO_PARSER::ParseBoard(), and PCB_IO_KICAD_SEXPR_PARSER::parseSetup().
|
inline |
Definition at line 624 of file board_design_settings.h.
References m_boardThickness.
Referenced by FOOTPRINT_CHOOSER_FRAME::build3DCanvas(), CADSTAR_PCB_ARCHIVE_LOADER::loadBoardStackup(), PANEL_PREVIEW_3D_MODEL::PANEL_PREVIEW_3D_MODEL(), and PANEL_PREVIEW_3D_MODEL::View3DSettings().
void BOARD_DESIGN_SETTINGS::SetCopperLayerCount | ( | int | aNewLayerCount | ) |
Set the copper layer count to aNewLayerCount.
aNewLayerCount | The new number of enabled copper layers. |
Definition at line 1468 of file board_design_settings.cpp.
References LSET::AllCuMask(), m_copperLayerCount, and m_enabledLayers.
Referenced by BOARD_DESIGN_SETTINGS(), and BOARD::SetCopperLayerCount().
|
inline |
Sets custom gap for differential pairs (i.e.
not available in netclasses or preset list).
aGap | is the new gap. |
Definition at line 488 of file board_design_settings.h.
References m_customDiffPair.
Referenced by ROUTER_TOOL::DpDimensionsDialog(), and BOARD::SynchronizeNetsAndNetClasses().
|
inline |
Sets custom via gap for differential pairs (i.e.
not available in netclasses or preset list).
aGap | is the new gap. Specify 0 to use the DiffPairGap for vias as well. |
Definition at line 508 of file board_design_settings.h.
References m_customDiffPair.
Referenced by ROUTER_TOOL::DpDimensionsDialog(), and BOARD::SynchronizeNetsAndNetClasses().
|
inline |
Sets custom track width for differential pairs (i.e.
not available in netclasses or preset list).
aDrill | is the new track width. |
Definition at line 470 of file board_design_settings.h.
References m_customDiffPair.
Referenced by ROUTER_TOOL::DpDimensionsDialog(), and BOARD::SynchronizeNetsAndNetClasses().
|
inline |
Sets custom width for track (i.e.
not available in netclasses or preset list).
To have it returned with GetCurrentTrackWidth() you need to enable custom track & via sizes with UseCustomTrackViaSize().
aWidth | is the new track width. |
Definition at line 362 of file board_design_settings.h.
References m_customTrackWidth.
Referenced by BOARD::SynchronizeNetsAndNetClasses().
|
inline |
Sets custom size for via drill (i.e.
not available in netclasses or preset list).
To have it returned with GetCurrentViaDrill() you need to enable custom track & via sizes with UseCustomTrackViaSize().
aDrill | is the new drill size. |
Definition at line 420 of file board_design_settings.h.
References m_customViaSize.
Referenced by BOARD::SynchronizeNetsAndNetClasses().
|
inline |
Set custom size for via diameter (i.e.
not available in netclasses or preset list).
To have it returned with GetCurrentViaSize() you need to enable custom track & via sizes with UseCustomTrackViaSize().
aSize | is the new drill diameter. |
Definition at line 392 of file board_design_settings.h.
References m_customViaSize.
Referenced by BOARD::SynchronizeNetsAndNetClasses().
void BOARD_DESIGN_SETTINGS::SetDefaultMasterPad | ( | ) |
Definition at line 1573 of file board_design_settings.cpp.
References PADSTACK::ALL_LAYERS, ANGLE_45, ANGLE_90, CIRCLE, DEFAULT_PAD_DRILL_DIAMETER_MM, DEFAULT_PAD_HEIGTH_MM, DEFAULT_PAD_RR_RADIUS_RATIO, DEFAULT_PAD_WIDTH_MM, m_Pad_Master, pcbIUScale, and ROUNDRECT.
Referenced by BOARD_DESIGN_SETTINGS().
|
inline |
Definition at line 288 of file board_design_settings.h.
References m_defaultZoneSettings.
Referenced by PCB_IO_KICAD_LEGACY::loadSETUP().
void BOARD_DESIGN_SETTINGS::SetDiffPairIndex | ( | int | aIndex | ) |
aIndex | is the diff pair dimensions list index to set. |
Definition at line 1399 of file board_design_settings.cpp.
References m_DiffPairDimensionsList, m_diffPairIndex, and m_useCustomDiffPair.
Referenced by DIFF_PAIR_MENU::eventHandler(), BOARD_EDITOR_CONTROL::TrackWidthDec(), and BOARD_EDITOR_CONTROL::TrackWidthInc().
void BOARD_DESIGN_SETTINGS::SetEnabledLayers | ( | const LSET & | aMask | ) |
Change the bit-mask of enabled layers to aMask.
aMask | = The new bit-mask of enabled layers. |
Definition at line 1491 of file board_design_settings.cpp.
References B_CrtYd, B_Cu, LSET::ClearNonCopperLayers(), Edge_Cuts, F_CrtYd, F_Cu, m_copperLayerCount, m_enabledLayers, m_userDefinedLayerCount, Margin, and LSET::UserDefinedLayersMask().
Referenced by FOOTPRINT_CHOOSER_FRAME::build3DCanvas(), PANEL_PREVIEW_3D_MODEL::PANEL_PREVIEW_3D_MODEL(), and BOARD::SetEnabledLayers().
|
inlineinherited |
Definition at line 91 of file json_settings.h.
References m_filename.
Referenced by SETTINGS_MANAGER::GetColorSettings(), PROJECT_FILE::SaveAs(), PROJECT_LOCAL_SETTINGS::SaveAs(), SETTINGS_MANAGER::SaveProjectAs(), and SETTINGS_MANAGER::SaveProjectCopy().
|
inline |
Definition at line 664 of file board_design_settings.h.
References m_gridOrigin.
Referenced by PCB_CONTROL::DoSetGridOrigin(), PCB_IO_KICAD_LEGACY::loadSETUP(), ALTIUM_PCB::Parse(), and PCB_IO_KICAD_SEXPR_PARSER::parseSetup().
|
staticinherited |
Sets the given bool if the given key/path is present.
aObj | is the source object |
aTarget | is the storage destination |
Definition at line 770 of file json_settings.cpp.
References JSON_SETTINGS_INTERNALS::PointerFromString().
|
staticinherited |
Sets the given int if the given key/path is present.
aObj | is the source object |
aTarget | is the storage destination |
Definition at line 785 of file json_settings.cpp.
References JSON_SETTINGS_INTERNALS::PointerFromString().
|
staticinherited |
Sets the given unsigned int if the given key/path is present.
aObj | is the source object |
aTarget | is the storage destination |
Definition at line 800 of file json_settings.cpp.
References JSON_SETTINGS_INTERNALS::PointerFromString().
|
staticinherited |
Sets the given string if the given key/path is present.
aObj | is the source object |
aTarget | is the storage destination |
Definition at line 755 of file json_settings.cpp.
References JSON_SETTINGS_INTERNALS::PointerFromString().
Referenced by PROJECT_LOCAL_SETTINGS::PROJECT_LOCAL_SETTINGS(), and SYMBOL_EDITOR_SETTINGS::SYMBOL_EDITOR_SETTINGS().
|
inlineinherited |
Definition at line 96 of file json_settings.h.
References m_legacy_filename.
Referenced by SYMBOL_EDITOR_SETTINGS::SYMBOL_EDITOR_SETTINGS().
|
inlineinherited |
Definition at line 93 of file json_settings.h.
References m_location.
Referenced by COLOR_SETTINGS::COLOR_SETTINGS(), and COLOR_SETTINGS::migrateSchema0to1().
|
inlineinherited |
Definition at line 207 of file json_settings.h.
References m_manager.
|
inherited |
Definition at line 169 of file nested_settings.cpp.
References JSON_SETTINGS::JSON_SETTINGS(), LoadFromFile(), and m_parent.
Referenced by BOARD::ClearProject(), NESTED_SETTINGS(), and JSON_SETTINGS::ReleaseNestedSettings().
|
inlineinherited |
Definition at line 99 of file json_settings.h.
References m_writeFile.
Referenced by SETTINGS_MANAGER::GetColorSettings(), SETTINGS_MANAGER::loadAllColorSettings(), PANEL_COLOR_SETTINGS::OnThemeChanged(), PROJECT_FILE::SaveAs(), and SETTINGS_MANAGER::SaveProjectAs().
void BOARD_DESIGN_SETTINGS::SetTrackWidthIndex | ( | int | aIndex | ) |
Set the current track width list index to aIndex.
aIndex | is the track width list index. |
Definition at line 1381 of file board_design_settings.cpp.
References m_trackWidthIndex, m_TrackWidthList, and m_useCustomTrackVia.
Referenced by TRACK_WIDTH_MENU::eventHandler(), DIALOG_GLOBAL_EDIT_TRACKS_AND_VIAS::processItem(), PCB_EDIT_FRAME::Tracks_and_Vias_Size_Event(), BOARD_EDITOR_CONTROL::TrackWidthDec(), BOARD_EDITOR_CONTROL::TrackWidthInc(), and PCB_EDIT_FRAME::UpdateTrackWidthSelectBox().
void BOARD_DESIGN_SETTINGS::SetUserDefinedLayerCount | ( | int | aNewLayerCount | ) |
Set the number of user defined layers to aNewLayerCount.
aNewLayerCount | The new number of enabled user defined layers. |
Definition at line 1480 of file board_design_settings.cpp.
References m_enabledLayers, m_userDefinedLayerCount, and LSET::UserDefinedLayersMask().
Referenced by BOARD_DESIGN_SETTINGS(), and BOARD::SetUserDefinedLayerCount().
void BOARD_DESIGN_SETTINGS::SetViaSizeIndex | ( | int | aIndex | ) |
Set the current via size list index to aIndex.
aIndex | is the via size list index. |
Definition at line 1348 of file board_design_settings.cpp.
References m_useCustomTrackVia, m_ViasDimensionsList, and m_viaSizeIndex.
Referenced by TRACK_WIDTH_MENU::eventHandler(), VIA_SIZE_MENU::eventHandler(), DIALOG_GLOBAL_EDIT_TRACKS_AND_VIAS::processItem(), PCB_EDIT_FRAME::Tracks_and_Vias_Size_Event(), PCB_EDIT_FRAME::UpdateViaSizeSelectBox(), BOARD_EDITOR_CONTROL::ViaSizeDec(), and BOARD_EDITOR_CONTROL::ViaSizeInc().
|
virtualinherited |
Stores the current parameters into the JSON document represented by this object Note: this doesn't do any writing to disk; that's handled by SETTINGS_MANAGER.
Definition at line 381 of file json_settings.cpp.
References m_modified, and m_params.
Referenced by FormatAsString(), PANEL_FP_EDITOR_COLOR_SETTINGS::PANEL_FP_EDITOR_COLOR_SETTINGS(), SETTINGS_MANAGER::SaveColorSettings(), SaveToFile(), and NESTED_SETTINGS::SaveToFile().
|
inline |
Definition at line 534 of file board_design_settings.h.
References m_useCustomDiffPair.
|
inline |
Enables/disables custom differential pair dimensions.
aEnabled | decides if custom settings should be used for new differential pairs. |
Definition at line 526 of file board_design_settings.h.
References m_useCustomDiffPair.
Referenced by DIFF_PAIR_MENU::eventHandler(), BOARD_EDITOR_CONTROL::TrackWidthDec(), BOARD_EDITOR_CONTROL::TrackWidthInc(), and DIFF_PAIR_MENU::update().
|
inline |
Definition at line 449 of file board_design_settings.h.
References m_useCustomTrackVia.
|
inline |
Enables/disables custom track/via size settings.
If enabled, values set with SetCustomTrackWidth(), SetCustomViaSize(), and SetCustomViaDrill() are used for newly created tracks and vias.
aEnabled | decides if custom settings should be used for new tracks/vias. |
Definition at line 441 of file board_design_settings.h.
References m_useCustomTrackVia.
Referenced by BOARD_EDITOR_CONTROL::AutoTrackWidth(), BOARD::BOARD(), ROUTER_TOOL::CustomTrackWidthDialog(), TRACK_WIDTH_MENU::eventHandler(), VIA_SIZE_MENU::eventHandler(), PCB_EDIT_FRAME::OnUpdateSelectTrackWidth(), PCB_EDIT_FRAME::OnUpdateSelectViaSize(), BOARD::SynchronizeNetsAndNetClasses(), BOARD_EDITOR_CONTROL::TrackWidthDec(), BOARD_EDITOR_CONTROL::TrackWidthInc(), TRACK_WIDTH_MENU::update(), VIA_SIZE_MENU::update(), BOARD_EDITOR_CONTROL::ViaSizeDec(), and BOARD_EDITOR_CONTROL::ViaSizeInc().
|
inline |
Return true if netclass values should be used to obtain appropriate diff pair dimensions.
Definition at line 320 of file board_design_settings.h.
References m_diffPairIndex, and m_useCustomDiffPair.
Referenced by PNS_KICAD_IFACE_BASE::ImportSizes(), and ROUTER_TOOL::updateSizesAfterRouterEvent().
|
inline |
Return true if netclass values should be used to obtain appropriate track width.
Definition at line 304 of file board_design_settings.h.
References m_trackWidthIndex, and m_useCustomTrackVia.
Referenced by PNS_KICAD_IFACE_BASE::ImportSizes(), and ROUTER_TOOL::updateSizesAfterRouterEvent().
|
inline |
Return true if netclass values should be used to obtain appropriate via size.
Definition at line 312 of file board_design_settings.h.
References m_useCustomTrackVia, and m_viaSizeIndex.
Referenced by ROUTER_TOOL::handleLayerSwitch(), and PNS_KICAD_IFACE_BASE::ImportSizes().
bool BOARD_DESIGN_SETTINGS::m_AllowSoldermaskBridgesInFPs |
Definition at line 737 of file board_design_settings.h.
Referenced by BOARD_DESIGN_SETTINGS(), PCB_IO_KICAD_SEXPR::formatSetup(), initFromOther(), operator==(), and PCB_IO_KICAD_SEXPR_PARSER::parseSetup().
|
private |
origin for plot exports
Definition at line 796 of file board_design_settings.h.
Referenced by GetAuxOrigin(), initFromOther(), operator==(), and SetAuxOrigin().
|
private |
Board thickness for 3D viewer.
Definition at line 820 of file board_design_settings.h.
Referenced by BOARD_DESIGN_SETTINGS(), GetBoardThickness(), initFromOther(), operator==(), and SetBoardThickness().
bool BOARD_DESIGN_SETTINGS::m_CapVias |
Definition at line 748 of file board_design_settings.h.
Referenced by BOARD_DESIGN_SETTINGS(), PCB_IO_KICAD_SEXPR::formatSetup(), initFromOther(), operator==(), and PCB_IO_KICAD_SEXPR_PARSER::parseSetup().
int BOARD_DESIGN_SETTINGS::m_CopperEdgeClearance |
Definition at line 706 of file board_design_settings.h.
Referenced by BOARD_DESIGN_SETTINGS(), GetBiggestClearanceValue(), initFromOther(), CADSTAR_PCB_ARCHIVE_LOADER::loadDesignRules(), DRC_ENGINE::loadImplicitRules(), PCB_EDIT_FRAME::OpenProjectFiles(), operator==(), and PCB_IO_KICAD_SEXPR_PARSER::parseDefaults().
|
private |
Number of copper layers for this design.
Definition at line 814 of file board_design_settings.h.
Referenced by GetCopperLayerCount(), initFromOther(), operator==(), SetCopperLayerCount(), and SetEnabledLayers().
bool BOARD_DESIGN_SETTINGS::m_CoverViasBack |
Definition at line 743 of file board_design_settings.h.
Referenced by BOARD_DESIGN_SETTINGS(), PCB_IO_KICAD_SEXPR::formatSetup(), initFromOther(), operator==(), and PCB_IO_KICAD_SEXPR_PARSER::parseSetup().
bool BOARD_DESIGN_SETTINGS::m_CoverViasFront |
Definition at line 742 of file board_design_settings.h.
Referenced by BOARD_DESIGN_SETTINGS(), PCB_IO_KICAD_SEXPR::formatSetup(), initFromOther(), operator==(), and PCB_IO_KICAD_SEXPR_PARSER::parseSetup().
|
protectedinherited |
Whether or not the backing store file should be created if all parameters are still at their default values.
Ignored if m_createIfMissing is false or m_writeFile is false.
Definition at line 334 of file json_settings.h.
Referenced by JSON_SETTINGS(), and SaveToFile().
|
protectedinherited |
Whether or not the backing store file should be created it if doesn't exist.
Definition at line 328 of file json_settings.h.
Referenced by JSON_SETTINGS(), and SaveToFile().
|
private |
Current net class name used to display netclass info.
This is also the last used netclass after starting a track.
Definition at line 824 of file board_design_settings.h.
Referenced by GetCurrentNetClassName(), initFromOther(), and operator==().
VIATYPE BOARD_DESIGN_SETTINGS::m_CurrentViaType |
(VIA_BLIND_BURIED, VIA_THROUGH, VIA_MICROVIA)
Definition at line 691 of file board_design_settings.h.
Referenced by BOARD_DESIGN_SETTINGS(), DRAWING_TOOL::DrawVia(), initFromOther(), and operator==().
|
private |
Definition at line 812 of file board_design_settings.h.
Referenced by BOARD_DESIGN_SETTINGS(), GetCurrentDiffPairGap(), GetCurrentDiffPairViaGap(), GetCurrentDiffPairWidth(), GetCustomDiffPairGap(), GetCustomDiffPairViaGap(), GetCustomDiffPairWidth(), initFromOther(), operator==(), SetCustomDiffPairGap(), SetCustomDiffPairViaGap(), and SetCustomDiffPairWidth().
|
private |
Definition at line 807 of file board_design_settings.h.
Referenced by BOARD_DESIGN_SETTINGS(), GetCurrentTrackWidth(), GetCustomTrackWidth(), initFromOther(), operator==(), and SetCustomTrackWidth().
|
private |
Definition at line 808 of file board_design_settings.h.
Referenced by BOARD_DESIGN_SETTINGS(), GetCurrentViaDrill(), GetCurrentViaSize(), GetCustomViaDrill(), GetCustomViaSize(), initFromOther(), operator==(), SetCustomViaDrill(), and SetCustomViaSize().
std::vector<TEXT_ITEM_INFO> BOARD_DESIGN_SETTINGS::m_DefaultFPTextItems |
Definition at line 757 of file board_design_settings.h.
Referenced by BOARD_DESIGN_SETTINGS(), PCB_BASE_FRAME::CreateNewFootprint(), initFromOther(), PANEL_FP_EDITOR_FIELD_DEFAULTS::loadFPSettings(), operator==(), and PANEL_FP_EDITOR_FIELD_DEFAULTS::TransferDataFromWindow().
|
private |
The default settings that will be used for new zones.
Definition at line 835 of file board_design_settings.h.
Referenced by BOARD_DESIGN_SETTINGS(), GetDefaultZoneSettings(), initFromOther(), operator==(), and SetDefaultZoneSettings().
|
protectedinherited |
Whether or not to delete legacy file after migration.
Definition at line 343 of file json_settings.h.
Referenced by JSON_SETTINGS(), LoadFromFile(), PROJECT_FILE::PROJECT_FILE(), and PROJECT_LOCAL_SETTINGS::PROJECT_LOCAL_SETTINGS().
std::vector<DIFF_PAIR_DIMENSION> BOARD_DESIGN_SETTINGS::m_DiffPairDimensionsList |
Definition at line 678 of file board_design_settings.h.
Referenced by BOARD_DESIGN_SETTINGS(), GetCurrentDiffPairGap(), GetCurrentDiffPairViaGap(), GetCurrentDiffPairWidth(), initFromOther(), operator==(), PCB_IO_KICAD_SEXPR_PARSER::parseSetup(), SetDiffPairIndex(), BOARD_EDITOR_CONTROL::TrackWidthDec(), BOARD_EDITOR_CONTROL::TrackWidthInc(), and DIFF_PAIR_MENU::update().
|
private |
Definition at line 803 of file board_design_settings.h.
Referenced by BOARD_DESIGN_SETTINGS(), GetCurrentDiffPairGap(), GetCurrentDiffPairViaGap(), GetCurrentDiffPairWidth(), GetDiffPairIndex(), initFromOther(), operator==(), SetDiffPairIndex(), and UseNetClassDiffPair().
PNS::MEANDER_SETTINGS BOARD_DESIGN_SETTINGS::m_DiffPairMeanderSettings |
Definition at line 688 of file board_design_settings.h.
Referenced by BOARD_DESIGN_SETTINGS(), PCB_TUNING_PATTERN::CreateNew(), DIALOG_BOARD_SETUP::DIALOG_BOARD_SETUP(), PANEL_SETUP_TUNING_PATTERNS::ImportSettingsFrom(), and DRAWING_TOOL::PlaceTuningPattern().
int BOARD_DESIGN_SETTINGS::m_DimensionArrowLength |
Definition at line 776 of file board_design_settings.h.
Referenced by BOARD_DESIGN_SETTINGS(), DRAWING_TOOL::DrawDimension(), initFromOther(), PANEL_SETUP_DIMENSIONS::LoadFromSettings(), and operator==().
int BOARD_DESIGN_SETTINGS::m_DimensionExtensionOffset |
Definition at line 777 of file board_design_settings.h.
Referenced by BOARD_DESIGN_SETTINGS(), DRAWING_TOOL::DrawDimension(), initFromOther(), PANEL_SETUP_DIMENSIONS::LoadFromSettings(), and operator==().
bool BOARD_DESIGN_SETTINGS::m_DimensionKeepTextAligned |
Definition at line 775 of file board_design_settings.h.
Referenced by BOARD_DESIGN_SETTINGS(), DRAWING_TOOL::DrawDimension(), initFromOther(), PANEL_SETUP_DIMENSIONS::LoadFromSettings(), and operator==().
DIM_PRECISION BOARD_DESIGN_SETTINGS::m_DimensionPrecision |
Number of digits after the decimal.
Definition at line 771 of file board_design_settings.h.
Referenced by BOARD_DESIGN_SETTINGS(), DRAWING_TOOL::DrawDimension(), initFromOther(), PANEL_SETUP_DIMENSIONS::LoadFromSettings(), operator==(), and PCB_IO_KICAD_SEXPR_PARSER::parseDefaults().
bool BOARD_DESIGN_SETTINGS::m_DimensionSuppressZeroes |
Definition at line 773 of file board_design_settings.h.
Referenced by BOARD_DESIGN_SETTINGS(), DRAWING_TOOL::DrawDimension(), initFromOther(), PANEL_SETUP_DIMENSIONS::LoadFromSettings(), and operator==().
DIM_TEXT_POSITION BOARD_DESIGN_SETTINGS::m_DimensionTextPosition |
Definition at line 774 of file board_design_settings.h.
Referenced by BOARD_DESIGN_SETTINGS(), DRAWING_TOOL::DrawDimension(), initFromOther(), PANEL_SETUP_DIMENSIONS::LoadFromSettings(), and operator==().
DIM_UNITS_FORMAT BOARD_DESIGN_SETTINGS::m_DimensionUnitsFormat |
Definition at line 772 of file board_design_settings.h.
Referenced by BOARD_DESIGN_SETTINGS(), DRAWING_TOOL::DrawDimension(), initFromOther(), PANEL_SETUP_DIMENSIONS::LoadFromSettings(), and operator==().
DIM_UNITS_MODE BOARD_DESIGN_SETTINGS::m_DimensionUnitsMode |
Definition at line 770 of file board_design_settings.h.
Referenced by BOARD_DESIGN_SETTINGS(), DRAWING_TOOL::DrawDimension(), initFromOther(), PANEL_SETUP_DIMENSIONS::LoadFromSettings(), operator==(), and PCB_IO_KICAD_SEXPR_PARSER::parseDefaults().
std::shared_ptr<DRC_ENGINE> BOARD_DESIGN_SETTINGS::m_DRCEngine |
Definition at line 714 of file board_design_settings.h.
Referenced by BOOST_DATA_TEST_CASE_F(), BOOST_DATA_TEST_CASE_F(), BOOST_DATA_TEST_CASE_F(), BOOST_DATA_TEST_CASE_F(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), ZONE_FILLER::buildCopperItemClearances(), ZONE_FILLER::buildThermalSpokes(), PCB_TUNING_PATTERN::CreateNew(), DRAWING_TOOL::DrawVia(), GetBiggestClearanceValue(), PCB_VIA::GetDrillConstraint(), PCB_VIA::GetMinAnnulus(), PCB_TUNING_PATTERN::GetMsgPanelInfo(), BOARD_CONNECTED_ITEM::GetOwnClearance(), PAD::GetOwnClearance(), PAD::GetSolderMaskExpansion(), PCB_SHAPE::GetSolderMaskExpansion(), PCB_TRACK::GetSolderMaskExpansion(), PAD::GetSolderPasteMargin(), PCB_TRACK::GetWidthConstraint(), PCB_VIA::GetWidthConstraint(), ROUTER_TOOL::handleLayerSwitch(), PCBNEW_JOBS_HANDLER::JobExportDrc(), ZONE_FILLER::knockoutThermalReliefs(), PNS_LOG_FILE::Load(), LoadBoard(), NewBoard(), DRAWING_TOOL::PlaceTuningPattern(), DRC_BASE_FIXTURE::runDrcOnBoard(), PCB_BASE_EDIT_FRAME::SetBoard(), PCB_TUNING_PATTERN::ShowPropertiesDialog(), DRC_TEST_PROVIDER_ZONE_CONNECTIONS::testZoneLayer(), ROUTER_TOOL::updateSizesAfterRouterEvent(), and WriteDRCReport().
std::map<wxString, wxString> BOARD_DESIGN_SETTINGS::m_DrcExclusionComments |
Definition at line 717 of file board_design_settings.h.
Referenced by BOARD_DESIGN_SETTINGS(), BOOST_FIXTURE_TEST_CASE(), DRC_BASE_FIXTURE::createAndVerifyInitialExclusionMarkers(), initFromOther(), DRC_BASE_FIXTURE::loadBoardAndVerifyInitialExclusions(), DIALOG_DRC::OnDRCItemRClick(), and operator==().
std::set<wxString> BOARD_DESIGN_SETTINGS::m_DrcExclusions |
Definition at line 716 of file board_design_settings.h.
Referenced by BOARD_DESIGN_SETTINGS(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), DRC_BASE_FIXTURE::createAndVerifyAdditionalUnconnectedExclusions(), DRC_BASE_FIXTURE::createAndVerifyInitialExclusionMarkers(), DIALOG_DRC::ExcludeMarker(), initFromOther(), DRC_BASE_FIXTURE::loadBoardAndVerifyInitialExclusions(), DIALOG_DRC::OnDRCItemRClick(), operator==(), and DRC_BASE_FIXTURE::reloadBoardAndVerifyExclusions().
std::map<int, SEVERITY> BOARD_DESIGN_SETTINGS::m_DRCSeverities |
Definition at line 715 of file board_design_settings.h.
Referenced by BOARD_DESIGN_SETTINGS(), BOOST_DATA_TEST_CASE_F(), BOOST_DATA_TEST_CASE_F(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), FOOTPRINT_EDIT_FRAME::Clear_Pcb(), DIALOG_BOARD_SETUP::DIALOG_BOARD_SETUP(), DoCourtyardInvalidTest(), DoCourtyardOverlapTest(), GetSeverity(), PCB_BASE_FRAME::GetSeverity(), Ignore(), initFromOther(), FOOTPRINT_EDIT_FRAME::LoadFootprintFromBoard(), DIALOG_BOARD_SETUP::onAuxiliaryAction(), DIALOG_DRC::OnDRCItemRClick(), DIALOG_DRC::OnIgnoredItemRClick(), and operator==().
|
private |
Bit-mask for layer enabling.
Definition at line 818 of file board_design_settings.h.
Referenced by BOARD_DESIGN_SETTINGS(), GetEnabledLayers(), initFromOther(), IsLayerEnabled(), operator==(), SetCopperLayerCount(), SetEnabledLayers(), and SetUserDefinedLayerCount().
|
protectedinherited |
The filename (not including path) of this settings file (inicode)
Definition at line 313 of file json_settings.h.
Referenced by APP_SETTINGS_BASE::addParamsForWindow(), COLOR_SETTINGS::COLOR_SETTINGS(), APP_SETTINGS_BASE::DefaultGridSizeList(), APP_SETTINGS_BASE::DefaultZoomList(), GetFilename(), GetFullFilename(), JSON_SETTINGS(), LoadFromFile(), NESTED_SETTINGS::LoadFromFile(), COLOR_SETTINGS::migrateSchema0to1(), COLOR_SETTINGS::operator=(), SaveToFile(), NESTED_SETTINGS::SaveToFile(), and SetFilename().
bool BOARD_DESIGN_SETTINGS::m_FillVias |
Definition at line 751 of file board_design_settings.h.
Referenced by BOARD_DESIGN_SETTINGS(), PCB_IO_KICAD_SEXPR::formatSetup(), initFromOther(), operator==(), and PCB_IO_KICAD_SEXPR_PARSER::parseSetup().
|
private |
origin for grid offsets
Definition at line 797 of file board_design_settings.h.
Referenced by GetGridOrigin(), initFromOther(), operator==(), and SetGridOrigin().
bool BOARD_DESIGN_SETTINGS::m_HasStackup |
Definition at line 790 of file board_design_settings.h.
Referenced by BOARD_DESIGN_SETTINGS(), PCB_IO_KICAD_SEXPR::formatSetup(), initFromOther(), CADSTAR_PCB_ARCHIVE_LOADER::loadBoardStackup(), and operator==().
int BOARD_DESIGN_SETTINGS::m_HoleClearance |
Definition at line 707 of file board_design_settings.h.
Referenced by BOARD_DESIGN_SETTINGS(), GetBiggestClearanceValue(), initFromOther(), CADSTAR_PCB_ARCHIVE_LOADER::loadDesignRules(), DRC_ENGINE::loadImplicitRules(), DSN::SPECCTRA_DB::makeIMAGE(), and operator==().
int BOARD_DESIGN_SETTINGS::m_HoleToHoleMin |
Definition at line 708 of file board_design_settings.h.
Referenced by BOARD_DESIGN_SETTINGS(), GetBiggestClearanceValue(), PNS_KICAD_IFACE_BASE::ImportSizes(), initFromOther(), CADSTAR_PCB_ARCHIVE_LOADER::loadDesignRules(), DRC_ENGINE::loadImplicitRules(), operator==(), and PCB_IO_KICAD_SEXPR_PARSER::parseSetup().
|
protectedinherited |
Definition at line 360 of file json_settings.h.
Referenced by At(), Contains(), FormatAsString(), GetJson(), Internals(), JSON_SETTINGS(), LoadFromFile(), NESTED_SETTINGS::LoadFromFile(), LoadFromRawFile(), Migrate(), COMMON_SETTINGS::MigrateFromLegacy(), FOOTPRINT_EDITOR_SETTINGS::MigrateFromLegacy(), COLOR_SETTINGS::migrateSchema0to1(), COMMON_SETTINGS::migrateSchema0to1(), EDA_3D_VIEWER_SETTINGS::migrateSchema0to1(), NET_SETTINGS::migrateSchema0to1(), PROJECT_FILE::migrateSchema1To2(), COMMON_SETTINGS::migrateSchema1to2(), FOOTPRINT_EDITOR_SETTINGS::migrateSchema2To3(), PROJECT_FILE::migrateSchema2To3(), NET_SETTINGS::migrateSchema2to3(), FOOTPRINT_EDITOR_SETTINGS::migrateSchema3To4(), COMMON_SETTINGS::migrateSchema3to4(), NET_SETTINGS::migrateSchema3to4(), FOOTPRINT_EDITOR_SETTINGS::migrateSchema4To5(), NET_SETTINGS::migrateSchema4to5(), SaveToFile(), NESTED_SETTINGS::SaveToFile(), and Set().
|
protectedinherited |
Set to true if this settings is loaded from a file with a newer schema version than is known.
Definition at line 352 of file json_settings.h.
Referenced by JSON_SETTINGS(), LoadFromFile(), PROJECT_FILE::ShouldAutoSave(), and PROJECT_LOCAL_SETTINGS::ShouldAutoSave().
|
protectedinherited |
The filename of the wxConfig legacy file (if different from m_filename)
Definition at line 316 of file json_settings.h.
Referenced by JSON_SETTINGS(), LoadFromFile(), and SetLegacyFilename().
int BOARD_DESIGN_SETTINGS::m_LineThickness[LAYER_CLASS_COUNT] |
Definition at line 763 of file board_design_settings.h.
Referenced by BOARD_DESIGN_SETTINGS(), CONVERT_TOOL::CreatePolys(), GetLineThickness(), API_HANDLER_PCB::handleGetGraphicsDefaults(), initFromOther(), PANEL_FP_EDITOR_GRAPHICS_DEFAULTS::loadFPSettings(), PCB_IO_KICAD_LEGACY::loadSETUP(), operator==(), PCB_IO_KICAD_SEXPR_PARSER::parseDefaults(), PCB_IO_KICAD_SEXPR_PARSER::parseSetup(), PlotStandardLayer(), and PANEL_FP_EDITOR_GRAPHICS_DEFAULTS::TransferDataFromWindow().
|
protectedinherited |
The location of this settings file (.
Definition at line 319 of file json_settings.h.
Referenced by GetLocation(), JSON_SETTINGS(), and SetLocation().
|
protectedinherited |
A pointer to the settings manager managing this file (may be null)
Definition at line 355 of file json_settings.h.
Referenced by JSON_SETTINGS(), COLOR_SETTINGS::migrateSchema0to1(), FOOTPRINT_EDITOR_SETTINGS::migrateSchema0to1(), ReleaseNestedSettings(), and SetManager().
int BOARD_DESIGN_SETTINGS::m_MaxError |
Definition at line 725 of file board_design_settings.h.
Referenced by BOARD_DESIGN_SETTINGS(), ZONE_FILLER::buildThermalSpokes(), BOARD::ConvertBrdLayerToPolygonalContours(), FABMASTER::createBoardItems(), CONVERT_TOOL::CreatePolys(), KIGFX::PCB_PAINTER::Draw(), DRAWING_TOOL::drawOneBezier(), enclosedByAreaFunc(), GenerateLayerPoly(), initFromOther(), operator==(), PCB_IO_KICAD_SEXPR_PARSER::parseSetup(), PlotStandardLayer(), PAD_TOOL::RecombinePad(), and DRC_TEST_PROVIDER_CONNECTION_WIDTH::Run().
int BOARD_DESIGN_SETTINGS::m_MicroViasMinDrill |
Definition at line 705 of file board_design_settings.h.
Referenced by BOARD_DESIGN_SETTINGS(), initFromOther(), DRC_ENGINE::loadImplicitRules(), PCB_IO_KICAD_LEGACY::loadSETUP(), operator==(), and PCB_IO_KICAD_SEXPR_PARSER::parseSetup().
int BOARD_DESIGN_SETTINGS::m_MicroViasMinSize |
Definition at line 704 of file board_design_settings.h.
Referenced by BOARD_DESIGN_SETTINGS(), initFromOther(), DRC_ENGINE::loadImplicitRules(), PCB_IO_KICAD_LEGACY::loadSETUP(), operator==(), and PCB_IO_KICAD_SEXPR_PARSER::parseSetup().
|
protectedinherited |
A map of starting schema version to a pair of <ending version, migrator function>
Definition at line 358 of file json_settings.h.
Referenced by Migrate(), and registerMigration().
int BOARD_DESIGN_SETTINGS::m_MinClearance |
Definition at line 697 of file board_design_settings.h.
Referenced by BOARD_DESIGN_SETTINGS(), GetBiggestClearanceValue(), PNS_KICAD_IFACE_BASE::ImportSizes(), initFromOther(), PCB_IO_EAGLE::LoadBoard(), CADSTAR_PCB_ARCHIVE_LOADER::loadDesignRules(), DRC_ENGINE::loadImplicitRules(), operator==(), PCB_IO_EASYEDAPRO_PARSER::ParseBoard(), PCB_IO_KICAD_SEXPR_PARSER::parseSetup(), PCB_CONTROL::PlaceCharacteristics(), and ROUTER_TOOL::updateSizesAfterRouterEvent().
int BOARD_DESIGN_SETTINGS::m_MinConn |
Definition at line 699 of file board_design_settings.h.
Referenced by BOARD_DESIGN_SETTINGS(), initFromOther(), DRC_ENGINE::loadImplicitRules(), and operator==().
int BOARD_DESIGN_SETTINGS::m_MinGrooveWidth |
Definition at line 698 of file board_design_settings.h.
Referenced by BOARD_DESIGN_SETTINGS(), initFromOther(), and operator==().
int BOARD_DESIGN_SETTINGS::m_MinResolvedSpokes |
Definition at line 710 of file board_design_settings.h.
Referenced by BOARD_DESIGN_SETTINGS(), initFromOther(), DRC_ENGINE::loadImplicitRules(), and operator==().
int BOARD_DESIGN_SETTINGS::m_MinSilkTextHeight |
Definition at line 711 of file board_design_settings.h.
Referenced by BOARD_DESIGN_SETTINGS(), initFromOther(), DRC_ENGINE::loadImplicitRules(), and operator==().
int BOARD_DESIGN_SETTINGS::m_MinSilkTextThickness |
Definition at line 712 of file board_design_settings.h.
Referenced by BOARD_DESIGN_SETTINGS(), initFromOther(), DRC_ENGINE::loadImplicitRules(), and operator==().
int BOARD_DESIGN_SETTINGS::m_MinThroughDrill |
Definition at line 703 of file board_design_settings.h.
Referenced by BOARD_DESIGN_SETTINGS(), ROUTER_TOOL::handleLayerSwitch(), PNS_KICAD_IFACE_BASE::ImportSizes(), initFromOther(), PCB_IO_EAGLE::LoadBoard(), CADSTAR_PCB_ARCHIVE_LOADER::loadDesignRules(), DRC_ENGINE::loadImplicitRules(), PCB_IO_KICAD_LEGACY::loadSETUP(), operator==(), PCB_IO_KICAD_SEXPR_PARSER::parseSetup(), and PCB_CONTROL::PlaceCharacteristics().
|
protectedinherited |
True if the JSON data store has been written to since the last file write.
Definition at line 340 of file json_settings.h.
Referenced by JSON_SETTINGS(), LoadFromFile(), ReleaseNestedSettings(), SaveToFile(), and Store().
|
protectedinherited |
Nested settings files that live inside this one, if any.
Definition at line 325 of file json_settings.h.
Referenced by AddNestedSettings(), LoadFromFile(), ReleaseNestedSettings(), and SaveToFile().
std::shared_ptr<NET_SETTINGS> BOARD_DESIGN_SETTINGS::m_NetSettings |
Definition at line 754 of file board_design_settings.h.
Referenced by PCB_CONTROL::AppendBoard(), BOARD::BOARD(), BOARD_DESIGN_SETTINGS(), CONNECTIVITY_DATA::Build(), APPEARANCE_CONTROLS::buildNetClassMenu(), PANEL_SETUP_RULES::checkPlausibility(), BOARD::ClearProject(), EVT_GRID_CMD_CELL_CHANGED(), FOOTPRINT_EDIT_FRAME::FOOTPRINT_EDIT_FRAME(), DSN::SPECCTRA_DB::FromBOARD(), DSN::SPECCTRA_DB::FromSESSION(), GetCurrentDiffPairGap(), GetCurrentDiffPairViaGap(), GetCurrentDiffPairWidth(), GetCurrentTrackWidth(), GetCurrentViaDrill(), GetCurrentViaSize(), BOARD_CONNECTED_ITEM::GetEffectiveNetClass(), GetSmallestClearanceValue(), initFromOther(), PCB_IO_EAGLE::LoadBoard(), PCB_IO_EASYEDA::LoadBoard(), PCB_IO_EAGLE::loadClasses(), CADSTAR_PCB_ARCHIVE_LOADER::loadDesignRules(), DRC_ENGINE::loadImplicitRules(), PCB_IO_KICAD_LEGACY::loadSETUP(), PCB_IO_EAGLE::loadSignals(), NETINFO_ITEM::NETINFO_ITEM(), APPEARANCE_CONTROLS::onNetclassColorChanged(), APPEARANCE_CONTROLS::onNetclassContextMenu(), PANEL_SETUP_RULES::onScintillaCharAdded(), operator==(), PCB_IO_KICAD_SEXPR_PARSER::parseSetup(), APPEARANCE_CONTROLS::rebuildNets(), BOARD::SetProject(), BOARD::SynchronizeNetsAndNetClasses(), BOARD_EDITOR_CONTROL::TrackWidthDec(), BOARD_EDITOR_CONTROL::TrackWidthInc(), BOARD_EDITOR_CONTROL::ViaSizeDec(), and BOARD_EDITOR_CONTROL::ViaSizeInc().
std::unique_ptr<PAD> BOARD_DESIGN_SETTINGS::m_Pad_Master |
Definition at line 784 of file board_design_settings.h.
Referenced by BOARD_DESIGN_SETTINGS(), BOARD_DESIGN_SETTINGS(), initFromOther(), PCB_IO_KICAD_LEGACY::loadSETUP(), operator==(), PCB_IO_KICAD_SEXPR_PARSER::parseSetup(), and SetDefaultMasterPad().
|
protectedinherited |
The list of parameters (owned by this object)
Definition at line 322 of file json_settings.h.
Referenced by APP_SETTINGS_BASE::addParamsForWindow(), APP_SETTINGS_BASE::APP_SETTINGS_BASE(), BITMAP2CMP_SETTINGS::BITMAP2CMP_SETTINGS(), BOARD_DESIGN_SETTINGS::BOARD_DESIGN_SETTINGS(), COLOR_SETTINGS::COLOR_SETTINGS(), COMMON_SETTINGS::COMMON_SETTINGS(), COMPONENT_CLASS_SETTINGS::COMPONENT_CLASS_SETTINGS(), COLOR_SETTINGS::CreateBuiltinColorSettings(), CVPCB_SETTINGS::CVPCB_SETTINGS(), DATABASE_LIB_SETTINGS::DATABASE_LIB_SETTINGS(), EDA_3D_VIEWER_SETTINGS::EDA_3D_VIEWER_SETTINGS(), EESCHEMA_SETTINGS::EESCHEMA_SETTINGS(), ERC_SETTINGS::ERC_SETTINGS(), FOOTPRINT_EDITOR_SETTINGS::FOOTPRINT_EDITOR_SETTINGS(), GERBVIEW_SETTINGS::GERBVIEW_SETTINGS(), COLOR_SETTINGS::GetDefaultColor(), HTTP_LIB_SETTINGS::HTTP_LIB_SETTINGS(), COLOR_SETTINGS::initFromOther(), JOBSET::JOBSET(), JSON_SETTINGS(), KICAD_SETTINGS::KICAD_SETTINGS(), Load(), NET_SETTINGS::NET_SETTINGS(), NGSPICE_SETTINGS::NGSPICE_SETTINGS(), PCB_CALCULATOR_SETTINGS::PCB_CALCULATOR_SETTINGS(), PCBNEW_SETTINGS::PCBNEW_SETTINGS(), PL_EDITOR_SETTINGS::PL_EDITOR_SETTINGS(), PROJECT_FILE::PROJECT_FILE(), PROJECT_LOCAL_SETTINGS::PROJECT_LOCAL_SETTINGS(), ResetToDefaults(), PNS::ROUTING_SETTINGS::ROUTING_SETTINGS(), SaveToFile(), SCHEMATIC_SETTINGS::SCHEMATIC_SETTINGS(), SPICE_SETTINGS::SPICE_SETTINGS(), Store(), SYMBOL_EDITOR_SETTINGS::SYMBOL_EDITOR_SETTINGS(), TIME_DOMAIN_PARAMETERS::TIME_DOMAIN_PARAMETERS(), TOOLBAR_SETTINGS::TOOLBAR_SETTINGS(), and ~JSON_SETTINGS().
|
protectedinherited |
A pointer to the parent object to load and store from.
Definition at line 62 of file nested_settings.h.
Referenced by BOARD_DESIGN_SETTINGS::BOARD_DESIGN_SETTINGS(), GetParent(), LoadFromFile(), NESTED_SETTINGS(), SaveToFile(), SetParent(), BOARD_DESIGN_SETTINGS::~BOARD_DESIGN_SETTINGS(), COMPONENT_CLASS_SETTINGS::~COMPONENT_CLASS_SETTINGS(), ERC_SETTINGS::~ERC_SETTINGS(), ~NESTED_SETTINGS(), NET_SETTINGS::~NET_SETTINGS(), SCHEMATIC_SETTINGS::~SCHEMATIC_SETTINGS(), and TIME_DOMAIN_PARAMETERS::~TIME_DOMAIN_PARAMETERS().
|
protectedinherited |
The path (in pointer format) of where to store this document in the parent.
Definition at line 65 of file nested_settings.h.
Referenced by BOARD_DESIGN_SETTINGS::BOARD_DESIGN_SETTINGS(), LoadFromFile(), NESTED_SETTINGS(), and SaveToFile().
bool BOARD_DESIGN_SETTINGS::m_PlugViasBack |
Definition at line 746 of file board_design_settings.h.
Referenced by BOARD_DESIGN_SETTINGS(), PCB_IO_KICAD_SEXPR::formatSetup(), initFromOther(), operator==(), and PCB_IO_KICAD_SEXPR_PARSER::parseSetup().
bool BOARD_DESIGN_SETTINGS::m_PlugViasFront |
Definition at line 745 of file board_design_settings.h.
Referenced by BOARD_DESIGN_SETTINGS(), PCB_IO_KICAD_SEXPR::formatSetup(), initFromOther(), operator==(), and PCB_IO_KICAD_SEXPR_PARSER::parseSetup().
|
protectedinherited |
Whether or not to set parameters to their default value if missing from JSON on Load()
Definition at line 346 of file json_settings.h.
Referenced by BOARD_DESIGN_SETTINGS::BOARD_DESIGN_SETTINGS(), JSON_SETTINGS(), and Load().
|
protectedinherited |
Version of this settings schema.
Definition at line 349 of file json_settings.h.
Referenced by JSON_SETTINGS(), LoadFromFile(), NESTED_SETTINGS::LoadFromFile(), Migrate(), registerMigration(), and NESTED_SETTINGS::SaveToFile().
int BOARD_DESIGN_SETTINGS::m_SilkClearance |
Definition at line 709 of file board_design_settings.h.
Referenced by BOARD_DESIGN_SETTINGS(), initFromOther(), DRC_ENGINE::loadImplicitRules(), and operator==().
PNS::MEANDER_SETTINGS BOARD_DESIGN_SETTINGS::m_SingleTrackMeanderSettings |
Definition at line 687 of file board_design_settings.h.
Referenced by BOARD_DESIGN_SETTINGS(), PCB_TUNING_PATTERN::CreateNew(), DIALOG_BOARD_SETUP::DIALOG_BOARD_SETUP(), PANEL_SETUP_TUNING_PATTERNS::ImportSettingsFrom(), and DRAWING_TOOL::PlaceTuningPattern().
PNS::MEANDER_SETTINGS BOARD_DESIGN_SETTINGS::m_SkewMeanderSettings |
Definition at line 689 of file board_design_settings.h.
Referenced by BOARD_DESIGN_SETTINGS(), PCB_TUNING_PATTERN::CreateNew(), DIALOG_BOARD_SETUP::DIALOG_BOARD_SETUP(), PANEL_SETUP_TUNING_PATTERNS::ImportSettingsFrom(), and DRAWING_TOOL::PlaceTuningPattern().
int BOARD_DESIGN_SETTINGS::m_SolderMaskExpansion |
Definition at line 728 of file board_design_settings.h.
Referenced by BOARD_DESIGN_SETTINGS(), BOARD_ADAPTER::createLayers(), DISPLAY_FOOTPRINTS_FRAME::DISPLAY_FOOTPRINTS_FRAME(), KIGFX::PCB_PAINTER::draw(), FOOTPRINT_EDIT_FRAME::FOOTPRINT_EDIT_FRAME(), PCB_IO_KICAD_SEXPR::formatSetup(), initFromOther(), PCB_IO_KICAD_LEGACY::loadSETUP(), operator==(), PCB_IO_KICAD_SEXPR_PARSER::parseSetup(), DIALOG_PLOT::reInitDialog(), and DIALOG_PLOT::SetPlotFormat().
int BOARD_DESIGN_SETTINGS::m_SolderMaskMinWidth |
Definition at line 729 of file board_design_settings.h.
Referenced by BOARD_DESIGN_SETTINGS(), PCB_IO_KICAD_SEXPR::formatSetup(), GenerateLayerPoly(), initFromOther(), PCB_IO_KICAD_LEGACY::loadSETUP(), operator==(), PCB_IO_KICAD_SEXPR_PARSER::parseSetup(), PlotSolderMaskLayer(), DIALOG_PLOT::reInitDialog(), and DIALOG_PLOT::SetPlotFormat().
int BOARD_DESIGN_SETTINGS::m_SolderMaskToCopperClearance |
Definition at line 731 of file board_design_settings.h.
Referenced by BOARD_DESIGN_SETTINGS(), initFromOther(), and operator==().
int BOARD_DESIGN_SETTINGS::m_SolderPasteMargin |
Definition at line 734 of file board_design_settings.h.
Referenced by BOARD_DESIGN_SETTINGS(), PCB_IO_KICAD_SEXPR::formatSetup(), initFromOther(), PCB_IO_KICAD_LEGACY::loadSETUP(), operator==(), and PCB_IO_KICAD_SEXPR_PARSER::parseSetup().
double BOARD_DESIGN_SETTINGS::m_SolderPasteMarginRatio |
Definition at line 735 of file board_design_settings.h.
Referenced by BOARD_DESIGN_SETTINGS(), PCB_IO_KICAD_SEXPR::formatSetup(), initFromOther(), PCB_IO_KICAD_LEGACY::loadSETUP(), operator==(), and PCB_IO_KICAD_SEXPR_PARSER::parseSetup().
|
private |
The description of layers stackup, for board fabrication only physical layers are in layers stackup.
It includes not only layers enabled for the board edition, but also dielectric layers.
Definition at line 832 of file board_design_settings.h.
Referenced by GetStackupDescriptor(), GetStackupDescriptor(), initFromOther(), and operator==().
bool BOARD_DESIGN_SETTINGS::m_StyleFPFields |
Definition at line 779 of file board_design_settings.h.
Referenced by BOARD_DESIGN_SETTINGS(), PANEL_SETUP_FORMATTING::ImportSettingsFrom(), initFromOther(), PCB_BASE_FRAME::loadFootprint(), operator==(), and FOOTPRINT_EDIT_FRAME::SaveFootprintToBoard().
bool BOARD_DESIGN_SETTINGS::m_StyleFPShapes |
Definition at line 781 of file board_design_settings.h.
Referenced by BOARD_DESIGN_SETTINGS(), PANEL_SETUP_FORMATTING::ImportSettingsFrom(), initFromOther(), PCB_BASE_FRAME::loadFootprint(), operator==(), and FOOTPRINT_EDIT_FRAME::SaveFootprintToBoard().
bool BOARD_DESIGN_SETTINGS::m_StyleFPText |
Definition at line 780 of file board_design_settings.h.
Referenced by BOARD_DESIGN_SETTINGS(), PANEL_SETUP_FORMATTING::ImportSettingsFrom(), initFromOther(), PCB_BASE_FRAME::loadFootprint(), operator==(), and FOOTPRINT_EDIT_FRAME::SaveFootprintToBoard().
TEARDROP_PARAMETERS_LIST BOARD_DESIGN_SETTINGS::m_TeardropParamsList |
The parameters of teardrops for the different teardrop targets (via/pad, track end).
3 set of parameters always exist: for round shapes, for rect shapes, for track ends.
Definition at line 685 of file board_design_settings.h.
Referenced by BOARD_DESIGN_SETTINGS(), GetTeadropParamsList(), DIALOG_GLOBAL_EDIT_TEARDROPS::TransferDataFromWindow(), and DIALOG_GLOBAL_EDIT_TEARDROPS::TransferDataToWindow().
bool BOARD_DESIGN_SETTINGS::m_TempOverrideTrackWidth |
Definition at line 695 of file board_design_settings.h.
Referenced by BOARD_DESIGN_SETTINGS(), ROUTER_TOOL::CustomTrackWidthDialog(), TRACK_WIDTH_MENU::eventHandler(), PNS_KICAD_IFACE_BASE::ImportSizes(), initFromOther(), operator==(), PCB_EDIT_FRAME::Tracks_and_Vias_Size_Event(), BOARD_EDITOR_CONTROL::TrackWidthDec(), and BOARD_EDITOR_CONTROL::TrackWidthInc().
bool BOARD_DESIGN_SETTINGS::m_TentViasBack |
Definition at line 740 of file board_design_settings.h.
Referenced by BOARD_DESIGN_SETTINGS(), PCB_IO_KICAD_SEXPR::formatSetup(), initFromOther(), operator==(), and PCB_IO_KICAD_SEXPR_PARSER::parseSetup().
bool BOARD_DESIGN_SETTINGS::m_TentViasFront |
Definition at line 739 of file board_design_settings.h.
Referenced by BOARD_DESIGN_SETTINGS(), PCB_IO_KICAD_SEXPR::formatSetup(), initFromOther(), operator==(), and PCB_IO_KICAD_SEXPR_PARSER::parseSetup().
bool BOARD_DESIGN_SETTINGS::m_TextItalic[LAYER_CLASS_COUNT] |
Definition at line 766 of file board_design_settings.h.
Referenced by BOARD_DESIGN_SETTINGS(), GetTextItalic(), API_HANDLER_PCB::handleGetGraphicsDefaults(), initFromOther(), PANEL_FP_EDITOR_GRAPHICS_DEFAULTS::loadFPSettings(), operator==(), PCB_IO_KICAD_SEXPR_PARSER::parseDefaultTextDims(), and PANEL_FP_EDITOR_GRAPHICS_DEFAULTS::TransferDataFromWindow().
VECTOR2I BOARD_DESIGN_SETTINGS::m_TextSize[LAYER_CLASS_COUNT] |
Definition at line 764 of file board_design_settings.h.
Referenced by BOARD_DESIGN_SETTINGS(), GetTextSize(), API_HANDLER_PCB::handleGetGraphicsDefaults(), initFromOther(), PANEL_FP_EDITOR_GRAPHICS_DEFAULTS::loadFPSettings(), PCB_IO_KICAD_LEGACY::loadSETUP(), operator==(), PCB_IO_KICAD_SEXPR_PARSER::parseDefaultTextDims(), PCB_IO_KICAD_SEXPR_PARSER::parseSetup(), and PANEL_FP_EDITOR_GRAPHICS_DEFAULTS::TransferDataFromWindow().
int BOARD_DESIGN_SETTINGS::m_TextThickness[LAYER_CLASS_COUNT] |
Definition at line 765 of file board_design_settings.h.
Referenced by BOARD_DESIGN_SETTINGS(), GetTextThickness(), API_HANDLER_PCB::handleGetGraphicsDefaults(), initFromOther(), PANEL_FP_EDITOR_GRAPHICS_DEFAULTS::loadFPSettings(), PCB_IO_KICAD_LEGACY::loadSETUP(), operator==(), PCB_IO_KICAD_SEXPR_PARSER::parseDefaultTextDims(), PCB_IO_KICAD_SEXPR_PARSER::parseSetup(), and PANEL_FP_EDITOR_GRAPHICS_DEFAULTS::TransferDataFromWindow().
bool BOARD_DESIGN_SETTINGS::m_TextUpright[LAYER_CLASS_COUNT] |
Definition at line 767 of file board_design_settings.h.
Referenced by BOARD_DESIGN_SETTINGS(), GetTextUpright(), API_HANDLER_PCB::handleGetGraphicsDefaults(), initFromOther(), operator==(), and PCB_IO_KICAD_SEXPR_PARSER::parseDefaultTextDims().
int BOARD_DESIGN_SETTINGS::m_TrackMinWidth |
Definition at line 700 of file board_design_settings.h.
Referenced by BOARD_DESIGN_SETTINGS(), PNS_KICAD_IFACE_BASE::ImportSizes(), initFromOther(), PCB_IO_EAGLE::LoadBoard(), CADSTAR_PCB_ARCHIVE_LOADER::loadDesignRules(), DRC_ENGINE::loadImplicitRules(), PCB_IO_KICAD_LEGACY::loadSETUP(), operator==(), PCB_IO_EASYEDAPRO_PARSER::ParseBoard(), PCB_IO_KICAD_SEXPR_PARSER::parseSetup(), PCB_CONTROL::PlaceCharacteristics(), and ROUTER_TOOL::updateSizesAfterRouterEvent().
|
private |
Definition at line 801 of file board_design_settings.h.
Referenced by BOARD_DESIGN_SETTINGS(), GetCurrentTrackWidth(), GetTrackWidthIndex(), initFromOther(), operator==(), SetTrackWidthIndex(), and UseNetClassTrack().
std::vector<int> BOARD_DESIGN_SETTINGS::m_TrackWidthList |
Definition at line 676 of file board_design_settings.h.
Referenced by BOARD_DESIGN_SETTINGS(), GetCurrentTrackWidth(), initFromOther(), PCB_IO_KICAD_LEGACY::loadSETUP(), operator==(), PCB_IO_KICAD_SEXPR_PARSER::parseSetup(), SetTrackWidthIndex(), BOARD_EDITOR_CONTROL::TrackWidthDec(), BOARD_EDITOR_CONTROL::TrackWidthInc(), TRACK_WIDTH_MENU::update(), and PCB_EDIT_FRAME::UpdateTrackWidthSelectBox().
bool BOARD_DESIGN_SETTINGS::m_UseConnectedTrackWidth |
Definition at line 693 of file board_design_settings.h.
Referenced by BOARD_EDITOR_CONTROL::AutoTrackWidth(), BOARD_DESIGN_SETTINGS(), TRACK_WIDTH_MENU::eventHandler(), VIA_SIZE_MENU::eventHandler(), PNS_KICAD_IFACE_BASE::ImportSizes(), initFromOther(), PNS_LOG_FILE::Load(), PCB_EDIT_FRAME::LoadProjectSettings(), operator==(), PCB_EDIT_FRAME::saveProjectSettings(), PCB_EDIT_FRAME::setupUIConditions(), PCB_EDIT_FRAME::Tracks_and_Vias_Size_Event(), BOARD_EDITOR_CONTROL::TrackWidthDec(), BOARD_EDITOR_CONTROL::TrackWidthInc(), TRACK_WIDTH_MENU::update(), and VIA_SIZE_MENU::update().
|
private |
Definition at line 811 of file board_design_settings.h.
Referenced by BOARD_DESIGN_SETTINGS(), GetCurrentDiffPairGap(), GetCurrentDiffPairViaGap(), GetCurrentDiffPairWidth(), initFromOther(), operator==(), SetDiffPairIndex(), UseCustomDiffPairDimensions(), UseCustomDiffPairDimensions(), and UseNetClassDiffPair().
|
private |
Definition at line 806 of file board_design_settings.h.
Referenced by BOARD_DESIGN_SETTINGS(), GetCurrentTrackWidth(), GetCurrentViaDrill(), GetCurrentViaSize(), initFromOther(), operator==(), SetTrackWidthIndex(), SetViaSizeIndex(), UseCustomTrackViaSize(), UseCustomTrackViaSize(), UseNetClassTrack(), and UseNetClassVia().
bool BOARD_DESIGN_SETTINGS::m_UseHeightForLengthCalcs |
Enable inclusion of stackup height in track length measurements and length tuning.
Definition at line 793 of file board_design_settings.h.
Referenced by BOARD_DESIGN_SETTINGS(), initFromOther(), and operator==().
|
private |
Number of user defined layers for this design.
Definition at line 816 of file board_design_settings.h.
Referenced by GetUserDefinedLayerCount(), initFromOther(), operator==(), SetEnabledLayers(), and SetUserDefinedLayerCount().
std::map<std::string, wxString> BOARD_DESIGN_SETTINGS::m_UserLayerNames |
Definition at line 760 of file board_design_settings.h.
Referenced by initFromOther(), PANEL_DISPLAY_OPTIONS::loadFPSettings(), FOOTPRINT_EDIT_FRAME::LoadSettings(), operator==(), and APPEARANCE_CONTROLS::rebuildLayers().
std::vector<VIA_DIMENSION> BOARD_DESIGN_SETTINGS::m_ViasDimensionsList |
Definition at line 677 of file board_design_settings.h.
Referenced by BOARD_DESIGN_SETTINGS(), GetCurrentViaDrill(), GetCurrentViaSize(), initFromOther(), PCB_IO_KICAD_LEGACY::loadSETUP(), operator==(), PCB_IO_KICAD_SEXPR_PARSER::parseSetup(), SetViaSizeIndex(), TRACK_WIDTH_MENU::update(), VIA_SIZE_MENU::update(), PCB_EDIT_FRAME::UpdateViaSizeSelectBox(), BOARD_EDITOR_CONTROL::ViaSizeDec(), and BOARD_EDITOR_CONTROL::ViaSizeInc().
|
private |
Definition at line 802 of file board_design_settings.h.
Referenced by BOARD_DESIGN_SETTINGS(), GetCurrentViaDrill(), GetCurrentViaSize(), GetViaSizeIndex(), initFromOther(), operator==(), SetViaSizeIndex(), and UseNetClassVia().
int BOARD_DESIGN_SETTINGS::m_ViasMinAnnularWidth |
Definition at line 701 of file board_design_settings.h.
Referenced by BOARD_DESIGN_SETTINGS(), initFromOther(), PCB_IO_EAGLE::LoadBoard(), CADSTAR_PCB_ARCHIVE_LOADER::loadDesignRules(), DRC_ENGINE::loadImplicitRules(), operator==(), and PCB_IO_KICAD_SEXPR_PARSER::parseSetup().
int BOARD_DESIGN_SETTINGS::m_ViasMinSize |
Definition at line 702 of file board_design_settings.h.
Referenced by BOARD_DESIGN_SETTINGS(), ROUTER_TOOL::handleLayerSwitch(), PNS_KICAD_IFACE_BASE::ImportSizes(), initFromOther(), PCB_IO_EAGLE::LoadBoard(), CADSTAR_PCB_ARCHIVE_LOADER::loadDesignRules(), DRC_ENGINE::loadImplicitRules(), PCB_IO_KICAD_LEGACY::loadSETUP(), operator==(), PCB_IO_KICAD_SEXPR_PARSER::parseSetup(), and PCB_CONTROL::PlaceCharacteristics().
|
protectedinherited |
Whether or not the backing store file should be written.
Definition at line 337 of file json_settings.h.
Referenced by COLOR_SETTINGS::CreateBuiltinColorSettings(), COLOR_SETTINGS::initFromOther(), IsReadOnly(), JSON_SETTINGS(), LoadFromFile(), SaveToFile(), and SetReadOnly().
bool BOARD_DESIGN_SETTINGS::m_ZoneKeepExternalFillets |
Definition at line 722 of file board_design_settings.h.
Referenced by BOARD_DESIGN_SETTINGS(), initFromOther(), LoadFromFile(), and operator==().