44 m_JunctionSizeChoice( 3 ),
45 m_IntersheetRefsShow( false ),
46 m_IntersheetRefsFormatShort( false ),
49 m_SpiceAdjustPassiveValues( false )
53 int defaultLineThickness =
55 int defaultWireThickness =
57 int defaultBusThickness =
61 int defaultPinSymbolSize =
63 int defaultJunctionSize =
65 int defaultJunctionSizeChoice =
67 bool defaultIntersheetsRefShow =
69 bool defaultIntersheetsRefFormatShort =
71 wxString defaultIntersheetsRefPrefix =
73 wxString defaultIntersheetsRefSuffix =
102 Mils2iu( defaultTextSize ), Mils2iu( 5 ), Mils2iu( 1000 ),
111 Mils2iu( defaultPinSymbolSize ), Mils2iu( 5 ), Mils2iu( 1000 ),
116 Mils2iu( defaultJunctionSize ), Mils2iu( 5 ), Mils2iu( 1000 ), 1 /
IU_PER_MILS ) );
121 defaultJunctionSizeChoice) );
132 {
"name", field.m_Name },
133 {
"visible", field.m_Visible },
134 {
"url", field.m_URL }
142 if( !aJson.empty() && aJson.is_array() )
148 if( !entry.contains(
"name" ) || !entry.contains(
"url" )
149 || !entry.contains(
"visible" ) )
153 field.
m_URL = entry[
"url"].get<
bool>();
154 field.
m_Visible = entry[
"visible"].get<
bool>();
159 auto* cfg = dynamic_cast<EESCHEMA_SETTINGS*>(
Kiface().KifaceSettings() );
164 wxString templateFieldNames = cfg->m_Drawing.field_names;
166 if( !templateFieldNames.IsEmpty() )
168 TEMPLATE_FIELDNAMES_LEXER field_lexer(
TO_UTF8( templateFieldNames ) );
#define DEFAULT_SIZE_TEXT
This is the "default-of-the-default" hardcoded text size; individual application define their own def...
static int * SubpartFirstIdPtr()
Return a reference to m_subpartFirstId, only for read/save setting functions.
std::vector< PARAM_BASE * > m_params
The list of parameters (owned by this object)
void AddTemplateFieldName(const TEMPLATE_FIELDNAME &aFieldName, bool aGlobal)
Insert or append a wanted symbol field name into the field names template.
virtual ~SCHEMATIC_SETTINGS()
void Parse(TEMPLATE_FIELDNAMES_LEXER *in, bool aGlobal)
Fill this object from information in the input stream handled by #TEMPLATE_FIELDNAMES_LEXER.
TEMPLATES m_TemplateFieldNames
wxString intersheets_ref_prefix
#define DEFAULT_JUNCTION_DIAM
The default bus and wire enty size in mils.
void DeleteAllFieldNameTemplates(bool aGlobal)
Delete the entire contents.
static wxString m_PageLayoutDescrFileName
the name of the page layout descr file, or emty to used the default pagelayout
int default_line_thickness
#define TO_UTF8(wxstring)
Convert a wxString to a UTF8 encoded C string for all wxWidgets build modes.
NESTED_SETTINGS is a JSON_SETTINGS that lives inside a JSON_SETTINGS.
bool m_IntersheetRefsShow
#define DEFAULT_IREF_PREFIX
The intersheets references suffix string.
const int schSettingsSchemaVersion
KIFACE_I & Kiface()
Global KIFACE_I "get" accessor.
JSON_SETTINGS * m_parent
A pointer to the parent object to load and store from.
int m_DefaultWireThickness
Represents a parameter that has a scaling factor between the value in the file and the value used int...
wxString m_IntersheetRefsSuffix
wxString intersheets_ref_suffix
#define DEFAULT_IREF_SUFFIX
Radius of snap "gravity well".
#define DEFAULT_LINE_THICKNESS
The default wire width in mils. (can be changed in preference menu)
int default_bus_thickness
#define DEFAULT_BUS_THICKNESS
The default noconnect size in mils.
SCHEMATIC_SETTINGS(JSON_SETTINGS *aParent, const std::string &aPath)
int default_junction_size
#define TXT_MARGIN
The default pin len value when creating pins(can be changed in preference menu)
#define DEFAULT_WIRE_THICKNESS
The default bus width in mils. (can be changed in preference menu)
static int * SubpartIdSeparatorPtr()
Return a reference to m_subpartIdSeparator, only for read/save setting functions.
Hold a name of a symbol's field, field value, and default visibility.
#define DEFAULT_TEXT_SIZE
Ratio of the font height to the baseline of the text above the wire.
int default_wire_thickness
wxString m_PlotDirectoryName
bool intersheets_ref_show
void ReleaseNestedSettings(NESTED_SETTINGS *aSettings)
Saves and frees a nested settings object, if it exists within this one.
BASE_SCREEN class implementation.
Hold an error message and may be used when throwing exceptions containing meaningful error messages.
wxString m_SpiceCommandString
int m_DefaultBusThickness
const TEMPLATE_FIELDNAMES & GetTemplateFieldNames()
Return a template field name list for read only access.
#define DEFAULT_TEXT_OFFSET_RATIO
The offset of the pin name string from the end of the pin in mils.
bool m_SpiceAdjustPassiveValues
bool intersheets_ref_short
wxString m_IntersheetRefsPrefix
bool m_IntersheetRefsFormatShort