summaryrefslogtreecommitdiffstats
path: root/Project/StabilityEventList.h
diff options
context:
space:
mode:
authorThales Lima Oliveira <thaleslima.ufu@gmail.com>2019-07-24 00:02:49 -0300
committerGitHub <noreply@github.com>2019-07-24 00:02:49 -0300
commit4f434e4a1cccce69e4b680e4734df52244d3a30b (patch)
tree54886abf6d62d9341377d535e52b36016b602107 /Project/StabilityEventList.h
parent8357c081eb75147bb8f94d8b6e367d88ea3898ed (diff)
parent0ca6710a7e003952e1212c8e32ebb2e7c008d508 (diff)
downloadPSP.git-4f434e4a1cccce69e4b680e4734df52244d3a30b.tar.gz
PSP.git-4f434e4a1cccce69e4b680e4734df52244d3a30b.tar.xz
PSP.git-4f434e4a1cccce69e4b680e4734df52244d3a30b.zip
Merge pull request #51 from Thales1330/wip/induction-motor
Newton bug fixed
Diffstat (limited to 'Project/StabilityEventList.h')
-rw-r--r--Project/StabilityEventList.h38
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