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