summaryrefslogtreecommitdiffstats
path: root/Project/Line.cpp
diff options
context:
space:
mode:
authorThales1330 <thaleslima.ufu@gmail.com>2016-09-29 17:01:02 -0300
committerThales1330 <thaleslima.ufu@gmail.com>2016-09-29 17:01:02 -0300
commitee27459748acee31a307604f6395ea31b4bf53ce (patch)
tree5c238915309f45fcb4f4a09b1c998407badc31a4 /Project/Line.cpp
parenta9dd78afddeb706df6652eb91f229a74fd073846 (diff)
downloadPSP.git-ee27459748acee31a307604f6395ea31b4bf53ce.tar.gz
PSP.git-ee27459748acee31a307604f6395ea31b4bf53ce.tar.xz
PSP.git-ee27459748acee31a307604f6395ea31b4bf53ce.zip
Line form under implementation
Diffstat (limited to 'Project/Line.cpp')
-rw-r--r--Project/Line.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/Project/Line.cpp b/Project/Line.cpp
index be805a1..fb84b1e 100644
--- a/Project/Line.cpp
+++ b/Project/Line.cpp
@@ -308,3 +308,14 @@ void Line::CalculateBoundaries(wxPoint2DDouble& leftUp, wxPoint2DDouble& rightBo
}
}
}
+
+bool Line::ShowForm(wxWindow* parent, Element* element)
+{
+ LineForm* lineForm = new LineForm(parent, this);
+ if(lineForm->ShowModal() == wxID_OK) {
+ lineForm->Destroy();
+ return true;
+ }
+ lineForm->Destroy();
+ return false;
+}