author | kergoth <kergoth> | 2003-08-09 16:24:58 (UTC) |
---|---|---|
committer | kergoth <kergoth> | 2003-08-09 16:24:58 (UTC) |
commit | e16d333ec2e8509fc665921ca106c25325bae9e0 (patch) (unidiff) | |
tree | 9e9068190a15bc9b2a52ab33b40881128f732c0e /noncore/graphics/drawpad/drawpad.h | |
parent | 1c58d1407f9584fedcdae390a04e2b37e5853361 (diff) | |
download | opie-e16d333ec2e8509fc665921ca106c25325bae9e0.zip opie-e16d333ec2e8509fc665921ca106c25325bae9e0.tar.gz opie-e16d333ec2e8509fc665921ca106c25325bae9e0.tar.bz2 |
Merge from BRANCH_1_0
Diffstat (limited to 'noncore/graphics/drawpad/drawpad.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/graphics/drawpad/drawpad.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/noncore/graphics/drawpad/drawpad.h b/noncore/graphics/drawpad/drawpad.h index 7306228..2cae700 100644 --- a/noncore/graphics/drawpad/drawpad.h +++ b/noncore/graphics/drawpad/drawpad.h | |||
@@ -1,110 +1,111 @@ | |||
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 DrawPadCanvas; | 21 | class DrawPadCanvas; |
22 | class Tool; | 22 | class Tool; |
23 | 23 | ||
24 | class QAction; | 24 | class QAction; |
25 | class QColor; | 25 | class QColor; |
26 | class QSpinBox; | 26 | class QSpinBox; |
27 | class QToolButton; | 27 | class QToolButton; |
28 | class QWidgetStack; | 28 | class QWidgetStack; |
29 | 29 | ||
30 | class DrawPad : public QMainWindow | 30 | class DrawPad : public QMainWindow |
31 | { | 31 | { |
32 | Q_OBJECT | 32 | Q_OBJECT |
33 | 33 | ||
34 | public: | 34 | public: |
35 | DrawPad(QWidget* parent = 0, const char* name = 0); | 35 | DrawPad(QWidget* parent = 0, const char* name = 0); |
36 | ~DrawPad(); | 36 | ~DrawPad(); |
37 | 37 | ||
38 | Tool* tool() { return m_pTool; } | 38 | Tool* tool() { return m_pTool; } |
39 | QPen pen() { return m_pen; } | 39 | QPen pen() { return m_pen; } |
40 | QBrush brush() { return m_brush; } | 40 | QBrush brush() { return m_brush; } |
41 | 41 | ||
42 | bool antiAliasing(); | 42 | bool antiAliasing(); |
43 | void finishStartup(); | ||
43 | 44 | ||
44 | private slots: | 45 | private slots: |
45 | void newPage(); | 46 | void newPage(); |
46 | void clearPage(); | 47 | void clearPage(); |
47 | void deletePage(); | 48 | void deletePage(); |
48 | 49 | ||
49 | void setPointTool(); | 50 | void setPointTool(); |
50 | void setLineTool(); | 51 | void setLineTool(); |
51 | void setRectangleTool(); | 52 | void setRectangleTool(); |
52 | void setFilledRectangleTool(); | 53 | void setFilledRectangleTool(); |
53 | void setEllipseTool(); | 54 | void setEllipseTool(); |
54 | void setFilledEllipseTool(); | 55 | void setFilledEllipseTool(); |
55 | void setTextTool(); | 56 | void setTextTool(); |
56 | void setFillTool(); | 57 | void setFillTool(); |
57 | void setEraseTool(); | 58 | void setEraseTool(); |
58 | 59 | ||
59 | void changePenWidth(int value); | 60 | void changePenWidth(int value); |
60 | void changePenColor(const QColor& color); | 61 | void changePenColor(const QColor& color); |
61 | void changeBrushColor(const QColor& color); | 62 | void changeBrushColor(const QColor& color); |
62 | 63 | ||
63 | void updateView(); | 64 | void updateView(); |
64 | 65 | ||
65 | void deleteAll(); | 66 | void deleteAll(); |
66 | void importPage(); | 67 | void importPage(); |
67 | void exportPage(); | 68 | void exportPage(); |
68 | void thumbnailView(); | 69 | void thumbnailView(); |
69 | void pageInformation(); | 70 | void pageInformation(); |
70 | 71 | ||
71 | private: | 72 | private: |
72 | void loadConfig(); | 73 | void loadConfig(); |
73 | void saveConfig(); | 74 | void saveConfig(); |
74 | 75 | ||
75 | DrawPadCanvas* m_pDrawPadCanvas; | 76 | DrawPadCanvas* m_pDrawPadCanvas; |
76 | 77 | ||
77 | Tool* m_pTool; | 78 | Tool* m_pTool; |
78 | QPen m_pen; | 79 | QPen m_pen; |
79 | QBrush m_brush; | 80 | QBrush m_brush; |
80 | 81 | ||
81 | QAction* m_pAntiAliasingAction; | 82 | QAction* m_pAntiAliasingAction; |
82 | 83 | ||
83 | QAction* m_pUndoAction; | 84 | QAction* m_pUndoAction; |
84 | QAction* m_pRedoAction; | 85 | QAction* m_pRedoAction; |
85 | 86 | ||
86 | QAction* m_pFirstPageAction; | 87 | QAction* m_pFirstPageAction; |
87 | QAction* m_pPreviousPageAction; | 88 | QAction* m_pPreviousPageAction; |
88 | QAction* m_pNextPageAction; | 89 | QAction* m_pNextPageAction; |
89 | QAction* m_pLastPageAction; | 90 | QAction* m_pLastPageAction; |
90 | 91 | ||
91 | QAction* m_pPointToolAction; | 92 | QAction* m_pPointToolAction; |
92 | QAction* m_pLineToolAction; | 93 | QAction* m_pLineToolAction; |
93 | QAction* m_pRectangleToolAction; | 94 | QAction* m_pRectangleToolAction; |
94 | QAction* m_pFilledRectangleToolAction; | 95 | QAction* m_pFilledRectangleToolAction; |
95 | QAction* m_pEllipseToolAction; | 96 | QAction* m_pEllipseToolAction; |
96 | QAction* m_pFilledEllipseToolAction; | 97 | QAction* m_pFilledEllipseToolAction; |
97 | QAction* m_pTextToolAction; | 98 | QAction* m_pTextToolAction; |
98 | QAction* m_pFillToolAction; | 99 | QAction* m_pFillToolAction; |
99 | QAction* m_pEraseToolAction; | 100 | QAction* m_pEraseToolAction; |
100 | 101 | ||
101 | QToolButton* m_pLineToolButton; | 102 | QToolButton* m_pLineToolButton; |
102 | QToolButton* m_pRectangleToolButton; | 103 | QToolButton* m_pRectangleToolButton; |
103 | QToolButton* m_pEllipseToolButton; | 104 | QToolButton* m_pEllipseToolButton; |
104 | QToolButton* m_pPenColorToolButton; | 105 | QToolButton* m_pPenColorToolButton; |
105 | QToolButton* m_pBrushColorToolButton; | 106 | QToolButton* m_pBrushColorToolButton; |
106 | 107 | ||
107 | QSpinBox* m_pPenWidthSpinBox; | 108 | QSpinBox* m_pPenWidthSpinBox; |
108 | }; | 109 | }; |
109 | 110 | ||
110 | #endif // DRAWPAD_H | 111 | #endif // DRAWPAD_H |