Diffstat (limited to 'noncore/graphics/drawpad/drawmode.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/graphics/drawpad/drawmode.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/noncore/graphics/drawpad/drawmode.h b/noncore/graphics/drawpad/drawmode.h index d4ecadd..4e80fe2 100644 --- a/noncore/graphics/drawpad/drawmode.h +++ b/noncore/graphics/drawpad/drawmode.h | |||
@@ -1,37 +1,39 @@ | |||
1 | /*************************************************************************** | 1 | /*************************************************************************** |
2 | * * | 2 | * * |
3 | * DrawPad - a drawing program for Opie Environment * | 3 | * DrawPad - a drawing program for Opie Environment * |
4 | * * | 4 | * * |
5 | * (C) 2002 by S. Prud'homme <prudhomme@laposte.net> * | 5 | * (C) 2002 by S. Prud'homme <prudhomme@laposte.net> * |
6 | * * | 6 | * * |
7 | * This program is free software; you can redistribute it and/or modify * | 7 | * This program is free software; you can redistribute it and/or modify * |
8 | * it under the terms of the GNU General Public License as published by * | 8 | * it under the terms of the GNU General Public License as published by * |
9 | * the Free Software Foundation; either version 2 of the License, or * | 9 | * the Free Software Foundation; either version 2 of the License, or * |
10 | * (at your option) any later version. * | 10 | * (at your option) any later version. * |
11 | * * | 11 | * * |
12 | ***************************************************************************/ | 12 | ***************************************************************************/ |
13 | 13 | ||
14 | #ifndef DRAWMODE_H | 14 | #ifndef DRAWMODE_H |
15 | #define DRAWMODE_H | 15 | #define DRAWMODE_H |
16 | 16 | ||
17 | #include <qobject.h> | 17 | #include <qobject.h> |
18 | 18 | ||
19 | class DrawPad; | 19 | class DrawPad; |
20 | class DrawPadCanvas; | 20 | class DrawPadCanvas; |
21 | 21 | ||
22 | class DrawMode : QObject | 22 | class DrawMode : QObject |
23 | { | 23 | { |
24 | public: | 24 | protected: |
25 | DrawMode(DrawPad* drawPad, DrawPadCanvas* drawPadCanvas); | 25 | DrawMode(DrawPad* drawPad, DrawPadCanvas* drawPadCanvas); |
26 | ~DrawMode(); | 26 | |
27 | public: | ||
28 | virtual ~DrawMode(); | ||
27 | 29 | ||
28 | virtual void mousePressEvent(QMouseEvent* e) = 0; | 30 | virtual void mousePressEvent(QMouseEvent* e) = 0; |
29 | virtual void mouseReleaseEvent(QMouseEvent* e) = 0; | 31 | virtual void mouseReleaseEvent(QMouseEvent* e) = 0; |
30 | virtual void mouseMoveEvent(QMouseEvent* e) = 0; | 32 | virtual void mouseMoveEvent(QMouseEvent* e) = 0; |
31 | 33 | ||
32 | protected: | 34 | protected: |
33 | DrawPad* m_pDrawPad; | 35 | DrawPad* m_pDrawPad; |
34 | DrawPadCanvas* m_pDrawPadCanvas; | 36 | DrawPadCanvas* m_pDrawPadCanvas; |
35 | }; | 37 | }; |
36 | 38 | ||
37 | #endif // DRAWMODE_H | 39 | #endif // DRAWMODE_H |