summaryrefslogtreecommitdiffstats
path: root/Project/DataReportBase.h
diff options
context:
space:
mode:
authorThales Lima Oliveira <thaleslima.ufu@gmail.com>2019-07-24 00:02:17 -0300
committerThales Lima Oliveira <thaleslima.ufu@gmail.com>2019-07-24 00:02:17 -0300
commit0ca6710a7e003952e1212c8e32ebb2e7c008d508 (patch)
tree54886abf6d62d9341377d535e52b36016b602107 /Project/DataReportBase.h
parent7f46d390b8cc1d5f37560f52b222198dbc5e1225 (diff)
downloadPSP.git-0ca6710a7e003952e1212c8e32ebb2e7c008d508.tar.gz
PSP.git-0ca6710a7e003952e1212c8e32ebb2e7c008d508.tar.xz
PSP.git-0ca6710a7e003952e1212c8e32ebb2e7c008d508.zip
Newton bug fixed
Diffstat (limited to 'Project/DataReportBase.h')
-rw-r--r--Project/DataReportBase.h53
1 files changed, 40 insertions, 13 deletions
diff --git a/Project/DataReportBase.h b/Project/DataReportBase.h
index a9fba20..324a333 100644
--- a/Project/DataReportBase.h
+++ b/Project/DataReportBase.h
@@ -7,21 +7,23 @@
#ifndef _PSP_PROJECT_DATAREPORT_BASE_CLASSES_H
#define _PSP_PROJECT_DATAREPORT_BASE_CLASSES_H
-#include <wx/settings.h>
-#include <wx/xrc/xmlres.h>
-#include <wx/xrc/xh_bmp.h>
+#include <wx/artprov.h>
+#include <wx/button.h>
+#include <wx/dialog.h>
#include <wx/frame.h>
+#include <wx/grid.h>
#include <wx/iconbndl.h>
-#include <wx/artprov.h>
-#include <wx/sizer.h>
+#include <wx/imaglist.h>
#include <wx/notebook.h>
#include <wx/panel.h>
-#include <wx/imaglist.h>
-#include <wx/grid.h>
+#include <wx/settings.h>
+#include <wx/sizer.h>
+#include <wx/xrc/xh_bmp.h>
+#include <wx/xrc/xmlres.h>
#if wxVERSION_NUMBER >= 2900
#include <wx/persist.h>
-#include <wx/persist/toplevel.h>
#include <wx/persist/bookctrl.h>
+#include <wx/persist/toplevel.h>
#include <wx/persist/treebook.h>
#endif
@@ -34,10 +36,9 @@
#define WXC_FROM_DIP(x) x
#endif
-
class DataReportBase : public wxFrame
{
-protected:
+ protected:
wxNotebook* m_notebookDataReport;
wxPanel* m_panelPowerFlowData;
wxNotebook* m_notebookPowerFlow;
@@ -58,7 +59,7 @@ protected:
wxPanel* m_panelFaultGenerators;
wxGrid* m_gridFaultGenerators;
-protected:
+ protected:
virtual void OnPowerFlowGridChanged(wxGridEvent& event) { event.Skip(); }
virtual void OnGridPFKeyDown(wxKeyEvent& event) { event.Skip(); }
virtual void OnPFBusGridChanged(wxGridEvent& event) { event.Skip(); }
@@ -74,7 +75,7 @@ protected:
virtual void OnFaultGeneratorsGridChanged(wxGridEvent& event) { event.Skip(); }
virtual void OnGridFaultGeneratorsKeyDown(wxKeyEvent& event) { event.Skip(); }
-public:
+ public:
wxGrid* GetGridPowerFlow() { return m_gridPowerFlow; }
wxPanel* GetPanelPowerFlow() { return m_panelPowerFlow; }
wxGrid* GetGridPFBuses() { return m_gridPFBuses; }
@@ -94,8 +95,34 @@ public:
wxNotebook* GetNotebookFault() { return m_notebookFault; }
wxPanel* GetPanelFaultData() { return m_panelFaultData; }
wxNotebook* GetNotebookDataReport() { return m_notebookDataReport; }
- DataReportBase(wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = _("Data report"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize(-1,-1), long style = wxDEFAULT_FRAME_STYLE);
+ DataReportBase(wxWindow* parent,
+ wxWindowID id = wxID_ANY,
+ const wxString& title = _("Data report"),
+ const wxPoint& pos = wxDefaultPosition,
+ const wxSize& size = wxSize(-1, -1),
+ long style = wxDEFAULT_FRAME_STYLE);
virtual ~DataReportBase();
};
+class StabilityEventListBase : public wxDialog
+{
+ protected:
+ wxGrid* m_gridStabEventList;
+ wxButton* m_buttonOK;
+
+ protected:
+ virtual void OnOKButtonClick(wxCommandEvent& event) { event.Skip(); }
+
+ public:
+ wxGrid* GetGridStabEventList() { return m_gridStabEventList; }
+ wxButton* GetButtonOK() { return m_buttonOK; }
+ StabilityEventListBase(wxWindow* parent,
+ wxWindowID id = wxID_ANY,
+ const wxString& title = _("Stability event list"),
+ const wxPoint& pos = wxDefaultPosition,
+ const wxSize& size = wxSize(500, 300),
+ long style = wxDEFAULT_DIALOG_STYLE);
+ virtual ~StabilityEventListBase();
+};
+
#endif