Diffstat (limited to 'noncore/graphics/drawpad/drawpad.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/graphics/drawpad/drawpad.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/noncore/graphics/drawpad/drawpad.h b/noncore/graphics/drawpad/drawpad.h index fbe67b8..62a73c9 100644 --- a/noncore/graphics/drawpad/drawpad.h +++ b/noncore/graphics/drawpad/drawpad.h | |||
@@ -1,70 +1,70 @@ | |||
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 DRAWPAD_H | 14 | #ifndef DRAWPAD_H |
15 | #define DRAWPAD_H | 15 | #define DRAWPAD_H |
16 | 16 | ||
17 | #include <qmainwindow.h> | 17 | #include <qmainwindow.h> |
18 | 18 | ||
19 | #include <qpen.h> | 19 | #include <qpen.h> |
20 | 20 | ||
21 | class Tool; | ||
22 | class DrawPadCanvas; | 21 | class DrawPadCanvas; |
22 | class Tool; | ||
23 | 23 | ||
24 | class QAction; | 24 | class QAction; |
25 | class QColor; | 25 | class QColor; |
26 | class QToolButton; | 26 | class QToolButton; |
27 | class QWidgetStack; | 27 | class QWidgetStack; |
28 | 28 | ||
29 | class DrawPad : public QMainWindow | 29 | class DrawPad : public QMainWindow |
30 | { | 30 | { |
31 | Q_OBJECT | 31 | Q_OBJECT |
32 | 32 | ||
33 | public: | 33 | public: |
34 | DrawPad(QWidget* parent = 0, const char* name = 0); | 34 | DrawPad(QWidget* parent = 0, const char* name = 0); |
35 | ~DrawPad(); | 35 | ~DrawPad(); |
36 | 36 | ||
37 | Tool* tool() { return m_pTool; } | 37 | Tool* tool() { return m_pTool; } |
38 | QPen pen() { return m_pen; } | 38 | QPen pen() { return m_pen; } |
39 | QBrush brush() { return m_brush; } | 39 | QBrush brush() { return m_brush; } |
40 | 40 | ||
41 | private slots: | 41 | private slots: |
42 | void setPointTool(); | 42 | void setPointTool(); |
43 | void setLineTool(); | 43 | void setLineTool(); |
44 | void setRectangleTool(); | 44 | void setRectangleTool(); |
45 | void setFilledRectangleTool(); | 45 | void setFilledRectangleTool(); |
46 | void setEllipseTool(); | 46 | void setEllipseTool(); |
47 | void setFilledEllipseTool(); | 47 | void setFilledEllipseTool(); |
48 | void setFillTool(); | 48 | void setFillTool(); |
49 | void setEraseTool(); | 49 | void setEraseTool(); |
50 | 50 | ||
51 | void changePenWidth(int value); | 51 | void changePenWidth(int value); |
52 | void changePenColor(const QColor& color); | 52 | void changePenColor(const QColor& color); |
53 | void changeBrushColor(const QColor& color); | 53 | void changeBrushColor(const QColor& color); |
54 | void choosePenColor(); | 54 | void choosePenColor(); |
55 | void chooseBrushColor(); | 55 | void chooseBrushColor(); |
56 | 56 | ||
57 | void updateUndoRedoToolButtons(); | 57 | void updateUndoRedoToolButtons(); |
58 | void updateNavigationToolButtons(); | 58 | void updateNavigationToolButtons(); |
59 | void updateCaption(); | 59 | void updateCaption(); |
60 | 60 | ||
61 | void importPage(); | 61 | void importPage(); |
62 | void exportPage(); | 62 | void exportPage(); |
63 | 63 | ||
64 | private: | 64 | private: |
65 | DrawPadCanvas* m_pDrawPadCanvas; | 65 | DrawPadCanvas* m_pDrawPadCanvas; |
66 | 66 | ||
67 | Tool* m_pTool; | 67 | Tool* m_pTool; |
68 | QPen m_pen; | 68 | QPen m_pen; |
69 | QBrush m_brush; | 69 | QBrush m_brush; |
70 | 70 | ||