]> Shamusworld >> Repos - architektonas/blob - src/actions/actionprintpreview.h
Bugfixes related to removing Snapper class.
[architektonas] / src / actions / actionprintpreview.h
1 #ifndef __ACTIONPRINTPREVIEW_H__
2 #define __ACTIONPRINTPREVIEW_H__
3
4 #include "enums.h"
5 #include "actioninterface.h"
6 #include "vector.h"
7
8 /**
9  * Default action for print preview.
10  *
11  * @author James Hammons
12  * @author Andrew Mustun
13  */
14 class ActionPrintPreview: public ActionInterface
15 {
16         public:
17                 /**
18                  * Action States.
19                  */
20                 enum Status {
21                         Neutral,
22                         Moving
23                 };
24
25         public:
26                 ActionPrintPreview(EntityContainer & container, GraphicView & graphicView);
27                 ~ActionPrintPreview();
28
29                 virtual RS2::ActionType rtti();
30                 virtual void init(int status = 0);
31                 virtual void trigger();
32                 virtual void mouseMoveEvent(QMouseEvent * e);
33                 virtual void mousePressEvent(QMouseEvent * e);
34                 virtual void mouseReleaseEvent(QMouseEvent * e);
35                 virtual void coordinateEvent(Vector * e);
36                 virtual void commandEvent(CommandEvent * e);
37                 virtual QStringList getAvailableCommands();
38                 virtual void showOptions();
39                 virtual void hideOptions();
40                 virtual void updateMouseButtonHints();
41                 virtual void updateMouseCursor();
42                 virtual void updateToolBar();
43                 void center();
44                 void fit();
45                 void setScale(double f);
46                 double getScale();
47                 void setBlackWhite(bool bw);
48                 RS2::Unit getUnit();
49
50         protected:
51                 Vector v1;
52                 Vector v2;
53 };
54
55 #endif  // __ACTIONPRINTPREVIEW_H__