]> Shamusworld >> Repos - architektonas/blob - src/base/rs_staticgraphicview.h
Scrubbed out all references to RS2::qtToRsButton(). Gone!
[architektonas] / src / base / rs_staticgraphicview.h
1 #ifndef RS_STATICGRAPHICVIEW_H
2 #define RS_STATICGRAPHICVIEW_H
3
4 #include "rs_graphicview.h"
5 #include "rs_layerlistlistener.h"
6
7 /**
8  * This is an implementation of a graphic viewer with a fixed size
9  * for drawing onto fixed devices (such as bitmaps).
10  */
11 class RS_StaticGraphicView: public RS_GraphicView
12 {
13         public:
14 //              RS_StaticGraphicView(int w, int h, RS_Painter * p);
15                 RS_StaticGraphicView(int w, int h, PaintInterface * p);
16                 virtual ~RS_StaticGraphicView();
17
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 ) {}
29
30                 virtual void emulateMouseMoveEvent() {}
31                 virtual void updateGridStatusWidget(const QString &) {}
32
33                 void paint();
34
35                 //These pure virtual methods are placeholders for QG_GraphicView...
36                 //now here too...
37 //              virtual void SetPreviewMode(bool mode = true) {}
38 //              virtual void SetPreviewEntity(RS_Preview *) {}
39
40         private:
41                 //! Width
42                 int width;
43
44                 //! Height
45                 int height;
46 };
47
48 #endif