diff options
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; +} |