X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fdrawcircleaction.cpp;h=a1ffe192b3653c3e63901c049b9e751ab8739d26;hb=11cff81f10ccca1b31288fce04d696e715b922b0;hp=fad31580b283bde7e5f9ed4f906660c44bc8e11b;hpb=043ecf4d074909ba2f7f53237962f9eaa72f19c2;p=architektonas diff --git a/src/drawcircleaction.cpp b/src/drawcircleaction.cpp index fad3158..a1ffe19 100644 --- a/src/drawcircleaction.cpp +++ b/src/drawcircleaction.cpp @@ -32,14 +32,16 @@ DrawCircleAction::~DrawCircleAction() /*virtual*/ void DrawCircleAction::Draw(Painter * painter) { - // Need to fix pen colors, etc... + painter->SetPen(QPen(Qt::red, 2.0, Qt::DotLine)); + // I think stuff like crosshairs should be done in the DrawingView, tho if (state == FIRST_POINT) { - painter->DrawPoint(p1.x, p1.y); + painter->DrawHandle(p1); } else { + painter->DrawHandle(p1); double radius = Vector::Magnitude(p1, p2); painter->DrawEllipse(p1, radius, radius); } @@ -80,3 +82,16 @@ DrawCircleAction::~DrawCircleAction() p1 = p2; } } + + +/*virtual*/ bool DrawCircleAction::KeyDown(int /*key*/) +{ + return false; +} + + +/*virtual*/ bool DrawCircleAction::KeyReleased(int /*key*/) +{ + return false; +} +