diff options
author | Thales Lima Oliveira <thaleslima.ufu@gmail.com> | 2019-07-24 00:02:17 -0300 |
---|---|---|
committer | Thales Lima Oliveira <thaleslima.ufu@gmail.com> | 2019-07-24 00:02:17 -0300 |
commit | 0ca6710a7e003952e1212c8e32ebb2e7c008d508 (patch) | |
tree | 54886abf6d62d9341377d535e52b36016b602107 /Project/StabilityEventList.h | |
parent | 7f46d390b8cc1d5f37560f52b222198dbc5e1225 (diff) | |
download | PSP.git-0ca6710a7e003952e1212c8e32ebb2e7c008d508.tar.gz PSP.git-0ca6710a7e003952e1212c8e32ebb2e7c008d508.tar.xz PSP.git-0ca6710a7e003952e1212c8e32ebb2e7c008d508.zip |
Newton bug fixed
Diffstat (limited to 'Project/StabilityEventList.h')
-rw-r--r-- | Project/StabilityEventList.h | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/Project/StabilityEventList.h b/Project/StabilityEventList.h new file mode 100644 index 0000000..34608dc --- /dev/null +++ b/Project/StabilityEventList.h @@ -0,0 +1,38 @@ +#ifndef STABILITYEVENTLIST_H +#define STABILITYEVENTLIST_H +#include "DataReportBase.h" + +class Element; +class PowerElement; +class Bus; +class ElectricCalculation; + +class StabilityEventList : public StabilityEventListBase +{ + public: + StabilityEventList(wxWindow* parent, std::vector<Element*> elementList); + virtual ~StabilityEventList(); + + protected: + virtual void OnOKButtonClick(wxCommandEvent& event) { EndModal(wxID_OK); }; + virtual void GetTimeEventsList(); + virtual void AddEvent(double eventTime, wxString eventType, wxString eventDescription, wxColour eventColour); + virtual void FillGrid(); + virtual void SortEvents(); + virtual void SetRowsColours(wxGrid* grid, int rowStart = 1); + void SetPowerElementSwitchingEvent(PowerElement* element, wxString elementName); + + std::vector<Element*> m_elementList; + std::vector<double> m_time; + std::vector<wxString> m_eventType; + std::vector<wxString> m_eventDescription; + std::vector<wxColour> m_eventColour; + + // Cell colours + wxColour m_headerColour = wxColour(150, 150, 150); + wxColour m_oddRowColour = wxColour(220, 220, 220); + wxColour m_evenRowColour = wxColour(255, 255, 255); + wxColour m_redColour = wxColour(255, 0, 0); + wxColour m_blueColour = wxColour(0, 0, 255); +}; +#endif // STABILITYEVENTLIST_H |