From 41b81949a92aad043caa28b0e1144348d06921f8 Mon Sep 17 00:00:00 2001 From: Thales Lima Oliveira Date: Wed, 6 Sep 2017 20:11:37 -0300 Subject: Data report implementation start --- Project/DataReportBase.h | 94 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 94 insertions(+) create mode 100644 Project/DataReportBase.h (limited to 'Project/DataReportBase.h') diff --git a/Project/DataReportBase.h b/Project/DataReportBase.h new file mode 100644 index 0000000..aa3f721 --- /dev/null +++ b/Project/DataReportBase.h @@ -0,0 +1,94 @@ +////////////////////////////////////////////////////////////////////// +// This file was auto-generated by codelite's wxCrafter Plugin +// wxCrafter project file: DataReport.wxcp +// Do not modify this file by hand! +////////////////////////////////////////////////////////////////////// + +#ifndef _PSP_PROJECT_DATAREPORT_BASE_CLASSES_H +#define _PSP_PROJECT_DATAREPORT_BASE_CLASSES_H + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#if wxVERSION_NUMBER >= 2900 +#include +#include +#include +#include +#endif + +#ifdef WXC_FROM_DIP +#undef WXC_FROM_DIP +#endif +#if wxVERSION_NUMBER >= 3100 +#define WXC_FROM_DIP(x) wxWindow::FromDIP(x, NULL) +#else +#define WXC_FROM_DIP(x) x +#endif + + +class DataReportBase : public wxFrame +{ +protected: + wxNotebook* m_notebookPowerFlowData; + wxPanel* m_panelPowerFlowData; + wxNotebook* m_notebookPowerFlow; + wxPanel* m_panelPowerFlow; + wxGrid* m_gridPowerFlow; + wxPanel* m_panelPFBuses; + wxGrid* m_gridPFBuses; + wxPanel* m_panelPFBranches; + wxGrid* m_gridPFBranches; + wxPanel* m_panelFaultData; + wxNotebook* m_notebookFault; + wxPanel* m_panelFault; + wxGrid* m_gridFault; + wxPanel* m_panelFaultBuses; + wxGrid* m_gridFaultBuses; + wxPanel* m_panelFaultBranches; + wxGrid* m_gridFaultBranches; + wxPanel* m_panelFaultGenerators; + wxGrid* m_gridFaultGenerators; + +protected: + virtual void OnPowerFlowGridChanged(wxGridEvent& event) { event.Skip(); } + virtual void OnPFBusGridChanged(wxGridEvent& event) { event.Skip(); } + virtual void OnPFBranchesGridChanged(wxGridEvent& event) { event.Skip(); } + virtual void OnFaulrGridChanged(wxGridEvent& event) { event.Skip(); } + virtual void OnFaultBusesGridChanged(wxGridEvent& event) { event.Skip(); } + virtual void OnFaultBranchesGridChanged(wxGridEvent& event) { event.Skip(); } + virtual void OnFaultGeneratorsGridChanged(wxGridEvent& event) { event.Skip(); } + +public: + wxGrid* GetGridPowerFlow() { return m_gridPowerFlow; } + wxPanel* GetPanelPowerFlow() { return m_panelPowerFlow; } + wxGrid* GetGridPFBuses() { return m_gridPFBuses; } + wxPanel* GetPanelPFBuses() { return m_panelPFBuses; } + wxGrid* GetGridPFBranches() { return m_gridPFBranches; } + wxPanel* GetPanelPFBranches() { return m_panelPFBranches; } + wxNotebook* GetNotebookPowerFlow() { return m_notebookPowerFlow; } + wxPanel* GetPanelPowerFlowData() { return m_panelPowerFlowData; } + wxGrid* GetGridFault() { return m_gridFault; } + wxPanel* GetPanelFault() { return m_panelFault; } + wxGrid* GetGridFaultBuses() { return m_gridFaultBuses; } + wxPanel* GetPanelFaultBuses() { return m_panelFaultBuses; } + wxGrid* GetGridFaultBranches() { return m_gridFaultBranches; } + wxPanel* GetPanelFaultBranches() { return m_panelFaultBranches; } + wxGrid* GetGridFaultGenerators() { return m_gridFaultGenerators; } + wxPanel* GetPanelFaultGenerators() { return m_panelFaultGenerators; } + wxNotebook* GetNotebookFault() { return m_notebookFault; } + wxPanel* GetPanelFaultData() { return m_panelFaultData; } + wxNotebook* GetNotebookPowerFlowData() { return m_notebookPowerFlowData; } + 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(); +}; + +#endif -- cgit From 9e1f6849c929506a17fa12185c5c0185d5287177 Mon Sep 17 00:00:00 2001 From: Thales Lima Oliveira Date: Fri, 8 Sep 2017 22:02:09 -0300 Subject: More grid data implemented Some fault bugfixes --- Project/DataReportBase.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Project/DataReportBase.h') diff --git a/Project/DataReportBase.h b/Project/DataReportBase.h index aa3f721..3e6784c 100644 --- a/Project/DataReportBase.h +++ b/Project/DataReportBase.h @@ -38,7 +38,7 @@ class DataReportBase : public wxFrame { protected: - wxNotebook* m_notebookPowerFlowData; + wxNotebook* m_notebookDataReport; wxPanel* m_panelPowerFlowData; wxNotebook* m_notebookPowerFlow; wxPanel* m_panelPowerFlow; @@ -86,7 +86,7 @@ public: wxPanel* GetPanelFaultGenerators() { return m_panelFaultGenerators; } wxNotebook* GetNotebookFault() { return m_notebookFault; } wxPanel* GetPanelFaultData() { return m_panelFaultData; } - wxNotebook* GetNotebookPowerFlowData() { return m_notebookPowerFlowData; } + 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); virtual ~DataReportBase(); }; -- cgit