]> Shamusworld >> Repos - architektonas/blob - src/action.h
Added Architektonas drawing file loading/saving infrastructure.
[architektonas] / src / action.h
1 #ifndef __ACTION_H__
2 #define __ACTION_H__
3
4 #include <QtCore>
5 #include "vector.h"
6
7 class Object;
8 class Painter;
9
10 class Action: public QObject
11 {
12         Q_OBJECT
13
14         public:
15                 Action();
16                 ~Action();
17
18                 // These are all pure virtual functions: Derived classes must define
19                 // ALL of them.
20                 virtual void Draw(Painter *) = 0;
21                 virtual void MouseDown(Vector) = 0;
22                 virtual void MouseMoved(Vector) = 0;
23                 virtual void MouseReleased(void) = 0;
24
25         signals:
26                 void ObjectReady(Object *);
27 };
28
29 #endif  // __ACTION_H__