KiCad PCB EDA Suite
|
The main KiCad project manager frame. More...
#include <kicad.h>
Classes | |
class | TERMINATE_HANDLER |
Public Member Functions | |
KICAD_MANAGER_FRAME (wxWindow *parent, const wxString &title, const wxPoint &pos, const wxSize &size) | |
~KICAD_MANAGER_FRAME () | |
void | OnCloseWindow (wxCloseEvent &Event) |
void | OnSize (wxSizeEvent &event) |
void | OnChangeIconsOptions (wxCommandEvent &event) override |
Select the current icons options in menus (or toolbars) in Kicad (the default for toolbars/menus is 26x26 pixels, and shows icons in menus). More... | |
void | OnLoadProject (wxCommandEvent &event) |
Load an exiting project (.pro) file. More... | |
void | OnCreateProjectFromTemplate (wxCommandEvent &event) |
Creates a new project folder, copy a template into this new folder. More... | |
void | OnNewProject (wxCommandEvent &aEvent) |
void | OnSaveProject (wxCommandEvent &event) |
Save the project (.pro) file containing the top level configuration parameters. More... | |
void | OnArchiveFiles (wxCommandEvent &event) |
void | OnUnarchiveFiles (wxCommandEvent &event) |
void | OnRunEeschema (wxCommandEvent &event) |
void | OnRunSchLibEditor (wxCommandEvent &event) |
void | OnRunPcbNew (wxCommandEvent &event) |
void | OnRunPcbFpEditor (wxCommandEvent &event) |
void | OnRunGerbview (wxCommandEvent &event) |
void | OnRunBitmapConverter (wxCommandEvent &event) |
void | OnRunPcbCalculator (wxCommandEvent &event) |
void | OnRunPageLayoutEditor (wxCommandEvent &event) |
void | OnConfigurePaths (wxCommandEvent &aEvent) |
void | OnOpenTextEditor (wxCommandEvent &event) |
void | OnOpenFileInTextEditor (wxCommandEvent &event) |
void | OnOpenFileInEditor (wxCommandEvent &event) |
void | OnFileHistory (wxCommandEvent &event) |
void | OnExit (wxCommandEvent &event) |
void | Process_Preferences (wxCommandEvent &event) |
void | Process_Config (wxCommandEvent &event) |
void | ReCreateMenuBar () override |
(Re)Create the menubar More... | |
void | RecreateBaseHToolbar () |
(Re)Create the horizontal toolbar More... | |
void | OnImportEagleFiles (wxCommandEvent &event) |
Open dialog to import Eagle schematic and board files. More... | |
void | PrintMsg (const wxString &aText) |
Displays aText in the text panel. More... | |
void | PrintPrjInfo () |
Prints the current working directory name and the projet name on the text panel. More... | |
void | ClearMsg () |
Erase the text panel. More... | |
void | OnRefresh (wxCommandEvent &event) |
void | OnSelectDefaultPdfBrowser (wxCommandEvent &event) |
void | OnSelectPreferredPdfBrowser (wxCommandEvent &event) |
void | OnUpdateDefaultPdfBrowser (wxUpdateUIEvent &event) |
void | OnUpdatePreferredPdfBrowser (wxUpdateUIEvent &event) |
void | OnUpdateRequiresProject (wxUpdateUIEvent &event) |
void | CreateNewProject (const wxFileName &aProjectFileName) |
Creates a new project by setting up and initial project, schematic, and board files. More... | |
void | LoadProject (const wxFileName &aProjectFileName) |
void | LoadSettings (wxConfigBase *aCfg) override |
Function LoadSettings loads common frame parameters from a configuration file. More... | |
void | SaveSettings (wxConfigBase *aCfg) override |
Function SaveSettings saves common frame parameters to a configuration data file. More... | |
void | Execute (wxWindow *frame, const wxString &execFile, wxString param=wxEmptyString) |
Open another KiCad application and logs a message. More... | |
void | OnChangeWatchedPaths (wxCommandEvent &aEvent) |
Called by sending a event with id = ID_INIT_WATCHED_PATHS rebuild the list of wahtched paths. More... | |
void | SetProjectFileName (const wxString &aFullProjectProFileName) |
const wxString | GetProjectFileName () |
const wxString | SchFileName () |
const wxString | PcbFileName () |
const wxString | PcbLegacyFileName () |
void | ReCreateTreePrj () |
void | RunPcbNew (const wxString &aProjectBoardFileName) |
Call this only for a PCB associated with the current project. More... | |
void | RunEeschema (const wxString &aProjectSchematicFileName) |
Call this only for a SCH associated with the current project. More... | |
bool | ProcessEvent (wxEvent &aEvent) override |
Function ProcessEvent overrides the default process event handler to implement the auto save feature. More... | |
void | SetAutoSaveInterval (int aInterval) |
int | GetAutoSaveInterval () const |
bool | IsType (FRAME_T aType) const |
void | GetKicadHelp (wxCommandEvent &event) |
void | GetKicadContribute (wxCommandEvent &event) |
void | GetKicadAbout (wxCommandEvent &event) |
wxString | ConfigBaseName () |
Function ConfigBaseName. More... | |
virtual void | SaveProjectSettings (bool aAskForSave) |
Function SaveProjectSettings saves changes to the project settings to the project (.pro) file. More... | |
virtual void | OnSelectPreferredEditor (wxCommandEvent &event) |
Function OnSelectPreferredEditor Open a dialog to select the editor that will used in KiCad to edit or display files (reports ... More... | |
int | ReadHotkeyConfig (struct EDA_HOTKEY_CONFIG *aDescList) |
Function ReadHotkeyConfig Read configuration data and fill the current hotkey list with hotkeys. More... | |
virtual int | WriteHotkeyConfig (struct EDA_HOTKEY_CONFIG *aDescList, wxString *aFullFileName=NULL) |
Function WriteHotkeyConfig Store the current hotkey list It is stored using the standard wxConfig mechanism or a file. More... | |
int | ReadHotkeyConfigFile (const wxString &aFilename, struct EDA_HOTKEY_CONFIG *aDescList) |
Function ReadHotkeyConfigFile Read an old configuration file (<file>.key) and fill the current hotkey list with hotkeys. More... | |
void | ImportHotkeyConfigFromFile (EDA_HOTKEY_CONFIG *aDescList, const wxString &aDefaultShortname) |
Function ImportHotkeyConfigFromFile Prompt the user for an old hotkey file to read, and read it. More... | |
void | ExportHotkeyConfigToFile (EDA_HOTKEY_CONFIG *aDescList, const wxString &aDefaultShortname) |
Function ExportHotkeyConfigToFile Prompt the user for an old hotkey file to read, and read it. More... | |
wxString | GetFileFromHistory (int cmdId, const wxString &type, wxFileHistory *aFileHistory=NULL) |
Function GetFileFromHistory fetches the file name from the file history list. More... | |
void | UpdateFileHistory (const wxString &FullFileName, wxFileHistory *aFileHistory=NULL) |
Function UpdateFileHistory Updates the list of recently opened files. More... | |
void | SetMruPath (const wxString &aPath) |
wxString | GetMruPath () const |
bool | IsWritable (const wxFileName &aFileName) |
Function IsWritable checks if aFileName can be written. More... | |
void | CheckForAutoSaveFile (const wxFileName &aFileName, const wxString &aBackupFileExtension) |
Function CheckForAutoSaveFile checks if an auto save file exists for aFileName and takes the appropriate action depending on the user input. More... | |
virtual void | ShowChangedLanguage () |
Function ShowChangedLanguage redraws the menus and what not in current language. More... | |
virtual void | ShowChangedIcons () |
Function ShowChangedIcons redraws items menus after a icon was changed option. More... | |
void | AddMenuIconsOptions (wxMenu *MasterMenu) |
Function AddMenuIconsOptions creates a menu list for icons in menu and icon sizes choice, and add it as submenu to MasterMenu. More... | |
bool | PostCommandMenuEvent (int evt_type) |
Function PostCommandMenuEvent. More... | |
virtual int | GetIconScale () |
Function GetIconScale. More... | |
virtual void | SetIconScale (int aScale) |
Function SetIconScale. More... | |
Protected Member Functions | |
void | onAutoSaveTimer (wxTimerEvent &aEvent) |
Function onAutoSaveTimer handles the auto save timer event. More... | |
virtual bool | isAutoSaveRequired () const |
Function autoSaveRequired returns the auto save status of the application. More... | |
virtual bool | doAutoSave () |
Function doAutoSave should be overridden by the derived class to handle the auto save feature. More... | |
Protected Attributes | |
FRAME_T | m_Ident |
Id Type (pcb, schematic, library..) More... | |
wxPoint | m_FramePos |
wxSize | m_FrameSize |
wxString | m_configFrameName |
prefix used in config to identify some params (frame size...) if empty, the frame name defined in CTOR is used More... | |
wxAuiToolBar * | m_mainToolBar |
Standard horizontal Toolbar. More... | |
wxString | m_AboutTitle |
Name of program displayed in About. More... | |
wxAuiManager | m_auimgr |
bool | m_hasAutoSave |
Flag to indicate if this frame supports auto save. More... | |
bool | m_autoSaveState |
Flag to indicate the last auto save state. More... | |
int | m_autoSaveInterval |
The auto save interval time in seconds. More... | |
wxTimer * | m_autoSaveTimer |
The timer used to implement the auto save feature;. More... | |
wxString | m_perspective |
wxAuiManager perspective. More... | |
wxString | m_mruPath |
Most recently used path. More... | |
Static Protected Attributes | |
static constexpr int | KICAD_AUI_TB_STYLE = wxAUI_TB_DEFAULT_STYLE | wxAUI_TB_PLAIN_BACKGROUND |
More... | |
Private Member Functions | |
wxConfigBase * | config () override |
Function config returns the wxConfigBase used in SaveSettings(), and is overloaded in KICAD_MANAGER_FRAME. More... | |
const SEARCH_STACK & | sys_search () override |
Function sys_search returns a SEARCH_STACK pertaining to entire program, and is overloaded in KICAD_MANAGER_FRAME. More... | |
wxString | help_name () override |
void | language_change (wxCommandEvent &event) |
Private Attributes | |
TREE_PROJECT_FRAME * | m_LeftWin |
LAUNCHER_PANEL * | m_Launcher |
wxTextCtrl * | m_MessagesBox |
wxAuiToolBar * | m_VToolBar |
int | m_leftWinWidth |
EDA_HOTKEY_CONFIG * | m_manager_Hokeys_Descr |
bool | m_active_project |
The main KiCad project manager frame.
It is not a KIWAY_PLAYER.
KICAD_MANAGER_FRAME::KICAD_MANAGER_FRAME | ( | wxWindow * | parent, |
const wxString & | title, | ||
const wxPoint & | pos, | ||
const wxSize & | size | ||
) |
Definition at line 50 of file mainframe.cpp.
References config(), GetBuildVersion(), LAUNCHER_PANEL::GetPanelHeight(), LAUNCHER_PANEL::GetPanelWidth(), EDA_PANEINFO::HorizontalToolbarPane(), EDA_PANEINFO::InfoToolbarPane(), KiBitmap(), PCAD2KICAD::Left, LoadSettings(), m_active_project, EDA_BASE_FRAME::m_auimgr, EDA_BASE_FRAME::m_FramePos, EDA_BASE_FRAME::m_FrameSize, m_Launcher, m_LeftWin, m_leftWinWidth, EDA_BASE_FRAME::m_mainToolBar, m_manager_Hokeys_Descr, m_MessagesBox, RecreateBaseHToolbar(), ReCreateMenuBar(), wxPoint::x, and wxPoint::y.
KICAD_MANAGER_FRAME::~KICAD_MANAGER_FRAME | ( | ) |
|
inherited |
Function AddMenuIconsOptions creates a menu list for icons in menu and icon sizes choice, and add it as submenu to MasterMenu.
MasterMenu | The main menu. The sub menu list will be accessible from the menu item with id ID_KICAD_SELECT_ICONS_OPTIONS |
Definition at line 693 of file eda_base_frame.cpp.
References AddMenuItem(), ID_KICAD_SELECT_ICONS_IN_MENUS, ID_KICAD_SELECT_ICONS_OPTIONS, KiBitmap(), and Pgm().
Referenced by EDA_BASE_FRAME::GetMruPath(), preparePreferencesMenu(), PL_EDITOR_FRAME::ReCreateMenuBar(), ReCreateMenuBar(), and GERBVIEW_FRAME::ReCreateMenuBar().
|
inherited |
Function CheckForAutoSaveFile checks if an auto save file exists for aFileName and takes the appropriate action depending on the user input.
If an auto save file exists for aFileName, the user is prompted if they wish to replace file aFileName with the auto saved file. If the user chooses to replace the file, the backup file of aFileName is removed, aFileName is renamed to the backup file name, and the auto save file is renamed to aFileName. If user chooses to keep the existing version of aFileName, the auto save file is removed.
aFileName | A wxFileName object containing the file name to check. |
aBackupFileExtension | A wxString object containing the backup file extension used to create the backup file name. |
Definition at line 598 of file eda_base_frame.cpp.
References AUTOSAVE_PREFIX_FILENAME, Format(), GetChars(), Pgm(), and traceAutoSave.
Referenced by EDA_BASE_FRAME::GetMruPath(), and PCB_EDIT_FRAME::OpenProjectFiles().
void KICAD_MANAGER_FRAME::ClearMsg | ( | ) |
Erase the text panel.
Definition at line 529 of file mainframe.cpp.
References m_MessagesBox.
Referenced by LoadProject(), OnCreateProjectFromTemplate(), and OnImportEagleFiles().
|
overrideprivatevirtual |
Function config returns the wxConfigBase used in SaveSettings(), and is overloaded in KICAD_MANAGER_FRAME.
Reimplemented from EDA_BASE_FRAME.
Definition at line 127 of file mainframe.cpp.
References PGM_KICAD::PgmSettings(), and PgmTop().
Referenced by KICAD_MANAGER_FRAME(), and KICAD_MANAGER_FRAME::TERMINATE_HANDLER::TERMINATE_HANDLER().
|
inlineinherited |
Function ConfigBaseName.
Definition at line 260 of file eda_base_frame.h.
References EDA_BASE_FRAME::m_configFrameName.
Referenced by EDA_BASE_FRAME::LoadSettings(), EDA_DRAW_FRAME::LoadSettings(), EDA_BASE_FRAME::SaveSettings(), and EDA_DRAW_FRAME::SaveSettings().
void KICAD_MANAGER_FRAME::CreateNewProject | ( | const wxFileName & | aProjectFileName | ) |
Creates a new project by setting up and initial project, schematic, and board files.
The project file is copied from the kicad.pro template file if possible. Otherwise, a minimal project file is created from an empty project. A minimal schematic and board file are created to prevent the schematic and board editors from complaining. If any of these files already exist, they are not overwritten.
aProjectFileName | is the absolute path of the project file name. |
Definition at line 108 of file prjconfig.cpp.
References PROJECT::ConfigSave(), SEARCH_STACK::FindValidPath(), GeneralGroupName, KiCadPcbFileExtension, LegacyPcbFileExtension, PgmTop(), Prj(), SchematicFileExtension, SetProjectFileName(), and sys_search().
Referenced by OnCreateProjectFromTemplate(), and OnNewProject().
|
protectedvirtualinherited |
Function doAutoSave should be overridden by the derived class to handle the auto save feature.
Reimplemented in PCB_EDIT_FRAME, and SCH_EDIT_FRAME.
Definition at line 251 of file eda_base_frame.cpp.
Referenced by EDA_BASE_FRAME::isAutoSaveRequired(), and EDA_BASE_FRAME::onAutoSaveTimer().
void KICAD_MANAGER_FRAME::Execute | ( | wxWindow * | frame, |
const wxString & | execFile, | ||
wxString | param = wxEmptyString |
||
) |
Open another KiCad application and logs a message.
frame | = owner frame. |
execFile | = name of the executable file. |
param | = parameters to be passed to the executable. |
Definition at line 272 of file mainframe.cpp.
References AddDelimiterString(), ExecuteFile(), Format(), GetChars(), and PrintMsg().
Referenced by TREEPROJECT_ITEM::Activate(), OnOpenFileInTextEditor(), OnOpenTextEditor(), OnRunBitmapConverter(), OnRunGerbview(), OnRunPageLayoutEditor(), and OnRunPcbCalculator().
|
inherited |
Function ExportHotkeyConfigToFile Prompt the user for an old hotkey file to read, and read it.
aDescList | = current hotkey list descr. to initialize. |
aDefaultShortname | = a default short name (extention not needed) like eechema, kicad... |
Definition at line 757 of file hotkeys_basic.cpp.
References DEFAULT_HOTKEY_FILENAME_EXT, EDA_FILE_SELECTOR(), and Prj().
Referenced by Process_Config(), LIB_EDIT_FRAME::Process_Config(), SCH_EDIT_FRAME::Process_Config(), PL_EDITOR_FRAME::Process_Config(), PCB_EDIT_FRAME::Process_Config(), GERBVIEW_FRAME::Process_Config(), FOOTPRINT_EDIT_FRAME::ProcessPreferences(), and EDA_BASE_FRAME::SaveProjectSettings().
|
inlineinherited |
Definition at line 219 of file eda_base_frame.h.
References EDA_BASE_FRAME::m_autoSaveInterval.
Referenced by DIALOG_GENERALOPTIONS::init(), and SCH_EDIT_FRAME::OnPreferencesOptions().
|
inherited |
Function GetFileFromHistory fetches the file name from the file history list.
and removes the selected file, if this file does not exists Note also the menu is updated, if wxFileHistory::UseMenu was called at init time
cmdId | The command ID associated with the aFileHistory object. |
type | Please document me! |
aFileHistory | The wxFileHistory in use. If null, the main application file history is used |
Definition at line 420 of file eda_base_frame.cpp.
References Format(), GetChars(), KIFACE_I::GetFileHistory(), i, and Kiface().
Referenced by GERBVIEW_FRAME::OnDrlFileHistory(), OnFileHistory(), PL_EDITOR_FRAME::OnFileHistory(), PCB_EDIT_FRAME::OnFileHistory(), GERBVIEW_FRAME::OnGbrFileHistory(), GERBVIEW_FRAME::OnJobFileHistory(), GERBVIEW_FRAME::OnZipFileHistory(), and EDA_BASE_FRAME::SaveProjectSettings().
|
inlinevirtualinherited |
Function GetIconScale.
Return the desired scaling for toolbar/menubar icons in fourths (e.g. 4 is unity). A negative number indicates autoscale based on font size.
Reimplemented in PCB_EDIT_FRAME, SCH_EDIT_FRAME, GERBVIEW_FRAME, LIB_EDIT_FRAME, and FOOTPRINT_EDIT_FRAME.
Definition at line 453 of file eda_base_frame.h.
Referenced by get_scale_factor(), and FOOTPRINT_EDIT_FRAME::GetIconScale().
|
inherited |
Definition at line 547 of file eda_base_frame.cpp.
References ShowAboutDialog().
Referenced by add_search_paths(), and EDA_BASE_FRAME::IsType().
|
inherited |
Definition at line 534 of file eda_base_frame.cpp.
References URL_GET_INVOLVED.
Referenced by add_search_paths(), and EDA_BASE_FRAME::IsType().
|
inherited |
Definition at line 456 of file eda_base_frame.cpp.
References DIM, Format(), GetAssociatedDocument(), GetChars(), EDA_BASE_FRAME::help_name(), SearchHelpFileFullPath(), and EDA_BASE_FRAME::sys_search().
Referenced by add_search_paths(), and EDA_BASE_FRAME::IsType().
|
inlineinherited |
Definition at line 363 of file eda_base_frame.h.
References EDA_BASE_FRAME::AddMenuIconsOptions(), EDA_BASE_FRAME::CheckForAutoSaveFile(), EDA_BASE_FRAME::IsWritable(), EDA_BASE_FRAME::m_mruPath, EDA_BASE_FRAME::OnChangeIconsOptions(), EDA_BASE_FRAME::PostCommandMenuEvent(), EDA_BASE_FRAME::ReCreateMenuBar(), EDA_BASE_FRAME::ShowChangedIcons(), and EDA_BASE_FRAME::ShowChangedLanguage().
Referenced by OnImportEagleFiles(), OnLoadProject(), and OnNewProject().
const wxString KICAD_MANAGER_FRAME::GetProjectFileName | ( | ) |
Definition at line 147 of file mainframe.cpp.
References PROJECT::GetProjectFullName(), and Prj().
Referenced by TREE_PROJECT_FRAME::AddItemToTreeProject(), TREE_PROJECT_FRAME::FileWatcherReset(), TREE_PROJECT_FRAME::findSubdirTreeItem(), OnArchiveFiles(), OnCloseWindow(), TREE_PROJECT_FRAME::OnCreateNewDirectory(), OnImportEagleFiles(), OnRunEeschema(), OnSaveProject(), OnUnarchiveFiles(), PcbFileName(), PcbLegacyFileName(), PrintPrjInfo(), TREE_PROJECT_FRAME::ReCreateTreePrj(), SchFileName(), and KICAD_MANAGER_FRAME::TERMINATE_HANDLER::TERMINATE_HANDLER().
|
overrideprivatevirtual |
Reimplemented from EDA_BASE_FRAME.
Definition at line 195 of file mainframe.cpp.
References PGM_KICAD::GetHelpFileName(), and PgmTop().
Referenced by KICAD_MANAGER_FRAME::TERMINATE_HANDLER::TERMINATE_HANDLER().
|
inherited |
Function ImportHotkeyConfigFromFile Prompt the user for an old hotkey file to read, and read it.
aDescList | = current hotkey list descr. to initialize. |
aDefaultShortname | = a default short name (extention not needed) like eechema, kicad... |
Definition at line 728 of file hotkeys_basic.cpp.
References DEFAULT_HOTKEY_FILENAME_EXT, and EDA_FILE_SELECTOR().
Referenced by Process_Config(), LIB_EDIT_FRAME::Process_Config(), SCH_EDIT_FRAME::Process_Config(), PL_EDITOR_FRAME::Process_Config(), PCB_EDIT_FRAME::Process_Config(), GERBVIEW_FRAME::Process_Config(), FOOTPRINT_EDIT_FRAME::ProcessPreferences(), and EDA_BASE_FRAME::SaveProjectSettings().
|
inlineprotectedvirtualinherited |
Function autoSaveRequired returns the auto save status of the application.
Override this function if your derived frame supports automatic file saving.
Reimplemented in PCB_EDIT_FRAME, and SCH_EDIT_FRAME.
Definition at line 175 of file eda_base_frame.h.
References EDA_BASE_FRAME::config(), EDA_BASE_FRAME::doAutoSave(), EDA_BASE_FRAME::EDA_BASE_FRAME(), EDA_BASE_FRAME::help_name(), EDA_BASE_FRAME::ProcessEvent(), EDA_BASE_FRAME::SetAutoSaveInterval(), EDA_BASE_FRAME::sys_search(), and EDA_BASE_FRAME::~EDA_BASE_FRAME().
Referenced by EDA_BASE_FRAME::ProcessEvent().
|
inlineinherited |
Definition at line 221 of file eda_base_frame.h.
References EDA_BASE_FRAME::GetKicadAbout(), EDA_BASE_FRAME::GetKicadContribute(), EDA_BASE_FRAME::GetKicadHelp(), EDA_BASE_FRAME::LoadSettings(), EDA_BASE_FRAME::PrintMsg(), and EDA_BASE_FRAME::SaveSettings().
Referenced by BOARD_COMMIT::BOARD_COMMIT(), LIB_PIN::drawGraphic(), BOARD_PRINTOUT_CONTROLLER::DrawPage(), DIALOG_EDIT_ONE_FIELD::init(), DIALOG_PAD_PROPERTIES::initValues(), PCB_LAYER_WIDGET::OnRenderEnable(), PCBNEW_CONTROL::PasteItemsFromClipboard(), PCB_BASE_FRAME::PlaceTexteModule(), and PCB_BASE_FRAME::RotateTextModule().
|
inherited |
Function IsWritable checks if aFileName can be written.
The function performs a number of tests on aFileName to verify that it can be saved. If aFileName defines a path with no file name, them the path is tested for user write permission. If aFileName defines a file name that does not exist in the path, the path is tested for user write permission. If aFileName defines a file that already exits, the file name is tested for user write permissions.
aFileName | The full path and/or file name of the file to test. |
Definition at line 554 of file eda_base_frame.cpp.
References GetChars().
Referenced by SCH_EDIT_FRAME::doAutoSave(), EDA_BASE_FRAME::GetMruPath(), SCH_EDIT_FRAME::SaveEEFile(), LIB_EDIT_FRAME::saveLibrary(), PCB_EDIT_FRAME::SavePcbCopy(), PCB_EDIT_FRAME::SavePcbFile(), CVPCB_MAINFRAME::SaveProjectFile(), and SCH_EDIT_FRAME::SaveProjectSettings().
|
private |
Definition at line 522 of file mainframe.cpp.
References Kiway, and KIWAY::SetLanguage().
void KICAD_MANAGER_FRAME::LoadProject | ( | const wxFileName & | aProjectFileName | ) |
Definition at line 61 of file prjconfig.cpp.
References ClearMsg(), PROJECT::ConfigLoad(), GeneralGroupName, GetBuildVersion(), PGM_KICAD::GetFileHistory(), ID_INIT_WATCHED_PATHS, Kiway, m_active_project, m_LeftWin, PgmTop(), KIWAY::PlayersClose(), PrintPrjInfo(), Prj(), TREE_PROJECT_FRAME::ReCreateTreePrj(), EDA_BASE_FRAME::SetMruPath(), SetProjectFileName(), and EDA_BASE_FRAME::UpdateFileHistory().
Referenced by PGM_KICAD::MacOpenFile(), OnCreateProjectFromTemplate(), OnFileHistory(), OnLoadProject(), OnNewProject(), and PGM_KICAD::OnPgmInit().
|
overridevirtual |
Function LoadSettings loads common frame parameters from a configuration file.
Don't forget to call the base method or your frames won't remember their positions and sizes.
Reimplemented from EDA_BASE_FRAME.
Definition at line 535 of file mainframe.cpp.
References EDA_BASE_FRAME::LoadSettings(), m_leftWinWidth, and TREE_FRAME_WIDTH_ENTRY.
Referenced by KICAD_MANAGER_FRAME().
void KICAD_MANAGER_FRAME::OnArchiveFiles | ( | wxCommandEvent & | event | ) |
Definition at line 134 of file kicad/files-io.cpp.
References DIM, Format(), GetChars(), GetProjectFileName(), PrintMsg(), and ZipFileWildcard().
|
protectedinherited |
Function onAutoSaveTimer handles the auto save timer event.
Definition at line 244 of file eda_base_frame.cpp.
References EDA_BASE_FRAME::doAutoSave(), EDA_BASE_FRAME::m_autoSaveInterval, and EDA_BASE_FRAME::m_autoSaveTimer.
Referenced by EDA_BASE_FRAME::EDA_BASE_FRAME().
|
overridevirtual |
Select the current icons options in menus (or toolbars) in Kicad (the default for toolbars/menus is 26x26 pixels, and shows icons in menus).
Reimplemented from EDA_BASE_FRAME.
Definition at line 451 of file mainframe.cpp.
References Kiway, EDA_BASE_FRAME::OnChangeIconsOptions(), and KIWAY::ShowChangedIcons().
void KICAD_MANAGER_FRAME::OnChangeWatchedPaths | ( | wxCommandEvent & | aEvent | ) |
Called by sending a event with id = ID_INIT_WATCHED_PATHS rebuild the list of wahtched paths.
Definition at line 1090 of file tree_project_frame.cpp.
Referenced by KICAD_MANAGER_FRAME::TERMINATE_HANDLER::TERMINATE_HANDLER().
void KICAD_MANAGER_FRAME::OnCloseWindow | ( | wxCloseEvent & | Event | ) |
Definition at line 216 of file mainframe.cpp.
References PGM_KICAD::GetFileHistory(), GetProjectFileName(), Kiway, EDA_BASE_FRAME::m_FramePos, EDA_BASE_FRAME::m_FrameSize, m_LeftWin, PgmTop(), KIWAY::PlayersClose(), EDA_BASE_FRAME::UpdateFileHistory(), wxPoint::x, and wxPoint::y.
void KICAD_MANAGER_FRAME::OnConfigurePaths | ( | wxCommandEvent & | aEvent | ) |
Definition at line 589 of file mainframe.cpp.
References PGM_BASE::ConfigurePaths(), and Pgm().
void KICAD_MANAGER_FRAME::OnCreateProjectFromTemplate | ( | wxCommandEvent & | event | ) |
Creates a new project folder, copy a template into this new folder.
and open this new projrct as working project
Definition at line 271 of file prjconfig.cpp.
References DIALOG_TEMPLATE_SELECTOR::AddTemplatesPage(), ClearMsg(), CreateNewProject(), PROJECT_TEMPLATE::CreateProject(), PROJECT_TEMPLATE::GetDestinationFiles(), DIALOG_TEMPLATE_SELECTOR::GetSelectedTemplate(), LoadProject(), Prj(), and SEP.
void KICAD_MANAGER_FRAME::OnExit | ( | wxCommandEvent & | event | ) |
Definition at line 245 of file mainframe.cpp.
void KICAD_MANAGER_FRAME::OnFileHistory | ( | wxCommandEvent & | event | ) |
Definition at line 46 of file kicad/files-io.cpp.
References EDA_BASE_FRAME::GetFileFromHistory(), PGM_KICAD::GetFileHistory(), LoadProject(), and PgmTop().
void KICAD_MANAGER_FRAME::OnImportEagleFiles | ( | wxCommandEvent & | event | ) |
Open dialog to import Eagle schematic and board files.
Definition at line 53 of file import_project.cpp.
References ClearMsg(), IO_MGR::EAGLE, EagleFilesWildcard(), err, KIWAY::ExpressMail(), Format(), FRAME_PCB, FRAME_SCH, EDA_BASE_FRAME::GetMruPath(), GetProjectFileName(), IsOK(), KIWAY_HOLDER::Kiway(), Kiway, LegacyPcbFileExtension, m_active_project, MAIL_IMPORT_FILE, KIWAY::Player(), KIWAY::PlayersClose(), ProjectFileExtension, ReCreateTreePrj(), SchematicFileExtension, SetProjectFileName(), and IO_ERROR::What().
void KICAD_MANAGER_FRAME::OnLoadProject | ( | wxCommandEvent & | event | ) |
Load an exiting project (.pro) file.
Definition at line 165 of file prjconfig.cpp.
References EDA_BASE_FRAME::GetMruPath(), LoadProject(), ProjectFileExtension, and ProjectFileWildcard().
void KICAD_MANAGER_FRAME::OnNewProject | ( | wxCommandEvent & | aEvent | ) |
Definition at line 219 of file prjconfig.cpp.
References DIR_CHECKBOX::Create(), CreateNewProject(), DisplayErrorMessage(), EDA_BASE_FRAME::GetMruPath(), IsOK(), LoadProject(), ProjectFileExtension, and ProjectFileWildcard().
void KICAD_MANAGER_FRAME::OnOpenFileInEditor | ( | wxCommandEvent & | event | ) |
void KICAD_MANAGER_FRAME::OnOpenFileInTextEditor | ( | wxCommandEvent & | event | ) |
Definition at line 495 of file mainframe.cpp.
References AllFilesWildcard, Execute(), PGM_BASE::GetEditorName(), PROJECT::GetProjectPath(), Pgm(), and Prj().
void KICAD_MANAGER_FRAME::OnOpenTextEditor | ( | wxCommandEvent & | event | ) |
Definition at line 486 of file mainframe.cpp.
References Execute(), PGM_BASE::GetEditorName(), and Pgm().
void KICAD_MANAGER_FRAME::OnRefresh | ( | wxCommandEvent & | event | ) |
Definition at line 516 of file mainframe.cpp.
References m_LeftWin, and TREE_PROJECT_FRAME::ReCreateTreePrj().
Referenced by OnUnarchiveFiles().
void KICAD_MANAGER_FRAME::OnRunBitmapConverter | ( | wxCommandEvent & | event | ) |
Definition at line 458 of file mainframe.cpp.
References BITMAPCONVERTER_EXE, and Execute().
void KICAD_MANAGER_FRAME::OnRunEeschema | ( | wxCommandEvent & | event | ) |
Definition at line 343 of file mainframe.cpp.
References GetProjectFileName(), RunEeschema(), and SchematicFileExtension.
void KICAD_MANAGER_FRAME::OnRunGerbview | ( | wxCommandEvent & | event | ) |
Definition at line 477 of file mainframe.cpp.
References Execute(), GERBVIEW_EXE, and Prj().
void KICAD_MANAGER_FRAME::OnRunPageLayoutEditor | ( | wxCommandEvent & | event | ) |
Definition at line 470 of file mainframe.cpp.
References Execute(), and PL_EDITOR_EXE.
void KICAD_MANAGER_FRAME::OnRunPcbCalculator | ( | wxCommandEvent & | event | ) |
Definition at line 464 of file mainframe.cpp.
References Execute(), and PCB_CALCULATOR_EXE.
void KICAD_MANAGER_FRAME::OnRunPcbFpEditor | ( | wxCommandEvent & | event | ) |
Definition at line 423 of file mainframe.cpp.
References err, FRAME_PCB_MODULE_EDITOR, Kiway, KIWAY::Player(), and IO_ERROR::What().
void KICAD_MANAGER_FRAME::OnRunPcbNew | ( | wxCommandEvent & | event | ) |
Definition at line 411 of file mainframe.cpp.
References PcbFileName(), PcbLegacyFileName(), and RunPcbNew().
void KICAD_MANAGER_FRAME::OnRunSchLibEditor | ( | wxCommandEvent & | event | ) |
Definition at line 351 of file mainframe.cpp.
References err, FRAME_SCH_LIB_EDITOR, Kiway, KIWAY::Player(), and IO_ERROR::What().
void KICAD_MANAGER_FRAME::OnSaveProject | ( | wxCommandEvent & | event | ) |
Save the project (.pro) file containing the top level configuration parameters.
Definition at line 441 of file prjconfig.cpp.
References PROJECT::ConfigSave(), GeneralGroupName, GetProjectFileName(), PgmTop(), and Prj().
void KICAD_MANAGER_FRAME::OnSelectDefaultPdfBrowser | ( | wxCommandEvent & | event | ) |
Definition at line 43 of file preferences.cpp.
References PGM_BASE::ForceSystemPdfBrowser(), Pgm(), and PGM_BASE::WritePdfBrowserInfos().
|
virtualinherited |
Function OnSelectPreferredEditor Open a dialog to select the editor that will used in KiCad to edit or display files (reports ...
) The full filename editor is saved in configuration (global params)
Definition at line 517 of file eda_base_frame.cpp.
References PGM_BASE::AskUserForPreferredEditor(), PGM_BASE::GetEditorName(), Pgm(), and PGM_BASE::SetEditorName().
Referenced by EDA_BASE_FRAME::SaveProjectSettings().
void KICAD_MANAGER_FRAME::OnSelectPreferredPdfBrowser | ( | wxCommandEvent & | event | ) |
Definition at line 56 of file preferences.cpp.
References DisplayError(), PGM_BASE::ForceSystemPdfBrowser(), PGM_BASE::GetPdfBrowserName(), ID_SELECT_PREFERED_PDF_BROWSER_NAME, Pgm(), PGM_BASE::ReadPdfBrowserInfos(), PGM_BASE::SetPdfBrowserName(), and PGM_BASE::WritePdfBrowserInfos().
void KICAD_MANAGER_FRAME::OnSize | ( | wxSizeEvent & | event | ) |
void KICAD_MANAGER_FRAME::OnUnarchiveFiles | ( | wxCommandEvent & | event | ) |
Definition at line 57 of file kicad/files-io.cpp.
References DisplayError(), dummy(), Format(), GetChars(), GetProjectFileName(), OnRefresh(), PrintMsg(), Prj(), ZipFileExtension, and ZipFileWildcard().
void KICAD_MANAGER_FRAME::OnUpdateDefaultPdfBrowser | ( | wxUpdateUIEvent & | event | ) |
void KICAD_MANAGER_FRAME::OnUpdatePreferredPdfBrowser | ( | wxUpdateUIEvent & | event | ) |
void KICAD_MANAGER_FRAME::OnUpdateRequiresProject | ( | wxUpdateUIEvent & | event | ) |
const wxString KICAD_MANAGER_FRAME::PcbFileName | ( | ) |
Definition at line 163 of file mainframe.cpp.
References GetProjectFileName(), and PcbFileExtension.
Referenced by TREEPROJECT_ITEM::Activate(), OnRunPcbNew(), and KICAD_MANAGER_FRAME::TERMINATE_HANDLER::TERMINATE_HANDLER().
const wxString KICAD_MANAGER_FRAME::PcbLegacyFileName | ( | ) |
Definition at line 173 of file mainframe.cpp.
References GetProjectFileName(), and LegacyPcbFileExtension.
Referenced by TREEPROJECT_ITEM::Activate(), OnRunPcbNew(), and KICAD_MANAGER_FRAME::TERMINATE_HANDLER::TERMINATE_HANDLER().
|
inherited |
Function PostCommandMenuEvent.
Post a menu event to the frame, which can be used to trigger actions bound to menu items.
Definition at line 667 of file eda_base_frame.cpp.
Referenced by EDA_BASE_FRAME::GetMruPath(), FOOTPRINT_EDIT_FRAME::OnHotKey(), FOOTPRINT_EDIT_FRAME::OnHotkeyDeleteItem(), FOOTPRINT_EDIT_FRAME::OnHotkeyDuplicateItem(), PCB_EDIT_FRAME::OnHotkeyDuplicateOrArrayItem(), FOOTPRINT_EDIT_FRAME::OnHotkeyEditItem(), FOOTPRINT_EDIT_FRAME::OnHotkeyMoveItem(), FOOTPRINT_EDIT_FRAME::OnHotkeyMoveItemExact(), and FOOTPRINT_EDIT_FRAME::OnHotkeyRotateItem().
void KICAD_MANAGER_FRAME::PrintMsg | ( | const wxString & | aText | ) |
Displays aText in the text panel.
aText | The text to display. |
Definition at line 201 of file mainframe.cpp.
References m_MessagesBox.
Referenced by Execute(), OnArchiveFiles(), KICAD_MANAGER_FRAME::TERMINATE_HANDLER::OnTerminate(), OnUnarchiveFiles(), and PrintPrjInfo().
void KICAD_MANAGER_FRAME::PrintPrjInfo | ( | ) |
Prints the current working directory name and the projet name on the text panel.
Definition at line 549 of file mainframe.cpp.
References Format(), GetChars(), GetProjectFileName(), and PrintMsg().
Referenced by LoadProject().
void KICAD_MANAGER_FRAME::Process_Config | ( | wxCommandEvent & | event | ) |
Definition at line 557 of file mainframe.cpp.
References DisplayHotkeyList(), EDA_BASE_FRAME::ExportHotkeyConfigToFile(), ID_PREFERENCES_HOTKEY_EXPORT_CONFIG, ID_PREFERENCES_HOTKEY_IMPORT_CONFIG, ID_PREFERENCES_HOTKEY_SHOW_CURRENT_LIST, ID_PREFERENCES_HOTKEY_SHOW_EDITOR, EDA_BASE_FRAME::ImportHotkeyConfigFromFile(), InstallHotkeyFrame(), and m_manager_Hokeys_Descr.
void KICAD_MANAGER_FRAME::Process_Preferences | ( | wxCommandEvent & | event | ) |
|
overrideinherited |
Function ProcessEvent overrides the default process event handler to implement the auto save feature.
Definition at line 186 of file eda_base_frame.cpp.
References EDA_BASE_FRAME::findQuasiModalDialog(), EDA_BASE_FRAME::isAutoSaveRequired(), EDA_BASE_FRAME::m_autoSaveInterval, EDA_BASE_FRAME::m_autoSaveState, EDA_BASE_FRAME::m_autoSaveTimer, EDA_BASE_FRAME::m_hasAutoSave, and traceAutoSave.
Referenced by EDA_BASE_FRAME::isAutoSaveRequired(), LIB_VIEW_FRAME::onSelectNextSymbol(), LIB_VIEW_FRAME::onSelectPreviousSymbol(), KIWAY::ProcessEvent(), LIB_VIEW_FRAME::ReCreateListCmp(), GERBVIEW_CONTROL::SwitchUnits(), and PCBNEW_CONTROL::SwitchUnits().
|
inherited |
Function ReadHotkeyConfig Read configuration data and fill the current hotkey list with hotkeys.
aDescList | = current hotkey list descr. to initialize. |
Definition at line 649 of file hotkeys_basic.cpp.
References ReadHotkeyConfig().
Referenced by EDA_BASE_FRAME::SaveProjectSettings().
|
inherited |
Function ReadHotkeyConfigFile Read an old configuration file (<file>.key) and fill the current hotkey list with hotkeys.
aFilename | = file name to read. |
aDescList | = current hotkey list descr. to initialize. |
Definition at line 594 of file hotkeys_basic.cpp.
References DEFAULT_HOTKEY_FILENAME_EXT, and ParseHotkeyConfig().
Referenced by EDA_BASE_FRAME::SaveProjectSettings().
void KICAD_MANAGER_FRAME::RecreateBaseHToolbar | ( | ) |
(Re)Create the horizontal toolbar
Definition at line 497 of file kicad/menubar.cpp.
References ID_H_TOOLBAR, ID_LOAD_PROJECT, ID_NEW_PROJECT, ID_NEW_PROJECT_FROM_TEMPLATE, ID_PROJECT_TREE_REFRESH, ID_READ_ZIP_ARCHIVE, ID_SAVE_AND_ZIP_FILES, ID_SAVE_PROJECT, EDA_BASE_FRAME::KICAD_AUI_TB_STYLE, KiScaledBitmap(), KiScaledSeparator(), and EDA_BASE_FRAME::m_mainToolBar.
Referenced by KICAD_MANAGER_FRAME().
|
overridevirtual |
(Re)Create the menubar
Reimplemented from EDA_BASE_FRAME.
Definition at line 194 of file kicad/menubar.cpp.
References AddHotkeyConfigMenu(), AddHotkeyName(), EDA_BASE_FRAME::AddMenuIconsOptions(), AddMenuItem(), PGM_BASE::AddMenuLanguageList(), PGM_KICAD::GetFileHistory(), HK_HELP, HK_NEW, HK_NEW_PRJ_TEMPLATE, HK_OPEN, HK_REFRESH, HK_RUN_BM2COMPONENT, HK_RUN_EESCHEMA, HK_RUN_FPEDITOR, HK_RUN_GERBVIEW, HK_RUN_LIBEDIT, HK_RUN_PCBCALCULATOR, HK_RUN_PCBNEW, HK_RUN_PLEDITOR, HK_SAVE, ID_BROWSE_AN_SELECT_FILE, ID_HELP_GET_INVOLVED, ID_IMPORT_EAGLE_PROJECT, ID_LOAD_PROJECT, ID_NEW_PROJECT, ID_NEW_PROJECT_FROM_TEMPLATE, ID_PREFERENCES_CONFIGURE_PATHS, ID_PREFERENCES_HOTKEY_SHOW_CURRENT_LIST, ID_PROJECT_TREE_REFRESH, ID_READ_ZIP_ARCHIVE, ID_SAVE_AND_ZIP_FILES, ID_SAVE_PROJECT, ID_SELECT_DEFAULT_PDF_BROWSER, ID_SELECT_PREFERED_EDITOR, ID_SELECT_PREFERED_PDF_BROWSER, ID_SELECT_PREFERED_PDF_BROWSER_NAME, ID_TO_BITMAP_CONVERTER, ID_TO_GERBVIEW, ID_TO_PCB, ID_TO_PCB_CALCULATOR, ID_TO_PCB_FP_EDITOR, ID_TO_PL_EDITOR, ID_TO_SCH, ID_TO_SCH_LIB_EDITOR, ID_TO_TEXT_EDITOR, KiBitmap(), kicad_Manager_Hokeys_Descr, m_manager_Hokeys_Descr, Pgm(), and PgmTop().
Referenced by KICAD_MANAGER_FRAME().
void KICAD_MANAGER_FRAME::ReCreateTreePrj | ( | ) |
Definition at line 183 of file mainframe.cpp.
References m_LeftWin, and TREE_PROJECT_FRAME::ReCreateTreePrj().
Referenced by OnImportEagleFiles(), and KICAD_MANAGER_FRAME::TERMINATE_HANDLER::TERMINATE_HANDLER().
void KICAD_MANAGER_FRAME::RunEeschema | ( | const wxString & | aProjectSchematicFileName | ) |
Call this only for a SCH associated with the current project.
That is, it must have the same path and name as the project *.pro file.
Definition at line 296 of file mainframe.cpp.
References err, FRAME_SCH, Kiway, KIWAY_PLAYER::OpenProjectFiles(), KIWAY::Player(), and IO_ERROR::What().
Referenced by OnRunEeschema(), and KICAD_MANAGER_FRAME::TERMINATE_HANDLER::TERMINATE_HANDLER().
void KICAD_MANAGER_FRAME::RunPcbNew | ( | const wxString & | aProjectBoardFileName | ) |
Call this only for a PCB associated with the current project.
That is, it must have the same path and name as the project *.pro file.
Definition at line 379 of file mainframe.cpp.
References err, FRAME_PCB, Kiway, KIWAY_PLAYER::OpenProjectFiles(), KIWAY::Player(), and IO_ERROR::What().
Referenced by OnRunPcbNew(), and KICAD_MANAGER_FRAME::TERMINATE_HANDLER::TERMINATE_HANDLER().
|
inlinevirtualinherited |
Function SaveProjectSettings saves changes to the project settings to the project (.pro) file.
The method is virtual so you can override it to call the suitable save method. The base method do nothing
aAskForSave | = true to open a dialog before saving the settings |
Reimplemented in PCB_EDIT_FRAME, and SCH_EDIT_FRAME.
Definition at line 274 of file eda_base_frame.h.
References EDA_BASE_FRAME::ExportHotkeyConfigToFile(), EDA_BASE_FRAME::GetFileFromHistory(), EDA_BASE_FRAME::ImportHotkeyConfigFromFile(), EDA_BASE_FRAME::OnSelectPreferredEditor(), EDA_BASE_FRAME::ReadHotkeyConfig(), EDA_BASE_FRAME::ReadHotkeyConfigFile(), EDA_BASE_FRAME::UpdateFileHistory(), and EDA_BASE_FRAME::WriteHotkeyConfig().
Referenced by DIALOG_PAGES_SETTINGS::OnOkClick(), SCH_EDIT_FRAME::OnPreferencesOptions(), and SCH_EDIT_FRAME::Process_Config().
|
overridevirtual |
Function SaveSettings saves common frame parameters to a configuration data file.
Don't forget to call the base class's SaveSettings() from your derived SaveSettings() otherwise the frames won't remember their positions and sizes.
Reimplemented from EDA_BASE_FRAME.
Definition at line 542 of file mainframe.cpp.
References m_LeftWin, EDA_BASE_FRAME::SaveSettings(), and TREE_FRAME_WIDTH_ENTRY.
const wxString KICAD_MANAGER_FRAME::SchFileName | ( | ) |
Definition at line 153 of file mainframe.cpp.
References GetProjectFileName(), and SchematicFileExtension.
Referenced by TREEPROJECT_ITEM::Activate(), and KICAD_MANAGER_FRAME::TERMINATE_HANDLER::TERMINATE_HANDLER().
|
inherited |
Definition at line 225 of file eda_base_frame.cpp.
References EDA_BASE_FRAME::m_autoSaveInterval, EDA_BASE_FRAME::m_autoSaveState, and EDA_BASE_FRAME::m_autoSaveTimer.
Referenced by EDA_BASE_FRAME::isAutoSaveRequired(), DIALOG_GENERALOPTIONS::OnOkClick(), and SCH_EDIT_FRAME::OnPreferencesOptions().
|
inlinevirtualinherited |
Function SetIconScale.
Modify the scale of icons in the window; should refresh them and save the setting.
Reimplemented in PCB_EDIT_FRAME, SCH_EDIT_FRAME, GERBVIEW_FRAME, and LIB_EDIT_FRAME.
Definition at line 460 of file eda_base_frame.h.
|
inlineinherited |
Definition at line 361 of file eda_base_frame.h.
Referenced by LoadProject().
void KICAD_MANAGER_FRAME::SetProjectFileName | ( | const wxString & | aFullProjectProFileName | ) |
Definition at line 135 of file mainframe.cpp.
References Prj(), and PROJECT::SetProjectFullName().
Referenced by CreateNewProject(), LoadProject(), OnImportEagleFiles(), and KICAD_MANAGER_FRAME::TERMINATE_HANDLER::TERMINATE_HANDLER().
|
virtualinherited |
Function ShowChangedIcons redraws items menus after a icon was changed option.
Definition at line 269 of file eda_base_frame.cpp.
References EDA_BASE_FRAME::ReCreateMenuBar().
Referenced by EDA_BASE_FRAME::GetMruPath(), and KIWAY::ShowChangedIcons().
|
virtualinherited |
Function ShowChangedLanguage redraws the menus and what not in current language.
Reimplemented in PCB_EDIT_FRAME, GERBVIEW_FRAME, PCB_BASE_FRAME, and CVPCB_MAINFRAME.
Definition at line 262 of file eda_base_frame.cpp.
References EDA_BASE_FRAME::ReCreateMenuBar().
Referenced by EDA_BASE_FRAME::GetMruPath(), KIWAY::SetLanguage(), CVPCB_MAINFRAME::ShowChangedLanguage(), PCB_BASE_FRAME::ShowChangedLanguage(), and GERBVIEW_FRAME::ShowChangedLanguage().
|
overrideprivatevirtual |
Function sys_search returns a SEARCH_STACK pertaining to entire program, and is overloaded in KICAD_MANAGER_FRAME.
Reimplemented from EDA_BASE_FRAME.
Definition at line 189 of file mainframe.cpp.
References PgmTop(), and PGM_KICAD::SysSearch().
Referenced by CreateNewProject(), and KICAD_MANAGER_FRAME::TERMINATE_HANDLER::TERMINATE_HANDLER().
|
inherited |
Function UpdateFileHistory Updates the list of recently opened files.
Note also the menu is updated, if wxFileHistory::UseMenu was called at init time
FullFileName | The full file name including the path. |
aFileHistory | The wxFileHistory in use. If NULL, the main application file history is used. |
Definition at line 408 of file eda_base_frame.cpp.
References KIFACE_I::GetFileHistory(), and Kiface().
Referenced by SCH_EDIT_FRAME::importFile(), GERBVIEW_FRAME::LoadExcellonFiles(), GERBVIEW_FRAME::loadListOfGerberFiles(), PL_EDITOR_FRAME::LoadPageLayoutDescrFile(), LoadProject(), OnCloseWindow(), SCH_EDIT_FRAME::OpenProjectFiles(), PCB_EDIT_FRAME::OpenProjectFiles(), PCB_EDIT_FRAME::SavePcbFile(), EDA_BASE_FRAME::SaveProjectSettings(), and GERBVIEW_FRAME::unarchiveFiles().
|
virtualinherited |
Function WriteHotkeyConfig Store the current hotkey list It is stored using the standard wxConfig mechanism or a file.
aDescList | = pointer to the current hotkey list. |
aFullFileName | = a wxString pointer to a full file name. if NULL, use the standard wxConfig mechanism (default) the output format is: shortcut "key" "function" lines starting with # are comments |
Reimplemented in EDA_DRAW_FRAME.
Definition at line 528 of file hotkeys_basic.cpp.
References AddDelimiterString(), DEFAULT_HOTKEY_FILENAME_EXT, GetChars(), GetNewConfig(), HOTKEYS_CONFIG_KEY, KeyNameFromKeyCode(), EDA_HOTKEY_CONFIG::m_HK_InfoList, EDA_HOTKEY::m_InfoMsg, EDA_HOTKEY::m_KeyCode, EDA_HOTKEY_CONFIG::m_SectionTag, EDA_HOTKEY_CONFIG::m_Title, and TO_UTF8.
Referenced by EDA_BASE_FRAME::SaveProjectSettings(), HOTKEYS_EDITOR_DIALOG::TransferDataFromWindow(), and EDA_DRAW_FRAME::WriteHotkeyConfig().
|
staticprotectedinherited |
Default style flags used for wxAUI toolbars
Definition at line 162 of file eda_base_frame.h.
Referenced by FOOTPRINT_EDIT_FRAME::ReCreateAuxiliaryToolbar(), GERBVIEW_FRAME::ReCreateAuxiliaryToolbar(), PCB_EDIT_FRAME::ReCreateAuxiliaryToolbar(), RecreateBaseHToolbar(), DISPLAY_FOOTPRINTS_FRAME::ReCreateHToolbar(), LIB_VIEW_FRAME::ReCreateHToolbar(), FOOTPRINT_EDIT_FRAME::ReCreateHToolbar(), FOOTPRINT_VIEWER_FRAME::ReCreateHToolbar(), PL_EDITOR_FRAME::ReCreateHToolbar(), CVPCB_MAINFRAME::ReCreateHToolbar(), FOOTPRINT_WIZARD_FRAME::ReCreateHToolbar(), GERBVIEW_FRAME::ReCreateHToolbar(), SCH_EDIT_FRAME::ReCreateHToolbar(), LIB_EDIT_FRAME::ReCreateHToolbar(), PCB_EDIT_FRAME::ReCreateHToolbar(), EDA_3D_VIEWER::ReCreateMainToolbar(), PCB_EDIT_FRAME::ReCreateMicrowaveVToolbar(), DISPLAY_FOOTPRINTS_FRAME::ReCreateOptToolbar(), FOOTPRINT_EDIT_FRAME::ReCreateOptToolbar(), GERBVIEW_FRAME::ReCreateOptToolbar(), SCH_EDIT_FRAME::ReCreateOptToolbar(), LIB_EDIT_FRAME::ReCreateOptToolbar(), PCB_EDIT_FRAME::ReCreateOptToolbar(), FOOTPRINT_EDIT_FRAME::ReCreateVToolbar(), PL_EDITOR_FRAME::ReCreateVToolbar(), GERBVIEW_FRAME::ReCreateVToolbar(), SCH_EDIT_FRAME::ReCreateVToolbar(), LIB_EDIT_FRAME::ReCreateVToolbar(), and PCB_EDIT_FRAME::ReCreateVToolbar().
|
protectedinherited |
Name of program displayed in About.
Definition at line 141 of file eda_base_frame.h.
|
private |
Definition at line 314 of file kicad.h.
Referenced by KICAD_MANAGER_FRAME(), LoadProject(), OnImportEagleFiles(), and OnUpdateRequiresProject().
|
protectedinherited |
Definition at line 143 of file eda_base_frame.h.
Referenced by CVPCB_MAINFRAME::CVPCB_MAINFRAME(), GERBVIEW_FRAME::GERBVIEW_FRAME(), LIB_EDIT_FRAME::IsSearchTreeShown(), KICAD_MANAGER_FRAME(), LIB_EDIT_FRAME::LIB_EDIT_FRAME(), LIB_VIEW_FRAME::LIB_VIEW_FRAME(), PCB_EDIT_FRAME::OnSelectOptionToolbar(), LIB_VIEW_FRAME::OnSize(), FOOTPRINT_VIEWER_FRAME::OnSize(), FOOTPRINT_WIZARD_FRAME::OnSize(), OnSize(), LIB_EDIT_FRAME::OnToggleSearchTree(), GERBVIEW_FRAME::OnToggleShowLayerManager(), PCB_EDIT_FRAME::OnUpdateShowLayerManager(), PCB_EDIT_FRAME::OnUpdateShowMicrowaveToolbar(), PL_EDITOR_FRAME::PL_EDITOR_FRAME(), PCB_EDIT_FRAME::ReCreateAuxiliaryToolbar(), PCB_EDIT_FRAME::ReCreateLayerBox(), GERBVIEW_FRAME::ReFillLayerWidget(), CVPCB_MAINFRAME::refreshAfterComponentSearch(), EDA_BASE_FRAME::removePaneBorder(), EDA_BASE_FRAME::SaveSettings(), GERBVIEW_FRAME::ShowChangedLanguage(), GERBVIEW_FRAME::updateDCodeSelectBox(), GERBVIEW_FRAME::UpdateTitleAndInfo(), EDA_DRAW_FRAME::UseGalCanvas(), CVPCB_MAINFRAME::~CVPCB_MAINFRAME(), EDA_3D_VIEWER::~EDA_3D_VIEWER(), EDA_DRAW_FRAME::~EDA_DRAW_FRAME(), and ~KICAD_MANAGER_FRAME().
|
protectedinherited |
The auto save interval time in seconds.
Definition at line 152 of file eda_base_frame.h.
Referenced by EDA_BASE_FRAME::EDA_BASE_FRAME(), EDA_BASE_FRAME::GetAutoSaveInterval(), EDA_BASE_FRAME::LoadSettings(), EDA_BASE_FRAME::onAutoSaveTimer(), EDA_BASE_FRAME::ProcessEvent(), EDA_BASE_FRAME::SaveSettings(), and EDA_BASE_FRAME::SetAutoSaveInterval().
|
protectedinherited |
Flag to indicate the last auto save state.
Definition at line 149 of file eda_base_frame.h.
Referenced by SCH_EDIT_FRAME::doAutoSave(), PCB_EDIT_FRAME::doAutoSave(), EDA_BASE_FRAME::EDA_BASE_FRAME(), EDA_BASE_FRAME::ProcessEvent(), and EDA_BASE_FRAME::SetAutoSaveInterval().
|
protectedinherited |
The timer used to implement the auto save feature;.
Definition at line 155 of file eda_base_frame.h.
Referenced by EDA_BASE_FRAME::EDA_BASE_FRAME(), EDA_BASE_FRAME::onAutoSaveTimer(), EDA_BASE_FRAME::ProcessEvent(), EDA_BASE_FRAME::SetAutoSaveInterval(), and EDA_BASE_FRAME::~EDA_BASE_FRAME().
|
protectedinherited |
prefix used in config to identify some params (frame size...) if empty, the frame name defined in CTOR is used
Definition at line 136 of file eda_base_frame.h.
Referenced by EDA_BASE_FRAME::ConfigBaseName(), and LIB_VIEW_FRAME::LIB_VIEW_FRAME().
|
protectedinherited |
Definition at line 133 of file eda_base_frame.h.
Referenced by CVPCB_MAINFRAME::CVPCB_MAINFRAME(), EDA_BASE_FRAME::EDA_BASE_FRAME(), GERBVIEW_FRAME::GERBVIEW_FRAME(), KICAD_MANAGER_FRAME(), LIB_EDIT_FRAME::LIB_EDIT_FRAME(), LIB_VIEW_FRAME::LIB_VIEW_FRAME(), SIM_PLOT_FRAME::LoadSettings(), EDA_BASE_FRAME::LoadSettings(), OnCloseWindow(), PL_EDITOR_FRAME::PL_EDITOR_FRAME(), and EDA_BASE_FRAME::SaveSettings().
|
protectedinherited |
Definition at line 134 of file eda_base_frame.h.
Referenced by CVPCB_MAINFRAME::CVPCB_MAINFRAME(), EDA_BASE_FRAME::EDA_BASE_FRAME(), GERBVIEW_FRAME::GERBVIEW_FRAME(), KICAD_MANAGER_FRAME(), LIB_EDIT_FRAME::LIB_EDIT_FRAME(), LIB_VIEW_FRAME::LIB_VIEW_FRAME(), LIB_VIEW_FRAME::LoadSettings(), SIM_PLOT_FRAME::LoadSettings(), FOOTPRINT_WIZARD_FRAME::LoadSettings(), CVPCB_MAINFRAME::LoadSettings(), EDA_BASE_FRAME::LoadSettings(), OnCloseWindow(), EDA_DRAW_FRAME::OnSize(), PL_EDITOR_FRAME::PL_EDITOR_FRAME(), and EDA_BASE_FRAME::SaveSettings().
|
protectedinherited |
Flag to indicate if this frame supports auto save.
Definition at line 146 of file eda_base_frame.h.
Referenced by EDA_BASE_FRAME::EDA_BASE_FRAME(), EDA_BASE_FRAME::LoadSettings(), EDA_BASE_FRAME::ProcessEvent(), and EDA_BASE_FRAME::SaveSettings().
|
protectedinherited |
Id Type (pcb, schematic, library..)
Definition at line 132 of file eda_base_frame.h.
Referenced by EDA_BASE_FRAME::EDA_BASE_FRAME(), and EDA_BASE_FRAME::findQuasiModalDialog().
|
private |
Definition at line 305 of file kicad.h.
Referenced by KICAD_MANAGER_FRAME().
|
private |
Definition at line 304 of file kicad.h.
Referenced by KICAD_MANAGER_FRAME(), LoadProject(), OnCloseWindow(), OnRefresh(), ReCreateTreePrj(), and SaveSettings().
|
private |
Definition at line 309 of file kicad.h.
Referenced by KICAD_MANAGER_FRAME(), and LoadSettings().
|
protectedinherited |
Standard horizontal Toolbar.
Definition at line 139 of file eda_base_frame.h.
Referenced by PCB_EDIT_FRAME::createPopUpMenuForFpPads(), EDA_BASE_FRAME::EDA_BASE_FRAME(), GERBVIEW_FRAME::GERBVIEW_FRAME(), EDA_DRAW_FRAME::GetToolbarTool(), EDA_DRAW_FRAME::GetToolToggled(), KICAD_MANAGER_FRAME(), LIB_EDIT_FRAME::LIB_EDIT_FRAME(), LIB_VIEW_FRAME::LIB_VIEW_FRAME(), FOOTPRINT_VIEWER_FRAME::OnCloseWindow(), PCB_EDIT_FRAME::OnPlaceOrRouteFootprints(), PCB_EDIT_FRAME::OnRightClick(), LIB_EDIT_FRAME::OnUpdateDeMorganConvert(), LIB_EDIT_FRAME::OnUpdateDeMorganNormal(), FOOTPRINT_EDIT_FRAME::OnUpdateSelectTool(), LIB_EDIT_FRAME::OnUpdateSelectTool(), SCH_EDIT_FRAME::OnUpdateSelectTool(), PCB_EDIT_FRAME::OnUpdateVerticalToolbar(), PCB_BASE_FRAME::PcbGeneralLocateAndDisplay(), PL_EDITOR_FRAME::PL_EDITOR_FRAME(), PCB_EDIT_FRAME::PrepareLayerIndicator(), LIB_EDIT_FRAME::Process_Special_Functions(), RecreateBaseHToolbar(), DISPLAY_FOOTPRINTS_FRAME::ReCreateHToolbar(), LIB_VIEW_FRAME::ReCreateHToolbar(), FOOTPRINT_EDIT_FRAME::ReCreateHToolbar(), FOOTPRINT_VIEWER_FRAME::ReCreateHToolbar(), PL_EDITOR_FRAME::ReCreateHToolbar(), FOOTPRINT_WIZARD_FRAME::ReCreateHToolbar(), GERBVIEW_FRAME::ReCreateHToolbar(), SCH_EDIT_FRAME::ReCreateHToolbar(), LIB_EDIT_FRAME::ReCreateHToolbar(), PCB_EDIT_FRAME::ReCreateHToolbar(), PCB_EDIT_FRAME::ReCreateLayerBox(), EDA_3D_VIEWER::ReCreateMainToolbar(), GERBVIEW_FRAME::ReCreateOptToolbar(), GERBVIEW_FRAME::ReCreateVToolbar(), SCH_EDIT_FRAME::RedrawActiveWindow(), and EDA_3D_VIEWER::RenderEngineChanged().
|
private |
Definition at line 310 of file kicad.h.
Referenced by KICAD_MANAGER_FRAME(), Process_Config(), and ReCreateMenuBar().
|
private |
Definition at line 306 of file kicad.h.
Referenced by ClearMsg(), KICAD_MANAGER_FRAME(), and PrintMsg().
|
protectedinherited |
Most recently used path.
Definition at line 159 of file eda_base_frame.h.
Referenced by EDA_BASE_FRAME::EDA_BASE_FRAME(), FOOTPRINT_EDIT_FRAME::Export_Module(), EDA_BASE_FRAME::GetMruPath(), FOOTPRINT_EDIT_FRAME::Import_Module(), GERBVIEW_FRAME::LoadExcellonFiles(), GERBVIEW_FRAME::LoadGerberFiles(), EDA_BASE_FRAME::LoadSettings(), GERBVIEW_FRAME::LoadZipArchiveFile(), LIB_EDIT_FRAME::OnExportPart(), LIB_EDIT_FRAME::OnImportPart(), GERBVIEW_FRAME::OpenProjectFiles(), and EDA_BASE_FRAME::SaveSettings().
|
protectedinherited |
wxAuiManager perspective.
Definition at line 157 of file eda_base_frame.h.
Referenced by EDA_BASE_FRAME::LoadSettings().