From 0ca6710a7e003952e1212c8e32ebb2e7c008d508 Mon Sep 17 00:00:00 2001 From: Thales Lima Oliveira Date: Wed, 24 Jul 2019 00:02:17 -0300 Subject: Newton bug fixed --- Project/StabilityEventList.h | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 Project/StabilityEventList.h (limited to 'Project/StabilityEventList.h') 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 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 m_elementList; + std::vector m_time; + std::vector m_eventType; + std::vector m_eventDescription; + std::vector 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 -- cgit