summaryrefslogtreecommitdiffstats
path: root/Project/Element.h
diff options
context:
space:
mode:
authorThales1330 <thaleslima.ufu@gmail.com>2016-09-12 18:49:00 -0300
committerThales1330 <thaleslima.ufu@gmail.com>2016-09-12 18:49:00 -0300
commit1088617b8f1c31af3ad6a87f9934f7a55240b3a2 (patch)
tree922d0e070c7ef3351dc166340b77485dd5b814f3 /Project/Element.h
parentd5c3a7c9c375f683f5b66a19caf28299af89ef65 (diff)
downloadPSP.git-1088617b8f1c31af3ad6a87f9934f7a55240b3a2.tar.gz
PSP.git-1088617b8f1c31af3ad6a87f9934f7a55240b3a2.tar.xz
PSP.git-1088617b8f1c31af3ad6a87f9934f7a55240b3a2.zip
Bus form under implementation [2]
Diffstat (limited to 'Project/Element.h')
-rw-r--r--Project/Element.h36
1 files changed, 35 insertions, 1 deletions
diff --git a/Project/Element.h b/Project/Element.h
index 94d5cd7..899fb01 100644
--- a/Project/Element.h
+++ b/Project/Element.h
@@ -1,6 +1,7 @@
#ifndef ELEMENT_H
#define ELEMENT_H
+#include <wx/msgdlg.h>
#include <wx/geometry.h>
#include <wx/cursor.h>
#include <wx/menu.h>
@@ -37,6 +38,35 @@ enum ContextMenuID
ID_DELETE
};
+enum ElectricalUnit
+{
+ UNIT_PU = 0,
+ UNIT_V,
+ UNIT_kV,
+ UNIT_A,
+ UNIT_kA,
+ UNIT_W,
+ UNIT_kW,
+ UNIT_MW,
+ UNIT_VA,
+ UNIT_kVA,
+ UNIT_MVA,
+ UNIT_VAr,
+ UNIT_kVAr,
+ UNIT_MVAr
+};
+
+enum FaultData
+{
+ FAULT_THREEPHASE = 0,
+ FAULT_2LINE,
+ FAULT_2LINE_GROUND,
+ FAULT_LINE_GROUND,
+ FAULT_LINE_A,
+ FAULT_LINE_B,
+ FAULT_LINE_C
+};
+
class Element
{
public:
@@ -130,7 +160,11 @@ class Element
virtual void GeneralMenuItens(wxMenu& menu);
- virtual bool ShowForm(wxWindow* parent) { return false; }
+ virtual bool ShowForm(wxWindow* parent, Element* element) { return false; }
+
+ bool DoubleFromString(wxWindow* parent, wxString strValue, double& value, wxString errorMsg);
+ bool IntFromString(wxWindow* parent, wxString strValue, int& value, wxString errorMsg);
+
protected:
std::vector<Element*> m_parentList;