1 #ifndef RS_STATICGRAPHICVIEW_H
2 #define RS_STATICGRAPHICVIEW_H
4 #include "rs_graphicview.h"
5 #include "rs_layerlistlistener.h"
8 * This is an implementation of a graphic viewer with a fixed size
9 * for drawing onto fixed devices (such as bitmaps).
11 class RS_StaticGraphicView: public RS_GraphicView
14 // RS_StaticGraphicView(int w, int h, RS_Painter * p);
15 RS_StaticGraphicView(int w, int h, PaintInterface * p);
16 virtual ~RS_StaticGraphicView();
18 virtual int getWidth();
19 virtual int getHeight();
20 virtual void redraw() {}
21 virtual void adjustOffsetControls() {}
22 virtual void adjustZoomControls() {}
23 // virtual RS_Painter * createPainter();
24 // virtual RS_Painter * createDirectPainter();
25 virtual PaintInterface * createPainter();
26 virtual PaintInterface * createDirectPainter();
27 virtual void destroyPainter();
28 virtual void setMouseCursor(RS2::CursorType ) {}
30 virtual void emulateMouseMoveEvent() {}
31 virtual void updateGridStatusWidget(const QString &) {}
35 //These pure virtual methods are placeholders for QG_GraphicView...
37 // virtual void SetPreviewMode(bool mode = true) {}
38 // virtual void SetPreviewEntity(RS_Preview *) {}