26#include <dialogs/dialog_bom_cfg_lexer.h>
42using namespace T_BOMCFG_T;
51 {
"name",
"bom_csv_grouped_extra" },
52 {
"path",
"bom_csv_grouped_extra.py" }
55 {
"name",
"bom_csv_grouped_by_value" },
56 {
"path",
"bom_csv_grouped_by_value.py" }
59 {
"name",
"bom_csv_grouped_by_value_with_fp" },
60 {
"path",
"bom_csv_grouped_by_value_with_fp.py" }
67 static wxAuiPaneInfo paneInfo;
69 paneInfo.Name( wxS(
"NetNavigator" ) )
70 .Caption(
_(
"Net Navigator" ) )
71 .CaptionVisible(
true )
73 .Left().Layer( 3 ).Position( 0 )
75 .BottomDockable(
false )
79 .FloatingSize( 200, 200 )
80 .FloatingPosition( 50, 200 )
89 static wxAuiPaneInfo paneInfo;
92 .Caption(
_(
"Properties" ) )
93 .CaptionVisible(
true )
95 .Left().Layer( 3 ).Position( 2 )
97 .BottomDockable(
false )
99 .MinSize( aWindow->FromDIP( wxSize( 240, 60 ) ) )
100 .BestSize( aWindow->FromDIP( wxSize( 300, 200 ) ) )
101 .FloatingSize( aWindow->FromDIP( wxSize( 300, 400 ) ) )
102 .FloatingPosition( aWindow->FromDIP( wxPoint( 50, 200 ) ) )
111 static wxAuiPaneInfo paneInfo;
113 paneInfo.Name( wxS(
"SelectionFilter" ) )
114 .Caption(
_(
"Selection Filter" ) )
115 .CaptionVisible(
true )
117 .Left().Layer( 3 ).Position( 4 )
118 .TopDockable(
false )
119 .BottomDockable(
false )
120 .CloseButton(
false )
121 .MinSize( aWindow->FromDIP( wxSize( 180, -1 ) ) )
122 .BestSize( aWindow->FromDIP( wxSize( 180, -1 ) ) )
131 static wxAuiPaneInfo paneInfo;
134 .Caption(
_(
"Design Blocks" ) )
135 .CaptionVisible(
true )
137 .Right().Layer( 3 ).Position( 2 )
138 .TopDockable(
false )
139 .BottomDockable(
false )
140 .CloseButton(
false )
141 .MinSize( aWindow->FromDIP( wxSize( 240, 60 ) ) )
142 .BestSize( aWindow->FromDIP( wxSize( 300, 200 ) ) )
143 .FloatingSize( aWindow->FromDIP( wxSize( 800, 600 ) ) )
144 .FloatingPosition( aWindow->FromDIP( wxPoint( 50, 200 ) ) )
156 m_FindReplaceExtra(),
161 m_FieldEditorPanel(),
169 m_RescueNeverShow( false )
250 new PARAM<bool>(
"appearance.show_sheet_filename_case_sensitivity_dialog",
359 LINE_MODE::LINE_MODE_90 ) );
376 m_params.emplace_back(
new PARAM <int>(
"drawing.junction_size_choice",
413 m_params.emplace_back(
new PARAM<int>(
"selection.highlight_netclass_colors_thickness",
445 [&](
const nlohmann::json& aObj )
447 if( !aObj.is_array() )
458 [&](
const nlohmann::json& aObj )
460 if( !aObj.is_array() )
466 const nlohmann::json& list = aObj;
604 "simulator.mouse_wheel_actions.vertical_unmodified",
606 SIM_MOUSE_WHEEL_ACTION::ZOOM, SIM_MOUSE_WHEEL_ACTION::NONE,
607 SIM_MOUSE_WHEEL_ACTION::ZOOM_VERTICALLY ) );
610 "simulator.mouse_wheel_actions.vertical_with_ctrl",
612 SIM_MOUSE_WHEEL_ACTION::PAN_LEFT_RIGHT, SIM_MOUSE_WHEEL_ACTION::NONE,
613 SIM_MOUSE_WHEEL_ACTION::ZOOM_VERTICALLY ) );
616 "simulator.mouse_wheel_actions.vertical_with_shift",
618 SIM_MOUSE_WHEEL_ACTION::PAN_UP_DOWN, SIM_MOUSE_WHEEL_ACTION::NONE,
619 SIM_MOUSE_WHEEL_ACTION::ZOOM_VERTICALLY ) );
622 "simulator.mouse_wheel_actions.vertical_with_alt",
624 SIM_MOUSE_WHEEL_ACTION::NONE, SIM_MOUSE_WHEEL_ACTION::NONE,
625 SIM_MOUSE_WHEEL_ACTION::ZOOM_VERTICALLY ) );
628 "simulator.mouse_wheel_actions.horizontal",
630 SIM_MOUSE_WHEEL_ACTION::NONE, SIM_MOUSE_WHEEL_ACTION::ZOOM_VERTICALLY ) );
750 if( std::optional<int> optval = Get<int>(
"lib_tree.column_width" ) )
753 Set(
"lib_tree.column_width", 300 );
775 std::string gridSizePtr =
"window.grid.last_size";
777 if( std::optional<int> currentSize = Get<int>( gridSizePtr ) )
779 Set( gridSizePtr, *currentSize - 4 );
784 Set( gridSizePtr, 1 );
787 ret &= fromLegacy<bool>( aCfg,
"FootprintPreview",
"appearance.footprint_preview" );
788 ret &= fromLegacy<bool>( aCfg,
"NavigatorStaysOpen",
"appearance.navigator_stays_open" );
789 ret &= fromLegacy<bool>( aCfg,
"PrintSheetReferenceAndTitleBlock",
790 "appearance.print_sheet_reference" );
791 ret &= fromLegacy<bool>( aCfg,
"ShowHiddenPins",
"appearance.show_hidden_pins" );
792 ret &= fromLegacy<bool>( aCfg,
"ShowIllegalSymbolLibDialog",
793 "appearance.show_illegal_symbol_lib_dialog" );
794 ret &= fromLegacy<bool>( aCfg,
"ShowPageLimits",
"appearance.show_page_limits" );
795 ret &= fromLegacy<bool>( aCfg,
"ShowSheetFileNameCaseSensitivityDlg",
796 "appearance.show_sheet_filename_case_sensitivity_dialog" );
798 ret &= fromLegacy<bool>( aCfg,
"AutoplaceFields",
"autoplace_fields.enable" );
799 ret &= fromLegacy<bool>( aCfg,
"AutoplaceJustify",
"autoplace_fields.allow_rejustify" );
800 ret &= fromLegacy<bool>( aCfg,
"AutoplaceAlign",
"autoplace_fields.align_to_grid" );
802 ret &= fromLegacy<int>( aCfg,
"DefaultBusWidth",
"drawing.default_bus_thickness" );
803 ret &= fromLegacy<int>( aCfg,
"DefaultJunctionSize",
"drawing.default_junction_size" );
804 ret &= fromLegacy<int>( aCfg,
"DefaultDrawLineWidth",
"drawing.default_line_thickness" );
805 ret &= fromLegacy<int>( aCfg,
"RepeatStepX",
"drawing.default_repeat_offset_x" );
806 ret &= fromLegacy<int>( aCfg,
"RepeatStepY",
"drawing.default_repeat_offset_y" );
807 ret &= fromLegacy<int>( aCfg,
"DefaultWireWidth",
"drawing.default_wire_thickness" );
809 ret &= fromLegacy<bool>( aCfg,
"HorizVertLinesOnly",
"drawing.line_mode" );
810 ret &= fromLegacy<int>( aCfg,
"RepeatLabelIncrement",
"drawing.repeat_label_increment" );
812 ret &= fromLegacy<bool>( aCfg,
"DragActionIsMove",
"input.drag_is_move" );
814 ret &= fromLegacy<int>( aCfg,
"SelectionThickness",
"selection.thickness" );
815 ret &= fromLegacy<bool>( aCfg,
"SelectionDrawChildItems",
"selection.draw_selected_children" );
816 ret &= fromLegacy<bool>( aCfg,
"SelectionFillShapes",
"selection.fill_shapes" );
817 ret &= fromLegacy<bool>( aCfg,
"SelectPinSelectSymbolOpt",
818 "selection.select_pin_selects_symbol" );
820 ret &= fromLegacy<int>( aCfg,
"AnnotateAlgoOption",
"annotation.method" );
821 ret &= fromLegacy<int>( aCfg,
"AnnotateFilterMsg",
"annotation.messages_filter" );
822 ret &= fromLegacy<int>( aCfg,
"AnnotateSortOption",
"annotation.sort_order" );
824 ret &=
fromLegacyString( aCfg,
"bom_plugin_selected",
"bom.selected_plugin" );
830 "edit_sch_component.visible_columns" );
832 ret &= fromLegacy<bool>( aCfg,
"PageSettingsExportRevision",
"page_settings.export_revision" );
833 ret &= fromLegacy<bool>( aCfg,
"PageSettingsExportDate",
"page_settings.export_date" );
834 ret &= fromLegacy<bool>( aCfg,
"PageSettingsExportTitle",
"page_settings.export_title" );
835 ret &= fromLegacy<bool>( aCfg,
"PageSettingsExportCompany",
"page_settings.export_company" );
836 ret &= fromLegacy<bool>( aCfg,
"PageSettingsExportComment1",
"page_settings.export_comment1" );
837 ret &= fromLegacy<bool>( aCfg,
"PageSettingsExportComment2",
"page_settings.export_comment2" );
838 ret &= fromLegacy<bool>( aCfg,
"PageSettingsExportComment3",
"page_settings.export_comment3" );
839 ret &= fromLegacy<bool>( aCfg,
"PageSettingsExportComment4",
"page_settings.export_comment4" );
840 ret &= fromLegacy<bool>( aCfg,
"PageSettingsExportComment5",
"page_settings.export_comment5" );
841 ret &= fromLegacy<bool>( aCfg,
"PageSettingsExportComment6",
"page_settings.export_comment6" );
842 ret &= fromLegacy<bool>( aCfg,
"PageSettingsExportComment7",
"page_settings.export_comment7" );
843 ret &= fromLegacy<bool>( aCfg,
"PageSettingsExportComment8",
"page_settings.export_comment8" );
844 ret &= fromLegacy<bool>( aCfg,
"PageSettingsExportComment9",
"page_settings.export_comment9" );
848 constexpr int max_custom_commands = 8;
849 nlohmann::json js_cmd = nlohmann::json::array();
850 nlohmann::json js_title = nlohmann::json::array();
851 wxString cmd_key, title_key, cmd, title;
853 for(
int i = 1; i <= max_custom_commands; ++i )
856 cmd_key.Printf(
"CustomNetlistCommand%d", i );
857 title_key.Printf(
"CustomNetlistTitle%d", i );
859 if( aCfg->Read( cmd_key, &cmd ) && aCfg->Read( title_key, &title )
860 && !cmd.IsEmpty() && !title.IsEmpty() )
862 js_cmd.push_back( cmd.ToUTF8() );
863 js_title.push_back( title.ToUTF8() );
867 Set(
"netlist.custom_command_titles", js_title );
868 Set(
"netlist.custom_command_paths", js_cmd );
877 aCfg->SetPath(
"SymbolFieldEditor/Show/" );
879 nlohmann::json js = nlohmann::json( {} );
884 while( aCfg->GetNextEntry( key, index ) )
886 if( aCfg->Read( key, &value ) )
888 std::string key_utf( key.ToUTF8() );
892 js[ std::move( key_utf ) ] = value;
901 Set(
"field_editor.fields_show", js );
903 aCfg->SetPath(
"../GroupBy" );
905 while( aCfg->GetNextEntry( key, index ) )
907 if( aCfg->Read( key, &value ) )
909 std::string key_utf( key.ToUTF8() );
913 js[ std::move( key_utf ) ] = value;
922 Set(
"field_editor.fields_group_by", js );
924 aCfg->SetPath(
"../.." );
927 ret &= fromLegacy<bool>( aCfg,
"PlotModeColor",
"plot.color" );
928 ret &= fromLegacy<int>( aCfg,
"PlotFormat",
"plot.format" );
929 ret &= fromLegacy<bool>( aCfg,
"PlotFrameRef",
"plot.frame_reference" );
930 ret &= fromLegacy<bool>( aCfg,
"PlotHPGLOrg",
"plot.hpgl_origin" );
931 ret &= fromLegacy<int>( aCfg,
"PlotHPGLPaperSize",
"plot.hpgl_paper_size" );
932 ret &= fromLegacy<double>( aCfg,
"PlotHPGLPenSize",
"plot.hpgl_pen_size" );
934 ret &= fromLegacy<int>( aCfg,
"SIM_PLOT_FRAMEPos_x",
"simulator.window.pos_x" );
935 ret &= fromLegacy<int>( aCfg,
"SIM_PLOT_FRAMEPos_y",
"simulator.window.pos_y" );
936 ret &= fromLegacy<int>( aCfg,
"SIM_PLOT_FRAMESize_x",
"simulator.window.size_x" );
937 ret &= fromLegacy<int>( aCfg,
"SIM_PLOT_FRAMESize_y",
"simulator.window.size_y" );
938 ret &= fromLegacy<bool>( aCfg,
"SIM_PLOT_FRAMEMaximized",
"simulator.window.maximized" );
939 ret &=
fromLegacyString( aCfg,
"SIM_PLOT_FRAMEPerspective",
"simulator.window.perspective" );
940 ret &=
fromLegacyString( aCfg,
"SIM_PLOT_FRAMEMostRecentlyUsedPath",
"simulator.mru_path" );
941 ret &= fromLegacy<int>( aCfg,
"SimPlotPanelWidth",
"simulator.plot_panel_width" );
942 ret &= fromLegacy<int>( aCfg,
"SimPlotPanelHeight",
"simulator.plot_panel_height" );
943 ret &= fromLegacy<int>( aCfg,
"SimSignalPanelHeight",
"simulator.signal_panel_height" );
944 ret &= fromLegacy<int>( aCfg,
"SimCursorsPanelHeight",
"simulator.cursors_panel_height" );
945 ret &= fromLegacy<bool>( aCfg,
"SimPlotWhiteBg",
"simulator.white_background" );
947 ret &= fromLegacy<int>( aCfg,
"SymbolChooserHSashPosition",
"symbol_chooser.sash_pos_h" );
948 ret &= fromLegacy<int>( aCfg,
"SymbolChooserVSashPosition",
"symbol_chooser.sash_pos_v" );
949 ret &= fromLegacy<int>( aCfg,
"SymbolChooserWidth",
"symbol_chooser.width" );
950 ret &= fromLegacy<int>( aCfg,
"SymbolChooserHeight",
"symbol_chooser.height" );
951 ret &= fromLegacy<bool>( aCfg,
"SymbolChooserKeepSymbol",
"symbol_chooser.keep_symbol" );
952 ret &= fromLegacy<bool>( aCfg,
"SymbolChooserUseUnits",
"symbol_chooser.place_all_units" );
954 const std::string vlf =
"ViewlibFrame";
955 ret &= fromLegacy<bool>( aCfg, vlf +
"Maximized",
"lib_view.window.maximized" );
956 ret &=
fromLegacyString( aCfg, vlf +
"MostRecentlyUsedPath",
"lib_view.window.mru_path" );
957 ret &= fromLegacy<int>( aCfg, vlf +
"Size_x",
"lib_view.window.size_x" );
958 ret &= fromLegacy<int>( aCfg, vlf +
"Size_y",
"lib_view.window.size_y" );
959 ret &=
fromLegacyString( aCfg, vlf +
"Perspective",
"lib_view.window.perspective" );
960 ret &= fromLegacy<int>( aCfg, vlf +
"Pos_x",
"lib_view.window.pos_x" );
961 ret &= fromLegacy<int>( aCfg, vlf +
"Pos_y",
"lib_view.window.pos_y" );
962 ret &= fromLegacy<int>( aCfg,
"ViewLiblistWidth",
"lib_view.lib_list_width" );
963 ret &= fromLegacy<int>( aCfg,
"ViewCmplistWidth",
"lib_view.cmp_list_width" );
964 ret &= fromLegacy<bool>( aCfg,
965 "ViewCmpShowPinElectricalType",
"lib_view.show_pin_electrical_type" );
966 ret &= fromLegacy<bool>( aCfg, vlf +
"ShowGrid",
"lib_view.grid.show" );
967 ret &= fromLegacy<int>( aCfg, vlf +
"_LastGridSize",
"lib_view.grid.last_size" );
969 ret &= fromLegacy<bool>( aCfg,
"RescueNeverShow",
"system.never_show_rescue_dialog" );
974 if( aCfg->Read(
"MoveWarpsCursor", &tmp ) )
979 auto migrateLegacyColor = [&] (
const std::string& aKey,
int aLayerId ) {
982 if( aCfg->Read( aKey, &str ) )
990 migrateLegacyColor(
"Color4DBusEx",
LAYER_BUS );
1002 migrateLegacyColor(
"Color4DNoteEx",
LAYER_NOTES );
1003 migrateLegacyColor(
"Color4DPinEx",
LAYER_PIN );
1004 migrateLegacyColor(
"Color4DPinNameEx",
LAYER_PINNAM );
1008 migrateLegacyColor(
"Color4DSheetEx",
LAYER_SHEET );
1013 migrateLegacyColor(
"Color4DWireEx",
LAYER_WIRE );
1024 libedit->MigrateFromLegacy( aCfg );
1040 BOM_CFG_PARSER( std::vector<EESCHEMA_SETTINGS::BOM_PLUGIN_SETTINGS>* aPluginList,
1041 const char* aData,
const wxString& aSource );
1061 wxString list = *Get<wxString>(
"bom.plugins" );
1083 nlohmann::json js = nlohmann::json::array();
1087 nlohmann::json pluginJson;
1089 pluginJson[
"name"] = plugin.
name.ToUTF8();
1090 pluginJson[
"path"] = plugin.
path.ToUTF8();
1091 pluginJson[
"command"] = plugin.
command.ToUTF8();
1093 js.push_back( pluginJson );
1101 const nlohmann::json& aObj )
1103 std::vector<EESCHEMA_SETTINGS::BOM_PLUGIN_SETTINGS> ret;
1105 wxASSERT( aObj.is_array() );
1107 for(
const nlohmann::json& entry : aObj )
1109 if( entry.empty() || !entry.is_object() )
1112 if( !entry.contains(
"name" ) || !entry.contains(
"path" ) )
1116 entry.at(
"path" ).get<wxString>() );
1118 if( entry.contains(
"command" ) )
1119 plugin.
command = entry.at(
"command" ).get<wxString>();
1121 ret.emplace_back( plugin );
1130 nlohmann::json js = nlohmann::json::array();
1134 nlohmann::json pluginJson;
1136 pluginJson[
"name"] = plugin.
name.ToUTF8();
1137 pluginJson[
"path"] = plugin.
path.ToUTF8();
1138 pluginJson[
"command"] = plugin.
command.ToUTF8();
1140 js.push_back( pluginJson );
1148 const nlohmann::json& aObj )
1150 std::vector<EESCHEMA_SETTINGS::NETLIST_PLUGIN_SETTINGS> ret;
1152 wxASSERT( aObj.is_array() );
1154 for(
const nlohmann::json& entry : aObj )
1156 if( entry.empty() || !entry.is_object() )
1159 if( !entry.contains(
"name" ) || !entry.contains(
"path" ) )
1163 entry.at(
"path" ).get<wxString>() );
1165 if( entry.contains(
"command" ) )
1166 plugin.
command = entry.at(
"command" ).get<wxString>();
1168 ret.emplace_back( plugin );
1176 const char* aLine,
const wxString& aSource ) :
1177 DIALOG_BOM_CFG_LEXER( aLine, aSource )
1179 wxASSERT( aPluginList );
1188 while( ( token = NextTok() ) != T_RIGHT )
1193 if( token == T_LEFT )
1196 if( token == T_plugins )
1218 NeedSYMBOLorNUMBER();
1219 settings.
path = FromUTF8();
1223 while( ( token = NextTok() ) != T_RIGHT )
1234 NeedSYMBOLorNUMBER();
1236 settings.
command = FromUTF8();
1243 NeedSYMBOLorNUMBER();
1245 wxString option = FromUTF8();
1247 if( option.StartsWith( wxS(
"nickname=" ), &str ) )
1248 settings.
name = str;
1255 Unexpected( CurText() );
APP_SETTINGS_BASE is a settings class that should be derived for each standalone KiCad application.
virtual bool MigrateFromLegacy(wxConfigBase *aCfg) override
Migrates from wxConfig to JSON-based configuration.
bool migrateLibTreeWidth()
Migrates the library tree width setting from a single column (Item) to multi-column.
Used for parsing legacy-format bom plugin configurations.
BOM_CFG_PARSER(std::vector< EESCHEMA_SETTINGS::BOM_PLUGIN_SETTINGS > *aPluginList, const char *aData, const wxString &aSource)
std::vector< EESCHEMA_SETTINGS::BOM_PLUGIN_SETTINGS > * m_pluginList
Color settings are a bit different than most of the settings objects in that there can be more than o...
void SetColor(int aLayer, const COLOR4D &aColor)
static const wxString PropertiesPaneName()
static const wxString DesignBlocksPaneName()
PANEL_DESIGN_BLOCK_CHOOSER m_DesignBlockChooserPanel
PANEL_ANNOTATE m_AnnotatePanel
static std::vector< BOM_PLUGIN_SETTINGS > DefaultBomPlugins()
bool migrateBomSettings()
PANEL_NETLIST m_NetlistPanel
nlohmann::json bomSettingsToJson() const
virtual bool MigrateFromLegacy(wxConfigBase *aLegacyConfig) override
Migrates from wxConfig to JSON-based configuration.
nlohmann::json netlistSettingsToJson() const
PANEL_SYM_CHOOSER m_SymChooserPanel
PAGE_SETTINGS m_PageSettings
static std::vector< BOM_PLUGIN_SETTINGS > bomSettingsFromJson(const nlohmann::json &aObj)
FIND_REPLACE_EXTRA m_FindReplaceExtra
wxString m_lastSymbolLibDir
PANEL_LIB_VIEW m_LibViewPanel
AUTOPLACE_FIELDS m_AutoplaceFields
DIALOG_IMPORT_GRAPHICS m_ImportGraphics
static std::vector< NETLIST_PLUGIN_SETTINGS > netlistSettingsFromJson(const nlohmann::json &aObj)
PANEL_FIELD_EDITOR m_FieldEditorPanel
Hold an error message and may be used when throwing exceptions containing meaningful error messages.
bool fromLegacyString(wxConfigBase *aConfig, const std::string &aKey, const std::string &aDest)
Translates a legacy wxConfig string value to a given JSON pointer value.
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 l...
bool Contains(const std::string &aPath) const
std::vector< PARAM_BASE * > m_params
The list of parameters (owned by this object)
void registerMigration(int aOldSchemaVersion, int aNewSchemaVersion, std::function< bool(void)> aMigrator)
Registers a migration from one schema version to another.
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 function...
wxString GetFilename() const
A color representation with 4 components: red, green, blue, alpha.
Stores an enum as an integer.
Like a normal param, but with custom getter and setter functions.
Represents a map of <std::string, Value>.
virtual COMMON_SETTINGS * GetCommonSettings() const
virtual SETTINGS_MANAGER & GetSettingsManager() const
T * GetAppSettings()
Returns a handle to the a given settings by type If the settings have already been loaded,...
void SaveColorSettings(COLOR_SETTINGS *aSettings, const std::string &aNamespace="")
Safely saves a COLOR_SETTINGS to disk, preserving any changes outside the given namespace.
COLOR_SETTINGS * GetMigratedColorSettings()
Returns a color theme for storing colors migrated from legacy (5.x and earlier) settings,...
#define DEFAULT_BUS_WIDTH_MILS
The default noconnect size in mils.
#define DEFAULT_JUNCTION_DIAM
The default bus and wire entry size in mils.
#define DEFAULT_WIRE_WIDTH_MILS
The default bus width in mils. (can be changed in preference menu)
#define DEFAULT_LINE_WIDTH_MILS
The default wire width in mils. (can be changed in preference menu)
#define DEFAULT_TEXT_SIZE
Ratio of the font height to the baseline of the text above the wire.
const nlohmann::json defaultBomPlugins
Default value for bom.plugins.
const wxAuiPaneInfo & defaultSchSelectionFilterPaneInfo(wxWindow *aWindow)
const wxAuiPaneInfo & defaultPropertiesPaneInfo(wxWindow *aWindow)
const wxAuiPaneInfo & defaultNetNavigatorPaneInfo()
const int eeschemaSchemaVersion
! Update the schema version whenever a migration is required
const wxAuiPaneInfo & defaultDesignBlocksPaneInfo(wxWindow *aWindow)
@ LAYER_DEVICE_BACKGROUND
@ LAYER_SCHEMATIC_DRAWINGSHEET
@ LAYER_SELECTION_SHADOWS
@ LAYER_SCHEMATIC_BACKGROUND
PGM_BASE & Pgm()
The global Program "get" accessor.
#define TO_UTF8(wxstring)
Convert a wxString to a UTF8 encoded C string for all wxWidgets build modes.
bool show_sexpr_file_convert_warning
bool show_illegal_symbol_lib_dialog
wxString edit_sheet_visible_columns
bool show_directive_labels
wxString edit_symbol_visible_columns
bool print_sheet_reference
wxString edit_label_visible_columns
bool show_sheet_filename_case_sensitivity_dialog
int design_blocks_panel_float_width
int hierarchy_panel_docked_width
int hierarchy_panel_float_width
int search_panel_dock_direction
int hierarchy_panel_docked_height
int hierarchy_panel_float_height
wxSize net_nav_panel_float_size
float properties_splitter
int design_blocks_panel_float_height
bool schematic_hierarchy_float
int design_blocks_panel_docked_width
int properties_panel_width
wxPoint net_nav_panel_float_pos
wxSize net_nav_panel_docked_size
bool show_schematic_hierarchy
bool interactive_placement
COLOR4D default_sheet_border_color
int default_repeat_offset_x
int default_repeat_offset_y
COLOR4D default_sheet_background_color
int default_wire_thickness
int default_junction_size
std::vector< double > junction_size_mult_list
int default_bus_thickness
int repeat_label_increment
int default_line_thickness
std::vector< BOM_PLUGIN_SETTINGS > plugins
std::map< std::string, int > field_widths
bool show_pin_electrical_type
std::vector< NETLIST_PLUGIN_SETTINGS > plugins
bool open_file_after_plot
int highlight_netclass_colors_thickness
bool draw_selected_children
bool highlight_netclass_colors
double highlight_netclass_colors_alpha
int measurements_panel_height
SIM_PREFERENCES preferences
SIM_MOUSE_WHEEL_ACTION vertical_unmodified
SIM_MOUSE_WHEEL_ACTION vertical_with_alt
SIM_MOUSE_WHEEL_ACTION horizontal
SIM_MOUSE_WHEEL_ACTION vertical_with_ctrl
SIM_MOUSE_WHEEL_ACTION vertical_with_shift
SIM_MOUSE_WHEEL_ACTION_SET mouse_wheel_actions
Functions to provide common constants and other functions to assist in making a consistent UI.