![]() |
Power System Platform
2024w23a
|
Main frame of the program. This class manage the ribbon menu and the notebook behavior. More...
#include <MainFrame.h>


Public Member Functions | |
| MainFrame () | |
| Default constructor. | |
| MainFrame (wxWindow *parent, wxLocale *locale, PropertiesData *initProperties, wxString openPath="") | |
| Main frame contructor. | |
| ~MainFrame () | |
| Default destructor. | |
| int | RunPSPTest () |
Public Member Functions inherited from MainFrameBase | |
| wxRibbonBar * | GetRibbonBar () |
| wxAuiNotebook * | GetAuiNotebook () |
| wxStatusBar * | GetStatusBar () |
| MainFrameBase (wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("PSP-UFU"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(800, 600), long style=wxCAPTION|wxRESIZE_BORDER|wxMAXIMIZE_BOX|wxMINIMIZE_BOX|wxSYSTEM_MENU|wxCLOSE_BOX) | |
Protected Member Functions | |
| virtual void | OnProjectSettingsClick (wxRibbonButtonBarEvent &event) |
| virtual void | OnNotebookPageChanged (wxAuiNotebookEvent &event) |
| virtual void | OnHeatmapClick (wxRibbonButtonBarEvent &event) |
| virtual void | OnClose (wxCloseEvent &event) |
| virtual void | OnStabilityDropdown (wxRibbonButtonBarEvent &event) |
| virtual void | OnFreqResponseClick (wxRibbonButtonBarEvent &event) |
| virtual void | OnHarmDistortionsClick (wxRibbonButtonBarEvent &event) |
| virtual void | OnGeneralSettingsClick (wxRibbonButtonBarEvent &event) |
| virtual void | OnSimulationSettingsClick (wxRibbonButtonBarEvent &event) |
| virtual void | OnRotClockClick (wxRibbonButtonBarEvent &event) |
| virtual void | OnRotCounterClockClick (wxRibbonButtonBarEvent &event) |
| virtual void | NotebookPageClosed (wxAuiNotebookEvent &event) |
| virtual void | NotebookPageClosing (wxAuiNotebookEvent &event) |
| virtual void | OnAboutClick (wxRibbonButtonBarEvent &event) |
| virtual void | OnAddElementDropdown (wxRibbonButtonBarEvent &event) |
| virtual void | OnChartsClick (wxRibbonButtonBarEvent &event) |
| virtual void | OnCloseClick (wxRibbonButtonBarEvent &event) |
| virtual void | OnCopyClick (wxRibbonButtonBarEvent &event) |
| virtual void | OnDataReportClick (wxRibbonButtonBarEvent &event) |
| virtual void | OnDeleteClick (wxRibbonButtonBarEvent &event) |
| virtual void | OnDisableSolutionClick (wxRibbonButtonBarEvent &event) |
| virtual void | OnDragClick (wxRibbonButtonBarEvent &event) |
| virtual void | OnEnableSolutionClick (wxRibbonButtonBarEvent &event) |
| virtual void | OnExitClick (wxRibbonButtonBarEvent &event) |
| virtual void | OnFaultClick (wxRibbonButtonBarEvent &event) |
| virtual void | OnFitClick (wxRibbonButtonBarEvent &event) |
| virtual void | OnMoveClick (wxRibbonButtonBarEvent &event) |
| virtual void | OnOpenClick (wxRibbonButtonBarEvent &event) |
| virtual void | OnPSPGuideClick (wxRibbonButtonBarEvent &event) |
| virtual void | OnPasteClick (wxRibbonButtonBarEvent &event) |
| virtual void | OnPowerFlowClick (wxRibbonButtonBarEvent &event) |
| virtual void | OnRedoClick (wxRibbonButtonBarEvent &event) |
| virtual void | OnResetVoltagesClick (wxRibbonButtonBarEvent &event) |
| virtual void | OnRunStabilityClick (wxRibbonButtonBarEvent &event) |
| virtual void | OnSCPowerClick (wxRibbonButtonBarEvent &event) |
| virtual void | OnSaveAsClick (wxRibbonButtonBarEvent &event) |
| virtual void | OnSaveClick (wxRibbonButtonBarEvent &event) |
| virtual void | OnSnapshotClick (wxRibbonButtonBarEvent &event) |
| virtual void | OnUndoClick (wxRibbonButtonBarEvent &event) |
| virtual void | OnNewClick (wxRibbonButtonBarEvent &event) |
| virtual void | OnImportClick (wxRibbonButtonBarEvent &event) |
| void | Init () |
| void | EnableCurrentProjectRibbon (bool enable=true) |
| void | CreateDropdownMenus () |
| void | OnAddElementsClick (wxCommandEvent &event) |
| void | OnStabilityMenuClick (wxCommandEvent &event) |
Protected Attributes | |
| std::vector< Workspace * > | m_workspaceList |
| int | m_projectNumber = 1 |
| wxRibbonMetroArtProvider * | m_artMetro = nullptr |
| wxMenu * | m_addElementsMenu = nullptr |
| wxMenu * | m_stabilityMenu = nullptr |
| wxLocale * | m_locale = nullptr |
| PropertiesData * | m_generalProperties = nullptr |
Protected Attributes inherited from MainFrameBase | |
| wxRibbonBar * | m_ribbonBar |
| wxRibbonPage * | m_ribbonPageFile |
| wxRibbonPanel * | m_ribbonPanelProjects |
| wxRibbonButtonBar * | m_ribbonButtonBarProjects |
| wxRibbonPanel * | m_ribbonPanelCProject |
| wxRibbonButtonBar * | m_ribbonButtonBarCProject |
| wxRibbonPanel * | m_ribbonPanelHelp |
| wxRibbonButtonBar * | m_ribbonButtonBarHelp |
| wxRibbonPage * | m_ribbonPageTools |
| wxRibbonPanel * | m_ribbonPanelClipboard |
| wxRibbonButtonBar * | m_ribbonButtonBarClipboard |
| wxRibbonPanel * | m_ribbonPanelCircuit |
| wxRibbonButtonBar * | m_ribbonButtonBarCircuit |
| wxRibbonPanel * | m_ribbonPanelReports |
| wxRibbonButtonBar * | m_ribbonButtonBarReports |
| wxRibbonPage * | m_ribbonPageSimulation |
| wxRibbonPanel * | m_ribbonPanelContinuous |
| wxRibbonButtonBar * | m_ribbonButtonBarContinuous |
| wxRibbonPanel * | m_ribbonPanelSimulations |
| wxRibbonButtonBar * | m_ribbonButtonBarSimulations |
| wxAuiNotebook * | m_auiNotebook |
| wxStatusBar * | m_statusBar |
Additional Inherited Members | |
Public Types inherited from MainFrameBase | |
| enum | { ID_RIBBON_FREQRESP = 10001 , ID_RIBBON_SCPOWER = 10002 , ID_RIBBON_FAULT = 10003 , ID_RIBBON_RUNSTAB = 10004 , ID_RIBBON_POWERFLOW = 10005 , ID_RIBBON_DISABLESOL = 10006 , ID_RIBBON_ENABLESOL = 10007 , ID_RIBBON_SNAPSHOT = 10008 , ID_RIBBON_HEATMAP = 10009 , ID_RIBBON_PROJSETTINGS = 10010 , ID_RIBBON_CHARTS = 10011 , ID_RIBBON_ROTATEC = 10012 , ID_RIBBON_SIMULSETTINGS = 10013 , ID_RIBBON_DATAREPORT = 10014 , ID_RIBBON_FIT = 10015 , ID_RIBBON_MOVE = 10016 , ID_RIBBON_DRAG = 10017 , ID_RIBBON_ADDELEMENT = 10018 , ID_RIBBON_DELETE = 10019 , ID_RIBBON_REDO = 10020 , ID_RIBBON_UNDO = 10021 , ID_RIBBON_PASTE = 10022 , ID_RIBBON_ABOUT = 10023 , ID_RIBBON_GUIDE = 10024 , ID_RIBBON_HARMDIST = 10025 , ID_RIBBON_CLOSE = 10026 , ID_RIBBON_SAVEAS = 10027 , ID_RIBBON_SAVE = 10028 , ID_RIBBON_EXIT = 10029 , ID_RIBBON_GENSETTINGS = 10030 , ID_RIBBON_ROTATECC = 10031 , ID_RIBBON_COPY = 10032 , ID_RIBBON_IMPORT = 10033 , ID_RIBBON_OPEN = 10034 , ID_RIBBON_RESETVOLT = 10035 , ID_RIBBON_NEW = 10036 } |
Main frame of the program. This class manage the ribbon menu and the notebook behavior.
| MainFrame::MainFrame | ( | wxWindow * | parent, |
| wxLocale * | locale, | ||
| PropertiesData * | initProperties, | ||
| wxString | openPath = "" ) |
Main frame contructor.
| parent | Parent window. |
| locale | Locale settings. |
| initProperties | Initial properties. |
|
protectedvirtual |
Reimplemented from MainFrameBase.
|
protectedvirtual |
Reimplemented from MainFrameBase.
|
protectedvirtual |
Reimplemented from MainFrameBase.
|
protectedvirtual |
Reimplemented from MainFrameBase.
|
protectedvirtual |
Reimplemented from MainFrameBase.
|
protectedvirtual |
Reimplemented from MainFrameBase.
|
protectedvirtual |
Reimplemented from MainFrameBase.
|
protectedvirtual |
Reimplemented from MainFrameBase.
|
protectedvirtual |
Reimplemented from MainFrameBase.
|
protectedvirtual |
Reimplemented from MainFrameBase.
|
protectedvirtual |
Reimplemented from MainFrameBase.
|
protectedvirtual |
Reimplemented from MainFrameBase.
|
protectedvirtual |
Reimplemented from MainFrameBase.
|
inlineprotectedvirtual |
Reimplemented from MainFrameBase.
|
protectedvirtual |
Reimplemented from MainFrameBase.
|
protectedvirtual |
Reimplemented from MainFrameBase.
|
protectedvirtual |
Reimplemented from MainFrameBase.
|
protectedvirtual |
Reimplemented from MainFrameBase.
|
protectedvirtual |
Reimplemented from MainFrameBase.
|
protectedvirtual |
Reimplemented from MainFrameBase.
|
protectedvirtual |
Reimplemented from MainFrameBase.
|
protectedvirtual |
Reimplemented from MainFrameBase.
|
protectedvirtual |
Reimplemented from MainFrameBase.
|
protectedvirtual |
Reimplemented from MainFrameBase.
|
protectedvirtual |
Reimplemented from MainFrameBase.
|
protectedvirtual |
Reimplemented from MainFrameBase.
|
protectedvirtual |
Reimplemented from MainFrameBase.
|
protectedvirtual |
Reimplemented from MainFrameBase.
|
protectedvirtual |
Reimplemented from MainFrameBase.
|
protectedvirtual |
Reimplemented from MainFrameBase.
|
protectedvirtual |
Reimplemented from MainFrameBase.
|
protectedvirtual |
Reimplemented from MainFrameBase.
|
protectedvirtual |
Reimplemented from MainFrameBase.
|
protectedvirtual |
Reimplemented from MainFrameBase.
|
protectedvirtual |
Reimplemented from MainFrameBase.
|
protectedvirtual |
Reimplemented from MainFrameBase.
|
protectedvirtual |
Reimplemented from MainFrameBase.
|
protectedvirtual |
Reimplemented from MainFrameBase.
|
protectedvirtual |
Reimplemented from MainFrameBase.
|
protectedvirtual |
Reimplemented from MainFrameBase.
|
protectedvirtual |
Reimplemented from MainFrameBase.