]> Shamusworld >> Repos - architektonas/blobdiff - src/actions/actiondrawpolyline.cpp
Phase 3 of polyline functionality added: Create polyline somewhat working...
[architektonas] / src / actions / actiondrawpolyline.cpp
index f4f81a4c3bebb7d5b2bb7902e3e78abb8648307e..03925ab8439e53609338b5ba5b7150d10a80ace8 100644 (file)
@@ -33,6 +33,11 @@ ActionDrawPolyline::~ActionDrawPolyline()
                delete polyline;
 }
 
+/*virtual*/ RS2::ActionType ActionDrawPolyline::rtti()
+{
+       return RS2::ActionDrawPolyline;
+}
+
 void ActionDrawPolyline::trigger()
 {
        if (polyline)
@@ -129,6 +134,20 @@ void ActionDrawPolyline::updateToolBar()
                DIALOGFACTORY->requestToolBar(RS2::ToolBarPolylines);
 }
 
+void ActionDrawPolyline::showOptions()
+{
+       DEBUG->print("ActionDrawPolyline::showOptions");
+       ActionInterface::showOptions();
+       DIALOGFACTORY->requestOptions(this, true);
+       DEBUG->print("ActionDrawPolyline::showOptions: OK");
+}
+
+void ActionDrawPolyline::hideOptions()
+{
+       ActionInterface::hideOptions();
+       DIALOGFACTORY->requestOptions(this, false);
+}
+
 void ActionDrawPolyline::close()
 {
 #if 0