39 m_ShowPinElectricalType( true ),
41 m_EditComponentVisibleColumns()
95 nlohmann::json::json_pointer gridSizePtr =
PointerFromString(
"window.grid.last_size" );
99 ( *this )[gridSizePtr] = ( *this )[gridSizePtr].get<
int>() - 4;
104 ( *this )[gridSizePtr] = 1;
107 ret &= fromLegacy<int>( aCfg,
"DefaultWireWidth",
"defaults.line_width" );
108 ret &= fromLegacy<int>( aCfg,
"DefaultPinLength",
"defaults.pin_length" );
109 ret &= fromLegacy<int>( aCfg,
"LibeditPinNameSize",
"defaults.pin_name_size" );
110 ret &= fromLegacy<int>( aCfg,
"LibeditPinNumSize",
"defaults.pin_num_size" );
112 ret &= fromLegacy<int>( aCfg,
"LibeditRepeatLabelInc",
"repeat.label_delta" );
113 ret &= fromLegacy<int>( aCfg,
"LibeditPinRepeatStep",
"repeat.pin_step" );
114 ret &= fromLegacy<int>( aCfg,
"LibeditRepeatStepX",
"repeat.x_step" );
115 ret &= fromLegacy<int>( aCfg,
"LibeditRepeatStepY",
"repeat.y_step" );
117 ret &= fromLegacy<int>( aCfg,
"LibeditLibWidth",
"lib_table_width" );
118 ret &= fromLegacy<bool>( aCfg,
"LibeditShowPinElectricalType",
"show_pin_electrical_type" );
120 ret &=
fromLegacyString( aCfg,
"LibEditFieldsShownColumns",
"edit_component_visible_columns" );
122 ret &=
fromLegacyString( aCfg,
"PinTableShownColumns",
"pin_table_visible_columns" );
std::vector< PARAM_BASE * > m_params
The list of parameters (owned by this object)
virtual bool MigrateFromLegacy(wxConfigBase *aCfg) override
Migrates from wxConfig to JSON-based configuration.
#define DEFAULT_PIN_LENGTH
The default pin number size when creating pins(can be changed in preference menu)
APP_SETTINGS_BASE is a settings class that should be derived for each standalone KiCad application.
wxString m_PinTableVisibleColumns
#define DEFAULT_PINNUM_SIZE
The default pin name size when creating pins(can be changed in preference menu)
bool m_ShowPinElectricalType
#define DEFAULT_PINNAME_SIZE
The default selection highlight thickness (can be changed in preference menu)
#define DEFAULT_LINE_THICKNESS
The default wire width in mils. (can be changed in preference menu)
virtual bool MigrateFromLegacy(wxConfigBase *aLegacyConfig) override
Migrates from wxConfig to JSON-based configuration.
bool fromLegacyString(wxConfigBase *aConfig, const std::string &aKey, const std::string &aDest)
Translates a legacy wxConfig string value to a given JSON pointer value.
wxString m_EditComponentVisibleColumns
const int libeditSchemaVersion
! Update the schema version whenever a migration is required
bool m_UseEeschemaColorSettings
#define DEFAULT_TEXT_SIZE
Ratio of the font height to the baseline of the text above the wire.
static nlohmann::json::json_pointer PointerFromString(std::string aPath)
Builds a JSON pointer based on a given string.
void SetLegacyFilename(const wxString &aFilename)