From 7578abbb11ce2dbae3c54ab7051ad2b39d31360b Mon Sep 17 00:00:00 2001 From: leseb Date: Wed, 27 Mar 2002 17:17:06 +0000 Subject: Rename drawmode -> tool --- (limited to 'noncore/graphics/drawpad/ellipsedrawmode.cpp') diff --git a/noncore/graphics/drawpad/ellipsedrawmode.cpp b/noncore/graphics/drawpad/ellipsedrawmode.cpp deleted file mode 100644 index f9cfa73..0000000 --- a/noncore/graphics/drawpad/ellipsedrawmode.cpp +++ b/dev/null @@ -1,45 +0,0 @@ -/*************************************************************************** - * * - * DrawPad - a drawing program for Opie Environment * - * * - * (C) 2002 by S. Prud'homme * - * * - * This program is free software; you can redistribute it and/or modify * - * it under the terms of the GNU General Public License as published by * - * the Free Software Foundation; either version 2 of the License, or * - * (at your option) any later version. * - * * - ***************************************************************************/ - -#include "ellipsedrawmode.h" - -#include "drawpad.h" -#include "drawpadcanvas.h" - -#include -#include - -EllipseDrawMode::EllipseDrawMode(DrawPad* drawPad, DrawPadCanvas* drawPadCanvas) - : ShapeDrawMode(drawPad, drawPadCanvas) -{ -} - -EllipseDrawMode::~EllipseDrawMode() -{ -} - -void EllipseDrawMode::drawFinalShape(QPainter& p) -{ - p.setRasterOp(Qt::NotROP); - p.drawRect(QRect(m_polyline[2], m_polyline[0])); - p.setPen(m_pDrawPad->pen()); - p.setRasterOp(Qt::CopyROP); - p.drawEllipse(QRect(m_polyline[2], m_polyline[0])); -} - -void EllipseDrawMode::drawTemporaryShape(QPainter& p) -{ - p.setRasterOp(Qt::NotROP); - p.drawRect(QRect(m_polyline[2], m_polyline[1])); - p.drawRect(QRect(m_polyline[2], m_polyline[0])); -} -- cgit v0.9.0.2