summaryrefslogtreecommitdiffstats
path: root/Project/TextForm.h
diff options
context:
space:
mode:
authorThales1330 <thaleslima.ufu@gmail.com>2016-12-06 13:26:46 -0200
committerThales1330 <thaleslima.ufu@gmail.com>2016-12-06 13:26:46 -0200
commite282ec268db0d17a1d53f813c5fff9473d25e797 (patch)
tree517e01b8685248f04548513091e7040a1b36ec0b /Project/TextForm.h
parentd4efffcdedbb41596eecd0882a1cef76f6afc435 (diff)
parente266f5811403beea13c9cc5399c55db4a34fdd3c (diff)
downloadPSP.git-e282ec268db0d17a1d53f813c5fff9473d25e797.tar.gz
PSP.git-e282ec268db0d17a1d53f813c5fff9473d25e797.tar.xz
PSP.git-e282ec268db0d17a1d53f813c5fff9473d25e797.zip
Merge remote-tracking branch 'refs/remotes/origin/wip/currentState'
Diffstat (limited to 'Project/TextForm.h')
-rw-r--r--Project/TextForm.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/Project/TextForm.h b/Project/TextForm.h
new file mode 100644
index 0000000..1a22baa
--- /dev/null
+++ b/Project/TextForm.h
@@ -0,0 +1,33 @@
+#ifndef TEXTFORM_H
+#define TEXTFORM_H
+#include "ElementForm.h"
+
+#include "Text.h"
+#include "ElectricCalculation.h"
+
+class TextForm : public TextFormBase
+{
+ public:
+ TextForm(wxWindow* parent, Text* text, std::vector<Element*> elementList, double systemPowerBase = 100e6);
+ virtual ~TextForm();
+ virtual void ElementTypeChoice();
+ virtual void ElementNumberChoice();
+ virtual void DataTypeChoice();
+ virtual void UnitChoice();
+
+ protected:
+ virtual void OnCancelButtonClick(wxCommandEvent& event) { EndModal(wxID_CANCEL); }
+ virtual void OnOKButtonClick(wxCommandEvent& event) { EndModal(wxID_OK); }
+ virtual void OnElementChoiceSelected(wxCommandEvent& event);
+ virtual void OnFromBusChoiceSelected(wxCommandEvent& event);
+ virtual void OnNameChoiceSelected(wxCommandEvent& event);
+ virtual void OnTextEnter(wxCommandEvent& event);
+ virtual void OnToBusChoiceSelected(wxCommandEvent& event);
+ virtual void OnTypeChoiceSelected(wxCommandEvent& event);
+
+ Text* m_text;
+ wxWindow* m_parent;
+ ElectricCalculation m_allElements;
+ double m_systemPowerBase;
+};
+#endif // TEXTFORM_H