![]() |
Power System Platform
2026w10a-beta
|
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 | OnLabelMngrClick (wxRibbonButtonBarEvent &event) |
| virtual void | OnSnapshotDropdown (wxRibbonButtonBarEvent &event) |
| 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) |
| void | OnSnapshotMenuClick (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 |
| wxMenu * | m_snapshotMenu = 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_SIMULSETTINGS = 10001 , ID_RIBBON_HARMDIST = 10002 , ID_RIBBON_POWERFLOW = 10003 , ID_RIBBON_FREQRESP = 10004 , ID_RIBBON_DISABLESOL = 10005 , ID_RIBBON_ENABLESOL = 10006 , ID_RIBBON_SNAPSHOT = 10007 , ID_RIBBON_CHARTS = 10008 , ID_RIBBON_PROJSETTINGS = 10009 , ID_RIBBON_LABELMNGR = 10010 , ID_RIBBON_ROTATECC = 10011 , ID_RIBBON_FAULT = 10012 , ID_RIBBON_ROTATEC = 10013 , ID_RIBBON_DELETE = 10014 , ID_RIBBON_MOVE = 10015 , ID_RIBBON_DRAG = 10016 , ID_RIBBON_ADDELEMENT = 10017 , ID_RIBBON_RUNSTAB = 10018 , ID_RIBBON_UNDO = 10019 , ID_RIBBON_HEATMAP = 10020 , ID_RIBBON_ABOUT = 10021 , ID_RIBBON_GUIDE = 10022 , ID_RIBBON_FIT = 10023 , ID_RIBBON_CLOSE = 10024 , ID_RIBBON_RESETVOLT = 10025 , ID_RIBBON_PASTE = 10026 , ID_RIBBON_SAVEAS = 10027 , ID_RIBBON_SCPOWER = 10028 , ID_RIBBON_SAVE = 10029 , ID_RIBBON_EXIT = 10030 , ID_RIBBON_GENSETTINGS = 10031 , ID_RIBBON_DATAREPORT = 10032 , ID_RIBBON_REDO = 10033 , ID_RIBBON_IMPORT = 10034 , ID_RIBBON_COPY = 10035 , ID_RIBBON_OPEN = 10036 , ID_RIBBON_NEW = 10037 } |
Main frame of the program. This class manage the ribbon menu and the notebook behavior.
Definition at line 68 of file MainFrame.h.
| MainFrame::MainFrame | ( | ) |
| MainFrame::MainFrame | ( | wxWindow * | parent, |
| wxLocale * | locale, | ||
| PropertiesData * | initProperties, | ||
| wxString | openPath = "" |
||
| ) |
Main frame contructor.
| parent | Parent window. |
| locale | Locale settings. |
| initProperties | Initial properties. |
Definition at line 50 of file MainFrame.cpp.
| MainFrame::~MainFrame | ( | ) |
Default destructor.
Definition at line 82 of file MainFrame.cpp.
|
protected |
Definition at line 159 of file MainFrame.cpp.
|
protected |
Definition at line 122 of file MainFrame.cpp.
|
protected |
Definition at line 107 of file MainFrame.cpp.
|
protectedvirtual |
Reimplemented from MainFrameBase.
Definition at line 683 of file MainFrame.cpp.
|
protectedvirtual |
Reimplemented from MainFrameBase.
Definition at line 689 of file MainFrame.cpp.
|
protectedvirtual |
Reimplemented from MainFrameBase.
Definition at line 252 of file MainFrame.cpp.
|
protectedvirtual |
Reimplemented from MainFrameBase.
Definition at line 258 of file MainFrame.cpp.
|
protected |
Definition at line 524 of file MainFrame.cpp.
|
protectedvirtual |
Reimplemented from MainFrameBase.
Definition at line 259 of file MainFrame.cpp.
|
protectedvirtual |
Reimplemented from MainFrameBase.
Definition at line 812 of file MainFrame.cpp.
|
protectedvirtual |
Reimplemented from MainFrameBase.
Definition at line 275 of file MainFrame.cpp.
|
protectedvirtual |
Reimplemented from MainFrameBase.
Definition at line 294 of file MainFrame.cpp.
|
protectedvirtual |
Reimplemented from MainFrameBase.
Definition at line 300 of file MainFrame.cpp.
|
protectedvirtual |
Reimplemented from MainFrameBase.
Definition at line 307 of file MainFrame.cpp.
|
protectedvirtual |
Reimplemented from MainFrameBase.
Definition at line 312 of file MainFrame.cpp.
|
protectedvirtual |
Reimplemented from MainFrameBase.
Definition at line 321 of file MainFrame.cpp.
|
protectedvirtual |
Reimplemented from MainFrameBase.
Definition at line 329 of file MainFrame.cpp.
|
inlineprotectedvirtual |
Reimplemented from MainFrameBase.
Definition at line 117 of file MainFrame.h.
|
protectedvirtual |
Reimplemented from MainFrameBase.
Definition at line 340 of file MainFrame.cpp.
|
protectedvirtual |
Reimplemented from MainFrameBase.
Definition at line 345 of file MainFrame.cpp.
|
protectedvirtual |
Reimplemented from MainFrameBase.
Definition at line 739 of file MainFrame.cpp.
|
protectedvirtual |
Reimplemented from MainFrameBase.
Definition at line 718 of file MainFrame.cpp.
|
protectedvirtual |
Reimplemented from MainFrameBase.
Definition at line 744 of file MainFrame.cpp.
|
protectedvirtual |
Reimplemented from MainFrameBase.
Definition at line 828 of file MainFrame.cpp.
|
protectedvirtual |
Reimplemented from MainFrameBase.
Definition at line 643 of file MainFrame.cpp.
|
protectedvirtual |
Reimplemented from MainFrameBase.
Definition at line 860 of file MainFrame.cpp.
|
protectedvirtual |
Reimplemented from MainFrameBase.
Definition at line 351 of file MainFrame.cpp.
|
protectedvirtual |
Reimplemented from MainFrameBase.
Definition at line 224 of file MainFrame.cpp.
|
protectedvirtual |
Reimplemented from MainFrameBase.
Definition at line 837 of file MainFrame.cpp.
|
protectedvirtual |
Reimplemented from MainFrameBase.
Definition at line 376 of file MainFrame.cpp.
|
protectedvirtual |
Reimplemented from MainFrameBase.
Definition at line 430 of file MainFrame.cpp.
|
protectedvirtual |
Reimplemented from MainFrameBase.
Definition at line 436 of file MainFrame.cpp.
|
protectedvirtual |
Reimplemented from MainFrameBase.
Definition at line 846 of file MainFrame.cpp.
|
protectedvirtual |
Reimplemented from MainFrameBase.
Definition at line 426 of file MainFrame.cpp.
|
protectedvirtual |
Reimplemented from MainFrameBase.
Definition at line 442 of file MainFrame.cpp.
|
protectedvirtual |
Reimplemented from MainFrameBase.
Definition at line 449 of file MainFrame.cpp.
|
protectedvirtual |
Reimplemented from MainFrameBase.
Definition at line 706 of file MainFrame.cpp.
|
protectedvirtual |
Reimplemented from MainFrameBase.
Definition at line 712 of file MainFrame.cpp.
|
protectedvirtual |
Reimplemented from MainFrameBase.
Definition at line 455 of file MainFrame.cpp.
|
protectedvirtual |
Reimplemented from MainFrameBase.
Definition at line 467 of file MainFrame.cpp.
|
protectedvirtual |
Reimplemented from MainFrameBase.
Definition at line 485 of file MainFrame.cpp.
|
protectedvirtual |
Reimplemented from MainFrameBase.
Definition at line 461 of file MainFrame.cpp.
|
protectedvirtual |
Reimplemented from MainFrameBase.
Definition at line 730 of file MainFrame.cpp.
|
protectedvirtual |
Reimplemented from MainFrameBase.
Definition at line 508 of file MainFrame.cpp.
|
protectedvirtual |
Reimplemented from MainFrameBase.
Definition at line 856 of file MainFrame.cpp.
|
protected |
Definition at line 768 of file MainFrame.cpp.
|
protectedvirtual |
Reimplemented from MainFrameBase.
Definition at line 750 of file MainFrame.cpp.
|
protected |
Definition at line 752 of file MainFrame.cpp.
|
protectedvirtual |
Reimplemented from MainFrameBase.
Definition at line 516 of file MainFrame.cpp.
| int MainFrame::RunPSPTest | ( | ) |
Definition at line 787 of file MainFrame.cpp.
|
protected |
Definition at line 141 of file MainFrame.h.
|
protected |
Definition at line 140 of file MainFrame.h.
|
protected |
Definition at line 145 of file MainFrame.h.
|
protected |
Definition at line 144 of file MainFrame.h.
|
protected |
Definition at line 138 of file MainFrame.h.
|
protected |
Definition at line 143 of file MainFrame.h.
|
protected |
Definition at line 142 of file MainFrame.h.
|
protected |
Definition at line 137 of file MainFrame.h.