summaryrefslogtreecommitdiffstats
path: root/Project/DataReport.h
diff options
context:
space:
mode:
authorThales Lima Oliveira <thaleslima.ufu@gmail.com>2017-09-09 19:13:03 -0300
committerGitHub <noreply@github.com>2017-09-09 19:13:03 -0300
commitdcb1934ec64c928efdfa561519d2e46a3c3cb0db (patch)
treec1bf65c2bd297d44e258067155292d9798f4c8c9 /Project/DataReport.h
parent926af7f34aaf5aebdbac0cbc550ed75647874258 (diff)
parent91b9c3f9909955443e74dedb248fc48fa984709b (diff)
downloadPSP.git-dcb1934ec64c928efdfa561519d2e46a3c3cb0db.tar.gz
PSP.git-dcb1934ec64c928efdfa561519d2e46a3c3cb0db.tar.xz
PSP.git-dcb1934ec64c928efdfa561519d2e46a3c3cb0db.zip
Merge pull request #34 from Thales1330/wip-datareport
Wip datareport
Diffstat (limited to 'Project/DataReport.h')
-rw-r--r--Project/DataReport.h57
1 files changed, 57 insertions, 0 deletions
diff --git a/Project/DataReport.h b/Project/DataReport.h
new file mode 100644
index 0000000..f262cb9
--- /dev/null
+++ b/Project/DataReport.h
@@ -0,0 +1,57 @@
+#ifndef DATAREPORT_H
+#define DATAREPORT_H
+
+#include "DataReportBase.h"
+
+class Workspace;
+class ElectricCalculation;
+
+class DataReport : public DataReportBase
+{
+ public:
+ enum GridSelection {
+ GRID_ALL = 0,
+ GRID_PF,
+ GRID_PFBUSES,
+ GRID_PFBRANCHES,
+ GRID_FAULT,
+ GRID_FAULTBUSES,
+ GRID_FAULTBRANCHES,
+ GRID_FAULTGENERATORS,
+ };
+
+ DataReport(wxWindow* parent, Workspace* workspace);
+ virtual ~DataReport();
+
+ virtual void SetHeaders();
+ virtual void CreateGrids();
+ virtual void FillValues(GridSelection gridToFill = GRID_ALL);
+ virtual void SetRowsColours(wxGrid* grid, int rowStart = 1);
+
+ protected:
+ virtual void OnFaulrGridChanged(wxGridEvent& event);
+ virtual void OnFaultBranchesGridChanged(wxGridEvent& event);
+ virtual void OnFaultBusesGridChanged(wxGridEvent& event);
+ virtual void OnFaultGeneratorsGridChanged(wxGridEvent& event);
+ virtual void OnPFBranchesGridChanged(wxGridEvent& event);
+ virtual void OnPowerFlowGridChanged(wxGridEvent& event);
+ virtual void OnPFBusGridChanged(wxGridEvent& event);
+ Workspace* m_workspace = NULL;
+ bool m_changingValues = false;
+
+ // Headers choices
+ wxArrayString m_voltageChoices;
+ wxArrayString m_activePowerChoices;
+ wxArrayString m_reactivePowerChoices;
+ wxArrayString m_resistanceChoices;
+ wxArrayString m_indReactanceChoices;
+ wxArrayString m_capSusceptanceChoices;
+ wxArrayString m_currentChoices;
+
+ // Colors
+ wxColour m_headerColour;
+ wxColour m_offlineColour;
+ wxColour m_oddRowColour;
+ wxColour m_evenRowColour;
+};
+#endif // DATAREPORT_H