diff options
author | Thales1330 <thaleslima.ufu@gmail.com> | 2016-09-29 17:01:02 -0300 |
---|---|---|
committer | Thales1330 <thaleslima.ufu@gmail.com> | 2016-09-29 17:01:02 -0300 |
commit | ee27459748acee31a307604f6395ea31b4bf53ce (patch) | |
tree | 5c238915309f45fcb4f4a09b1c998407badc31a4 /Project/Line.cpp | |
parent | a9dd78afddeb706df6652eb91f229a74fd073846 (diff) | |
download | PSP.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.cpp | 11 |
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; +} |