|
KiCad PCB EDA Suite
|
Container for design settings for a BOARD object. More...
#include <board_design_settings.h>
Classes | |
| struct | VALIDATION_ERROR |
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 |
| DRILL_SYMBOL_PROFILE & | GetDrillSymbolProfile () |
| const DRILL_SYMBOL_PROFILE & | GetDrillSymbolProfile () const |
| TEARDROP_PARAMETERS_LIST * | GetTeadropParamsList () |
| SEVERITY | GetSeverity (int aDRCErrorCode) const |
| Return the severity of a given DRC error code. | |
| bool | Ignore (int aDRCErrorCode) const |
| Return true if the DRC error code's severity is RPT_SEVERITY_ERROR. | |
| std::vector< VALIDATION_ERROR > | ValidateDesignRules (std::optional< EDA_UNITS > aUnits=std::nullopt) const |
| Validate design settings values and return per-field errors. | |
| std::vector< VALIDATION_ERROR > | GetDesignRuleWarnings (std::optional< EDA_UNITS > aUnits=std::nullopt) const |
| Find design rule values that are legal but have no effect because other rules imply a stricter limit. | |
| 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 | GetNextTrackWidthIndex (int aIndex, bool aForward) const |
| Compute the next track width list index when cycling predefined sizes, skipping the index-0 netclass placeholder on roll-over so the sequence stays monotonic. | |
| int | GetCurrentTrackWidth () const |
| void | SetCustomTrackWidth (int aWidth) |
| Sets custom width for track (i.e. | |
| int | GetCustomTrackWidth () const |
| int | GetViaSizeIndex () const |
| int | GetViaStackIndex () const |
| void | SetViaStackIndex (int aIndex) |
| Set the current via stack preset index to aIndex. | |
| void | SetViaSizeIndex (int aIndex) |
| Set the current via size list index to aIndex. | |
| int | GetNextViaSizeIndex (int aIndex, bool aForward) const |
| Compute the next via size list index when cycling predefined sizes, skipping the index-0 netclass placeholder on roll-over so the sequence stays monotonic. | |
| 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) |
| int | GetNextDiffPairIndex (int aIndex, bool aForward) const |
| Compute the next diff pair dimensions list index when cycling predefined sizes, skipping the index-0 netclass placeholder on roll-over so the sequence stays monotonic. | |
| 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 () |
| 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 |
| 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 |
| virtual const PROJECT * | GetOwningProject () const |
| Project-located settings override this to report the project they belong to so their save path is resolved against that project rather than the active one. | |
| void | SetLegacyFilename (const wxString &aFilename) |
| bool | IsReadOnly () const |
| void | SetReadOnly (bool aReadOnly) |
| bool | ResetsParamsIfMissing () const |
| 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. | |
| bool | IsFileSynced () const |
| bool | LastSaveFailed () const |
| SaveToFile() also returns false when it had nothing to write, so its result cannot tell a skipped save from a lost one. | |
| bool | IsFutureFormat () const |
| 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 | |
| const nlohmann::json & | originalJson () const |
| 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. | |
| bool | flushToStore () |
| Flushes nested settings and parameters into the JSON store. | |
| std::string | formatFileContents () |
| Overlays the current store on the original file contents. | |
| 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_fileSynced |
| True once the store has been synchronized with an on-disk file (loaded or saved) | |
| bool | m_lastSaveFailed |
| True if the most recent SaveToFile() had changes to write and could not write them. | |
| 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 () |
| bool | migrateSchema2to3 () |
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 |
| int | m_viaStackIndex |
| 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. | |
| DRILL_SYMBOL_PROFILE | m_drillSymbolProfile |
| Grouping rules and symbol assignments shared by every drill chart and map on the board. | |
| 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 200 of file board_design_settings.h.
| BOARD_DESIGN_SETTINGS::BOARD_DESIGN_SETTINGS | ( | JSON_SETTINGS * | aParent, |
| const std::string & | aPath ) |
Definition at line 47 of file board_design_settings.cpp.
References ALWAYS, ARC_HIGH_DEF, JSON_SETTINGS::At(), AUTOMATIC, bdsSchemaVersion, COPPER_THIEVING, BOM_FMT_PRESET::CSV(), 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, DEGREES_T, DIAGONAL_EDGE, DRCE_CONNECTION_WIDTH, DRCE_COPPER_OUTSIDE_BOARD, 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_SCALED_WITH_PADS, DRCE_FOOTPRINT_TYPE_MISMATCH, DRCE_ISOLATED_COPPER, DRCE_LAST, DRCE_LIB_FOOTPRINT_ISSUES, DRCE_LIB_FOOTPRINT_MISMATCH, DRCE_MICROVIA_CROSSES_CORE, DRCE_MICROVIA_STACK_NOT_FILLED, DRCE_MIRRORED_TEXT_ON_FRONT_LAYER, DRCE_MISSING_COURTYARD, DRCE_MISSING_FOOTPRINT, DRCE_MISSING_TUNING_PROFILE, DRCE_NET_CONFLICT, DRCE_NPTH_IN_COURTYARD, DRCE_PADSTACK, DRCE_PTH_IN_COURTYARD, DRCE_SCHEMATIC_FIELDS_PARITY, DRCE_SCHEMATIC_PARITY, DRCE_SILK_CLEARANCE, DRCE_SILK_EDGE_CLEARANCE, DRCE_SILK_MASK_CLEARANCE, DRCE_TEXT_HEIGHT, DRCE_TEXT_THICKNESS, DRCE_TRACK_NOT_CENTERED_ON_VIA, DRCE_TUNING_PROFILE_IMPLICIT_RULES, DRCE_UNMIRRORED_TEXT_ON_BACK_LAYER, F_Cu, F_Fab, F_SilkS, JSON_SETTINGS::Get(), DRC_ITEM::GetItemsWithSeverities(), DRC_EXCLUSION::GetSortKey(), GetTeardropTargetCanonicalName(), GetTeardropTargetTypeFromCanonicalName(), In1_Cu, INCH, INLINE, INVISIBLE_BORDER, IsCopperLayer(), 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, FIELDS_TABLE_BOM_SETTINGS::m_BomExportFileName, FIELDS_TABLE_BOM_SETTINGS::m_BomFmtPresets, FIELDS_TABLE_BOM_SETTINGS::m_BomFmtSettings, FIELDS_TABLE_BOM_SETTINGS::m_BomPresets, FIELDS_TABLE_BOM_SETTINGS::m_BomSettings, VIA_STACK_PRESET::m_Capped, 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_DrcExclusions, m_DRCSeverities, TEARDROP_PARAMETERS::m_Enabled, m_enabledLayers, VIA_STACK_PRESET::m_EndLayer, VIA_STACK_PRESET::m_Filled, 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, VIA_STACK_PRESET::m_Name, m_NetSettings, JSON_SETTINGS::m_params, VIA_STACK_PRESET::m_Pitch, 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, VIA_STACK_PRESET::m_Staggered, VIA_STACK_PRESET::m_StartLayer, m_StyleFPBarcodes, m_StyleFPDimensions, 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, VIA_STACK_PRESET::m_UseNetclass, VIA_STACK_PRESET::m_ViaDrill, m_ViasDimensionsList, VIA_STACK_PRESET::m_ViaSize, m_viaSizeIndex, m_ViasMinAnnularWidth, m_ViasMinSize, m_viaStackIndex, m_ViaStackPresets, TEARDROP_PARAMETERS::m_WidthtoSizeFilterRatio, m_ZoneKeepExternalFillets, MAX_MICROVIA_STACK_PITCH_MM, PNS::MEANDER_STYLE_CHAMFER, PNS::MEANDER_STYLE_ROUND, migrateSchema0to1(), migrateSchema2to3(), LSET::Name(), name, LSET::NameToLayer(), NESTED_SETTINGS::NESTED_SETTINGS(), NO_HATCH, ZONE_SETTINGS::NO_SMOOTHING, NO_SUFFIX, OUTSIDE, PAREN_SUFFIX, PCB_LAYER_ID_COUNT, pcbIUScale, POLYGONS, JSON_SETTINGS::registerMigration(), RPT_SEVERITY_ERROR, RPT_SEVERITY_IGNORE, RPT_SEVERITY_WARNING, BASE_SET::set(), SetCopperLayerCount(), SetUserDefinedLayerCount(), SeverityFromString(), SeverityToString(), TEXT_MAX_SIZE_MM, TEXT_MIN_SIZE_MM, THERMAL, THROUGH, ToLAYER_ID(), V_VVVVV, via, X, X_XXXX, ZONE_BORDER_HATCH_DIST_MM, ZONE_BORDER_HATCH_MAXDIST_MM, ZONE_BORDER_HATCH_MINDIST_MM, ZONE_CLEARANCE_MM, ZONE_THERMAL_RELIEF_COPPER_WIDTH_MM, ZONE_THERMAL_RELIEF_GAP_MM, ZONE_THICKNESS_MIN_VALUE_MM, and ZONE_THICKNESS_MM.
Referenced by BOARD_DESIGN_SETTINGS(), initFromOther(), operator!=(), operator=(), and operator==().
|
virtual |
Definition at line 1185 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 1196 of file board_design_settings.cpp.
References bdsSchemaVersion, BOARD_DESIGN_SETTINGS(), initFromOther(), 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 |
Definition at line 945 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 127 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(), EESCHEMA_SETTINGS::migrateFieldNameTemplates(), GERBVIEW_SETTINGS::MigrateFromLegacy(), APP_SETTINGS_BASE::migrateLibTreeWidth(), BOARD_DESIGN_SETTINGS::migrateSchema0to1(), COLOR_SETTINGS::migrateSchema0to1(), FOOTPRINT_EDITOR_SETTINGS::migrateSchema0to1(), and PCBNEW_SETTINGS::PCBNEW_SETTINGS().
|
inherited |
Definition at line 133 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(), EESCHEMA_SETTINGS::migrateFieldNameTemplates(), BOARD_DESIGN_SETTINGS::migrateSchema0to1(), COLOR_SETTINGS::migrateSchema0to1(), FOOTPRINT_EDITOR_SETTINGS::migrateSchema0to1(), COMMON_SETTINGS::migrateSchema5to6(), COMMON_SETTINGS::migrateSchema6to7(), 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. |
| aDefault | is the default result type. |
Definition at line 998 of file json_settings.cpp.
Referenced by DATABASE_LIB_SETTINGS::fieldFromJson(), and DATABASE_LIB_SETTINGS::tableFromJson().
|
protectedinherited |
Flushes nested settings and parameters into the JSON store.
Definition at line 548 of file json_settings.cpp.
References m_nested_settings, NESTED_SETTINGS, and Store().
Referenced by SaveToFile(), and PROJECT_FILE::SerializeToString().
|
inherited |
Definition at line 593 of file json_settings.cpp.
References dummy, m_internals, and Store().
|
protectedinherited |
Overlays the current store on the original file contents.
May throw a JSON exception.
Definition at line 571 of file json_settings.cpp.
References dummy, m_internals, m_params, and JSON_SETTINGS_INTERNALS::PointerFromString().
Referenced by SaveToFile(), and PROJECT_FILE::SerializeToString().
|
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 860 of file json_settings.cpp.
Referenced by APP_SETTINGS_BASE::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 918 of file json_settings.cpp.
References KIGFX::COLOR4D::a, KIGFX::COLOR4D::b, KIGFX::COLOR4D::g, KIGFX::COLOR4D::r, and KIGFX::COLOR4D::SetFromWxString().
|
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 895 of file json_settings.cpp.
Referenced by APP_SETTINGS_BASE::MigrateFromLegacy(), COMMON_SETTINGS::MigrateFromLegacy(), EESCHEMA_SETTINGS::MigrateFromLegacy(), FOOTPRINT_EDITOR_SETTINGS::MigrateFromLegacy(), GERBVIEW_SETTINGS::MigrateFromLegacy(), PCB_CALCULATOR_SETTINGS::MigrateFromLegacy(), PCBNEW_SETTINGS::MigrateFromLegacy(), PROJECT_FILE::MigrateFromLegacy(), and APP_SETTINGS_BASE::migrateWindowConfig().
|
inherited |
Definition at line 981 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 657 of file json_settings.cpp.
References GetJson().
Referenced by BOARD_DESIGN_SETTINGS::BOARD_DESIGN_SETTINGS(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), 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(), EESCHEMA_SETTINGS::migrateFieldNameTemplates(), COMMON_SETTINGS::MigrateFromLegacy(), EESCHEMA_SETTINGS::MigrateFromLegacy(), SYMBOL_EDITOR_SETTINGS::MigrateFromLegacy(), APP_SETTINGS_BASE::migrateLibTreeWidth(), BOARD_DESIGN_SETTINGS::migrateSchema0to1(), PCBNEW_SETTINGS::PCBNEW_SETTINGS(), PROJECT_FILE::SaveAs(), and SCHEMATIC_SETTINGS::SCHEMATIC_SETTINGS().
|
inherited |
References KICOMMON_API.
|
inline |
Definition at line 625 of file board_design_settings.h.
References m_auxOrigin.
Referenced by AddGerberX2Header(), IPC356D_WRITER::appendPadRecords(), appendViaRecords(), PCB_IO_EAGLE::centerBoard(), checkImportedOriginOffset(), PCB_IO_ODBPP::ConfigureExport(), PCB_IO_KICAD_SEXPR::formatSetup(), PCB_WRITER_V10::formatSetup(), PCB_WRITER_V9::formatSetup(), API_HANDLER_PCB::handleGetBoardOrigin(), initializePlotter(), PCBNEW_JOBS_HANDLER::JobExportDrill(), PCBNEW_JOBS_HANDLER::JobExportGencad(), and ALTIUM_PCB::Parse().
| int BOARD_DESIGN_SETTINGS::GetBiggestClearanceValue | ( | ) | const |
Definition at line 1811 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, PHYSICAL_HOLE_CLEARANCE_CONSTRAINT, and DRC_CONSTRAINT::Value().
Referenced by BOOST_AUTO_TEST_CASE(), and ZONE_FILLER::buildThermalSpokes().
|
inline |
The full thickness of the board including copper and masks.
Definition at line 586 of file board_design_settings.h.
References m_boardThickness.
Referenced by KICAD_DIFF::PCB_MERGE_APPLIER::Apply(), BOOST_AUTO_TEST_CASE(), BOARD_STACKUP::BuildDefaultStackupList(), KICAD_DIFF::PCB_DIFFER::Diff(), PCB_IO_KICAD_SEXPR::formatGeneral(), PCB_WRITER_V10::formatGeneral(), PCB_WRITER_V9::formatGeneral(), PANEL_PREVIEW_3D_MODEL::PANEL_PREVIEW_3D_MODEL(), and PANEL_PREVIEW_3D_MODEL::View3DSettings().
|
inline |
Definition at line 561 of file board_design_settings.h.
References m_copperLayerCount.
Referenced by Build_Board_Characteristics_Table(), BOARD_STACKUP::BuildDefaultStackupList(), BOARD::GetCopperLayerCount(), and ROUTER_TOOL::handleLayerSwitch().
| int BOARD_DESIGN_SETTINGS::GetCurrentDiffPairGap | ( | ) | const |
Definition at line 1982 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 2002 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 1962 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 277 of file board_design_settings.h.
References m_currentNetClassName.
| int BOARD_DESIGN_SETTINGS::GetCurrentTrackWidth | ( | ) | const |
Definition at line 1936 of file board_design_settings.cpp.
References m_customTrackWidth, m_NetSettings, m_trackWidthIndex, m_TrackWidthList, and m_useCustomTrackVia.
Referenced by BOOST_AUTO_TEST_CASE(), DIALOG_VIA_STITCH_PROPERTIES::buildGuardPreview(), PCB_VIA_STACK::BuildMembers(), 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 1906 of file board_design_settings.cpp.
References m_customViaSize, m_NetSettings, m_useCustomTrackVia, m_ViasDimensionsList, and m_viaSizeIndex.
Referenced by PCB_VIA_STACK::BuildMembers(), PCB_VIA_STITCH::defaultViaDrill(), DRAWING_TOOL::DrawVia(), PCB_VIA_STACK::GetNetclassViaSize(), ROUTER_TOOL::handleLayerSwitch(), PNS_KICAD_IFACE_BASE::ImportSizes(), ROUTER_TOOL::onViaStackCommand(), and PCB_EDIT_FRAME::SetTrackSegmentWidth().
| int BOARD_DESIGN_SETTINGS::GetCurrentViaSize | ( | ) | const |
Definition at line 1895 of file board_design_settings.cpp.
References m_customViaSize, m_NetSettings, m_useCustomTrackVia, m_ViasDimensionsList, and m_viaSizeIndex.
Referenced by PCB_VIA_STACK::BuildMembers(), PCB_VIA_STITCH::defaultViaSize(), DRAWING_TOOL::DrawVia(), PCB_VIA_STACK::GetNetclassViaSize(), ROUTER_TOOL::handleLayerSwitch(), PNS_KICAD_IFACE_BASE::ImportSizes(), ROUTER_TOOL::onViaStackCommand(), and PCB_EDIT_FRAME::SetTrackSegmentWidth().
|
inline |
Definition at line 481 of file board_design_settings.h.
References m_customDiffPair.
Referenced by BOARD::SynchronizeNetsAndNetClasses().
|
inline |
Definition at line 494 of file board_design_settings.h.
References m_customDiffPair.
|
inline |
Definition at line 469 of file board_design_settings.h.
References m_customDiffPair.
|
inline |
Definition at line 347 of file board_design_settings.h.
References m_customTrackWidth.
|
inline |
Definition at line 422 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 264 of file board_design_settings.h.
References m_defaultZoneSettings.
Referenced by CONVERT_TOOL::CreatePolys(), PANEL_SETUP_ZONES::ImportSettingsFrom(), PCB_IO_KICAD_LEGACY::loadSETUP(), PCB_IO_EASYEDAPRO_PARSER::ParseBoard(), PCB_IO_EASYEDAPRO_V3_PARSER::ParseBoard(), PCB_IO_KICAD_SEXPR_PARSER::parseSetup(), and ZONE::ZONE().
| std::vector< BOARD_DESIGN_SETTINGS::VALIDATION_ERROR > BOARD_DESIGN_SETTINGS::GetDesignRuleWarnings | ( | std::optional< EDA_UNITS > | aUnits = std::nullopt | ) | const |
Find design rule values that are legal but have no effect because other rules imply a stricter limit.
These are advisory and must not block saving; existing projects can contain them.
Definition at line 1781 of file board_design_settings.cpp.
References _, m_MinThroughDrill, m_ViasMinAnnularWidth, m_ViasMinSize, MM, pcbIUScale, and EDA_UNIT_UTILS::UI::StringFromValue().
Referenced by PANEL_SETUP_CONSTRAINTS::updateWarnings().
|
inline |
Definition at line 442 of file board_design_settings.h.
References m_diffPairIndex.
Referenced by BOOST_AUTO_TEST_CASE(), 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 2086 of file board_design_settings.cpp.
References ADVANCED_CFG::GetCfg(), and pcbIUScale.
Referenced by BOOST_FIXTURE_TEST_CASE(), DRAWING_TOOL::DrawVia(), PCB_TUNING_PATTERN::EditFinish(), getDeflatedZoneOutline(), DRC_ENGINE::IsNetTieExclusion(), TEARDROP_MANAGER::pairClearance(), DRC_TEST_PROVIDER_CONNECTION_WIDTH::Run(), DRC_TEST_PROVIDER_DISALLOW::Run(), and PCB_TUNING_PATTERN::Update().
|
inline |
Definition at line 228 of file board_design_settings.h.
References m_drillSymbolProfile.
Referenced by addTransformFeatures(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), DRILL_PROFILE_PENDING::Commit(), DIALOG_DRILL_GROUPS::commitDetail(), countDrillSymbolConfiguration(), KIGFX::PCB_PAINTER::draw(), KIGFX::PCB_PAINTER::drawChartSymbols(), KIGFX::PCB_PAINTER::drawDrillMarks(), BOARD::DrillSymbolCache(), dropDrillSymbolConfiguration(), PCB_IO_KICAD_SEXPR::formatDrillSymbolProfile(), PCB_DRILL_CHART::generate(), PCB_DRILL_MAP::GetSymbolExtent(), PANEL_SETUP_DRILL_CHART::loadSettings(), DIALOG_DRILL_GROUPS::onFreezeChanged(), DIALOG_DRILL_GROUPS::Reload(), ResolveDrillSymbols(), ResolveDrillSymbolsByItem(), and PANEL_SETUP_DRILL_CHART::TransferDataFromWindow().
|
inline |
Definition at line 229 of file board_design_settings.h.
References m_drillSymbolProfile.
|
inline |
Return a bit-mask of all the layers that are enabled.
Definition at line 535 of file board_design_settings.h.
References m_enabledLayers.
Referenced by BOARD_STACKUP::BuildDefaultStackupList(), LENGTH_DELAY_CALCULATION_ITEM::CalculateViaLayers(), BOARD::GetEnabledLayers(), and PCB_IO_GEDA::loadBoard().
|
inlineprotectedvirtualinherited |
Reimplemented in DATABASE_LIB_SETTINGS, HTTP_LIB_SETTINGS, JOBSET, PROJECT_FILE, and PROJECT_LOCAL_SETTINGS.
Definition at line 339 of file json_settings.h.
Referenced by GetFullFilename(), LoadFromFile(), and SaveToFile().
|
virtualinherited |
Reimplemented in GERBVIEW_SETTINGS.
Definition at line 407 of file json_settings.cpp.
References Contains(), and GetJson().
Referenced by GERBVIEW_SETTINGS::GetFileHistories().
|
inlineinherited |
Definition at line 88 of file json_settings.h.
References m_filename.
Referenced by AddNestedSettings(), SCH_IO_DATABASE::CreateConnection(), SETTINGS_MANAGER::loadAllColorSettings(), 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 118 of file json_settings.cpp.
References getFileExt(), and m_filename.
Referenced by JSON_SETTINGS(), LoadFromFile(), NESTED_SETTINGS::LoadFromFile(), SaveToFile(), and PROJECT_FILE::SerializeToString().
|
inline |
Definition at line 628 of file board_design_settings.h.
References m_gridOrigin.
Referenced by PCB_IO_EAGLE::centerBoard(), checkImportedOriginOffset(), PCB_IO_ODBPP::ConfigureExport(), PCB_IO_KICAD_SEXPR::formatSetup(), PCB_WRITER_V10::formatSetup(), PCB_WRITER_V9::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 2092 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 637 of file json_settings.cpp.
References m_internals.
Referenced by BOOST_AUTO_TEST_CASE(), Get(), GERBVIEW_SETTINGS::GetFileHistories(), GetFileHistories(), EESCHEMA_JOBS_HANDLER::JobDowngrade(), 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(), PROJECT_FILE::migrateSchema3To4(), SETTINGS_MANAGER::SaveColorSettings(), and PROJECT_FILE::Store().
| int BOARD_DESIGN_SETTINGS::GetLayerClass | ( | PCB_LAYER_ID | aLayer | ) | const |
Definition at line 2069 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 344 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 2098 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(), FABMASTER::loadFootprints(), 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(), PCB_DIMENSION_BASE::StyleFromSettings(), and PCB_SHAPE::StyleFromSettings().
|
inlineinherited |
Definition at line 95 of file json_settings.h.
References m_location.
Referenced by SETTINGS_MANAGER::GetPathForSettingsFile(), and COLOR_SETTINGS::migrateSchema0to1().
| int BOARD_DESIGN_SETTINGS::GetNextDiffPairIndex | ( | int | aIndex, |
| bool | aForward ) const |
Compute the next diff pair dimensions list index when cycling predefined sizes, skipping the index-0 netclass placeholder on roll-over so the sequence stays monotonic.
| aIndex | is the index of the next differential pair. |
| aForward | steps larger when true, smaller when false. |
Definition at line 1956 of file board_design_settings.cpp.
References m_DiffPairDimensionsList, and nextPredefinedIndex().
Referenced by BOOST_AUTO_TEST_CASE(), BOARD_EDITOR_CONTROL::TrackWidthDec(), and BOARD_EDITOR_CONTROL::TrackWidthInc().
| int BOARD_DESIGN_SETTINGS::GetNextTrackWidthIndex | ( | int | aIndex, |
| bool | aForward ) const |
Compute the next track width list index when cycling predefined sizes, skipping the index-0 netclass placeholder on roll-over so the sequence stays monotonic.
| aIndex | is the start index track width buffer. |
| aForward | steps larger when true, smaller when false. |
Definition at line 1930 of file board_design_settings.cpp.
References m_TrackWidthList, and nextPredefinedIndex().
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOARD_EDITOR_CONTROL::TrackWidthDec(), and BOARD_EDITOR_CONTROL::TrackWidthInc().
| int BOARD_DESIGN_SETTINGS::GetNextViaSizeIndex | ( | int | aIndex, |
| bool | aForward ) const |
Compute the next via size list index when cycling predefined sizes, skipping the index-0 netclass placeholder on roll-over so the sequence stays monotonic.
| aIndex | is the via size list index. |
| aForward | steps larger when true, smaller when false. |
Definition at line 1889 of file board_design_settings.cpp.
References m_ViasDimensionsList, and nextPredefinedIndex().
Referenced by BOOST_AUTO_TEST_CASE(), BOARD_EDITOR_CONTROL::ViaSizeDec(), and BOARD_EDITOR_CONTROL::ViaSizeInc().
|
inlinevirtualinherited |
Project-located settings override this to report the project they belong to so their save path is resolved against that project rather than the active one.
Reimplemented in PROJECT_FILE, and PROJECT_LOCAL_SETTINGS.
Definition at line 101 of file json_settings.h.
References PROJECT.
Referenced by SETTINGS_MANAGER::GetPathForSettingsFile().
|
inlineinherited |
Definition at line 55 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 | ) | const |
Return the severity of a given DRC error code.
If the error code is not recognized, RPT_SEVERITY_ERROR is returned.
Definition at line 1597 of file board_design_settings.cpp.
References m_DRCSeverities, and RPT_SEVERITY_ERROR.
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(), 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(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), PCB_MARKER::GetSeverity(), Ignore(), CREEPAGE_PARITY_FIXTURE::runCreepage(), DRC_CREEPAGE_ISSUE24875_FIXTURE::runCreepage(), DRC_CREEPAGE_ISSUE24885_FIXTURE::runCreepage(), DRC_CREEPAGE_ISSUE25439_FIXTURE::runCreepage(), DIALOG_DRC::updateDisplayedCounts(), DRC_REPORT::WriteJsonReport(), and DRC_REPORT::WriteTextReport().
| int BOARD_DESIGN_SETTINGS::GetSmallestClearanceValue | ( | ) | const |
Definition at line 1845 of file board_design_settings.cpp.
References clearance, m_NetSettings, and name.
Referenced by DIALOG_PLOT::TransferDataToWindow().
|
inline |
Definition at line 225 of file board_design_settings.h.
References m_stackup.
Referenced by addTransformFeatures(), PCB_CONTROL::AppendBoard(), KICAD_DIFF::PCB_MERGE_APPLIER::Apply(), DIPTRACE::PCB_PARSER::ApplyBoardSettings(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_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_CHOOSER_FRAME::build3DCanvas(), Build_Board_Characteristics_Table(), Build_Board_Stackup_Table(), BOARD_STACKUP::BuildDefaultStackupList(), PADS_PCB_CONVERTER::BuildStackup(), countDielectricModels(), KICAD_DIFF::PCB_DIFFER::Diff(), dropDielectricModels(), formatBoardStackupV10(), formatBoardStackupV9(), PCB_IO_KICAD_SEXPR::formatSetup(), PCB_VIA::GetPostMachiningKnockout(), BOARD::GetStackupOrDefault(), DIALOG_MIGRATE_3D_MODELS::initPreviewBoard(), BOARD_ADAPTER::InitSettings(), PCBNEW_JOBS_HANDLER::JobExportStackup(), CADSTAR_PCB_ARCHIVE_LOADER::loadBoardStackup(), PANEL_PREVIEW_3D_MODEL::PANEL_PREVIEW_3D_MODEL(), ALTIUM_PCB::ParseBoard6Data(), PCB_IO_KICAD_SEXPR_PARSER::parseSetup(), setUniformStackup(), BACKDRILL_TEST_FIXTURE::SetupSixLayerBoard(), and BOARD_STACKUP::SynchronizeWithBoard().
|
inline |
Definition at line 226 of file board_design_settings.h.
References m_stackup.
|
inline |
Definition at line 231 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 2116 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 2104 of file board_design_settings.cpp.
References GetLayerClass(), and m_TextSize.
Referenced by PCB_BASE_FRAME::CreateNewFootprint(), DRAWING_TOOL::DrawBarcode(), 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_BARCODE::StyleFromSettings(), 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 2110 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 2122 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 313 of file board_design_settings.h.
References m_trackWidthIndex.
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), 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 573 of file board_design_settings.h.
References m_userDefinedLayerCount.
Referenced by BOARD::GetUserDefinedLayerCount(), and PANEL_FP_USER_LAYER_NAMES::loadFPSettings().
|
inline |
Definition at line 352 of file board_design_settings.h.
References m_viaSizeIndex.
Referenced by BOOST_AUTO_TEST_CASE(), 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().
|
inline |
Definition at line 357 of file board_design_settings.h.
References m_viaStackIndex.
Referenced by PANEL_SETUP_VIA_STACKS::loadFrom(), ROUTER_TOOL::onViaStackCommand(), and PCB_EDIT_FRAME::UpdateViaStackSelectBox().
| bool BOARD_DESIGN_SETTINGS::Ignore | ( | int | aDRCErrorCode | ) | const |
Return true if the DRC error code's severity is RPT_SEVERITY_ERROR.
Definition at line 1610 of file board_design_settings.cpp.
References GetSeverity(), and RPT_SEVERITY_IGNORE.
Referenced by DRC_REPORT::WriteJsonReport(), and DRC_REPORT::WriteTextReport().
|
private |
Definition at line 1210 of file board_design_settings.cpp.
References BOARD_DESIGN_SETTINGS(), m_AllowSoldermaskBridgesInFPs, m_auxOrigin, m_boardThickness, FIELDS_TABLE_BOM_SETTINGS::m_BomExportFileName, FIELDS_TABLE_BOM_SETTINGS::m_BomFmtPresets, FIELDS_TABLE_BOM_SETTINGS::m_BomFmtSettings, FIELDS_TABLE_BOM_SETTINGS::m_BomPresets, FIELDS_TABLE_BOM_SETTINGS::m_BomSettings, 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_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_PlugViasBack, m_PlugViasFront, m_SilkClearance, m_SolderMaskExpansion, m_SolderMaskMinWidth, m_SolderMaskToCopperClearance, m_SolderPasteMargin, m_SolderPasteMarginRatio, m_stackup, m_StyleFPBarcodes, m_StyleFPDimensions, 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, m_viaStackIndex, m_ViaStackPresets, and m_ZoneKeepExternalFillets.
Referenced by BOARD_DESIGN_SETTINGS(), and operator=().
|
inherited |
Definition at line 139 of file json_settings.cpp.
References m_internals.
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), NET_SETTINGS::CopyFrom(), COLOR_SETTINGS::migrateSchema0to1(), PCBNEW_JOBS_HANDLER::runPcbMerge(), EESCHEMA_JOBS_HANDLER::runSchMerge(), SETTINGS_MANAGER::SaveColorSettings(), and DATABASE_LIB_SETTINGS::Store().
|
inlineinherited |
Definition at line 157 of file json_settings.h.
References m_fileSynced.
Referenced by reloadFromFile().
|
inlineinherited |
Definition at line 168 of file json_settings.h.
References m_isFutureFormat.
|
inline |
Test whether a given layer aLayerId is enabled.
| aLayerId | The layer to be tested. |
Definition at line 550 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 105 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().
|
inlineinherited |
SaveToFile() also returns false when it had nothing to write, so its result cannot tell a skipped save from a lost one.
Definition at line 165 of file json_settings.h.
References m_lastSaveFailed.
|
virtualinherited |
Updates the parameters of this object based on the current JSON document contents.
Reimplemented in DATABASE_LIB_SETTINGS.
Definition at line 145 of file json_settings.cpp.
References m_params, m_resetParamsIfMissing, and traceSettings.
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), NET_SETTINGS::CopyFrom(), COLOR_SETTINGS::CreateBuiltinColorSettings(), DATABASE_LIB_SETTINGS::Load(), 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_FP_USER_LAYER_NAMES::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 1524 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().
Referenced by BOOST_AUTO_TEST_CASE().
|
inherited |
Definition at line 606 of file json_settings.cpp.
References ALLOW_EXCEPTIONS, IGNORE_COMMENTS, 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 760 of file json_settings.cpp.
References m_internals, m_migrators, m_schemaVersion, and traceSettings.
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), 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, 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 796 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 1431 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().
|
private |
Definition at line 1483 of file board_design_settings.cpp.
References DRC_EXCLUSION::FromLegacyStrings(), DRC_EXCLUSION::GetSortKey(), JSON_SETTINGS::Get< nlohmann::json >(), and JSON_SETTINGS::Set().
Referenced by BOARD_DESIGN_SETTINGS().
|
inline |
Definition at line 214 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 1203 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 1317 of file board_design_settings.cpp.
References BOARD_DESIGN_SETTINGS(), m_AllowSoldermaskBridgesInFPs, m_auxOrigin, m_boardThickness, FIELDS_TABLE_BOM_SETTINGS::m_BomExportFileName, FIELDS_TABLE_BOM_SETTINGS::m_BomFmtPresets, FIELDS_TABLE_BOM_SETTINGS::m_BomFmtSettings, FIELDS_TABLE_BOM_SETTINGS::m_BomPresets, FIELDS_TABLE_BOM_SETTINGS::m_BomSettings, 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_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_PlugViasBack, m_PlugViasFront, m_SilkClearance, m_SolderMaskExpansion, m_SolderMaskMinWidth, m_SolderMaskToCopperClearance, m_SolderPasteMargin, m_SolderPasteMarginRatio, m_stackup, m_StyleFPBarcodes, m_StyleFPDimensions, 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, m_viaStackIndex, m_ViaStackPresets, and m_ZoneKeepExternalFillets.
Referenced by operator!=().
|
protectedinherited |
Definition at line 565 of file json_settings.cpp.
References m_internals.
Referenced by DATABASE_LIB_SETTINGS::Store().
|
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 751 of file json_settings.cpp.
References m_migrators, and m_schemaVersion.
Referenced by BOARD_DESIGN_SETTINGS::BOARD_DESIGN_SETTINGS(), COLOR_SETTINGS::COLOR_SETTINGS(), EDA_3D_VIEWER_SETTINGS::EDA_3D_VIEWER_SETTINGS(), EESCHEMA_SETTINGS::EESCHEMA_SETTINGS(), ERC_SETTINGS::ERC_SETTINGS(), FOOTPRINT_EDITOR_SETTINGS::FOOTPRINT_EDITOR_SETTINGS(), MIGRATING_NESTED_SETTINGS::MIGRATING_NESTED_SETTINGS(), NET_SETTINGS::NET_SETTINGS(), PCBNEW_SETTINGS::PCBNEW_SETTINGS(), PROJECT_FILE::PROJECT_FILE(), SCHEMATIC_SETTINGS::SCHEMATIC_SETTINGS(), SYMBOL_EDITOR_SETTINGS::SYMBOL_EDITOR_SETTINGS(), and TUNING_PROFILES::TUNING_PROFILES().
|
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 952 of file json_settings.cpp.
References JSON_SETTINGS(), m_manager, m_modified, m_nested_settings, NESTED_SETTINGS, NESTED_SETTINGS::SetParent(), and traceSettings.
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), ~JSON_SETTINGS(), and SCHEMATIC_SETTINGS::~SCHEMATIC_SETTINGS().
|
inlineinherited |
Definition at line 114 of file json_settings.h.
References m_resetParamsIfMissing.
Referenced by COLOR_MAP_PARAM::MatchesFile(), PARAM< ValueType >::MatchesFile(), PARAM_ENUM< EnumType >::MatchesFile(), PARAM_LAMBDA< ValueType >::MatchesFile(), PARAM_LIST< Type >::MatchesFile(), PARAM_MAP< Value >::MatchesFile(), PARAM_PATH::MatchesFile(), PARAM_PATH_LIST::MatchesFile(), PARAM_SCALED< ValueType >::MatchesFile(), PARAM_SET< Type >::MatchesFile(), and PARAM_WXSTRING_MAP::MatchesFile().
|
inherited |
Resets all parameters to default values.
Does NOT write to file or update underlying JSON.
Definition at line 400 of file json_settings.cpp.
References m_params.
Referenced by BOOST_AUTO_TEST_CASE(), 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. |
| aForce | is a flag to force the save. |
Reimplemented from JSON_SETTINGS.
Definition at line 129 of file nested_settings.cpp.
References dummy, JSON_SETTINGS::GetFilename(), JSON_SETTINGS::m_filename, JSON_SETTINGS::m_internals, JSON_SETTINGS::m_params, m_parent, m_path, JSON_SETTINGS::m_schemaVersion, JSON_SETTINGS_INTERNALS::PointerFromString(), JSON_SETTINGS::Store(), and traceSettings.
Referenced by BOOST_AUTO_TEST_CASE(), PCBNEW_JOBS_HANDLER::runPcbMerge(), 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 712 of file json_settings.cpp.
References m_internals.
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), 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(), ERC_SETTINGS::migrateSchema0to1(), FOOTPRINT_EDITOR_SETTINGS::migrateSchema0to1(), BOARD_DESIGN_SETTINGS::migrateSchema2to3(), PROJECT_FILE::migrateSchema3To4(), COMMON_SETTINGS::migrateSchema5to6(), MIGRATING_NESTED_SETTINGS::MIGRATING_NESTED_SETTINGS(), PCBNEW_SETTINGS::PCBNEW_SETTINGS(), PROJECT_FILE::SaveAs(), PROJECT_LOCAL_SETTINGS::SaveAs(), PROJECT_FILE::SaveToFile(), PROJECT_LOCAL_SETTINGS::SaveToFile(), SCHEMATIC_SETTINGS::SCHEMATIC_SETTINGS(), PROJECT_FILE::SerializeToString(), 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 991 of file json_settings.cpp.
|
inherited |
References KICOMMON_API.
|
inline |
Definition at line 624 of file board_design_settings.h.
References m_auxOrigin.
Referenced by BOOST_AUTO_TEST_CASE(), PCB_IO_EAGLE::centerBoard(), BOARD_EDITOR_CONTROL::DoSetDrillOrigin(), API_HANDLER_PCB::handleSetBoardOrigin(), PCB_IO_EASYEDA::loadBoard(), PCB_IO_KICAD_LEGACY::loadSETUP(), ALTIUM_PCB::Parse(), PCB_IO_EASYEDAPRO_PARSER::ParseBoard(), PCB_IO_EASYEDAPRO_V3_PARSER::ParseBoard(), and PCB_IO_KICAD_SEXPR_PARSER::parseSetup().
|
inline |
Definition at line 587 of file board_design_settings.h.
References m_boardThickness.
Referenced by FOOTPRINT_CHOOSER_FRAME::build3DCanvas(), PADS_PCB_CONVERTER::BuildStackup(), DIALOG_MIGRATE_3D_MODELS::initPreviewBoard(), 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 2022 of file board_design_settings.cpp.
References LSET::AllCuMask(), m_copperLayerCount, and m_enabledLayers.
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(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOARD::SetCopperLayerCount(), setUniformStackup(), and BACKDRILL_TEST_FIXTURE::SetupSixLayerBoard().
|
inline |
Sets custom gap for differential pairs (i.e.
not available in netclasses or preset list).
| aGap | is the new gap. |
Definition at line 476 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 489 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).
| aWidth | is the new track width. |
Definition at line 464 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 346 of file board_design_settings.h.
References m_customTrackWidth.
Referenced by BOOST_AUTO_TEST_CASE(), PCB_IO_PADS::loadBoardSetup(), and 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 417 of file board_design_settings.h.
References m_customViaSize.
Referenced by PCB_IO_PADS::loadBoardSetup(), and 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 395 of file board_design_settings.h.
References m_customViaSize.
Referenced by PCB_IO_PADS::loadBoardSetup(), and BOARD::SynchronizeNetsAndNetClasses().
|
inline |
Definition at line 269 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 1947 of file board_design_settings.cpp.
References m_DiffPairDimensionsList, m_diffPairIndex, and m_useCustomDiffPair.
Referenced by BOOST_AUTO_TEST_CASE(), 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 2045 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(), DIALOG_MIGRATE_3D_MODELS::initPreviewBoard(), PCB_IO_GEDA::loadBoard(), PANEL_PREVIEW_3D_MODEL::PANEL_PREVIEW_3D_MODEL(), and BOARD::SetEnabledLayers().
|
inlineinherited |
Definition at line 92 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 627 of file board_design_settings.h.
References m_gridOrigin.
Referenced by PCB_IO_EAGLE::centerBoard(), PCB_CONTROL::DoSetGridOrigin(), API_HANDLER_PCB::handleSetBoardOrigin(), 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. |
| aPath | is the path of aObj. |
| aTarget | is the storage destination. |
Definition at line 817 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. |
| aPath | is the path of aObj. |
| aTarget | is the storage destination. |
Definition at line 831 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. |
| aPath | is the path of aObj. |
| aTarget | is the storage destination. |
Definition at line 845 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 |
| aPath | is the path of aObj. |
| aTarget | is the storage destination |
Definition at line 803 of file json_settings.cpp.
References JSON_SETTINGS_INTERNALS::PointerFromString().
Referenced by FOOTPRINT_EDITOR_SETTINGS::FOOTPRINT_EDITOR_SETTINGS(), PROJECT_LOCAL_SETTINGS::PROJECT_LOCAL_SETTINGS(), and SYMBOL_EDITOR_SETTINGS::SYMBOL_EDITOR_SETTINGS().
|
inlineinherited |
Definition at line 103 of file json_settings.h.
References m_legacy_filename.
Referenced by SYMBOL_EDITOR_SETTINGS::SYMBOL_EDITOR_SETTINGS().
|
inlineinherited |
Definition at line 94 of file json_settings.h.
References m_location.
Referenced by COLOR_SETTINGS::COLOR_SETTINGS(), and COLOR_SETTINGS::migrateSchema0to1().
|
inlineinherited |
Definition at line 239 of file json_settings.h.
References m_manager.
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), and BOOST_AUTO_TEST_CASE().
|
inherited |
Definition at line 186 of file nested_settings.cpp.
References JSON_SETTINGS::JSON_SETTINGS(), LoadFromFile(), and m_parent.
Referenced by NESTED_SETTINGS(), and JSON_SETTINGS::ReleaseNestedSettings().
|
inlineinherited |
Definition at line 106 of file json_settings.h.
References m_writeFile.
Referenced by BOOST_AUTO_TEST_CASE(), SETTINGS_MANAGER::GetColorSettings(), SETTINGS_MANAGER::loadAllColorSettings(), PANEL_COLOR_SETTINGS::OnThemeChanged(), PROJECT_FILE::SaveAs(), PROJECT_LOCAL_SETTINGS::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 1921 of file board_design_settings.cpp.
References m_trackWidthIndex, m_TrackWidthList, and m_useCustomTrackVia.
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), 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 2034 of file board_design_settings.cpp.
References m_enabledLayers, m_userDefinedLayerCount, and LSET::UserDefinedLayersMask().
Referenced by BOARD_DESIGN_SETTINGS(), BOARD::SetUserDefinedLayerCount(), and PANEL_FP_USER_LAYER_NAMES::TransferDataFromWindow().
| 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 1880 of file board_design_settings.cpp.
References m_useCustomTrackVia, m_ViasDimensionsList, and m_viaSizeIndex.
Referenced by BOOST_AUTO_TEST_CASE(), 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().
|
inline |
Set the current via stack preset index to aIndex.
Definition at line 362 of file board_design_settings.h.
References m_viaStackIndex.
Referenced by PCB_EDIT_FRAME::SelectViaStack_Event(), PANEL_SETUP_VIA_STACKS::TransferDataFromWindow(), and PCB_EDIT_FRAME::UpdateViaStackSelectBox().
|
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.
Reimplemented in DATABASE_LIB_SETTINGS, and PROJECT_FILE.
Definition at line 381 of file json_settings.cpp.
References m_modified, m_params, and traceSettings.
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), NET_SETTINGS::CopyFrom(), flushToStore(), FormatAsString(), PANEL_FP_EDITOR_COLOR_SETTINGS::PANEL_FP_EDITOR_COLOR_SETTINGS(), SETTINGS_MANAGER::SaveColorSettings(), NESTED_SETTINGS::SaveToFile(), DATABASE_LIB_SETTINGS::Store(), and PROJECT_FILE::Store().
|
inline |
Definition at line 509 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 504 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 437 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 432 of file board_design_settings.h.
References m_useCustomTrackVia.
Referenced by BOARD_EDITOR_CONTROL::AutoTrackWidth(), BOARD::BOARD(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), 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 295 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 285 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 290 of file board_design_settings.h.
References m_useCustomTrackVia, and m_viaSizeIndex.
Referenced by ROUTER_TOOL::handleLayerSwitch(), and PNS_KICAD_IFACE_BASE::ImportSizes().
| std::vector< BOARD_DESIGN_SETTINGS::VALIDATION_ERROR > BOARD_DESIGN_SETTINGS::ValidateDesignRules | ( | std::optional< EDA_UNITS > | aUnits = std::nullopt | ) | const |
Validate design settings values and return per-field errors.
Definition at line 1617 of file board_design_settings.cpp.
References _, TEARDROP_PARAMETERS_LIST::GetParameters(), TEARDROP_PARAMETERS_LIST::GetParametersCount(), GetTeardropTargetCanonicalName(), TEARDROP_PARAMETERS::m_BestLengthRatio, TEARDROP_PARAMETERS::m_BestWidthRatio, m_CopperEdgeClearance, VIA_DIMENSION::m_Diameter, m_DiffPairDimensionsList, VIA_DIMENSION::m_Drill, DIFF_PAIR_DIMENSION::m_Gap, m_HoleClearance, m_HoleToHoleMin, m_MaxError, m_MicroViasMinDrill, m_MicroViasMinSize, m_MinClearance, m_MinConn, m_MinGrooveWidth, m_MinResolvedSpokes, m_MinSilkTextHeight, m_MinSilkTextThickness, m_MinThroughDrill, m_SilkClearance, m_SolderMaskExpansion, m_SolderMaskMinWidth, m_SolderMaskToCopperClearance, m_SolderPasteMargin, m_SolderPasteMarginRatio, TEARDROP_PARAMETERS::m_TdMaxLen, TEARDROP_PARAMETERS::m_TdMaxWidth, m_TeardropParamsList, m_TrackMinWidth, m_ViasDimensionsList, m_ViasMinAnnularWidth, m_ViasMinSize, DIFF_PAIR_DIMENSION::m_Width, TEARDROP_PARAMETERS::m_WidthtoSizeFilterRatio, MAXIMUM_ERROR_SIZE_MM, MINIMUM_ERROR_SIZE_MM, MM, pcbIUScale, EDA_UNIT_UTILS::UI::StringFromValue(), and PCB_VIA::ValidateViaParameters().
Referenced by API_HANDLER_PCB::handleSetBoardDesignRules(), PANEL_SETUP_CONSTRAINTS::updateWarnings(), and PANEL_SETUP_TRACKS_AND_VIAS::Validate().
| bool BOARD_DESIGN_SETTINGS::m_AllowSoldermaskBridgesInFPs |
Definition at line 699 of file board_design_settings.h.
Referenced by BOARD_DESIGN_SETTINGS(), PCB_IO_KICAD_SEXPR::formatSetup(), PCB_WRITER_V10::formatSetup(), PCB_WRITER_V9::formatSetup(), API_HANDLER_PCB::handleGetBoardDesignRules(), API_HANDLER_PCB::handleSetBoardDesignRules(), initFromOther(), operator==(), and PCB_IO_KICAD_SEXPR_PARSER::parseSetup().
|
private |
origin for plot exports
Definition at line 759 of file board_design_settings.h.
Referenced by GetAuxOrigin(), initFromOther(), operator==(), and SetAuxOrigin().
|
private |
Board thickness for 3D viewer.
Definition at line 782 of file board_design_settings.h.
Referenced by BOARD_DESIGN_SETTINGS(), GetBoardThickness(), initFromOther(), operator==(), and SetBoardThickness().
|
inherited |
Definition at line 119 of file bom_settings.h.
Referenced by BOARD_DESIGN_SETTINGS::BOARD_DESIGN_SETTINGS(), BOARD_DESIGN_SETTINGS::initFromOther(), BOARD_DESIGN_SETTINGS::operator==(), and SCHEMATIC_SETTINGS::SCHEMATIC_SETTINGS().
|
inherited |
Definition at line 127 of file bom_settings.h.
Referenced by BOARD_DESIGN_SETTINGS::BOARD_DESIGN_SETTINGS(), PANEL_BOM_PRESETS::ImportBomFmtPresetsFrom(), BOARD_DESIGN_SETTINGS::initFromOther(), EESCHEMA_JOBS_HANDLER::JobExportBom(), PCBNEW_JOBS_HANDLER::JobExportBom(), BOARD_DESIGN_SETTINGS::operator==(), and SCHEMATIC_SETTINGS::SCHEMATIC_SETTINGS().
|
inherited |
List of stored BOM format presets.
Definition at line 126 of file bom_settings.h.
Referenced by BOARD_DESIGN_SETTINGS::BOARD_DESIGN_SETTINGS(), BOARD_DESIGN_SETTINGS::initFromOther(), BOARD_DESIGN_SETTINGS::operator==(), and SCHEMATIC_SETTINGS::SCHEMATIC_SETTINGS().
|
inherited |
Definition at line 123 of file bom_settings.h.
Referenced by BOARD_DESIGN_SETTINGS::BOARD_DESIGN_SETTINGS(), PANEL_BOM_PRESETS::ImportBomPresetsFrom(), BOARD_DESIGN_SETTINGS::initFromOther(), EESCHEMA_JOBS_HANDLER::JobExportBom(), PCBNEW_JOBS_HANDLER::JobExportBom(), BOARD_DESIGN_SETTINGS::operator==(), and SCHEMATIC_SETTINGS::SCHEMATIC_SETTINGS().
|
inherited |
List of stored BOM presets.
Definition at line 122 of file bom_settings.h.
Referenced by BOARD_DESIGN_SETTINGS::BOARD_DESIGN_SETTINGS(), BOARD_DESIGN_SETTINGS::initFromOther(), BOARD_DESIGN_SETTINGS::operator==(), and SCHEMATIC_SETTINGS::SCHEMATIC_SETTINGS().
| bool BOARD_DESIGN_SETTINGS::m_CapVias |
Definition at line 710 of file board_design_settings.h.
Referenced by BOARD_DESIGN_SETTINGS(), countViaProtection(), dropViaProtection(), PCB_IO_KICAD_SEXPR::formatSetup(), PCB_WRITER_V10::formatSetup(), API_HANDLER_PCB::handleGetBoardDesignRules(), API_HANDLER_PCB::handleSetBoardDesignRules(), initFromOther(), operator==(), and PCB_IO_KICAD_SEXPR_PARSER::parseSetup().
| int BOARD_DESIGN_SETTINGS::m_CopperEdgeClearance |
Definition at line 669 of file board_design_settings.h.
Referenced by PANEL_SETUP_CONSTRAINTS::applyValues(), BOARD_DESIGN_SETTINGS(), BOOST_AUTO_TEST_CASE(), GetBiggestClearanceValue(), API_HANDLER_PCB::handleGetBoardDesignRules(), API_HANDLER_PCB::handleSetBoardDesignRules(), initFromOther(), PCB_IO_PADS::loadBoardSetup(), CADSTAR_PCB_ARCHIVE_LOADER::loadDesignRules(), DRC_ENGINE::loadImplicitRules(), PCB_EDIT_FRAME::OpenProjectFiles(), operator==(), PCB_IO_EASYEDAPRO_PARSER::ParseBoard(), PCB_IO_EASYEDAPRO_V3_PARSER::ParseBoard(), PCB_IO_KICAD_SEXPR_PARSER::parseDefaults(), and ValidateDesignRules().
|
private |
Number of copper layers for this design.
Definition at line 778 of file board_design_settings.h.
Referenced by GetCopperLayerCount(), initFromOther(), operator==(), SetCopperLayerCount(), and SetEnabledLayers().
| bool BOARD_DESIGN_SETTINGS::m_CoverViasBack |
Definition at line 705 of file board_design_settings.h.
Referenced by BOARD_DESIGN_SETTINGS(), countViaProtection(), dropViaProtection(), PCB_IO_KICAD_SEXPR::formatSetup(), PCB_WRITER_V10::formatSetup(), API_HANDLER_PCB::handleGetBoardDesignRules(), API_HANDLER_PCB::handleSetBoardDesignRules(), initFromOther(), operator==(), and PCB_IO_KICAD_SEXPR_PARSER::parseSetup().
| bool BOARD_DESIGN_SETTINGS::m_CoverViasFront |
Definition at line 704 of file board_design_settings.h.
Referenced by BOARD_DESIGN_SETTINGS(), countViaProtection(), dropViaProtection(), PCB_IO_KICAD_SEXPR::formatSetup(), PCB_WRITER_V10::formatSetup(), API_HANDLER_PCB::handleGetBoardDesignRules(), API_HANDLER_PCB::handleSetBoardDesignRules(), 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 383 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 377 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 786 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 654 of file board_design_settings.h.
Referenced by BOARD_DESIGN_SETTINGS(), DRAWING_TOOL::DrawVia(), initFromOther(), and operator==().
|
private |
Definition at line 776 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 771 of file board_design_settings.h.
Referenced by BOARD_DESIGN_SETTINGS(), GetCurrentTrackWidth(), GetCustomTrackWidth(), initFromOther(), operator==(), and SetCustomTrackWidth().
|
private |
Definition at line 772 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 719 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 803 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 398 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 641 of file board_design_settings.h.
Referenced by BOARD_DESIGN_SETTINGS(), BOOST_AUTO_TEST_CASE(), GetCurrentDiffPairGap(), GetCurrentDiffPairViaGap(), GetCurrentDiffPairWidth(), GetNextDiffPairIndex(), API_HANDLER_PCB::handleGetBoardDesignRules(), API_HANDLER_PCB::handleSetBoardDesignRules(), initFromOther(), operator==(), PCB_IO_KICAD_SEXPR_PARSER::parseSetup(), SetDiffPairIndex(), DIFF_PAIR_MENU::update(), PANEL_SETUP_TRACKS_AND_VIAS::Validate(), and ValidateDesignRules().
|
private |
Definition at line 766 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 651 of file board_design_settings.h.
Referenced by BOARD_DESIGN_SETTINGS(), PCB_TUNING_PATTERN::DefaultSettings(), DIALOG_BOARD_SETUP::DIALOG_BOARD_SETUP(), and PANEL_SETUP_TUNING_PATTERNS::ImportSettingsFrom().
| int BOARD_DESIGN_SETTINGS::m_DimensionArrowLength |
Definition at line 741 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 742 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 740 of file board_design_settings.h.
Referenced by BOARD_DESIGN_SETTINGS(), DRAWING_TOOL::DrawDimension(), initFromOther(), PANEL_SETUP_DIMENSIONS::LoadFromSettings(), operator==(), and PCB_DIMENSION_BASE::StyleFromSettings().
| DIM_PRECISION BOARD_DESIGN_SETTINGS::m_DimensionPrecision |
Number of digits after the decimal.
Definition at line 736 of file board_design_settings.h.
Referenced by BOARD_DESIGN_SETTINGS(), DRAWING_TOOL::DrawDimension(), initFromOther(), PANEL_SETUP_DIMENSIONS::LoadFromSettings(), operator==(), PCB_IO_KICAD_SEXPR_PARSER::parseDefaults(), and PCB_DIMENSION_BASE::StyleFromSettings().
| bool BOARD_DESIGN_SETTINGS::m_DimensionSuppressZeroes |
Definition at line 738 of file board_design_settings.h.
Referenced by BOARD_DESIGN_SETTINGS(), DRAWING_TOOL::DrawDimension(), initFromOther(), PANEL_SETUP_DIMENSIONS::LoadFromSettings(), operator==(), and PCB_DIMENSION_BASE::StyleFromSettings().
| DIM_TEXT_POSITION BOARD_DESIGN_SETTINGS::m_DimensionTextPosition |
Definition at line 739 of file board_design_settings.h.
Referenced by BOARD_DESIGN_SETTINGS(), DRAWING_TOOL::DrawDimension(), initFromOther(), PANEL_SETUP_DIMENSIONS::LoadFromSettings(), operator==(), and PCB_DIMENSION_BASE::StyleFromSettings().
| DIM_UNITS_FORMAT BOARD_DESIGN_SETTINGS::m_DimensionUnitsFormat |
Definition at line 737 of file board_design_settings.h.
Referenced by BOARD_DESIGN_SETTINGS(), DRAWING_TOOL::DrawDimension(), initFromOther(), PANEL_SETUP_DIMENSIONS::LoadFromSettings(), operator==(), and PCB_DIMENSION_BASE::StyleFromSettings().
| DIM_UNITS_MODE BOARD_DESIGN_SETTINGS::m_DimensionUnitsMode |
Definition at line 735 of file board_design_settings.h.
Referenced by BOARD_DESIGN_SETTINGS(), DRAWING_TOOL::DrawDimension(), initFromOther(), PANEL_SETUP_DIMENSIONS::LoadFromSettings(), operator==(), PCB_IO_KICAD_SEXPR_PARSER::parseDefaults(), and PCB_DIMENSION_BASE::StyleFromSettings().
| std::shared_ptr<DRC_ENGINE> BOARD_DESIGN_SETTINGS::m_DRCEngine |
Definition at line 677 of file board_design_settings.h.
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), 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(), 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(), 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(), 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(), 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(), BOOST_FIXTURE_TEST_CASE(), ZONE_FILLER::buildCopperItemClearances(), ZONE_FILLER::buildDifferentNetZoneClearances(), ZONE_FILLER::buildHatchZoneThermalRings(), PCB_VIA_STACK::BuildMembers(), PCB_VIA_STITCH::buildPlacementCells(), ZONE_FILLER::buildThermalSpokes(), checkParity(), SILK_MASK_EXPANSION_FIXTURE::CountMaskViolations(), PCB_TUNING_PATTERN::CreateNew(), DRAWING_TOOL::DrawVia(), ZONE_FILLER::Fill(), fill_bench_main_func(), GetBiggestClearanceValue(), PCB_VIA::GetDrillConstraint(), PCB_VIA::GetMinAnnulus(), BOARD_CONNECTED_ITEM::GetOwnClearance(), PAD::GetSolderMaskExpansion(), PCB_SHAPE::GetSolderMaskExpansion(), PCB_TRACK::GetSolderMaskExpansion(), PAD::GetSolderPasteMargin(), PCB_TRACK::GetWidthConstraint(), PCB_VIA::GetWidthConstraint(), ROUTER_TOOL::handleLayerSwitch(), BOARD_LOADER::initializeLoadedBoard(), PCBNEW_JOBS_HANDLER::JobExportDrc(), ZONE_FILLER::knockoutThermalReliefs(), PNS_LOG_FILE::Load(), TEARDROP_MANAGER::pairClearance(), DRAWING_TOOL::PlaceTuningPattern(), ZONE_FILLER::refillZoneFromCache(), VIA_STACK_DRC_FIXTURE::run(), CREEPAGE_PARITY_FIXTURE::runCreepage(), DRC_CREEPAGE_ISSUE24875_FIXTURE::runCreepage(), DRC_CREEPAGE_ISSUE24885_FIXTURE::runCreepage(), DRC_CREEPAGE_ISSUE25439_FIXTURE::runCreepage(), runDrcAndCreateMarkers(), BACKDRILL_TEST_FIXTURE::RunDRCForErrorCode(), DRC_EXCLUSION_BASE_FIXTURE::runDrcOnBoard(), runInlineSkewRule(), runLineEndingMatrixDrcTest(), PCB_BASE_EDIT_FRAME::SetBoard(), BACKDRILL_TEST_FIXTURE::SetupSixLayerBoard(), PCB_TUNING_PATTERN::ShowPropertiesDialog(), SILK_MASK_EXPANSION_FIXTURE::SILK_MASK_EXPANSION_FIXTURE(), DRC_TEST_PROVIDER_ZONE_CONNECTIONS::testZoneLayer(), and ROUTER_TOOL::updateSizesAfterRouterEvent().
| std::set<DRC_EXCLUSION, DRC_EXCLUSION_COMPARE> BOARD_DESIGN_SETTINGS::m_DrcExclusions |
Definition at line 679 of file board_design_settings.h.
Referenced by BOARD_DESIGN_SETTINGS(), BOOST_AUTO_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(), DRC_EXCLUSION_BASE_FIXTURE::createAndVerifyAdditionalUnconnectedExclusions(), DRC_EXCLUSION_BASE_FIXTURE::createAndVerifyInitialExclusionMarkers(), DIALOG_DRC::ExcludeMarker(), API_HANDLER_PCB::handleGetBoardDesignRules(), API_HANDLER_PCB::handleSetBoardDesignRules(), initFromOther(), DRC_EXCLUSION_BASE_FIXTURE::loadBoardAndVerifyInitialExclusions(), DIALOG_DRC::OnDRCItemRClick(), operator==(), and DRC_EXCLUSION_BASE_FIXTURE::reloadBoardAndVerifyExclusions().
| std::map<int, SEVERITY> BOARD_DESIGN_SETTINGS::m_DRCSeverities |
Definition at line 678 of file board_design_settings.h.
Referenced by KICAD_DIFF::PCB_MERGE_APPLIER::Apply(), BOARD_DESIGN_SETTINGS(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), 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(), 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(), 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(), 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(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), FOOTPRINT_EDIT_FRAME::Clear_Pcb(), SILK_MASK_EXPANSION_FIXTURE::CountMaskViolations(), DIALOG_BOARD_SETUP::DIALOG_BOARD_SETUP(), KICAD_DIFF::PCB_DIFFER::Diff(), DoCourtyardInvalidTest(), DoCourtyardOverlapTest(), GetSeverity(), PCB_BASE_FRAME::GetSeverity(), API_HANDLER_PCB::handleGetBoardDesignRules(), API_HANDLER_PCB::handleSetBoardDesignRules(), initFromOther(), DRC_ENGINE::loadImplicitRules(), DIALOG_BOARD_SETUP::onAuxiliaryAction(), DIALOG_DRC::OnDRCItemRClick(), DIALOG_DRC::OnIgnoredItemRClick(), operator==(), VIA_STACK_DRC_FIXTURE::run(), CREEPAGE_PARITY_FIXTURE::runCreepage(), DRC_CREEPAGE_ISSUE24875_FIXTURE::runCreepage(), DRC_CREEPAGE_ISSUE24885_FIXTURE::runCreepage(), DRC_CREEPAGE_ISSUE25439_FIXTURE::runCreepage(), runInlineSkewRule(), runLineEndingMatrixDrcTest(), and PCBNEW_JOBS_HANDLER::runPcbMerge().
|
private |
Grouping rules and symbol assignments shared by every drill chart and map on the board.
Definition at line 799 of file board_design_settings.h.
Referenced by GetDrillSymbolProfile(), and GetDrillSymbolProfile().
|
private |
Bit-mask for layer enabling.
Definition at line 780 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 362 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().
|
protectedinherited |
True once the store has been synchronized with an on-disk file (loaded or saved)
Definition at line 392 of file json_settings.h.
Referenced by IsFileSynced(), JSON_SETTINGS(), LoadFromFile(), and SaveToFile().
| bool BOARD_DESIGN_SETTINGS::m_FillVias |
Definition at line 713 of file board_design_settings.h.
Referenced by BOARD_DESIGN_SETTINGS(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), countViaProtection(), PCB_VIA_STACK::CreateFromItems(), dropViaProtection(), PCB_IO_KICAD_SEXPR::formatSetup(), PCB_WRITER_V10::formatSetup(), API_HANDLER_PCB::handleGetBoardDesignRules(), API_HANDLER_PCB::handleSetBoardDesignRules(), initFromOther(), operator==(), and PCB_IO_KICAD_SEXPR_PARSER::parseSetup().
|
private |
origin for grid offsets
Definition at line 760 of file board_design_settings.h.
Referenced by GetGridOrigin(), initFromOther(), operator==(), and SetGridOrigin().
| bool BOARD_DESIGN_SETTINGS::m_HasStackup |
Definition at line 753 of file board_design_settings.h.
Referenced by BOARD_DESIGN_SETTINGS(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_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(), PADS_PCB_CONVERTER::BuildStackup(), PCB_IO_KICAD_SEXPR::formatSetup(), PCB_WRITER_V10::formatSetup(), PCB_WRITER_V9::formatSetup(), initFromOther(), CADSTAR_PCB_ARCHIVE_LOADER::loadBoardStackup(), operator==(), ALTIUM_PCB::ParseBoard6Data(), PCB_IO_KICAD_SEXPR_PARSER::parseSetup(), and setUniformStackup().
| int BOARD_DESIGN_SETTINGS::m_HoleClearance |
Definition at line 670 of file board_design_settings.h.
Referenced by PANEL_SETUP_CONSTRAINTS::applyValues(), BOARD_DESIGN_SETTINGS(), GetBiggestClearanceValue(), API_HANDLER_PCB::handleGetBoardDesignRules(), API_HANDLER_PCB::handleSetBoardDesignRules(), PNS_KICAD_IFACE_BASE::ImportSizes(), initFromOther(), CADSTAR_PCB_ARCHIVE_LOADER::loadDesignRules(), DRC_ENGINE::loadImplicitRules(), DSN::SPECCTRA_DB::makeIMAGE(), operator==(), and ValidateDesignRules().
| int BOARD_DESIGN_SETTINGS::m_HoleToHoleMin |
Definition at line 671 of file board_design_settings.h.
Referenced by PANEL_SETUP_CONSTRAINTS::applyValues(), BOARD_DESIGN_SETTINGS(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), GetBiggestClearanceValue(), API_HANDLER_PCB::handleGetBoardDesignRules(), API_HANDLER_PCB::handleSetBoardDesignRules(), PNS_KICAD_IFACE_BASE::ImportSizes(), initFromOther(), PCB_IO_PADS::loadBoardSetup(), CADSTAR_PCB_ARCHIVE_LOADER::loadDesignRules(), DRC_ENGINE::loadImplicitRules(), operator==(), PCB_IO_KICAD_SEXPR_PARSER::parseSetup(), and ValidateDesignRules().
|
protectedinherited |
Definition at line 415 of file json_settings.h.
Referenced by At(), Contains(), FormatAsString(), formatFileContents(), 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(), TUNING_PROFILES::migrateSchema0to1(), PROJECT_FILE::migrateSchema1To2(), COMMON_SETTINGS::migrateSchema1to2(), TUNING_PROFILES::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(), COMMON_SETTINGS::migrateSchema4to5(), NET_SETTINGS::migrateSchema4to5(), originalJson(), 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 407 of file json_settings.h.
Referenced by IsFutureFormat(), JSON_SETTINGS(), LoadFromFile(), PROJECT_FILE::ShouldAutoSave(), and PROJECT_LOCAL_SETTINGS::ShouldAutoSave().
|
protectedinherited |
True if the most recent SaveToFile() had changes to write and could not write them.
Definition at line 395 of file json_settings.h.
Referenced by JSON_SETTINGS(), LastSaveFailed(), and SaveToFile().
|
protectedinherited |
The filename of the wxConfig legacy file (if different from m_filename)
Definition at line 365 of file json_settings.h.
Referenced by JSON_SETTINGS(), LoadFromFile(), and SetLegacyFilename().
| int BOARD_DESIGN_SETTINGS::m_LineThickness[LAYER_CLASS_COUNT] |
Definition at line 728 of file board_design_settings.h.
Referenced by BOARD_DESIGN_SETTINGS(), CONVERT_TOOL::CreatePolys(), GetLineThickness(), API_HANDLER_BOARD::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 368 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 410 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 687 of file board_design_settings.h.
Referenced by PANEL_SETUP_CONSTRAINTS::applyValues(), BOARD_DESIGN_SETTINGS(), BOOST_FIXTURE_TEST_CASE(), BuildCreepageBoardEdges(), DIALOG_VIA_STITCH_PROPERTIES::buildGuardPreview(), ZONE_FILLER::buildThermalSpokes(), checkCrossingTrackTeardropsStayOnCopper(), BE_SHAPE_ARC::ConnectChildren(), BE_SHAPE_CIRCLE::ConnectChildren(), BOARD::ConvertBrdLayerToPolygonalContours(), FABMASTER::createBoardItems(), CONVERT_TOOL::CreatePolys(), KIGFX::PCB_PAINTER::Draw(), enclosedByAreaFunc(), MULTICHANNEL_TOOL::findRoutingInRuleArea(), footprintMaxError(), GenerateLayerPoly(), initFromOther(), lowerEllipses(), lowerRoundedRects(), operator==(), PCB_IO_KICAD_SEXPR_PARSER::parseSetup(), PlotStandardLayer(), PAD_TOOL::RecombinePad(), DRC_TEST_PROVIDER_CONNECTION_WIDTH::Run(), TestBoardOutlinesGraphicItems(), transformLineEndings(), and ValidateDesignRules().
| int BOARD_DESIGN_SETTINGS::m_MicroViasMinDrill |
Definition at line 668 of file board_design_settings.h.
Referenced by PANEL_SETUP_CONSTRAINTS::applyValues(), BOARD_DESIGN_SETTINGS(), API_HANDLER_PCB::handleGetBoardDesignRules(), API_HANDLER_PCB::handleSetBoardDesignRules(), initFromOther(), DRC_ENGINE::loadImplicitRules(), PCB_IO_KICAD_LEGACY::loadSETUP(), operator==(), PCB_IO_KICAD_SEXPR_PARSER::parseSetup(), and ValidateDesignRules().
| int BOARD_DESIGN_SETTINGS::m_MicroViasMinSize |
Definition at line 667 of file board_design_settings.h.
Referenced by PANEL_SETUP_CONSTRAINTS::applyValues(), BOARD_DESIGN_SETTINGS(), API_HANDLER_PCB::handleGetBoardDesignRules(), API_HANDLER_PCB::handleSetBoardDesignRules(), initFromOther(), DRC_ENGINE::loadImplicitRules(), PCB_IO_KICAD_LEGACY::loadSETUP(), operator==(), PCB_IO_KICAD_SEXPR_PARSER::parseSetup(), and ValidateDesignRules().
|
protectedinherited |
A map of starting schema version to a pair of <ending version, migrator function>
Definition at line 413 of file json_settings.h.
Referenced by Migrate(), and registerMigration().
| int BOARD_DESIGN_SETTINGS::m_MinClearance |
Definition at line 660 of file board_design_settings.h.
Referenced by PANEL_SETUP_CONSTRAINTS::applyValues(), BOARD_DESIGN_SETTINGS(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), GetBiggestClearanceValue(), API_HANDLER_PCB::handleGetBoardDesignRules(), API_HANDLER_PCB::handleSetBoardDesignRules(), PNS_KICAD_IFACE_BASE::ImportSizes(), initFromOther(), PCB_IO_EAGLE::loadBoard(), PCB_IO_PADS::loadBoardSetup(), CADSTAR_PCB_ARCHIVE_LOADER::loadDesignRules(), DRC_ENGINE::loadImplicitRules(), operator==(), PCB_IO_EASYEDAPRO_PARSER::ParseBoard(), PCB_IO_EASYEDAPRO_V3_PARSER::ParseBoard(), PCB_IO_KICAD_SEXPR_PARSER::parseSetup(), ROUTER_TOOL::updateSizesAfterRouterEvent(), and ValidateDesignRules().
| int BOARD_DESIGN_SETTINGS::m_MinConn |
Definition at line 662 of file board_design_settings.h.
Referenced by PANEL_SETUP_CONSTRAINTS::applyValues(), BOARD_DESIGN_SETTINGS(), BOOST_FIXTURE_TEST_CASE(), API_HANDLER_PCB::handleGetBoardDesignRules(), API_HANDLER_PCB::handleSetBoardDesignRules(), initFromOther(), DRC_ENGINE::loadImplicitRules(), operator==(), and ValidateDesignRules().
| int BOARD_DESIGN_SETTINGS::m_MinGrooveWidth |
Definition at line 661 of file board_design_settings.h.
Referenced by PANEL_SETUP_CONSTRAINTS::applyValues(), BOARD_DESIGN_SETTINGS(), API_HANDLER_PCB::handleGetBoardDesignRules(), API_HANDLER_PCB::handleSetBoardDesignRules(), initFromOther(), operator==(), and ValidateDesignRules().
| int BOARD_DESIGN_SETTINGS::m_MinResolvedSpokes |
Definition at line 673 of file board_design_settings.h.
Referenced by PANEL_SETUP_CONSTRAINTS::applyValues(), BOARD_DESIGN_SETTINGS(), API_HANDLER_PCB::handleGetBoardDesignRules(), API_HANDLER_PCB::handleSetBoardDesignRules(), initFromOther(), DRC_ENGINE::loadImplicitRules(), operator==(), and ValidateDesignRules().
| int BOARD_DESIGN_SETTINGS::m_MinSilkTextHeight |
Definition at line 674 of file board_design_settings.h.
Referenced by PANEL_SETUP_CONSTRAINTS::applyValues(), BOARD_DESIGN_SETTINGS(), API_HANDLER_PCB::handleGetBoardDesignRules(), API_HANDLER_PCB::handleSetBoardDesignRules(), initFromOther(), DRC_ENGINE::loadImplicitRules(), operator==(), and ValidateDesignRules().
| int BOARD_DESIGN_SETTINGS::m_MinSilkTextThickness |
Definition at line 675 of file board_design_settings.h.
Referenced by PANEL_SETUP_CONSTRAINTS::applyValues(), BOARD_DESIGN_SETTINGS(), API_HANDLER_PCB::handleGetBoardDesignRules(), API_HANDLER_PCB::handleSetBoardDesignRules(), initFromOther(), DRC_ENGINE::loadImplicitRules(), operator==(), and ValidateDesignRules().
| int BOARD_DESIGN_SETTINGS::m_MinThroughDrill |
Definition at line 666 of file board_design_settings.h.
Referenced by PANEL_SETUP_CONSTRAINTS::applyValues(), BOARD_DESIGN_SETTINGS(), GetDesignRuleWarnings(), API_HANDLER_PCB::handleGetBoardDesignRules(), ROUTER_TOOL::handleLayerSwitch(), API_HANDLER_PCB::handleSetBoardDesignRules(), PNS_KICAD_IFACE_BASE::ImportSizes(), initFromOther(), PCB_IO_EAGLE::loadBoard(), PCB_IO_PADS::loadBoardSetup(), CADSTAR_PCB_ARCHIVE_LOADER::loadDesignRules(), DRC_ENGINE::loadImplicitRules(), PCB_IO_KICAD_LEGACY::loadSETUP(), operator==(), PCB_IO_KICAD_SEXPR_PARSER::parseSetup(), and ValidateDesignRules().
|
protectedinherited |
True if the JSON data store has been written to since the last file write.
Definition at line 389 of file json_settings.h.
Referenced by TEST_JSON_SETTINGS::ClearModified(), DISK_SETTINGS::ForceModified(), TEST_JSON_SETTINGS::IsModified(), JSON_SETTINGS(), LoadFromFile(), ReleaseNestedSettings(), SaveToFile(), PROJECT_FILE::SerializeToString(), Store(), and PROJECT_FILE::Store().
|
protectedinherited |
Nested settings files that live inside this one, if any.
Definition at line 374 of file json_settings.h.
Referenced by AddNestedSettings(), flushToStore(), LoadFromFile(), ReleaseNestedSettings(), and ~JSON_SETTINGS().
| std::shared_ptr<NET_SETTINGS> BOARD_DESIGN_SETTINGS::m_NetSettings |
Definition at line 716 of file board_design_settings.h.
Referenced by KICAD_DIFF::PCB_MERGE_APPLIER::Apply(), DIPTRACE::PCB_PARSER::ApplyBoardSettings(), BOARD_NETLIST_UPDATER::ApplyChainNetclasses(), ALLEGRO::BOARD_BUILDER::applyConstraintSets(), ApplyImportedNetNameMap(), ALLEGRO::BOARD_BUILDER::applyMatchGroups(), BOARD::ApplyNetChainNetclasses(), ALLEGRO::BOARD_BUILDER::applyNetConstraints(), BOARD::BOARD(), BOARD_DESIGN_SETTINGS(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), CONNECTIVITY_DATA::Build(), DIALOG_VIA_STITCH_PROPERTIES::buildGuardPreview(), APPEARANCE_CONTROLS::buildNetClassMenu(), PANEL_SETUP_RULES::checkPlausibility(), BOARD::ClearProject(), ComputeBoardStatistics(), KICAD_DIFF::PCB_DIFFER::Diff(), NETCLASS_EXPECTATION::doSimpleCountTest(), NETCLASS_EXPECTATION::findMatchingNetclasses(), DSN::SPECCTRA_DB::FromBOARD(), DSN::SPECCTRA_DB::FromSESSION(), GetCurrentDiffPairGap(), GetCurrentDiffPairViaGap(), GetCurrentDiffPairWidth(), GetCurrentTrackWidth(), GetCurrentViaDrill(), GetCurrentViaSize(), GetSmallestClearanceValue(), initFromOther(), PCB_IO_EAGLE::loadBoard(), PCB_IO_EASYEDA::loadBoard(), PCB_IO_PADS::loadBoardSetup(), 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_DRC_RULE_EDITOR::onScintillaCharAdded(), operator==(), PCB_IO_EASYEDAPRO_PARSER::ParseBoard(), PCB_IO_EASYEDAPRO_V3_PARSER::ParseBoard(), PCB_IO_KICAD_SEXPR_PARSER::parseSetup(), APPEARANCE_CONTROLS::rebuildNets(), PCBNEW_JOBS_HANDLER::runPcbMerge(), BOARD::SetProject(), BOARD::SynchronizeNetsAndNetClasses(), BOARD_EDITOR_CONTROL::TrackWidthDec(), BOARD_EDITOR_CONTROL::TrackWidthInc(), BOARD_EDITOR_CONTROL::ViaSizeDec(), and BOARD_EDITOR_CONTROL::ViaSizeInc().
|
protectedinherited |
The list of parameters (owned by this object)
Definition at line 371 of file json_settings.h.
Referenced by PCB_VIEWERS_SETTINGS_BASE::addMatchPropertiesParam(), APP_SETTINGS_BASE::addParamsForWindow(), APP_SETTINGS_BASE::APP_SETTINGS_BASE(), 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(), DISK_PARENT_SETTINGS::DISK_PARENT_SETTINGS(), DISK_SETTINGS::DISK_SETTINGS(), EDA_3D_VIEWER_SETTINGS::EDA_3D_VIEWER_SETTINGS(), EESCHEMA_SETTINGS::EESCHEMA_SETTINGS(), ERC_SETTINGS::ERC_SETTINGS(), FLUSH_TEST_SETTINGS::FLUSH_TEST_SETTINGS(), FOOTPRINT_EDITOR_SETTINGS::FOOTPRINT_EDITOR_SETTINGS(), formatFileContents(), 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(), NESTED_SETTINGS::SaveToFile(), SCHEMATIC_SETTINGS::SCHEMATIC_SETTINGS(), SPICE_SETTINGS::SPICE_SETTINGS(), Store(), SYMBOL_EDITOR_SETTINGS::SYMBOL_EDITOR_SETTINGS(), TEST_NESTED_SETTINGS::TEST_NESTED_SETTINGS(), TOOLBAR_SETTINGS::TOOLBAR_SETTINGS(), TUNING_PROFILES::TUNING_PROFILES(), and ~JSON_SETTINGS().
|
protectedinherited |
A pointer to the parent object to load and store from.
Definition at line 63 of file nested_settings.h.
Referenced by GetParent(), LoadFromFile(), NESTED_SETTINGS(), SaveToFile(), SetParent(), BOARD_DESIGN_SETTINGS::~BOARD_DESIGN_SETTINGS(), COMPONENT_CLASS_SETTINGS::~COMPONENT_CLASS_SETTINGS(), ERC_SETTINGS::~ERC_SETTINGS(), MIGRATING_NESTED_SETTINGS::~MIGRATING_NESTED_SETTINGS(), ~NESTED_SETTINGS(), NET_SETTINGS::~NET_SETTINGS(), SCHEMATIC_SETTINGS::~SCHEMATIC_SETTINGS(), TEST_NESTED_SETTINGS::~TEST_NESTED_SETTINGS(), and TUNING_PROFILES::~TUNING_PROFILES().
|
protectedinherited |
The path (in pointer format) of where to store this document in the parent.
Definition at line 66 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 708 of file board_design_settings.h.
Referenced by BOARD_DESIGN_SETTINGS(), countViaProtection(), dropViaProtection(), PCB_IO_KICAD_SEXPR::formatSetup(), PCB_WRITER_V10::formatSetup(), API_HANDLER_PCB::handleGetBoardDesignRules(), API_HANDLER_PCB::handleSetBoardDesignRules(), initFromOther(), operator==(), and PCB_IO_KICAD_SEXPR_PARSER::parseSetup().
| bool BOARD_DESIGN_SETTINGS::m_PlugViasFront |
Definition at line 707 of file board_design_settings.h.
Referenced by BOARD_DESIGN_SETTINGS(), countViaProtection(), dropViaProtection(), PCB_IO_KICAD_SEXPR::formatSetup(), PCB_WRITER_V10::formatSetup(), API_HANDLER_PCB::handleGetBoardDesignRules(), API_HANDLER_PCB::handleSetBoardDesignRules(), 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 401 of file json_settings.h.
Referenced by BOARD_DESIGN_SETTINGS::BOARD_DESIGN_SETTINGS(), JSON_SETTINGS(), Load(), ResetsParamsIfMissing(), and TEST_NESTED_SETTINGS::TEST_NESTED_SETTINGS().
|
protectedinherited |
Version of this settings schema.
Definition at line 404 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 672 of file board_design_settings.h.
Referenced by PANEL_SETUP_CONSTRAINTS::applyValues(), BOARD_DESIGN_SETTINGS(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), API_HANDLER_PCB::handleGetBoardDesignRules(), API_HANDLER_PCB::handleSetBoardDesignRules(), initFromOther(), PCB_IO_PADS::loadBoardSetup(), DRC_ENGINE::loadImplicitRules(), operator==(), and ValidateDesignRules().
| PNS::MEANDER_SETTINGS BOARD_DESIGN_SETTINGS::m_SingleTrackMeanderSettings |
Definition at line 650 of file board_design_settings.h.
Referenced by BOARD_DESIGN_SETTINGS(), PCB_TUNING_PATTERN::DefaultSettings(), DIALOG_BOARD_SETUP::DIALOG_BOARD_SETUP(), and PANEL_SETUP_TUNING_PATTERNS::ImportSettingsFrom().
| PNS::MEANDER_SETTINGS BOARD_DESIGN_SETTINGS::m_SkewMeanderSettings |
Definition at line 652 of file board_design_settings.h.
Referenced by BOARD_DESIGN_SETTINGS(), PCB_TUNING_PATTERN::DefaultSettings(), DIALOG_BOARD_SETUP::DIALOG_BOARD_SETUP(), and PANEL_SETUP_TUNING_PATTERNS::ImportSettingsFrom().
| int BOARD_DESIGN_SETTINGS::m_SolderMaskExpansion |
Definition at line 690 of file board_design_settings.h.
Referenced by BOARD_DESIGN_SETTINGS(), BOOST_AUTO_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOARD_ADAPTER::createLayers(), KIGFX::PCB_PAINTER::draw(), PCB_IO_KICAD_SEXPR::formatSetup(), PCB_WRITER_V10::formatSetup(), PCB_WRITER_V9::formatSetup(), API_HANDLER_PCB::handleGetBoardDesignRules(), API_HANDLER_PCB::handleSetBoardDesignRules(), initFromOther(), PCB_IO_PADS::loadBoardSetup(), PCB_IO_KICAD_LEGACY::loadSETUP(), operator==(), PCB_IO_KICAD_SEXPR_PARSER::parseSetup(), DIALOG_PLOT::reInitDialog(), DIALOG_PLOT::SetPlotFormat(), SILK_MASK_EXPANSION_FIXTURE::SILK_MASK_EXPANSION_FIXTURE(), and ValidateDesignRules().
| int BOARD_DESIGN_SETTINGS::m_SolderMaskMinWidth |
Definition at line 691 of file board_design_settings.h.
Referenced by BOARD_DESIGN_SETTINGS(), PCB_IO_KICAD_SEXPR::formatSetup(), PCB_WRITER_V10::formatSetup(), PCB_WRITER_V9::formatSetup(), GenerateLayerPoly(), API_HANDLER_PCB::handleGetBoardDesignRules(), API_HANDLER_PCB::handleSetBoardDesignRules(), initFromOther(), PCB_IO_KICAD_LEGACY::loadSETUP(), operator==(), PCB_IO_KICAD_SEXPR_PARSER::parseSetup(), PlotSolderMaskLayer(), DIALOG_PLOT::reInitDialog(), DIALOG_PLOT::SetPlotFormat(), SILK_MASK_EXPANSION_FIXTURE::SILK_MASK_EXPANSION_FIXTURE(), and ValidateDesignRules().
| int BOARD_DESIGN_SETTINGS::m_SolderMaskToCopperClearance |
Definition at line 693 of file board_design_settings.h.
Referenced by BOARD_DESIGN_SETTINGS(), BOOST_FIXTURE_TEST_CASE(), API_HANDLER_PCB::handleGetBoardDesignRules(), API_HANDLER_PCB::handleSetBoardDesignRules(), initFromOther(), operator==(), and ValidateDesignRules().
| int BOARD_DESIGN_SETTINGS::m_SolderPasteMargin |
Definition at line 696 of file board_design_settings.h.
Referenced by BOARD_DESIGN_SETTINGS(), PCB_IO_KICAD_SEXPR::formatSetup(), PCB_WRITER_V10::formatSetup(), PCB_WRITER_V9::formatSetup(), API_HANDLER_PCB::handleGetBoardDesignRules(), API_HANDLER_PCB::handleSetBoardDesignRules(), initFromOther(), PCB_IO_KICAD_LEGACY::loadSETUP(), operator==(), PCB_IO_KICAD_SEXPR_PARSER::parseSetup(), and ValidateDesignRules().
| double BOARD_DESIGN_SETTINGS::m_SolderPasteMarginRatio |
Definition at line 697 of file board_design_settings.h.
Referenced by BOARD_DESIGN_SETTINGS(), PCB_IO_KICAD_SEXPR::formatSetup(), PCB_WRITER_V10::formatSetup(), PCB_WRITER_V9::formatSetup(), API_HANDLER_PCB::handleGetBoardDesignRules(), API_HANDLER_PCB::handleSetBoardDesignRules(), initFromOther(), PCB_IO_KICAD_LEGACY::loadSETUP(), operator==(), PCB_IO_KICAD_SEXPR_PARSER::parseSetup(), and ValidateDesignRules().
|
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 794 of file board_design_settings.h.
Referenced by GetStackupDescriptor(), GetStackupDescriptor(), initFromOther(), and operator==().
| bool BOARD_DESIGN_SETTINGS::m_StyleFPBarcodes |
Definition at line 748 of file board_design_settings.h.
Referenced by BOARD_DESIGN_SETTINGS(), PANEL_SETUP_FORMATTING::ImportSettingsFrom(), initFromOther(), LoadFootprintFromProject(), operator==(), and FOOTPRINT_EDIT_FRAME::SaveFootprintToBoard().
| bool BOARD_DESIGN_SETTINGS::m_StyleFPDimensions |
Definition at line 747 of file board_design_settings.h.
Referenced by BOARD_DESIGN_SETTINGS(), PANEL_SETUP_FORMATTING::ImportSettingsFrom(), initFromOther(), LoadFootprintFromProject(), operator==(), and FOOTPRINT_EDIT_FRAME::SaveFootprintToBoard().
| bool BOARD_DESIGN_SETTINGS::m_StyleFPFields |
Definition at line 744 of file board_design_settings.h.
Referenced by BOARD_DESIGN_SETTINGS(), PANEL_SETUP_FORMATTING::ImportSettingsFrom(), initFromOther(), LoadFootprintFromProject(), operator==(), and FOOTPRINT_EDIT_FRAME::SaveFootprintToBoard().
| bool BOARD_DESIGN_SETTINGS::m_StyleFPShapes |
Definition at line 746 of file board_design_settings.h.
Referenced by BOARD_DESIGN_SETTINGS(), PANEL_SETUP_FORMATTING::ImportSettingsFrom(), initFromOther(), LoadFootprintFromProject(), operator==(), and FOOTPRINT_EDIT_FRAME::SaveFootprintToBoard().
| bool BOARD_DESIGN_SETTINGS::m_StyleFPText |
Definition at line 745 of file board_design_settings.h.
Referenced by BOARD_DESIGN_SETTINGS(), PANEL_SETUP_FORMATTING::ImportSettingsFrom(), initFromOther(), LoadFootprintFromProject(), 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 648 of file board_design_settings.h.
Referenced by BOARD_DESIGN_SETTINGS(), GetTeadropParamsList(), API_HANDLER_PCB::handleGetBoardDesignRules(), API_HANDLER_PCB::handleSetBoardDesignRules(), DIALOG_GLOBAL_EDIT_TEARDROPS::TransferDataFromWindow(), DIALOG_GLOBAL_EDIT_TEARDROPS::TransferDataToWindow(), and ValidateDesignRules().
| bool BOARD_DESIGN_SETTINGS::m_TempOverrideTrackWidth |
Definition at line 658 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 702 of file board_design_settings.h.
Referenced by BOARD_DESIGN_SETTINGS(), BOOST_AUTO_TEST_CASE(), PCB_IO_KICAD_SEXPR::formatSetup(), PCB_WRITER_V10::formatSetup(), PCB_WRITER_V9::formatSetup(), API_HANDLER_PCB::handleGetBoardDesignRules(), API_HANDLER_PCB::handleSetBoardDesignRules(), initFromOther(), operator==(), PCB_IO_KICAD_SEXPR_PARSER::parseSetup(), and SILK_MASK_EXPANSION_FIXTURE::SILK_MASK_EXPANSION_FIXTURE().
| bool BOARD_DESIGN_SETTINGS::m_TentViasFront |
Definition at line 701 of file board_design_settings.h.
Referenced by BOARD_DESIGN_SETTINGS(), BOOST_AUTO_TEST_CASE(), PCB_IO_KICAD_SEXPR::formatSetup(), PCB_WRITER_V10::formatSetup(), PCB_WRITER_V9::formatSetup(), API_HANDLER_PCB::handleGetBoardDesignRules(), API_HANDLER_PCB::handleSetBoardDesignRules(), initFromOther(), operator==(), PCB_IO_KICAD_SEXPR_PARSER::parseSetup(), and SILK_MASK_EXPANSION_FIXTURE::SILK_MASK_EXPANSION_FIXTURE().
| bool BOARD_DESIGN_SETTINGS::m_TextItalic[LAYER_CLASS_COUNT] |
Definition at line 731 of file board_design_settings.h.
Referenced by BOARD_DESIGN_SETTINGS(), GetTextItalic(), API_HANDLER_BOARD::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 729 of file board_design_settings.h.
Referenced by BOARD_DESIGN_SETTINGS(), GetTextSize(), API_HANDLER_BOARD::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 730 of file board_design_settings.h.
Referenced by BOARD_DESIGN_SETTINGS(), GetTextThickness(), API_HANDLER_BOARD::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 732 of file board_design_settings.h.
Referenced by BOARD_DESIGN_SETTINGS(), GetTextUpright(), API_HANDLER_BOARD::handleGetGraphicsDefaults(), initFromOther(), operator==(), and PCB_IO_KICAD_SEXPR_PARSER::parseDefaultTextDims().
| int BOARD_DESIGN_SETTINGS::m_TrackMinWidth |
Definition at line 663 of file board_design_settings.h.
Referenced by PANEL_SETUP_CONSTRAINTS::applyValues(), BOARD_DESIGN_SETTINGS(), BOOST_AUTO_TEST_CASE(), PCB_VIA_STACK::BuildMembers(), API_HANDLER_PCB::handleGetBoardDesignRules(), API_HANDLER_PCB::handleSetBoardDesignRules(), PNS_KICAD_IFACE_BASE::ImportSizes(), initFromOther(), PCB_IO_EAGLE::loadBoard(), PCB_IO_PADS::loadBoardSetup(), CADSTAR_PCB_ARCHIVE_LOADER::loadDesignRules(), DRC_ENGINE::loadImplicitRules(), PCB_IO_KICAD_LEGACY::loadSETUP(), operator==(), PCB_IO_EASYEDAPRO_PARSER::ParseBoard(), PCB_IO_EASYEDAPRO_V3_PARSER::ParseBoard(), PCB_IO_KICAD_SEXPR_PARSER::parseSetup(), ROUTER_TOOL::updateSizesAfterRouterEvent(), and ValidateDesignRules().
|
private |
Definition at line 764 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 638 of file board_design_settings.h.
Referenced by BOARD_DESIGN_SETTINGS(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), GetCurrentTrackWidth(), GetNextTrackWidthIndex(), API_HANDLER_PCB::handleGetBoardDesignRules(), API_HANDLER_PCB::handleSetBoardDesignRules(), 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 656 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 775 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 770 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 756 of file board_design_settings.h.
Referenced by PANEL_SETUP_CONSTRAINTS::applyValues(), BOARD_DESIGN_SETTINGS(), initFromOther(), and operator==().
|
private |
Number of user defined layers for this design.
Definition at line 779 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 722 of file board_design_settings.h.
Referenced by initFromOther(), PANEL_FP_USER_LAYER_NAMES::loadFPSettings(), FOOTPRINT_EDIT_FRAME::LoadSettings(), makeFpHolderBoard(), operator==(), APPEARANCE_CONTROLS::rebuildLayers(), and PANEL_FP_USER_LAYER_NAMES::TransferDataFromWindow().
| std::vector<VIA_DIMENSION> BOARD_DESIGN_SETTINGS::m_ViasDimensionsList |
Definition at line 639 of file board_design_settings.h.
Referenced by BOARD_DESIGN_SETTINGS(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), GetCurrentViaDrill(), GetCurrentViaSize(), GetNextViaSizeIndex(), API_HANDLER_PCB::handleGetBoardDesignRules(), API_HANDLER_PCB::handleSetBoardDesignRules(), initFromOther(), PCB_IO_PADS::loadBoardSetup(), PCB_IO_KICAD_LEGACY::loadSETUP(), FABMASTER::loadVias(), operator==(), PCB_IO_KICAD_SEXPR_PARSER::parseSetup(), SetViaSizeIndex(), TRACK_WIDTH_MENU::update(), VIA_SIZE_MENU::update(), PCB_EDIT_FRAME::UpdateViaSizeSelectBox(), ValidateDesignRules(), BOARD_EDITOR_CONTROL::ViaSizeDec(), and BOARD_EDITOR_CONTROL::ViaSizeInc().
|
private |
Definition at line 765 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 664 of file board_design_settings.h.
Referenced by PANEL_SETUP_CONSTRAINTS::applyValues(), BOARD_DESIGN_SETTINGS(), GetDesignRuleWarnings(), API_HANDLER_PCB::handleGetBoardDesignRules(), API_HANDLER_PCB::handleSetBoardDesignRules(), initFromOther(), PCB_IO_EAGLE::loadBoard(), CADSTAR_PCB_ARCHIVE_LOADER::loadDesignRules(), DRC_ENGINE::loadImplicitRules(), operator==(), PCB_IO_KICAD_SEXPR_PARSER::parseSetup(), and ValidateDesignRules().
| int BOARD_DESIGN_SETTINGS::m_ViasMinSize |
Definition at line 665 of file board_design_settings.h.
Referenced by PANEL_SETUP_CONSTRAINTS::applyValues(), BOARD_DESIGN_SETTINGS(), GetDesignRuleWarnings(), API_HANDLER_PCB::handleGetBoardDesignRules(), ROUTER_TOOL::handleLayerSwitch(), API_HANDLER_PCB::handleSetBoardDesignRules(), PNS_KICAD_IFACE_BASE::ImportSizes(), initFromOther(), PCB_IO_EAGLE::loadBoard(), PCB_IO_PADS::loadBoardSetup(), CADSTAR_PCB_ARCHIVE_LOADER::loadDesignRules(), DRC_ENGINE::loadImplicitRules(), PCB_IO_KICAD_LEGACY::loadSETUP(), FABMASTER::loadVias(), operator==(), PCB_IO_KICAD_SEXPR_PARSER::parseSetup(), and ValidateDesignRules().
|
private |
Definition at line 767 of file board_design_settings.h.
Referenced by BOARD_DESIGN_SETTINGS(), GetViaStackIndex(), initFromOther(), operator==(), and SetViaStackIndex().
| std::vector<VIA_STACK_PRESET> BOARD_DESIGN_SETTINGS::m_ViaStackPresets |
Definition at line 640 of file board_design_settings.h.
Referenced by BOARD_DESIGN_SETTINGS(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), initFromOther(), PANEL_SETUP_VIA_STACKS::loadFrom(), ROUTER_TOOL::onViaStackCommand(), operator==(), PCB_EDIT_FRAME::SelectViaStack_Event(), PANEL_SETUP_VIA_STACKS::TransferDataFromWindow(), and PCB_EDIT_FRAME::UpdateViaStackSelectBox().
|
protectedinherited |
Whether or not the backing store file should be written.
Definition at line 386 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 684 of file board_design_settings.h.
Referenced by PANEL_SETUP_CONSTRAINTS::applyValues(), BOARD_DESIGN_SETTINGS(), initFromOther(), LoadFromFile(), and operator==().
| std::map<PCB_LAYER_ID, ZONE_LAYER_PROPERTIES> BOARD_DESIGN_SETTINGS::m_ZoneLayerProperties |
Definition at line 725 of file board_design_settings.h.
Referenced by addTransformFeatures(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), countZoneDefaults(), dropZoneDefaults(), PCB_IO_KICAD_SEXPR::formatSetup(), PCB_WRITER_V10::formatSetup(), and PCB_IO_KICAD_SEXPR_PARSER::parseSetup().