1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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
|