author | leseb <leseb> | 2002-03-21 17:33:38 (UTC) |
---|---|---|
committer | leseb <leseb> | 2002-03-21 17:33:38 (UTC) |
commit | 29baf8dcda3d05d91d340b739de0fdd9e37f5749 (patch) (unidiff) | |
tree | 5f2958a16cc1f065cdef3e31c2c9500f8aac2e7b /noncore/graphics/drawpad/linedrawmode.h | |
parent | 60c9126183ea72c08ad5cb77b8939812627aae17 (diff) | |
download | opie-29baf8dcda3d05d91d340b739de0fdd9e37f5749.zip opie-29baf8dcda3d05d91d340b739de0fdd9e37f5749.tar.gz opie-29baf8dcda3d05d91d340b739de0fdd9e37f5749.tar.bz2 |
Enable any size pages
Diffstat (limited to 'noncore/graphics/drawpad/linedrawmode.h') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/graphics/drawpad/linedrawmode.h | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/noncore/graphics/drawpad/linedrawmode.h b/noncore/graphics/drawpad/linedrawmode.h index 25ae2cf..0ddd0ad 100644 --- a/noncore/graphics/drawpad/linedrawmode.h +++ b/noncore/graphics/drawpad/linedrawmode.h | |||
@@ -5,32 +5,26 @@ | |||
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 LINEDRAWMODE_H | 14 | #ifndef LINEDRAWMODE_H |
15 | #define LINEDRAWMODE_H | 15 | #define LINEDRAWMODE_H |
16 | 16 | ||
17 | #include "drawmode.h" | 17 | #include "shapedrawmode.h" |
18 | 18 | ||
19 | #include <qpointarray.h> | 19 | class LineDrawMode : public ShapeDrawMode |
20 | |||
21 | class LineDrawMode : public DrawMode | ||
22 | { | 20 | { |
23 | public: | 21 | public: |
24 | LineDrawMode(DrawPad* drawPad, DrawPadCanvas* drawPadCanvas); | 22 | LineDrawMode(DrawPad* drawPad, DrawPadCanvas* drawPadCanvas); |
25 | ~LineDrawMode(); | 23 | ~LineDrawMode(); |
26 | 24 | ||
27 | void mousePressEvent(QMouseEvent* e); | 25 | protected: |
28 | void mouseReleaseEvent(QMouseEvent* e); | 26 | void drawFinalShape(QPainter& p); |
29 | void mouseMoveEvent(QMouseEvent* e); | 27 | void drawTemporaryShape(QPainter& p); |
30 | |||
31 | private: | ||
32 | bool m_mousePressed; | ||
33 | QPointArray m_polyline; | ||
34 | }; | 28 | }; |
35 | 29 | ||
36 | #endif // LINEDRAWMODE_H | 30 | #endif // LINEDRAWMODE_H |