]> Shamusworld >> Repos - architektonas/blobdiff - src/drawdimensionaction.cpp
Added key modifiers to Actions.
[architektonas] / src / drawdimensionaction.cpp
index 2414afa107285fd8e5b2238a07c80f42dfaed7e3..e51f88d394e39f72c23fc4da2af4b58704ef7677 100644 (file)
@@ -78,10 +78,24 @@ DrawDimensionAction::~DrawDimensionAction()
                // We create the new object here, and then pass it off to the
                // DrawingView which stuffs it into the document.
 //             line = new Line(p1, p2);
+               dimension = new Dimension(p1, p2);
                // We don't need no stinkin' sentinels, when we have signals & slots!
                emit ObjectReady(dimension);
 
-               p1 = p2;
+               state = FIRST_POINT;
+//             p1 = p2;
        }
 }
 
+
+/*virtual*/ bool DrawDimensionAction::KeyDown(int /*key*/)
+{
+       return false;
+}
+
+
+/*virtual*/ bool DrawDimensionAction::KeyReleased(int /*key*/)
+{
+       return false;
+}
+