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.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/noncore/graphics/drawpad/drawpad.h b/noncore/graphics/drawpad/drawpad.h
index e4fd831..0dcd5c9 100644
--- a/noncore/graphics/drawpad/drawpad.h
+++ b/noncore/graphics/drawpad/drawpad.h
@@ -6,75 +6,73 @@
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
21class DrawPadCanvas; 21class DrawPadCanvas;
22class Tool; 22class Tool;
23 23
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 setTextTool();
49 void setFillTool(); 49 void setFillTool();
50 void setEraseTool(); 50 void setEraseTool();
51 51
52 void changePenWidth(int value); 52 void changePenWidth(int value);
53 void changePenColor(const QColor& color); 53 void changePenColor(const QColor& color);
54 void changeBrushColor(const QColor& color); 54 void changeBrushColor(const QColor& color);
55 void choosePenColor();
56 void chooseBrushColor();
57 55
58 void updateUndoRedoToolButtons(); 56 void updateUndoRedoToolButtons();
59 void updateNavigationToolButtons(); 57 void updateNavigationToolButtons();
60 void updateCaption(); 58 void updateCaption();
61 59
62 void importPage(); 60 void importPage();
63 void exportPage(); 61 void exportPage();
64 62
65private: 63private:
66 DrawPadCanvas* m_pDrawPadCanvas; 64 DrawPadCanvas* m_pDrawPadCanvas;
67 65
68 Tool* m_pTool; 66 Tool* m_pTool;
69 QPen m_pen; 67 QPen m_pen;
70 QBrush m_brush; 68 QBrush m_brush;
71 69
72 QAction* m_pUndoAction; 70 QAction* m_pUndoAction;
73 QAction* m_pRedoAction; 71 QAction* m_pRedoAction;
74 72
75 QAction* m_pFirstPageAction; 73 QAction* m_pFirstPageAction;
76 QAction* m_pPreviousPageAction; 74 QAction* m_pPreviousPageAction;
77 QAction* m_pNextPageAction; 75 QAction* m_pNextPageAction;
78 QAction* m_pLastPageAction; 76 QAction* m_pLastPageAction;
79 77
80 QAction* m_pPointToolAction; 78 QAction* m_pPointToolAction;