Diffstat (limited to 'noncore/graphics/drawpad/drawpad.h') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/graphics/drawpad/drawpad.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/noncore/graphics/drawpad/drawpad.h b/noncore/graphics/drawpad/drawpad.h index ce62802..8e29c61 100644 --- a/noncore/graphics/drawpad/drawpad.h +++ b/noncore/graphics/drawpad/drawpad.h | |||
@@ -17,84 +17,88 @@ | |||
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 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 | bool antiAliasing(); | ||
42 | |||
41 | private slots: | 43 | private slots: |
42 | void newPage(); | 44 | void newPage(); |
43 | void clearPage(); | 45 | void clearPage(); |
44 | void deletePage(); | 46 | void deletePage(); |
45 | 47 | ||
46 | void setPointTool(); | 48 | void setPointTool(); |
47 | void setLineTool(); | 49 | void setLineTool(); |
48 | void setRectangleTool(); | 50 | void setRectangleTool(); |
49 | void setFilledRectangleTool(); | 51 | void setFilledRectangleTool(); |
50 | void setEllipseTool(); | 52 | void setEllipseTool(); |
51 | void setFilledEllipseTool(); | 53 | void setFilledEllipseTool(); |
52 | void setTextTool(); | 54 | void setTextTool(); |
53 | void setFillTool(); | 55 | void setFillTool(); |
54 | void setEraseTool(); | 56 | void setEraseTool(); |
55 | 57 | ||
56 | void changePenWidth(int value); | 58 | void changePenWidth(int value); |
57 | void changePenColor(const QColor& color); | 59 | void changePenColor(const QColor& color); |
58 | void changeBrushColor(const QColor& color); | 60 | void changeBrushColor(const QColor& color); |
59 | 61 | ||
60 | void updateUndoRedoToolButtons(); | 62 | void updateUndoRedoToolButtons(); |
61 | void updateNavigationToolButtons(); | 63 | void updateNavigationToolButtons(); |
62 | void updateCaption(); | 64 | void updateCaption(); |
63 | 65 | ||
64 | void deleteAll(); | 66 | void deleteAll(); |
65 | void importPage(); | 67 | void importPage(); |
66 | void exportPage(); | 68 | void exportPage(); |
67 | void thumbnailView(); | 69 | void thumbnailView(); |
68 | void pageInformation(); | 70 | void pageInformation(); |
69 | 71 | ||
70 | private: | 72 | private: |
71 | DrawPadCanvas* m_pDrawPadCanvas; | 73 | DrawPadCanvas* m_pDrawPadCanvas; |
72 | 74 | ||
73 | Tool* m_pTool; | 75 | Tool* m_pTool; |
74 | QPen m_pen; | 76 | QPen m_pen; |
75 | QBrush m_brush; | 77 | QBrush m_brush; |
76 | 78 | ||
79 | QAction* m_pAntiAliasingAction; | ||
80 | |||
77 | QAction* m_pUndoAction; | 81 | QAction* m_pUndoAction; |
78 | QAction* m_pRedoAction; | 82 | QAction* m_pRedoAction; |
79 | 83 | ||
80 | QAction* m_pFirstPageAction; | 84 | QAction* m_pFirstPageAction; |
81 | QAction* m_pPreviousPageAction; | 85 | QAction* m_pPreviousPageAction; |
82 | QAction* m_pNextPageAction; | 86 | QAction* m_pNextPageAction; |
83 | QAction* m_pLastPageAction; | 87 | QAction* m_pLastPageAction; |
84 | 88 | ||
85 | QAction* m_pPointToolAction; | 89 | QAction* m_pPointToolAction; |
86 | QAction* m_pLineToolAction; | 90 | QAction* m_pLineToolAction; |
87 | QAction* m_pRectangleToolAction; | 91 | QAction* m_pRectangleToolAction; |
88 | QAction* m_pFilledRectangleToolAction; | 92 | QAction* m_pFilledRectangleToolAction; |
89 | QAction* m_pEllipseToolAction; | 93 | QAction* m_pEllipseToolAction; |
90 | QAction* m_pFilledEllipseToolAction; | 94 | QAction* m_pFilledEllipseToolAction; |
91 | QAction* m_pTextToolAction; | 95 | QAction* m_pTextToolAction; |
92 | QAction* m_pFillToolAction; | 96 | QAction* m_pFillToolAction; |
93 | QAction* m_pEraseToolAction; | 97 | QAction* m_pEraseToolAction; |
94 | 98 | ||
95 | QToolButton* m_pLineToolButton; | 99 | QToolButton* m_pLineToolButton; |
96 | QToolButton* m_pRectangleToolButton; | 100 | QToolButton* m_pRectangleToolButton; |
97 | QToolButton* m_pEllipseToolButton; | 101 | QToolButton* m_pEllipseToolButton; |
98 | QToolButton* m_pPenColorToolButton; | 102 | QToolButton* m_pPenColorToolButton; |
99 | QToolButton* m_pBrushColorToolButton; | 103 | QToolButton* m_pBrushColorToolButton; |
100 | }; | 104 | }; |