summaryrefslogtreecommitdiff
path: root/noncore/graphics/drawpad/drawpad.h
Unidiff
Diffstat (limited to 'noncore/graphics/drawpad/drawpad.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/graphics/drawpad/drawpad.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/noncore/graphics/drawpad/drawpad.h b/noncore/graphics/drawpad/drawpad.h
index 62a73c9..e4fd831 100644
--- a/noncore/graphics/drawpad/drawpad.h
+++ b/noncore/graphics/drawpad/drawpad.h
@@ -24,71 +24,74 @@ class Tool;
24class QAction; 24class QAction;
25class QColor; 25class QColor;
26class QToolButton; 26class QToolButton;
27class QWidgetStack; 27class QWidgetStack;
28 28
29class DrawPad : public QMainWindow 29class DrawPad : public QMainWindow
30{ 30{
31 Q_OBJECT 31 Q_OBJECT
32 32
33public: 33public:
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
41private slots: 41private 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 setTextTool();
48 void setFillTool(); 49 void setFillTool();
49 void setEraseTool(); 50 void setEraseTool();
50 51
51 void changePenWidth(int value); 52 void changePenWidth(int value);
52 void changePenColor(const QColor& color); 53 void changePenColor(const QColor& color);
53 void changeBrushColor(const QColor& color); 54 void changeBrushColor(const QColor& color);
54 void choosePenColor(); 55 void choosePenColor();
55 void chooseBrushColor(); 56 void chooseBrushColor();
56 57
57 void updateUndoRedoToolButtons(); 58 void updateUndoRedoToolButtons();
58 void updateNavigationToolButtons(); 59 void updateNavigationToolButtons();
59 void updateCaption(); 60 void updateCaption();
60 61
61 void importPage(); 62 void importPage();
62 void exportPage(); 63 void exportPage();
63 64
64private: 65private:
65 DrawPadCanvas* m_pDrawPadCanvas; 66 DrawPadCanvas* m_pDrawPadCanvas;
66 67
67 Tool* m_pTool; 68 Tool* m_pTool;
68 QPen m_pen; 69 QPen m_pen;
69 QBrush m_brush; 70 QBrush m_brush;
70 71
71 QAction* m_pUndoAction; 72 QAction* m_pUndoAction;
72 QAction* m_pRedoAction; 73 QAction* m_pRedoAction;
73 74
74 QAction* m_pFirstPageAction; 75 QAction* m_pFirstPageAction;
75 QAction* m_pPreviousPageAction; 76 QAction* m_pPreviousPageAction;
76 QAction* m_pNextPageAction; 77 QAction* m_pNextPageAction;
77 QAction* m_pLastPageAction; 78 QAction* m_pLastPageAction;
78 79
79 QAction* m_pPointToolAction; 80 QAction* m_pPointToolAction;
80 QAction* m_pLineToolAction; 81 QAction* m_pLineToolAction;
81 QAction* m_pRectangleToolAction; 82 QAction* m_pRectangleToolAction;
82 QAction* m_pFilledRectangleToolAction; 83 QAction* m_pFilledRectangleToolAction;
83 QAction* m_pEllipseToolAction; 84 QAction* m_pEllipseToolAction;
84 QAction* m_pFilledEllipseToolAction; 85 QAction* m_pFilledEllipseToolAction;
86 QAction* m_pTextToolAction;
85 QAction* m_pFillToolAction; 87 QAction* m_pFillToolAction;
86 QAction* m_pEraseToolAction; 88 QAction* m_pEraseToolAction;
87 89
90 QToolButton* m_pLineToolButton;
88 QToolButton* m_pRectangleToolButton; 91 QToolButton* m_pRectangleToolButton;
89 QToolButton* m_pEllipseToolButton; 92 QToolButton* m_pEllipseToolButton;
90 QToolButton* m_pPenColorToolButton; 93 QToolButton* m_pPenColorToolButton;
91 QToolButton* m_pBrushColorToolButton; 94 QToolButton* m_pBrushColorToolButton;
92}; 95};
93 96
94#endif // DRAWPAD_H 97#endif // DRAWPAD_H