KiCad PCB EDA Suite
Loading...
Searching...
No Matches
eeschema_config.cpp
Go to the documentation of this file.
1/*
2 * This program source code file is part of KiCad, a free EDA CAD application.
3 *
4 * Copyright The KiCad Developers, see AUTHORS.txt for contributors.
5 *
6 * This program is free software: you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License as published by the
8 * Free Software Foundation, either version 3 of the License, or (at your
9 * option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful, but
12 * WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program. If not, see <https://www.gnu.org/licenses/>.
18 */
19
20#include <mutex>
21#include <wx/ffile.h>
22
23#include <confirm.h>
25#include <dialogs/dialog_erc.h>
27#include <kiway.h>
28#include <symbol_edit_frame.h>
30#include <filename_resolver.h>
31#include <pgm_base.h>
35#include <sch_edit_frame.h>
36#include <sch_marker.h>
38#include <sch_painter.h>
39#include <connection_graph.h>
40#include <schematic.h>
42#include <text_var_dependency.h>
52#include <sim/spice_settings.h>
53#include <tool/actions.h>
54#include <tool/tool_manager.h>
56
57
60{
61 return ::GetColorSettings( DEFAULT_THEME )->GetColor( aLayer );
62}
63
64
78
79
93
94
96{
97 // Load the drawing sheet from the filename stored in BASE_SCREEN::m_DrawingSheetFileName.
98 // If empty, or not existing, the default drawing sheet is loaded.
99
100 SCHEMATIC_SETTINGS& settings = Schematic().Settings();
101
102 if( settings.m_SchDrawingSheetFileName == wxS( "empty.kicad_wks" ) )
103 {
105 return;
106 }
107
108 wxString msg;
109
110 if( !DS_DATA_MODEL::GetTheInstance().LoadFromName( settings.m_SchDrawingSheetFileName,
111 Prj().GetProjectPath(), &Prj(),
112 { Schematic().GetEmbeddedFiles() }, &msg ) )
113 {
114 ShowInfoBarError( msg, true );
115 }
116}
117
118
119void SCH_EDIT_FRAME::ShowSchematicSetupDialog( const wxString& aInitialPage )
120{
121 static std::mutex dialogMutex; // Local static mutex
122
123 std::unique_lock<std::mutex> dialogLock( dialogMutex, std::try_to_lock );
124
125 // One dialog at a time.
126 if( !dialogLock.owns_lock() )
127 {
129 m_schematicSetupDialog->Raise(); // Brings the existing dialog to the front
130
131 return;
132 }
133
134 std::map<wxString, std::vector<wxString>> oldAliases = Prj().GetProjectFile().m_BusAliases;
135
136 DIALOG_SCHEMATIC_SETUP dlg( this );
137
138 if( !aInitialPage.IsEmpty() )
139 dlg.SetInitialPage( aInitialPage, wxEmptyString );
140
141 // Assign dlg to the m_schematicSetupDialog pointer to track its status.
142 // No, this does not escape the function context.
143 NULLER raii_nuller( (void*&) m_schematicSetupDialog ); m_schematicSetupDialog = &dlg;
144
145 if( dlg.ShowModal() == wxID_OK )
146 {
147 // Mark document as modified so that project settings can be saved as part of doc save
148 OnModify();
149
151
153
155 RefreshProjectSettings( oldAliases != Prj().GetProjectFile().m_BusAliases );
156 }
157}
158
159
160void SCH_EDIT_FRAME::RefreshProjectSettings( bool aAliasesChanged )
161{
162 // Net colors and widths resolve through per-net caches
166
167 // CROSS_REF keys deliberately excluded — those are driven by per-item
168 // SCH_COMMIT changes.
169 if( SCHEMATIC_TEXT_VAR_ADAPTER* adapter = Schematic().GetTextVarAdapter() )
170 adapter->Tracker().InvalidateProjectScoped();
171
172 ShowAllIntersheetRefs( Schematic().Settings().m_IntersheetRefsShow );
173
176
177 if( aAliasesChanged )
178 {
179 // Skip the cleanup pass, which can edit wires and dirty a schematic nobody changed
180 RecalculateConnections( nullptr, GLOBAL_CLEANUP, nullptr, true );
181 }
182 else if( CONNECTION_GRAPH* graph = Schematic().ConnectionGraph() )
183 {
184 // No connectivity rebuild ran, so a net-chain netclass override or a deleted/renamed
185 // netclass would otherwise leave the chain-derived assignments stale. Re-derive them
186 // directly; chain membership is unaffected by project settings.
187 graph->ApplyNetChainNetclasses();
188 }
189
191 GetCanvas()->Refresh();
192
193 if( m_ercDialog )
194 m_ercDialog->UpdateData();
195}
196
197
199{
200 // The sheet list decides what the schematic holds, so only a reload can follow a change to it
202 {
203 if( ConfirmReloadFromDisk( _( "The project file now lists different top-level sheets.\n\n"
204 "Reloading loses your unsaved edits. Keeping them keeps the sheets "
205 "you have open, and your next save writes those back to the "
206 "project file." ),
207 _( "Top-Level Sheets Changed on Disk" ) )
208 && ReloadFromDisk() )
209 {
210 return;
211 }
212
213 ShowInfoBarWarning( _( "The project file lists different top-level sheets. This schematic keeps "
214 "its own until it is reloaded, and saving writes them to the project file." ),
215 true );
216 }
217
218 // Everything this frame copied from the project file and would write back on save
222
223 std::vector<SCH_MARKER*> stale = Schematic().ReloadERCExclusions();
224
225 if( !stale.empty() )
226 {
228
229 std::unordered_set<const EDA_ITEM*> freed( stale.begin(), stale.end() );
230 m_undoList.ForgetItems( freed );
231 m_redoList.ForgetItems( freed );
232 }
233
234 for( SCH_MARKER* marker : stale )
235 {
236 GetCanvas()->GetView()->Remove( marker );
237 delete marker;
238 }
239
240 // Markers the file added are on their screens but not yet in the view
241 GetCanvas()->DisplaySheet( GetCurrentSheet().LastScreen() );
242
244
246 {
247 ShowInfoBarWarning( _( "The reloaded project file defines no bus aliases. The ones in use are kept "
248 "and will be saved with the project." ), true );
249 }
250
251 if( Schematic().ReloadProjectVariants() )
252 {
254
255 // Variant overrides change field text, which the refresh below leaves cached
256 SetCurrentVariant( Schematic().GetCurrentVariant() );
257 }
258
260}
261
262
264{
265 // The first top-level sheet need not be named after the project
266 wxFileName fn( Prj().GetProjectFullName() );
267
268 if( !fn.HasName() || !IsWritable( fn, false ) )
269 return;
270
272
273 if( Kiway().Player( FRAME_SIMULATOR, false ) )
275
276 // Save the page layout file if doesn't exist yet (e.g. if we opened a non-kicad schematic)
277
278 // TODO: We need to remove dependence on BASE_SCREEN
280
282 {
283 FILENAME_RESOLVER resolve;
284 resolve.SetProject( &Prj() );
285 resolve.SetProgramBase( &Pgm() );
286
287 wxFileName layoutfn( resolve.ResolvePath( BASE_SCREEN::m_DrawingSheetFileName,
288 Prj().GetProjectPath(),
289 { Schematic().GetEmbeddedFiles() } ) );
290
291 bool success = true;
292
293 if( !layoutfn.IsAbsolute() )
294 success = layoutfn.MakeAbsolute( Prj().GetProjectPath() );
295
296 if( success && layoutfn.IsOk() && !layoutfn.FileExists() && layoutfn.HasName() )
297 {
298 if( layoutfn.DirExists() && layoutfn.IsDirWritable() )
299 {
300 try
301 {
302 DS_DATA_MODEL::GetTheInstance().Save( layoutfn.GetFullPath() );
303 }
304 catch( const IO_ERROR& ioe )
305 {
306 wxLogError( _( "Failed to save drawing sheet '%s': %s" ),
307 layoutfn.GetFullPath(), ioe.What() );
308 }
309 }
310 }
311 }
312
313 // Propagate the root schematic revision to the project file for IPC-2581 BOM export
314 if( Schematic().RootScreen() )
315 {
318 }
319
320 // Update top-level sheets information in the project file
321 std::vector<TOP_LEVEL_SHEET_INFO> topLevelSheets = Schematic().TopLevelSheetInfos();
322
323 if( !topLevelSheets.empty() )
324 Prj().GetProjectFile().GetTopLevelSheets() = std::move( topLevelSheets );
325
326 GetSettingsManager()->SaveProject( fn.GetFullPath() );
327}
328
329
331{
332 PROJECT_LOCAL_SETTINGS& localSettings = Prj().GetLocalSettings();
333
334 if( TOOL_MANAGER* toolMgr = GetToolManager() )
335 {
336 if( SCH_SELECTION_TOOL* selTool = toolMgr->GetTool<SCH_SELECTION_TOOL>() )
337 localSettings.m_SchSelectionFilter = selTool->GetFilter();
338 }
339
340 localSettings.m_SchHierarchyCollapsed = m_hierarchy->GetCollapsedPaths();
341}
342
343
372
373
375{
378 wxAuiPaneInfo& hierarchy_pane = m_auimgr.GetPane( SchematicHierarchyPaneName() );
379
380 if( cfg )
381 {
382 cfg->m_System.units = static_cast<int>( GetUserUnits() );
383 cfg->m_AuiPanels.show_schematic_hierarchy = hierarchy_pane.IsShown();
384 cfg->m_AuiPanels.schematic_hierarchy_float = hierarchy_pane.IsFloating();
385
386 // Other parameters (hierarchy_panel_float_width, hierarchy_panel_float_height,
387 // and hierarchy_panel_docked_width should have been updated when resizing the
388 // hierarchy panel
389
390 SCH_SEARCH_DATA* searchData = dynamic_cast<SCH_SEARCH_DATA*>( m_findReplaceData.get() );
391
392 if( searchData )
393 {
400 }
401
402 wxAuiPaneInfo& searchPaneInfo = m_auimgr.GetPane( SearchPaneName() );
403 m_show_search = searchPaneInfo.IsShown();
405 cfg->m_AuiPanels.search_panel_height = m_searchPane->GetSize().y;
406 cfg->m_AuiPanels.search_panel_width = m_searchPane->GetSize().x;
407 cfg->m_AuiPanels.search_panel_dock_direction = searchPaneInfo.dock_direction;
408
409 wxAuiPaneInfo& propertiesPane = m_auimgr.GetPane( PropertiesPaneName() );
410 cfg->m_AuiPanels.show_properties = propertiesPane.IsShown();
411 cfg->m_AuiPanels.properties_splitter = m_propertiesPanel->SplitterProportion();
413
414 cfg->m_AuiPanels.show_git_commit_pane = m_auimgr.GetPane( GitCommitPaneName() ).IsShown();
415
416 wxAuiPaneInfo& netNavigatorPane = m_auimgr.GetPane( NetNavigatorPaneName() );
417 cfg->m_AuiPanels.show_net_nav_panel = netNavigatorPane.IsShown();
418 cfg->m_AuiPanels.float_net_nav_panel = netNavigatorPane.IsFloating();
419
420 if( netNavigatorPane.IsDocked() )
421 {
423 }
424 else
425 {
426 cfg->m_AuiPanels.net_nav_panel_float_pos = netNavigatorPane.floating_pos;
427 cfg->m_AuiPanels.net_nav_panel_float_size = netNavigatorPane.floating_size;
428 }
429
430 wxAuiPaneInfo& designBlocksPane = m_auimgr.GetPane( DesignBlocksPaneName() );
431 cfg->m_AuiPanels.design_blocks_show = designBlocksPane.IsShown();
432
433 if( designBlocksPane.IsDocked() )
434 {
436 }
437 else
438 {
439 cfg->m_AuiPanels.design_blocks_panel_float_height = designBlocksPane.floating_size.y;
440 cfg->m_AuiPanels.design_blocks_panel_float_width = designBlocksPane.floating_size.x;
441 }
442
443 m_designBlocksPane->SaveSettings();
444
445 wxAuiPaneInfo& remoteSymbolPane = m_auimgr.GetPane( RemoteSymbolPaneName() );
446 cfg->m_AuiPanels.remote_symbol_show = remoteSymbolPane.IsShown();
447
448 if( remoteSymbolPane.IsDocked() )
449 {
451 }
452 else
453 {
454 cfg->m_AuiPanels.remote_symbol_panel_float_height = remoteSymbolPane.floating_size.y;
455 cfg->m_AuiPanels.remote_symbol_panel_float_width = remoteSymbolPane.floating_size.x;
456 }
457 }
458}
459
460
462{
463 wxCHECK_RET( aCfg, "Call to SCH_BASE_FRAME::LoadSettings with null settings" );
464
466
467 // Move legacy user grids to grid list
468 if( !aCfg->m_Window.grid.user_grid_x.empty() )
469 {
470 aCfg->m_Window.grid.grids.emplace_back( GRID{ "User Grid",
472 aCfg->m_Window.grid.user_grid_y } );
473 aCfg->m_Window.grid.user_grid_x = wxEmptyString;
474 aCfg->m_Window.grid.user_grid_y = wxEmptyString;
475 }
476
477 if( aCfg->m_Window.grid.last_size_idx > (int) aCfg->m_Window.grid.grids.size() )
478 aCfg->m_Window.grid.last_size_idx = 1;
479
480 if( aCfg->m_Window.grid.fast_grid_1 > (int) aCfg->m_Window.grid.grids.size() )
481 aCfg->m_Window.grid.fast_grid_1 = 1;
482
483 if( aCfg->m_Window.grid.fast_grid_2 > (int) aCfg->m_Window.grid.grids.size() )
484 aCfg->m_Window.grid.fast_grid_2 = 2;
485}
486
487
489{
490 wxCHECK_RET( aCfg, wxS( "Call to SCH_BASE_FRAME::SaveSettings with null settings" ) );
491
493}
static TOOL_ACTION selectionClear
Clear the current selection.
Definition actions.h:221
APP_SETTINGS_BASE is a settings class that should be derived for each standalone KiCad application.
WINDOW_SETTINGS m_Window
static wxString m_DrawingSheetFileName
the name of the drawing sheet file, or empty to use the default drawing sheet
Definition base_screen.h:81
Calculate the connectivity of a schematic and generate netlists.
int ShowModal() override
static DS_DATA_MODEL & GetTheInstance()
Return the instance of DS_DATA_MODEL used in the application.
void Save(const wxString &aFullFileName)
Save the description in a file.
UNDO_REDO_CONTAINER m_undoList
static const wxString GitCommitPaneName()
Named here rather than beside the editors' other panes, because the project manager docks this one to...
SETTINGS_MANAGER * GetSettingsManager() const
void ShowInfoBarError(const wxString &aErrorMsg, bool aShowCloseButton=false, INFOBAR_MESSAGE_TYPE aType=INFOBAR_MESSAGE_TYPE::GENERIC)
Show the WX_INFOBAR displayed on the top of the canvas with a message and an error icon on the left o...
wxAuiManager m_auimgr
void ShowInfoBarWarning(const wxString &aWarningMsg, bool aShowCloseButton=false)
Show the WX_INFOBAR displayed on the top of the canvas with a message and a warning icon on the left ...
UNDO_REDO_CONTAINER m_redoList
bool IsWritable(const wxFileName &aFileName, bool aVerbose=true)
Check if aFileName can be written.
void SaveSettings(APP_SETTINGS_BASE *aCfg) override
Save common frame parameters to a configuration data file.
void LoadSettings(APP_SETTINGS_BASE *aCfg) override
Load common frame parameters from a configuration file.
static const wxString PropertiesPaneName()
static const wxString RemoteSymbolPaneName()
SEARCH_PANE * m_searchPane
static const wxString DesignBlocksPaneName()
std::unique_ptr< EDA_SEARCH_DATA > m_findReplaceData
PROPERTIES_PANEL * m_propertiesPanel
virtual void Refresh(bool aEraseBackground=true, const wxRect *aRect=nullptr) override
FIND_REPLACE_EXTRA m_FindReplaceExtra
Provide an extensible class to resolve 3D model paths.
wxString ResolvePath(const wxString &aFileName, const wxString &aWorkingPath, std::vector< const EMBEDDED_FILES * > aEmbeddedFilesStack)
Determine the full path of the given file name.
void SetProgramBase(PGM_BASE *aBase)
Set a pointer to the application's PGM_BASE instance used to extract the local env vars.
bool SetProject(const PROJECT *aProject, bool *flgChanged=nullptr)
Set the current KiCad project directory as the first entry in the model path list.
Hold an error message and may be used when throwing exceptions containing meaningful error messages.
virtual const wxString What() const
A composite of Problem() and Where()
A color representation with 4 components: red, green, blue, alpha.
Definition color4d.h:101
void SetDefaultPenWidth(int aWidth)
void SetDefaultFont(const wxString &aFont)
void SetGapLengthRatio(double aRatio)
void SetDashLengthRatio(double aRatio)
virtual void Remove(VIEW_ITEM *aItem)
Remove a VIEW_ITEM from the view.
Definition view.cpp:488
void UpdateAllItems(int aUpdateFlags)
Update all items in the view according to the given flags.
Definition view.cpp:2474
void MarkDirty()
Force redraw of view on the next rendering.
Definition view.h:779
virtual void CommonSettingsChanged(int aFlags=0)
Call CommonSettingsChanged() on all KIWAY_PLAYERs.
Definition kiway.cpp:605
bool SaveToFile(const wxString &aDirectory="", bool aForce=false) override
Calls Store() and then saves the JSON document contents into the parent JSON_SETTINGS.
void ClearAllCaches()
Clears the effective netclass cache for all nets.
Definition raii.h:34
void SetInitialPage(const wxString &aPage, const wxString &aParentPage=wxEmptyString)
virtual SETTINGS_MANAGER & GetSettingsManager() const
Definition pgm_base.h:124
SCHEMATIC_SETTINGS * m_SchematicSettings
std::shared_ptr< NET_SETTINGS > & NetSettings()
struct IP2581_BOM m_IP2581Bom
Layer pair list for the board.
std::map< wxString, std::vector< wxString > > m_BusAliases
Bus alias definitions for the schematic project.
std::vector< TOP_LEVEL_SHEET_INFO > & GetTopLevelSheets()
The project local settings are things that are attached to a particular project, but also might be pa...
SCH_SELECTION_FILTER_OPTIONS m_SchSelectionFilter
std::vector< wxString > m_SchHierarchyCollapsed
Collapsed nodes in the schematic hierarchy navigator.
virtual PROJECT_LOCAL_SETTINGS & GetLocalSettings() const
Definition project.h:207
void IncrementNetclassesTicker()
Definition project.h:115
virtual PROJECT_FILE & GetProjectFile() const
Definition project.h:201
void IncrementTextVarsTicker()
Definition project.h:112
These are loaded from Eeschema settings but then overwritten by the project settings.
std::shared_ptr< NGSPICE_SETTINGS > m_NgspiceSettings
Ngspice simulator settings.
Bridges SCHEMATIC's listener stream into the generic TEXT_VAR_TRACKER.
@ TABLE_REMOVED
The reread file has no table; the one in use is kept, even empty, and saved back.
Definition schematic.h:448
@ CHANGED
The project table changed the aliases in use, so connectivity needs a rebuild.
Definition schematic.h:447
std::vector< SCH_MARKER * > ReloadERCExclusions()
Resolve exclusions again after the project file was reread.
SCHEMATIC_SETTINGS & Settings() const
void RecordERCExclusions()
Scan existing markers and record data from any that are Excluded.
EMBEDDED_FILES * GetEmbeddedFiles() override
SCH_SCREEN * RootScreen() const
Helper to retrieve the screen of the root sheet.
BUS_ALIAS_RELOAD ReloadProjectBusAliases()
Take the bus aliases from the project file again after it was reread.
std::vector< TOP_LEVEL_SHEET_INFO > TopLevelSheetInfos() const
The top-level sheets as the project file records them, with file names relative to the project.
SCH_RENDER_SETTINGS * GetRenderSettings()
void SaveSettings(APP_SETTINGS_BASE *aCfg) override
Save common frame parameters to a configuration data file.
void LoadSettings(APP_SETTINGS_BASE *aCfg) override
Load common frame parameters from a configuration file.
SCH_DRAW_PANEL * GetCanvas() const override
Return a pointer to GAL-based canvas of given EDA draw frame.
EESCHEMA_SETTINGS * eeconfig() const
PANEL_SCH_SELECTION_FILTER * m_selectionFilterPanel
KIGFX::SCH_VIEW * GetView() const override
Return a pointer to the KIGFX::VIEW instance used in the panel.
void DisplaySheet(SCH_SCREEN *aScreen)
void ShowSchematicSetupDialog(const wxString &aInitialPage=wxEmptyString)
void RefreshOperatingPointDisplay()
Refresh the display of any operating points.
void ReloadProjectFileSettings()
Bring the frame in line with a project file that was reread from disk.
void OnModify() override
Must be called after a schematic change in order to set the "modify" flag and update other data struc...
void ShowAllIntersheetRefs(bool aShow)
void SaveProjectLocalSettings() override
Save changes to the project settings to the project (.pro) file.
NET_NAVIGATOR_TREE * m_netNavigator
bool TopLevelSheetsChangedOnDisk()
Check whether the last read of the project file brought a top-level sheet list that the open schemati...
void SyncVariantUI()
Refill the toolbar variant control and any open symbol fields table from the schematic.
void SetCurrentVariant(const wxString &aVariantName)
DIALOG_SCHEMATIC_SETUP * m_schematicSetupDialog
void ApplyProjectFileSettings()
Apply the project file's render settings.
bool RecalculateConnections(SCH_COMMIT *aCommit, SCH_CLEANUP_FLAGS aCleanupFlags, PROGRESS_REPORTER *aProgressReporter=nullptr, bool aCleanupDone=false)
Generate the connection data for the entire schematic hierarchy.
bool ReloadFromDisk()
Reload the schematic and all its sheets from disk.
PANEL_REMOTE_SYMBOL * m_remoteSymbolPane
SCH_SHEET_PATH & GetCurrentSheet() const
SCHEMATIC & Schematic() const
bool LoadProjectSettings()
Load the KiCad project file (*.pro) settings specific to Eeschema.
void LoadSettings(APP_SETTINGS_BASE *aCfg) override
Load common frame parameters from a configuration file.
static const wxString SearchPaneName()
SCH_DESIGN_BLOCK_PANE * m_designBlocksPane
bool ConfirmReloadFromDisk(const wxString &aMessage, const wxString &aTitle)
Ask whether to reload when that would discard unsaved edits.
void LoadDrawingSheet()
Load the drawing sheet file.
void SaveSettings(APP_SETTINGS_BASE *aCfg) override
Save common frame parameters to a configuration data file.
static const wxString SchematicHierarchyPaneName()
void RefreshProjectSettings(bool aAliasesChanged)
Update what depends on the schematic's project settings after they changed in memory.
DIALOG_ERC * m_ercDialog
static const wxString NetNavigatorPaneName()
void saveProjectSettings() override
Save any design-related project settings associated with this frame.
HIERARCHY_PANE * m_hierarchy
int m_SymbolLineWidth
Override line widths for symbol drawing objects set to default line width.
TITLE_BLOCK & GetTitleBlock()
Definition sch_screen.h:168
SCH_SELECTION_FILTER_OPTIONS & GetFilter()
bool SaveProject(const wxString &aFullPath=wxEmptyString, PROJECT *aProject=nullptr)
Save a loaded project.
const wxString & GetRevision() const
Definition title_block.h:83
TOOL_MANAGER * m_toolManager
TOOL_MANAGER * GetToolManager() const
Return the MVC controller.
Master controller class:
T * GetTool()
Return the tool of given type or nullptr if there is no such tool registered.
EDA_UNITS GetUserUnits() const
This file is part of the common library.
#define _(s)
COLOR4D GetLayerColor(SCH_LAYER_ID aLayer)
Helper for all the old plotting/printing code while it still exists.
@ FRAME_SIMULATOR
Definition frame_type.h:34
PROJECT & Prj()
Definition kicad.cpp:730
SCH_LAYER_ID
Eeschema drawing layers.
Definition layer_ids.h:480
@ REPAINT
Item needs to be redrawn.
Definition view_item.h:54
@ GEOMETRY
Position or shape has changed.
Definition view_item.h:51
@ LAYERS
Layers have changed.
Definition view_item.h:52
PGM_BASE & Pgm()
The global program "get" accessor.
see class PGM_BASE
@ GLOBAL_CLEANUP
Definition schematic.h:101
#define DEFAULT_THEME
KIWAY Kiway(KFCTL_STANDALONE)
wxString user_grid_x
std::vector< GRID > grids
wxString user_grid_y
Common grid settings, available to every frame.
wxString schRevision
Auto-propagated schematic title block revision.
GRID_SETTINGS grid
#define TEXTVARS_CHANGED