]> Shamusworld >> Repos - architektonas/blob - src/base/rs_staticgraphicview.h
6347c193c68a92b4852f308e639571def1282553
[architektonas] / src / base / rs_staticgraphicview.h
1 #ifndef RS_STATICGRAPHICVIEW_H
2 #define RS_STATICGRAPHICVIEW_H
3
4 #include "graphicview.h"
5
6 class PaintInterface;
7
8 /**
9  * This is an implementation of a graphic viewer with a fixed size
10  * for drawing onto fixed devices (such as bitmaps).
11  */
12 class RS_StaticGraphicView: public GraphicView
13 {
14         public:
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 void setMouseCursor(RS2::CursorType);
24
25                 virtual void emulateMouseMoveEvent();
26                 virtual void updateGridStatusWidget(const QString &);
27
28                 void paint();
29
30         private:
31                 //! Width
32                 int width;
33                 //! Height
34                 int height;
35 };
36
37 #endif