X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fbase%2Frs_staticgraphicview.h;h=6347c193c68a92b4852f308e639571def1282553;hb=d774c2655ba2c3657a565f325411144452392277;hp=1124c5d45ab06196f8cccd18bc120e3a21f87bcf;hpb=16ce54abf01ca3032e42a5bb11a4afcf9014dcca;p=architektonas diff --git a/src/base/rs_staticgraphicview.h b/src/base/rs_staticgraphicview.h index 1124c5d..6347c19 100644 --- a/src/base/rs_staticgraphicview.h +++ b/src/base/rs_staticgraphicview.h @@ -1,66 +1,35 @@ -/***************************************************************************** -** $Id: rs_staticgraphicview.h 1686 2003-08-25 22:50:31Z andrew $ -** -** This is part of the QCad Qt GUI -** Copyright (C) 2001 Andrew Mustun -** -** This program is free software; you can redistribute it and/or modify -** it under the terms of the GNU General Public License (version 2) as -** published by the Free Software Foundation. -** -** This program is distributed in the hope that it will be useful, -** but WITHOUT ANY WARRANTY; without even the implied warranty of -** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -** GNU General Public License for more details. -** -** You should have received a copy of the GNU General Public License -** along with this program; if not, write to the Free Software -** Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -******************************************************************************/ - #ifndef RS_STATICGRAPHICVIEW_H #define RS_STATICGRAPHICVIEW_H -#include "rs_graphicview.h" -#include "rs_layerlistlistener.h" +#include "graphicview.h" + +class PaintInterface; /** * This is an implementation of a graphic viewer with a fixed size * for drawing onto fixed devices (such as bitmaps). */ -class RS_StaticGraphicView: public RS_GraphicView +class RS_StaticGraphicView: public GraphicView { public: -// RS_StaticGraphicView(int w, int h, RS_Painter * p); RS_StaticGraphicView(int w, int h, PaintInterface * p); virtual ~RS_StaticGraphicView(); virtual int getWidth(); virtual int getHeight(); - virtual void redraw() {} - virtual void adjustOffsetControls() {} - virtual void adjustZoomControls() {} -// virtual RS_Painter * createPainter(); -// virtual RS_Painter * createDirectPainter(); - virtual PaintInterface * createPainter(); - virtual PaintInterface * createDirectPainter(); - virtual void destroyPainter(); - virtual void setMouseCursor(RS2::CursorType ) {} + virtual void redraw(); + virtual void adjustOffsetControls(); + virtual void adjustZoomControls(); + virtual void setMouseCursor(RS2::CursorType); - virtual void emulateMouseMoveEvent() {} - virtual void updateGridStatusWidget(const QString &) {} + virtual void emulateMouseMoveEvent(); + virtual void updateGridStatusWidget(const QString &); void paint(); - //These pure virtual methods are placeholders for QG_GraphicView... - //now here too... -// virtual void SetPreviewMode(bool mode = true) {} -// virtual void SetPreviewEntity(RS_Preview *) {} - private: //! Width int width; - //! Height int height; };