diff options
author | Thales Lima Oliveira <thaleslima.ufu@gmail.com> | 2017-09-09 19:11:41 -0300 |
---|---|---|
committer | Thales Lima Oliveira <thaleslima.ufu@gmail.com> | 2017-09-09 19:11:41 -0300 |
commit | 91b9c3f9909955443e74dedb248fc48fa984709b (patch) | |
tree | c1bf65c2bd297d44e258067155292d9798f4c8c9 /Project/DataReport.h | |
parent | 9e1f6849c929506a17fa12185c5c0185d5287177 (diff) | |
download | PSP.git-91b9c3f9909955443e74dedb248fc48fa984709b.tar.gz PSP.git-91b9c3f9909955443e74dedb248fc48fa984709b.tar.xz PSP.git-91b9c3f9909955443e74dedb248fc48fa984709b.zip |
Data report fully implemented
Diffstat (limited to 'Project/DataReport.h')
-rw-r--r-- | Project/DataReport.h | 33 |
1 files changed, 20 insertions, 13 deletions
diff --git a/Project/DataReport.h b/Project/DataReport.h index 61a7ccf..f262cb9 100644 --- a/Project/DataReport.h +++ b/Project/DataReport.h @@ -8,24 +8,25 @@ 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, - }; - + 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); @@ -37,7 +38,7 @@ public: virtual void OnPFBusGridChanged(wxGridEvent& event); Workspace* m_workspace = NULL; bool m_changingValues = false; - + // Headers choices wxArrayString m_voltageChoices; wxArrayString m_activePowerChoices; @@ -46,5 +47,11 @@ public: 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 |