X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fdrawdimensionaction.cpp;h=66b2bfb1a176c149107eb5782e56859155590eac;hb=c58b8a9f8b1ae5494857fc423ed8e33b2bbcf329;hp=58fa09595028e0e884c54b52cf62073edff64492;hpb=e11a07565fe5ef3dfafbf9a933d7a1575e058867;p=architektonas diff --git a/src/drawdimensionaction.cpp b/src/drawdimensionaction.cpp index 58fa095..66b2bfb 100644 --- a/src/drawdimensionaction.cpp +++ b/src/drawdimensionaction.cpp @@ -14,11 +14,9 @@ #include "drawdimensionaction.h" #include "dimension.h" #include "painter.h" -//#include "vector.h" -#define FIRST_POINT 0 -#define NEXT_POINT 1 +enum { FIRST_POINT, NEXT_POINT }; DrawDimensionAction::DrawDimensionAction(): state(0), dimension(NULL) @@ -77,13 +75,21 @@ 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); state = FIRST_POINT; -// p1 = p2; } } + +/*virtual*/ void DrawDimensionAction::KeyDown(int /*key*/) +{ +} + + +/*virtual*/ void DrawDimensionAction::KeyReleased(int /*key*/) +{ +} +