diff options
author | Thales1330 <thaleslima.ufu@gmail.com> | 2016-11-29 18:27:32 -0200 |
---|---|---|
committer | Thales1330 <thaleslima.ufu@gmail.com> | 2016-11-29 18:27:32 -0200 |
commit | 6b9054f1bb28b4ac1b0a7b682204baa0e2643220 (patch) | |
tree | 395cf7dfc8789fbf1cb6df91d8d3aa0b2dd68608 /Project/Text.cpp | |
parent | 22f71caae9771b8279dcfdbd3842b45c4520b782 (diff) | |
download | PSP.git-6b9054f1bb28b4ac1b0a7b682204baa0e2643220.tar.gz PSP.git-6b9054f1bb28b4ac1b0a7b682204baa0e2643220.tar.xz PSP.git-6b9054f1bb28b4ac1b0a7b682204baa0e2643220.zip |
Text form under implementation
Diffstat (limited to 'Project/Text.cpp')
-rw-r--r-- | Project/Text.cpp | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/Project/Text.cpp b/Project/Text.cpp index 1a89d17..839e6f8 100644 --- a/Project/Text.cpp +++ b/Project/Text.cpp @@ -1,14 +1,7 @@ +#include "TextForm.h" #include "Text.h" -#include "Bus.h" -#include "Line.h" -#include "Transformer.h" -#include "SyncGenerator.h" -#include "IndMotor.h" -#include "SyncMotor.h" -#include "Load.h" -#include "Inductor.h" -#include "Capacitor.h" +#include "ElectricCalculation.h" Text::Text() : Element() { SetText(m_text); } Text::Text(wxPoint2DDouble position) : Element() @@ -84,3 +77,14 @@ void Text::Rotate(bool clockwise) m_angle += rotAngle; if(m_angle >= 360.0) m_angle = 0.0; } + +bool Text::ShowForm(wxWindow* parent, std::vector<Element*> elementList) +{ + TextForm* textForm = new TextForm(parent, this, elementList); + if(textForm->ShowModal() == wxID_OK) { + textForm->Destroy(); + return true; + } + textForm->Destroy(); + return false; +} |