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 );
95 #endif // PCB_CALCULATOR_H const wxString DataFileNameExt
PCB calculator the main frame.
A wxFrame capable of the OpenProjectFiles function, meaning it can load a portion of a KiCad project.
void AddCalculator(CALCULATOR_PANEL *aPanel, const wxString &panelUIName)
void OnClosePcbCalc(wxCloseEvent &event)
PCB_CALCULATOR_FRAME(KIWAY *aKiway, wxWindow *aParent)
std::map< std::size_t, CALCULATOR_PANEL * > m_panelTypes
std::vector< CALCULATOR_PANEL * > m_panels
APP_SETTINGS_BASE is a settings class that should be derived for each standalone KiCad application.
void SaveSettings(APP_SETTINGS_BASE *aCfg) override
Save common frame parameters to a configuration data file.
A minimalistic software bus for communications between various DLLs/DSOs (DSOs) within the same KiCad...
void OnUpdateUI(wxUpdateUIEvent &event)
void LoadSettings(APP_SETTINGS_BASE *aCfg) override
Load common frame parameters from a configuration file.
wxWindow * GetToolCanvas() const override
Canvas access.
void onThemeChanged(wxSysColourChangedEvent &aEvent)