summaryrefslogtreecommitdiffstats
path: root/Project/Transformer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Project/Transformer.cpp')
-rw-r--r--Project/Transformer.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/Project/Transformer.cpp b/Project/Transformer.cpp
index 03d71e7..37237dd 100644
--- a/Project/Transformer.cpp
+++ b/Project/Transformer.cpp
@@ -1,3 +1,4 @@
+#include "TransformerForm.h"
#include "Transformer.h"
Transformer::Transformer() : Branch() {}
@@ -225,3 +226,14 @@ bool Transformer::GetContextMenu(wxMenu& menu)
GeneralMenuItens(menu);
return true;
}
+
+bool Transformer::ShowForm(wxWindow* parent, Element* element)
+{
+ TransformerForm* transfForm = new TransformerForm(parent, this);
+ if(transfForm->ShowModal() == wxID_OK) {
+ transfForm->Destroy();
+ return true;
+ }
+ transfForm->Destroy();
+ return false;
+}