20#ifndef PCB_CALCULATOR_FRAME_H_
21#define PCB_CALCULATOR_FRAME_H_
56 std::map<std::size_t, CALCULATOR_PANEL*>::iterator panel =
m_panelTypes.find(
typeid( T ).hash_code() );
59 return static_cast<T*
>( panel->second );
75 void OnExit( wxCommandEvent& aEvent );
APP_SETTINGS_BASE is a settings class that should be derived for each standalone KiCad application.
A wxFrame capable of the OpenProjectFiles function, meaning it can load a portion of a KiCad project.
A minimalistic software bus for communications between various DLLs/DSOs (DSOs) within the same KiCad...
PCB calculator the main frame.
void doReCreateMenuBar() override
void OnPageChanged(wxTreebookEvent &aEvent)
wxWindow * GetToolCanvas() const override
Canvas access.
void ShowChangedLanguage() override
Redraw the menus and what not in current language.
std::vector< CALCULATOR_PANEL * > m_panels
void OnUpdateUI(wxUpdateUIEvent &event)
void onThemeChanged(wxSysColourChangedEvent &aEvent)
void LoadSettings(APP_SETTINGS_BASE *aCfg) override
Load common frame parameters from a configuration file.
void OnExit(wxCommandEvent &aEvent)
Event handler for the wxID_EXIT and wxID_CLOSE events.
void OnClosePcbCalc(wxCloseEvent &event)
void AddCalculator(CALCULATOR_PANEL *aPanel, const wxString &panelUIName)
void SaveSettings(APP_SETTINGS_BASE *aCfg) override
Save common frame parameters to a configuration data file.
std::map< std::size_t, CALCULATOR_PANEL * > m_panelTypes
const wxString DataFileNameExt