diff options
author | Thales1330 <thaleslima.ufu@gmail.com> | 2016-12-01 16:57:41 -0200 |
---|---|---|
committer | Thales1330 <thaleslima.ufu@gmail.com> | 2016-12-01 16:57:41 -0200 |
commit | e266f5811403beea13c9cc5399c55db4a34fdd3c (patch) | |
tree | 517e01b8685248f04548513091e7040a1b36ec0b /Project/TextForm.h | |
parent | 186e9d36f23ebb4c260885215d216d4df0b3b2ec (diff) | |
download | PSP.git-e266f5811403beea13c9cc5399c55db4a34fdd3c.tar.gz PSP.git-e266f5811403beea13c9cc5399c55db4a34fdd3c.tar.xz PSP.git-e266f5811403beea13c9cc5399c55db4a34fdd3c.zip |
Text Form under implementation [3]
Diffstat (limited to 'Project/TextForm.h')
-rw-r--r-- | Project/TextForm.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Project/TextForm.h b/Project/TextForm.h index b33d02b..1a22baa 100644 --- a/Project/TextForm.h +++ b/Project/TextForm.h @@ -8,16 +8,16 @@ class TextForm : public TextFormBase { public: - TextForm(wxWindow* parent, Text* text, std::vector<Element*> elementList); + 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 FromChoice(); - virtual void ToChoice(); 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); @@ -28,5 +28,6 @@ class TextForm : public TextFormBase Text* m_text; wxWindow* m_parent; ElectricCalculation m_allElements; + double m_systemPowerBase; }; #endif // TEXTFORM_H |