-/*****************************************************************************
-** $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;
};