/*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);
}
p1 = p2;
}
}
+
+
+/*virtual*/ bool DrawCircleAction::KeyDown(int /*key*/)
+{
+ return false;
+}
+
+
+/*virtual*/ bool DrawCircleAction::KeyReleased(int /*key*/)
+{
+ return false;
+}
+