Power System Platform  2024w23a
Loading...
Searching...
No Matches
MainFrame Class Reference

Main frame of the program. This class manage the ribbon menu and the notebook behavior. More...

#include <MainFrame.h>

Inheritance diagram for MainFrame:
Collaboration diagram for MainFrame:

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
 
PropertiesDatam_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
}
 

Detailed Description

Main frame of the program. This class manage the ribbon menu and the notebook behavior.

Author
Thales Lima Oliveira thale.nosp@m.s@uf.nosp@m.u.br
Date
19/09/2017

Constructor & Destructor Documentation

◆ MainFrame()

MainFrame::MainFrame ( wxWindow * parent,
wxLocale * locale,
PropertiesData * initProperties,
wxString openPath = "" )

Main frame contructor.

Parameters
parentParent window.
localeLocale settings.
initPropertiesInitial properties.

Member Function Documentation

◆ NotebookPageClosed()

void MainFrame::NotebookPageClosed ( wxAuiNotebookEvent & event)
protectedvirtual

Reimplemented from MainFrameBase.

◆ NotebookPageClosing()

void MainFrame::NotebookPageClosing ( wxAuiNotebookEvent & event)
protectedvirtual

Reimplemented from MainFrameBase.

◆ OnAboutClick()

void MainFrame::OnAboutClick ( wxRibbonButtonBarEvent & event)
protectedvirtual

Reimplemented from MainFrameBase.

◆ OnAddElementDropdown()

void MainFrame::OnAddElementDropdown ( wxRibbonButtonBarEvent & event)
protectedvirtual

Reimplemented from MainFrameBase.

◆ OnChartsClick()

void MainFrame::OnChartsClick ( wxRibbonButtonBarEvent & event)
protectedvirtual

Reimplemented from MainFrameBase.

◆ OnClose()

void MainFrame::OnClose ( wxCloseEvent & event)
protectedvirtual

Reimplemented from MainFrameBase.

◆ OnCloseClick()

void MainFrame::OnCloseClick ( wxRibbonButtonBarEvent & event)
protectedvirtual

Reimplemented from MainFrameBase.

◆ OnCopyClick()

void MainFrame::OnCopyClick ( wxRibbonButtonBarEvent & event)
protectedvirtual

Reimplemented from MainFrameBase.

◆ OnDataReportClick()

void MainFrame::OnDataReportClick ( wxRibbonButtonBarEvent & event)
protectedvirtual

Reimplemented from MainFrameBase.

◆ OnDeleteClick()

void MainFrame::OnDeleteClick ( wxRibbonButtonBarEvent & event)
protectedvirtual

Reimplemented from MainFrameBase.

◆ OnDisableSolutionClick()

void MainFrame::OnDisableSolutionClick ( wxRibbonButtonBarEvent & event)
protectedvirtual

Reimplemented from MainFrameBase.

◆ OnDragClick()

void MainFrame::OnDragClick ( wxRibbonButtonBarEvent & event)
protectedvirtual

Reimplemented from MainFrameBase.

◆ OnEnableSolutionClick()

void MainFrame::OnEnableSolutionClick ( wxRibbonButtonBarEvent & event)
protectedvirtual

Reimplemented from MainFrameBase.

◆ OnExitClick()

virtual void MainFrame::OnExitClick ( wxRibbonButtonBarEvent & event)
inlineprotectedvirtual

Reimplemented from MainFrameBase.

◆ OnFaultClick()

void MainFrame::OnFaultClick ( wxRibbonButtonBarEvent & event)
protectedvirtual

Reimplemented from MainFrameBase.

◆ OnFitClick()

void MainFrame::OnFitClick ( wxRibbonButtonBarEvent & event)
protectedvirtual

Reimplemented from MainFrameBase.

◆ OnFreqResponseClick()

void MainFrame::OnFreqResponseClick ( wxRibbonButtonBarEvent & event)
protectedvirtual

Reimplemented from MainFrameBase.

◆ OnGeneralSettingsClick()

void MainFrame::OnGeneralSettingsClick ( wxRibbonButtonBarEvent & event)
protectedvirtual

Reimplemented from MainFrameBase.

◆ OnHarmDistortionsClick()

void MainFrame::OnHarmDistortionsClick ( wxRibbonButtonBarEvent & event)
protectedvirtual

Reimplemented from MainFrameBase.

◆ OnHeatmapClick()

void MainFrame::OnHeatmapClick ( wxRibbonButtonBarEvent & event)
protectedvirtual

Reimplemented from MainFrameBase.

◆ OnImportClick()

void MainFrame::OnImportClick ( wxRibbonButtonBarEvent & event)
protectedvirtual

Reimplemented from MainFrameBase.

◆ OnMoveClick()

void MainFrame::OnMoveClick ( wxRibbonButtonBarEvent & event)
protectedvirtual

Reimplemented from MainFrameBase.

◆ OnNewClick()

void MainFrame::OnNewClick ( wxRibbonButtonBarEvent & event)
protectedvirtual

Reimplemented from MainFrameBase.

◆ OnNotebookPageChanged()

void MainFrame::OnNotebookPageChanged ( wxAuiNotebookEvent & event)
protectedvirtual

Reimplemented from MainFrameBase.

◆ OnOpenClick()

void MainFrame::OnOpenClick ( wxRibbonButtonBarEvent & event)
protectedvirtual

Reimplemented from MainFrameBase.

◆ OnPasteClick()

void MainFrame::OnPasteClick ( wxRibbonButtonBarEvent & event)
protectedvirtual

Reimplemented from MainFrameBase.

◆ OnPowerFlowClick()

void MainFrame::OnPowerFlowClick ( wxRibbonButtonBarEvent & event)
protectedvirtual

Reimplemented from MainFrameBase.

◆ OnProjectSettingsClick()

void MainFrame::OnProjectSettingsClick ( wxRibbonButtonBarEvent & event)
protectedvirtual

Reimplemented from MainFrameBase.

◆ OnPSPGuideClick()

void MainFrame::OnPSPGuideClick ( wxRibbonButtonBarEvent & event)
protectedvirtual

Reimplemented from MainFrameBase.

◆ OnRedoClick()

void MainFrame::OnRedoClick ( wxRibbonButtonBarEvent & event)
protectedvirtual

Reimplemented from MainFrameBase.

◆ OnResetVoltagesClick()

void MainFrame::OnResetVoltagesClick ( wxRibbonButtonBarEvent & event)
protectedvirtual

Reimplemented from MainFrameBase.

◆ OnRotClockClick()

void MainFrame::OnRotClockClick ( wxRibbonButtonBarEvent & event)
protectedvirtual

Reimplemented from MainFrameBase.

◆ OnRotCounterClockClick()

void MainFrame::OnRotCounterClockClick ( wxRibbonButtonBarEvent & event)
protectedvirtual

Reimplemented from MainFrameBase.

◆ OnRunStabilityClick()

void MainFrame::OnRunStabilityClick ( wxRibbonButtonBarEvent & event)
protectedvirtual

Reimplemented from MainFrameBase.

◆ OnSaveAsClick()

void MainFrame::OnSaveAsClick ( wxRibbonButtonBarEvent & event)
protectedvirtual

Reimplemented from MainFrameBase.

◆ OnSaveClick()

void MainFrame::OnSaveClick ( wxRibbonButtonBarEvent & event)
protectedvirtual

Reimplemented from MainFrameBase.

◆ OnSCPowerClick()

void MainFrame::OnSCPowerClick ( wxRibbonButtonBarEvent & event)
protectedvirtual

Reimplemented from MainFrameBase.

◆ OnSimulationSettingsClick()

void MainFrame::OnSimulationSettingsClick ( wxRibbonButtonBarEvent & event)
protectedvirtual

Reimplemented from MainFrameBase.

◆ OnSnapshotClick()

void MainFrame::OnSnapshotClick ( wxRibbonButtonBarEvent & event)
protectedvirtual

Reimplemented from MainFrameBase.

◆ OnStabilityDropdown()

void MainFrame::OnStabilityDropdown ( wxRibbonButtonBarEvent & event)
protectedvirtual

Reimplemented from MainFrameBase.

◆ OnUndoClick()

void MainFrame::OnUndoClick ( wxRibbonButtonBarEvent & event)
protectedvirtual

Reimplemented from MainFrameBase.


The documentation for this class was generated from the following files: