diff options
author | Thales Lima Oliveira <thaleslima.ufu@gmail.com> | 2017-09-06 20:11:37 -0300 |
---|---|---|
committer | Thales Lima Oliveira <thaleslima.ufu@gmail.com> | 2017-09-06 20:11:37 -0300 |
commit | 41b81949a92aad043caa28b0e1144348d06921f8 (patch) | |
tree | 9336697587beafbcca1ad8bcf90e750db550b927 /Project/DataReport.h | |
parent | 926af7f34aaf5aebdbac0cbc550ed75647874258 (diff) | |
download | PSP.git-41b81949a92aad043caa28b0e1144348d06921f8.tar.gz PSP.git-41b81949a92aad043caa28b0e1144348d06921f8.tar.xz PSP.git-41b81949a92aad043caa28b0e1144348d06921f8.zip |
Data report implementation start
Diffstat (limited to 'Project/DataReport.h')
-rw-r--r-- | Project/DataReport.h | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/Project/DataReport.h b/Project/DataReport.h new file mode 100644 index 0000000..61d8e15 --- /dev/null +++ b/Project/DataReport.h @@ -0,0 +1,46 @@ +#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); + + 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; +}; +#endif // DATAREPORT_H |