74#include <wx/filedlg.h>
76#include <wx/process.h>
77#include <wx/snglinst.h>
87#include <ApplicationServices/ApplicationServices.h>
96#define EDITORS_CAPTION _( "Editors" )
97#define PROJECT_FILES_CAPTION _( "Project Files" )
99#define ID_INIT_WATCHED_PATHS 52913
101#define SEP() wxFileName::GetPathSeparator()
136#include <wx/xml/xml.h>
139 const wxPoint& pos,
const wxSize& size ) :
142 m_active_project( false ),
143 m_showHistoryPanel( false ),
144 m_leftWin( nullptr ),
145 m_historyPane( nullptr ),
146 m_launcher( nullptr ),
147 m_lastToolbarIconSize( 0 ),
148 m_pcmButton( nullptr ),
149 m_pcmUpdateCount( 0 )
151 const int defaultLeftWinWidth = FromDIP( 250 );
153 m_leftWinWidth = defaultLeftWinWidth;
154 m_aboutTitle =
"KiCad";
169 CreateStatusBar( 1 );
176 wxIconBundle icon_bundle;
181 icon_bundle.AddIcon( icon );
183 icon_bundle.AddIcon( icon );
185 icon_bundle.AddIcon( icon );
187 icon_bundle.AddIcon( icon );
189 icon_bundle.AddIcon( icon );
194 icon_bundle.AddIcon( icon );
196 icon_bundle.AddIcon( icon );
198 icon_bundle.AddIcon( icon );
200 icon_bundle.AddIcon( icon );
202 icon_bundle.AddIcon( icon );
205 SetIcons( icon_bundle );
221 m_auimgr.SetManagedWindow(
this );
222 m_auimgr.SetFlags( wxAUI_MGR_LIVE_RESIZE );
224 m_auimgr.AddPane( m_tbLeft,
EDA_PANE().VToolbar().Name(
"TopMainToolbar" ).Left().Layer( 2 ) );
231 m_auimgr.AddPane( m_leftWin,
EDA_PANE().Palette().Name(
"ProjectTree" ).Left().Layer( 1 )
233 .MinSize( m_leftWinWidth, -1 ).BestSize( m_leftWinWidth, -1 ) );
236 m_auimgr.AddPane( m_historyPane,
237 EDA_PANE().Palette().Name(
"LocalHistory" ).Left().Layer( 1 ).Position( 1 )
238 .Caption(
_(
"Local History" ) ).PaneBorder(
false )
239 .Floatable(
false ).Movable(
false ).CloseButton(
true ).Hide() );
241 if( m_showHistoryPanel )
242 m_auimgr.GetPane( m_historyPane ).Show();
244 wxSize client_size = GetClientSize();
245 m_notebook =
new wxAuiNotebook(
this, wxID_ANY, wxPoint( client_size.x, client_size.y ),
246 FromDIP( wxSize( 700, 590 ) ),
247 wxAUI_NB_TOP | wxAUI_NB_CLOSE_ON_ALL_TABS | wxAUI_NB_TAB_MOVE
248 | wxAUI_NB_SCROLL_BUTTONS | wxNO_BORDER );
254 m_notebook->Freeze();
255 m_launcher->SetClosable(
false );
257 m_notebook->SetTabCtrlHeight( 0 );
261 .PaneBorder(
false ).MinSize( m_notebook->GetBestSize() ) );
266 m_auimgr.GetPane( m_leftWin ).MinSize( defaultLeftWinWidth, -1 );
269 wxSizer* mainSizer = GetSizer();
272 if( mainSizer &&
config()->m_Window.state.size_x == 0 &&
config()->m_Window.state.size_y == 0 )
275 mainSizer->Fit(
this );
280 SetTitle( wxT(
"KiCad" ) );
285 m_leftWin->SetFocus();
297 DragAcceptFiles(
true );
302 Bind( wxEVT_DPI_CHANGED,
303 [&]( wxDPIChangedEvent& )
328 m_pcm->StopBackgroundUpdate();
354 wxAuiNotebook* notebook = (wxAuiNotebook*) evt.GetEventObject();
355 wxWindow* page = notebook->GetPage( evt.GetSelection() );
359 if( panel->GetClosable() )
361 if( !panel->GetCanClose() )
379 const wxString&
name )
391 m_pcm = std::make_shared<PLUGIN_CONTENT_MANAGER>(
392 [
this](
int aUpdateCount )
396 if( aUpdateCount > 0 )
400 _(
"PCM Updates Available" ),
401 wxString::Format(
_(
"%d package update(s) available" ), aUpdateCount ),
454#define ENABLE( x ) ACTION_CONDITIONS().Enable( x )
457 activeProjectCond.
Enable( activeProject );
509 : wxString( wxEmptyString );
518 return fn.GetFullPath();
527 return fn.GetFullPath();
535 fn.SetExt( FILEEXT::PcbFileExtension );
536 return fn.GetFullPath();
545 return fn.GetFullPath();
590 wxString ext = fileName.GetExt();
594 wxString fn = fileName.GetFullPath();
602 wxString gerberFiles;
607 wxString ext = fileName.GetExt();
612 gerberFiles += wxT(
'\"' );
613 gerberFiles += fileName.GetFullPath() + wxT(
'\"' );
614 gerberFiles = gerberFiles.Pad( 1 );
618 wxString fn = fileName.GetFullPath();
624 if( !gerberFiles.IsEmpty() )
628 if( wxFileExists( fullEditorName ) )
630 wxString command = fullEditorName +
" " + gerberFiles;
642 for(
size_t i = 0; i <
m_notebook->GetPageCount(); i++ )
648 if( !panel->GetCanClose() )
658 aEvent.StopPropagation();
664 if( aEvent.CanVeto() )
682 static std::atomic<unsigned int> lock_close_event( 0 );
684 if( ++lock_close_event > 1 )
696 lock_close_event = 0;
710 for(
size_t i = 0; i <
m_notebook->GetPageCount(); i++ )
714 wxFileName jobsetFn(
jobset->GetFilePath() );
715 jobsetFn.MakeRelativeTo(
Prj().GetProjectPath() );
732 if( !
Kiway().PlayersClose(
false ) )
740 if(
Prj().GetLocalSettings().ShouldAutoSave() &&
Prj().GetProjectFile().ShouldAutoSave() )
750 if(
Pgm().GetCommonSettings() &&
Pgm().GetCommonSettings()->m_Backup.enabled )
764 for(
int i = (
int)
m_notebook->GetPageCount() - 1; i >= 0; i-- )
770 if( panel->GetProjectTied() )
783 bool aResaveProjectPreferences )
785 for(
size_t i = 0; i <
m_notebook->GetPageCount(); i++ )
789 if( aFileName.GetFullPath() == panel->GetFilePath() )
799 std::unique_ptr<JOBSET> jobsFile = std::make_unique<JOBSET>( aFileName.GetFullPath().ToStdString() );
801 jobsFile->LoadFromFile();
803 if( aCreate && !aFileName.FileExists() )
805 JOBSET_DESTINATION* dest = jobsFile->AddNewDestination( JOBSET_DESTINATION_T::FOLDER );
807 jobsFile->SaveToFile( wxEmptyString,
true );
813 m_notebook->AddPage( jobPanel, aFileName.GetFullName(),
true );
816 if( aResaveProjectPreferences )
829 if( !aProjectFileName.Exists() )
847 if( aProjectFileName.IsDirWritable() )
852 if(
Kiway().LocalHistory().HeadNewerThanLastSave(
Prj().GetProjectPath() ) )
855 if( wxMessageBox(
_(
"A newer local history snapshot is available. Restore it?" ),
856 _(
"Restore" ), wxYES_NO | wxICON_QUESTION,
this ) == wxYES )
868 for(
const wxString&
jobset :
Prj().GetLocalSettings().m_OpenJobSets )
870 wxFileName jobsetFn(
jobset );
871 jobsetFn.MakeAbsolute(
Prj().GetProjectPath() );
873 if( jobsetFn.Exists() )
885 wxPostEvent(
this, cmd );
908 wxCHECK_RET( aProjectFileName.DirExists() && aProjectFileName.IsDirWritable(),
909 "Project folder must exist and be writable to create a new project." );
912 if( !aProjectFileName.FileExists() )
914 wxFileName legacyPro( aProjectFileName );
917 if( legacyPro.FileExists() )
922 wxRemoveFile( legacyPro.GetFullPath() );
927 wxString srcFileName =
sys_search().FindValidPath(
"kicad.kicad_pro" );
929 wxFileName destFileName( aProjectFileName );
933 if( !wxFileName::FileExists( srcFileName )
934 || !wxCopyFile( srcFileName, destFileName.GetFullPath() ) )
936 wxFFile file( destFileName.GetFullPath(),
"wb" );
938 if( file.IsOpened() )
939 file.Write( wxT(
"{\n}\n") );
949 if( aCreateStubFiles )
951 wxFileName fn( aProjectFileName.GetFullPath() );
956 if( !fn.FileExists() )
958 wxFFile file( fn.GetFullPath(),
"wb" );
960 if( file.IsOpened() )
962 file.Write( wxString::Format(
"(kicad_sch\n"
964 "\t(generator \"eeschema\")\n"
965 "\t(generator_version \"%s\")\n"
969 "\t(sheet_instances\n"
971 "\t\t\t(page \"1\")\n"
974 "\t(embedded_fonts no)\n"
977 KIID().AsString() ) );
986 wxFileName leg_fn( fn );
989 if( !fn.FileExists() && !leg_fn.FileExists() )
991 wxFFile file( fn.GetFullPath(),
"wb" );
993 if( file.IsOpened() )
996 file.Write( wxString::Format(
"(kicad_pcb (version %d) (generator \"pcbnew\") (generator_version \"%s\")\n)",
1020 wxFileDialog dlg(
this,
_(
"Edit File in Text Editor" ), default_dir, wxEmptyString, wildcard,
1023 if( dlg.ShowModal() == wxID_CANCEL )
1026 wxString filename = dlg.GetPath();
1028 if( !dlg.GetPath().IsEmpty() && !
Pgm().GetTextEditor().IsEmpty() )
1048 int id =
event.GetId();
1065 if( pageId != wxNOT_FOUND )
1082 m_pcm->ReadEnvVar();
1102 if( !
Prj().IsNullProject() &&
1103 Prj().GetProjectLock() ==
nullptr )
1113 if( !
Pgm().SingleInstance()->IsAnotherRunning() )
1119 if( !lockFile.
Valid() )
1122 msg.Printf(
_(
"Project '%s' is already open by '%s' at '%s'." ), file, lockFile.
GetUsername(),
1137 if( !file.IsEmpty() )
1139 wxFileName fn( file );
1141 title = fn.GetName();
1143 if(
Prj().IsReadOnly() )
1144 title += wxS(
" " ) +
_(
"[Read Only]" );
1148 title =
_(
"[no project loaded]" );
1152 title += wxT(
" \u2014 " ) + wxString( wxS(
"KiCad" ) );
1166 wxCHECK( settings, );
1179 wxCHECK( settings, );
1181 settings->m_LeftWinWidth =
m_leftWin->GetSize().x;
1194 wxString status = wxString::Format(
_(
"Project: %s" ),
Prj().GetProjectFullName() );
1218 if(
Pgm().GetCommonSettings()->m_Session.remember_open_files )
1220 int previousOpenCount =
1221 std::count_if(
Prj().GetLocalSettings().m_files.begin(),
1222 Prj().GetLocalSettings().m_files.end(),
1225 return !f.fileName.EndsWith( FILEEXT::ProjectFileExtension ) && f.open;
1228 if( previousOpenCount > 0 )
1231 previousOpenCount,
this );
1234 std::set<wxString> openedFiles;
1240 if( file.open && !openedFiles.count( file.fileName ) )
1242 progressReporter.
Update( i++, wxString::Format(
_(
"Restoring '%s'" ), file.fileName ) );
1244 openedFiles.insert( file.fileName );
1245 wxFileName fn( file.fileName );
1275 m_pcm->RunBackgroundUpdate();
1278#ifdef KICAD_UPDATE_CHECK
1336 bool show = !pane.IsShown();
1348 if( !
Kiway().PlayersClose(
true ) )
constexpr EDA_IU_SCALE unityScale
wxBitmap KiBitmap(BITMAPS aBitmap, int aHeightTag)
Construct a wxBitmap from an image identifier Returns the image from the active theme if the image ha...
wxString GetMajorMinorVersion()
Get only the major and minor version in a string major.minor.
bool IsNightlyVersion()
Check if the build is meant to be nightly.
static TOOL_ACTION saveAs
Manage TOOL_ACTION objects.
void SetConditions(const TOOL_ACTION &aAction, const ACTION_CONDITIONS &aConditions)
Set the conditions the UI elements for activating a specific tool action should use for determining t...
static const ADVANCED_CFG & GetCfg()
Get the singleton instance's config, which is shared by all consumers.
wxProgressDialog with the option to also update the application progress on the taskbar
virtual bool Update(int aValue, const wxString &aNewMsg=wxEmptyString, bool *aSkip=nullptr) override
APP_SETTINGS_BASE is a settings class that should be derived for each standalone KiCad application.
void UnregisterStatusBar(KISTATUSBAR *aStatusBar)
Removes status bar from handling.
void RegisterStatusBar(KISTATUSBAR *aStatusBar)
Add a status bar for handling.
Handle actions that are shared between different applications.
The base frame for deriving all KiCad main window classes.
void LoadWindowState(const wxString &aFileName)
void CommonSettingsChanged(int aFlags) override
Notification event that some of the common (suite-wide) settings have changed.
void ShowChangedLanguage() override
Redraw the menus and what not in current language.
virtual void setupUIConditions()
Setup the UI conditions for the various actions and their controls in this frame.
std::vector< wxFileName > m_AcceptedFiles
SETTINGS_MANAGER * GetSettingsManager() const
virtual void RecreateToolbars()
virtual void LoadSettings(APP_SETTINGS_BASE *aCfg)
Load common frame parameters from a configuration file.
ACTION_TOOLBAR * m_tbLeft
std::map< const wxString, TOOL_ACTION * > m_acceptedExts
Associate file extensions with action to execute.
virtual void SaveSettings(APP_SETTINGS_BASE *aCfg)
Save common frame parameters to a configuration data file.
void SetMruPath(const wxString &aPath)
bool m_isClosing
Set by the close window event handler after frames are asked if they can close.
Specialization of the wxAuiPaneInfo class for KiCad panels.
void SetOutputPath(const wxString &aPath)
virtual bool SaveToFile(const wxString &aDirectory="", bool aForce=false)
Calls Store() and then writes the contents of the JSON document to a file.
static TOOL_ACTION viewDroppedGerbers
static TOOL_ACTION editPCB
static TOOL_ACTION loadProject
static TOOL_ACTION showLocalHistory
static TOOL_ACTION editSchematic
static TOOL_ACTION openTextEditor
static TOOL_ACTION archiveProject
static TOOL_ACTION closeProject
static TOOL_ACTION openJobsetFile
static TOOL_ACTION newJobsetFile
Handle actions in the kicad manager frame.
The main KiCad project manager frame.
std::shared_ptr< PLUGIN_CONTENT_MANAGER > m_pcm
void language_change(wxCommandEvent &event)
void SetPcmButton(BITMAP_BUTTON *aButton)
void doCloseWindow() override
void CreateNewProject(const wxFileName &aProjectFileName, bool aCreateStubFiles=true)
Creates a new project by setting up and initial project, schematic, and board files.
wxString m_FileWatcherInfo
const SEARCH_STACK & sys_search() override
Return a SEARCH_STACK pertaining to entire program.
void OnImportEasyEdaProFiles(wxCommandEvent &event)
Open dialog to import EasyEDA Pro schematic and board files.
void ProjectChanged() override
Notification event that the project has changed.
void ShowChangedLanguage() override
Redraw the menus and what not in current language.
const wxString SchLegacyFileName()
wxWindow * GetToolCanvas() const override
Canvas access.
void OnImportEasyEdaFiles(wxCommandEvent &event)
Open dialog to import EasyEDA Std schematic and board files.
void ToggleLocalHistory()
PROJECT_TREE_PANE * m_leftWin
void OnImportAltiumProjectFiles(wxCommandEvent &event)
Open dialog to import Altium project files.
const wxString GetProjectFileName() const
void updatePcmButtonBadge()
KICAD_SETTINGS * kicadSettings() const
const wxString SchFileName()
void OnImportEagleFiles(wxCommandEvent &event)
Open dialog to import Eagle schematic and board files.
wxStatusBar * OnCreateStatusBar(int number, long style, wxWindowID id, const wxString &name) override
Create the status line (like a wxStatusBar).
void OnExit(wxCommandEvent &event)
void OpenJobsFile(const wxFileName &aFileName, bool aCreate=false, bool aResaveProjectPreferences=true)
void LoadProject(const wxFileName &aProjectFileName)
bool canCloseWindow(wxCloseEvent &aCloseEvent) override
void OnSize(wxSizeEvent &event) override
virtual void setupUIConditions() override
Setup the UI conditions for the various actions and their controls in this frame.
void RestoreCommitFromHistory(const wxString &aHash)
void DoWithAcceptedFiles() override
Execute action on accepted dropped file.
void OnOpenFileInTextEditor(wxCommandEvent &event)
APP_SETTINGS_BASE * config() const override
Return the settings object used in SaveSettings(), and is overloaded in KICAD_MANAGER_FRAME.
int m_lastToolbarIconSize
const wxString PcbLegacyFileName()
void OnEditAdvancedCfg(wxCommandEvent &event)
KICAD_MANAGER_FRAME(wxWindow *parent, const wxString &title, const wxPoint &pos, const wxSize &size)
bool CloseProject(bool aSave)
Closes the project, and saves it if aSave is true;.
void onNotebookPageCloseRequest(wxAuiNotebookEvent &evt)
void CommonSettingsChanged(int aFlags) override
Notification event that some of the common (suite-wide) settings have changed.
void LoadSettings(APP_SETTINGS_BASE *aCfg) override
Load common frame parameters from a configuration file.
void OnIdle(wxIdleEvent &event)
void onToolbarSizeChanged()
void PrintPrjInfo()
Prints the current working directory name and the project name on the text panel.
void SaveOpenJobSetsToLocalSettings(bool aIsExplicitUserSave=false)
void onNotebookPageCountChanged(wxAuiNotebookEvent &evt)
LOCAL_HISTORY_PANE * m_historyPane
void OnImportCadstarArchiveFiles(wxCommandEvent &event)
Open dialog to import CADSTAR Schematic and PCB Archive files.
void RefreshProjectTree()
void SaveSettings(APP_SETTINGS_BASE *aCfg) override
Save common frame parameters to a configuration data file.
BITMAP_BUTTON * m_pcmButton
PANEL_KICAD_LAUNCHER * m_launcher
void HideTabsIfNeeded()
Hides the tabs for Editor notebook if there is only 1 page.
wxString help_name() override
const wxString PcbFileName()
std::unique_ptr< UPDATE_MANAGER > m_updateManager
wxAuiNotebook * m_notebook
std::vector< wxString > m_OpenProjects
KISTATUSBAR is a wxStatusBar suitable for Kicad manager.
void SetEllipsedTextField(const wxString &aText, int aFieldId)
Set the text in a field using wxELLIPSIZE_MIDDLE option to adjust the text size to the field size.
PROJECT & Prj() const
Return a reference to the PROJECT associated with this KIWAY.
KIWAY & Kiway() const
Return a reference to the KIWAY that this object has an opportunity to participate in.
virtual void SetLanguage(int aLanguage)
Change the language and then calls ShowChangedLanguage() on all #KIWAY_PLAYERs.
virtual KIFACE * KiFACE(FACE_T aFaceId, bool doLoad=true)
Return the KIFACE* given a FACE_T.
LOCAL_HISTORY & LocalHistory()
Return the LOCAL_HISTORY associated with this KIWAY.
wxString GetHeadHash(const wxString &aProjectPath)
Return the current head commit hash.
bool RestoreCommit(const wxString &aProjectPath, const wxString &aHash, wxWindow *aParent=nullptr)
Restore the project files to the state recorded by the given commit hash.
bool EnforceSizeLimit(const wxString &aProjectPath, size_t aMaxBytes)
Enforce total size limit by rebuilding trimmed history keeping newest commits whose cumulative unique...
bool Init(const wxString &aProjectPath)
Initialize the local history repository for the given project path.
bool OverrideLock(bool aRemoveOnRelease=true)
Force the lock, overwriting the data that existed already.
void RegisterStatusBar(KISTATUSBAR *aStatusBar)
Add a status bar for handling.
void CreateOrUpdate(const wxString &aKey, const wxString &aTitle, const wxString &aDescription, const wxString &aHref=wxEmptyString)
Create a notification with the given parameters or updates an existing one with the same key.
void Remove(const wxString &aKey)
Remove a notification by key.
void UnregisterStatusBar(KISTATUSBAR *aStatusBar)
Remove status bar from handling.
static REPORTER & GetInstance()
void SetClosable(bool aYes)
void SetProjectTied(bool aYes)
virtual COMMON_SETTINGS * GetCommonSettings() const
void PreloadDesignBlockLibraries(KIWAY *aKiway)
Starts a background job to preload the global and project design block libraries.
virtual BACKGROUND_JOBS_MONITOR & GetBackgroundJobMonitor() const
virtual NOTIFICATIONS_MANAGER & GetNotificationsManager() const
virtual SETTINGS_MANAGER & GetSettingsManager() const
wxString GetHelpFileName()
SEARCH_STACK & SysSearch()
APP_SETTINGS_BASE * PgmSettings()
The project local settings are things that are attached to a particular project, but also might be pa...
bool SaveToFile(const wxString &aDirectory="", bool aForce=false) override
Calls Store() and then writes the contents of the JSON document to a file.
bool ShouldAutoSave() const
std::vector< wxString > m_OpenJobSets
PROJECT_TREE_PANE Window to display the tree files.
void SetProjectLock(LOCKFILE *aLockFile)
virtual void SetReadOnly(bool aReadOnly=true)
virtual const wxString GetProjectFullName() const
Return the full path and name of the project.
virtual const wxString GetProjectPath() const
Return the full path of the project.
virtual PROJECT_LOCAL_SETTINGS & GetLocalSettings() const
Look for files in a number of paths.
static bool ShowNever(const SELECTION &aSelection)
Always returns false.
bool SaveProject(const wxString &aFullPath=wxEmptyString, PROJECT *aProject=nullptr)
Save a loaded project.
bool LoadProject(const wxString &aFullPath, bool aSetActive=true)
Load a project or sets up a new project with a specified path.
bool IsProjectOpen() const
Helper for checking if we have a project open.
bool UnloadProject(PROJECT *aProject, bool aSave=true)
Save, unload and unregister the given PROJECT.
std::vector< wxString > GetOpenProjects() const
bool TriggerBackupIfNeeded(REPORTER &aReporter) const
Call BackupProject() if a new backup is needed according to the current backup policy.
bool AskOverrideLock(wxWindow *aParent, const wxString &aMessage)
Display a dialog indicating the file is already open, with an option to reset the lock.
void DisplayErrorMessage(wxWindow *aParent, const wxString &aText, const wxString &aExtraInfo)
Display an error message with aMessage.
This file is part of the common library.
Base window classes and related definitions.
#define KICAD_DEFAULT_DRAWFRAME_STYLE
#define KICAD_MANAGER_FRAME_NAME
EVT_MENU_RANGE(ID_GERBVIEW_DRILL_FILE1, ID_GERBVIEW_DRILL_FILEMAX, GERBVIEW_FRAME::OnDrlFileHistory) EVT_MENU_RANGE(ID_GERBVIEW_ZIP_FILE1
const wxString GERBVIEW_EXE
wxString FindKicadFile(const wxString &shortname)
Search the executable file shortname in KiCad binary path and return full file name if found or short...
static const std::string LegacySchematicFileExtension
static const std::string GerberJobFileExtension
static const std::string GerberFileExtension
static const std::string ProjectFileExtension
static const std::string LegacyPcbFileExtension
static const std::string LegacyProjectFileExtension
static const std::string KiCadSchematicFileExtension
static const std::string DrillFileExtension
static const std::string KiCadPcbFileExtension
static wxString AllFilesWildcard()
static bool IsGerberFileExtension(const wxString &ext)
@ ID_IMPORT_EAGLE_PROJECT
@ ID_IMPORT_EASYEDAPRO_PROJECT
@ ID_IMPORT_CADSTAR_ARCHIVE_PROJECT
@ ID_EDIT_LOCAL_FILE_IN_TEXT_EDITOR
@ ID_IMPORT_EASYEDA_PROJECT
@ ID_IMPORT_ALTIUM_PROJECT
#define ID_INIT_WATCHED_PATHS
#define PROJECT_FILES_CAPTION
KICOMMON_API wxFont GetStatusFont(wxWindow *aWindow)
#define SEXPR_BOARD_FILE_VERSION
Current s-expression file format version. 2 was the last legacy format version.
PGM_BASE & Pgm()
The global program "get" accessor.
#define SEXPR_SCHEMATIC_FILE_VERSION
Schematic file version.
T * GetToolbarSettings(const wxString &aFilename)
KIWAY Kiway(KFCTL_STANDALONE)
std::vector< FAB_LAYER_COLOR > dummy
Functors that can be used to figure out how the action controls should be displayed in the UI and if ...
ACTION_CONDITIONS & Enable(const SELECTION_CONDITION &aCondition)
unsigned long long limit_total_size
Maximum total size of backups (bytes), 0 for unlimited.
std::shared_ptr< JOBS_OUTPUT_HANDLER > m_outputHandler
Implement a participant in the KIWAY alchemy.
virtual void PreloadLibraries(KIWAY *aKiway)
Definition of file extensions used in Kicad.