From ee27459748acee31a307604f6395ea31b4bf53ce Mon Sep 17 00:00:00 2001 From: Thales1330 Date: Thu, 29 Sep 2016 17:01:02 -0300 Subject: Line form under implementation --- Project/Line.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'Project/Line.cpp') 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; +} -- cgit