-rw-r--r-- | noncore/graphics/drawpad/drawpad.cpp | 1 | ||||
-rw-r--r-- | noncore/graphics/drawpad/drawpadcanvas.cpp | 2 | ||||
-rw-r--r-- | noncore/graphics/drawpad/ellipsetool.cpp | 1 | ||||
-rw-r--r-- | noncore/graphics/drawpad/erasetool.cpp | 1 | ||||
-rw-r--r-- | noncore/graphics/drawpad/exportdialog.cpp | 1 | ||||
-rw-r--r-- | noncore/graphics/drawpad/filledellipsetool.cpp | 1 | ||||
-rw-r--r-- | noncore/graphics/drawpad/filltool.cpp | 1 | ||||
-rw-r--r-- | noncore/graphics/drawpad/importdialog.cpp | 1 | ||||
-rw-r--r-- | noncore/graphics/drawpad/linetool.cpp | 1 | ||||
-rw-r--r-- | noncore/graphics/drawpad/main.cpp | 1 | ||||
-rw-r--r-- | noncore/graphics/drawpad/newpagedialog.cpp | 1 | ||||
-rw-r--r-- | noncore/graphics/drawpad/pointtool.cpp | 1 | ||||
-rw-r--r-- | noncore/graphics/drawpad/shapetool.cpp | 1 | ||||
-rw-r--r-- | noncore/graphics/drawpad/texttool.cpp | 1 | ||||
-rw-r--r-- | noncore/graphics/drawpad/thumbnailview.cpp | 1 | ||||
-rw-r--r-- | noncore/graphics/drawpad/tool.cpp | 2 |
16 files changed, 0 insertions, 18 deletions
diff --git a/noncore/graphics/drawpad/drawpad.cpp b/noncore/graphics/drawpad/drawpad.cpp index 86a10a5..71c9695 100644 --- a/noncore/graphics/drawpad/drawpad.cpp +++ b/noncore/graphics/drawpad/drawpad.cpp | |||
@@ -34,25 +34,24 @@ | |||
34 | #include <opie/colorpopupmenu.h> | 34 | #include <opie/colorpopupmenu.h> |
35 | 35 | ||
36 | #include <qpe/applnk.h> | 36 | #include <qpe/applnk.h> |
37 | #include <qpe/config.h> | 37 | #include <qpe/config.h> |
38 | #include <qpe/global.h> | 38 | #include <qpe/global.h> |
39 | #include <qmenubar.h> | 39 | #include <qmenubar.h> |
40 | #include <qpe/qpetoolbar.h> | 40 | #include <qpe/qpetoolbar.h> |
41 | #include <qpe/resource.h> | 41 | #include <qpe/resource.h> |
42 | 42 | ||
43 | #include <qaction.h> | 43 | #include <qaction.h> |
44 | #include <qfile.h> | 44 | #include <qfile.h> |
45 | #include <qmessagebox.h> | 45 | #include <qmessagebox.h> |
46 | #include <qpainter.h> | ||
47 | #include <qspinbox.h> | 46 | #include <qspinbox.h> |
48 | #include <qtoolbutton.h> | 47 | #include <qtoolbutton.h> |
49 | #include <qtooltip.h> | 48 | #include <qtooltip.h> |
50 | #include <qwhatsthis.h> | 49 | #include <qwhatsthis.h> |
51 | 50 | ||
52 | DrawPad::DrawPad(QWidget* parent, const char* name, WFlags fl ) | 51 | DrawPad::DrawPad(QWidget* parent, const char* name, WFlags fl ) |
53 | : QMainWindow(parent, name, WStyle_ContextHelp) | 52 | : QMainWindow(parent, name, WStyle_ContextHelp) |
54 | { | 53 | { |
55 | // init members | 54 | // init members |
56 | 55 | ||
57 | m_pDrawPadCanvas = new DrawPadCanvas(this, this); | 56 | m_pDrawPadCanvas = new DrawPadCanvas(this, this); |
58 | 57 | ||
diff --git a/noncore/graphics/drawpad/drawpadcanvas.cpp b/noncore/graphics/drawpad/drawpadcanvas.cpp index dec498b..446096c 100644 --- a/noncore/graphics/drawpad/drawpadcanvas.cpp +++ b/noncore/graphics/drawpad/drawpadcanvas.cpp | |||
@@ -14,27 +14,25 @@ | |||
14 | #include "drawpadcanvas.h" | 14 | #include "drawpadcanvas.h" |
15 | 15 | ||
16 | #include "drawpad.h" | 16 | #include "drawpad.h" |
17 | #include "page.h" | 17 | #include "page.h" |
18 | #include "tool.h" | 18 | #include "tool.h" |
19 | 19 | ||
20 | #include <qpe/applnk.h> | 20 | #include <qpe/applnk.h> |
21 | #include <qpe/filemanager.h> | 21 | #include <qpe/filemanager.h> |
22 | #include <qpe/mimetype.h> | 22 | #include <qpe/mimetype.h> |
23 | 23 | ||
24 | #include <qbuffer.h> | 24 | #include <qbuffer.h> |
25 | #include <qimage.h> | 25 | #include <qimage.h> |
26 | #include <qpainter.h> | ||
27 | #include <qtextcodec.h> | 26 | #include <qtextcodec.h> |
28 | #include <qtextstream.h> | ||
29 | #include <qxml.h> | 27 | #include <qxml.h> |
30 | 28 | ||
31 | class DrawPadCanvasXmlHandler: public QXmlDefaultHandler | 29 | class DrawPadCanvasXmlHandler: public QXmlDefaultHandler |
32 | { | 30 | { |
33 | public: | 31 | public: |
34 | DrawPadCanvasXmlHandler(); | 32 | DrawPadCanvasXmlHandler(); |
35 | ~DrawPadCanvasXmlHandler(); | 33 | ~DrawPadCanvasXmlHandler(); |
36 | 34 | ||
37 | QList<Page> pages(); | 35 | QList<Page> pages(); |
38 | 36 | ||
39 | bool startElement(const QString& namespaceURI, const QString& localName, | 37 | bool startElement(const QString& namespaceURI, const QString& localName, |
40 | const QString& qName, const QXmlAttributes& atts); | 38 | const QString& qName, const QXmlAttributes& atts); |
diff --git a/noncore/graphics/drawpad/ellipsetool.cpp b/noncore/graphics/drawpad/ellipsetool.cpp index 0cdb731..2173c97 100644 --- a/noncore/graphics/drawpad/ellipsetool.cpp +++ b/noncore/graphics/drawpad/ellipsetool.cpp | |||
@@ -8,25 +8,24 @@ | |||
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 | #include "ellipsetool.h" | 14 | #include "ellipsetool.h" |
15 | 15 | ||
16 | #include "drawpad.h" | 16 | #include "drawpad.h" |
17 | #include "drawpadcanvas.h" | 17 | #include "drawpadcanvas.h" |
18 | 18 | ||
19 | #include <qimage.h> | 19 | #include <qimage.h> |
20 | #include <qpixmap.h> | ||
21 | 20 | ||
22 | EllipseTool::EllipseTool(DrawPad* drawPad, DrawPadCanvas* drawPadCanvas) | 21 | EllipseTool::EllipseTool(DrawPad* drawPad, DrawPadCanvas* drawPadCanvas) |
23 | : ShapeTool(drawPad, drawPadCanvas) | 22 | : ShapeTool(drawPad, drawPadCanvas) |
24 | { | 23 | { |
25 | } | 24 | } |
26 | 25 | ||
27 | EllipseTool::~EllipseTool() | 26 | EllipseTool::~EllipseTool() |
28 | { | 27 | { |
29 | } | 28 | } |
30 | 29 | ||
31 | void EllipseTool::drawFinalShape(QPainter& p) | 30 | void EllipseTool::drawFinalShape(QPainter& p) |
32 | { | 31 | { |
diff --git a/noncore/graphics/drawpad/erasetool.cpp b/noncore/graphics/drawpad/erasetool.cpp index 2326da5..5d123c4 100644 --- a/noncore/graphics/drawpad/erasetool.cpp +++ b/noncore/graphics/drawpad/erasetool.cpp | |||
@@ -8,25 +8,24 @@ | |||
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 | #include "erasetool.h" | 14 | #include "erasetool.h" |
15 | 15 | ||
16 | #include "drawpad.h" | 16 | #include "drawpad.h" |
17 | #include "drawpadcanvas.h" | 17 | #include "drawpadcanvas.h" |
18 | #include "page.h" | 18 | #include "page.h" |
19 | 19 | ||
20 | #include <qpainter.h> | ||
21 | 20 | ||
22 | EraseTool::EraseTool(DrawPad* drawPad, DrawPadCanvas* drawPadCanvas) | 21 | EraseTool::EraseTool(DrawPad* drawPad, DrawPadCanvas* drawPadCanvas) |
23 | : Tool(drawPad, drawPadCanvas) | 22 | : Tool(drawPad, drawPadCanvas) |
24 | { | 23 | { |
25 | m_mousePressed = false; | 24 | m_mousePressed = false; |
26 | m_polyline.resize(3); | 25 | m_polyline.resize(3); |
27 | } | 26 | } |
28 | 27 | ||
29 | EraseTool::~EraseTool() | 28 | EraseTool::~EraseTool() |
30 | { | 29 | { |
31 | } | 30 | } |
32 | 31 | ||
diff --git a/noncore/graphics/drawpad/exportdialog.cpp b/noncore/graphics/drawpad/exportdialog.cpp index adbd612..d63f428 100644 --- a/noncore/graphics/drawpad/exportdialog.cpp +++ b/noncore/graphics/drawpad/exportdialog.cpp | |||
@@ -8,25 +8,24 @@ | |||
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 | #include "exportdialog.h" | 14 | #include "exportdialog.h" |
15 | 15 | ||
16 | #include <opie/ofileselector.h> | 16 | #include <opie/ofileselector.h> |
17 | 17 | ||
18 | #include <qbuttongroup.h> | 18 | #include <qbuttongroup.h> |
19 | #include <qcombobox.h> | 19 | #include <qcombobox.h> |
20 | #include <qgroupbox.h> | ||
21 | #include <qimage.h> | 20 | #include <qimage.h> |
22 | #include <qlabel.h> | 21 | #include <qlabel.h> |
23 | #include <qlayout.h> | 22 | #include <qlayout.h> |
24 | #include <qlineedit.h> | 23 | #include <qlineedit.h> |
25 | #include <qradiobutton.h> | 24 | #include <qradiobutton.h> |
26 | #include <qspinbox.h> | 25 | #include <qspinbox.h> |
27 | 26 | ||
28 | #include <stdlib.h> | 27 | #include <stdlib.h> |
29 | 28 | ||
30 | ExportDialog::ExportDialog(uint pageAt, uint pageCount, QWidget* parent, const char* name) | 29 | ExportDialog::ExportDialog(uint pageAt, uint pageCount, QWidget* parent, const char* name) |
31 | : QDialog(parent, name, true) | 30 | : QDialog(parent, name, true) |
32 | { | 31 | { |
diff --git a/noncore/graphics/drawpad/filledellipsetool.cpp b/noncore/graphics/drawpad/filledellipsetool.cpp index 6b5bbc6..41b8571 100644 --- a/noncore/graphics/drawpad/filledellipsetool.cpp +++ b/noncore/graphics/drawpad/filledellipsetool.cpp | |||
@@ -8,25 +8,24 @@ | |||
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 | #include "filledellipsetool.h" | 14 | #include "filledellipsetool.h" |
15 | 15 | ||
16 | #include "drawpad.h" | 16 | #include "drawpad.h" |
17 | #include "drawpadcanvas.h" | 17 | #include "drawpadcanvas.h" |
18 | 18 | ||
19 | #include <qimage.h> | 19 | #include <qimage.h> |
20 | #include <qpixmap.h> | ||
21 | 20 | ||
22 | FilledEllipseTool::FilledEllipseTool(DrawPad* drawPad, DrawPadCanvas* drawPadCanvas) | 21 | FilledEllipseTool::FilledEllipseTool(DrawPad* drawPad, DrawPadCanvas* drawPadCanvas) |
23 | : ShapeTool(drawPad, drawPadCanvas) | 22 | : ShapeTool(drawPad, drawPadCanvas) |
24 | { | 23 | { |
25 | } | 24 | } |
26 | 25 | ||
27 | FilledEllipseTool::~FilledEllipseTool() | 26 | FilledEllipseTool::~FilledEllipseTool() |
28 | { | 27 | { |
29 | } | 28 | } |
30 | 29 | ||
31 | void FilledEllipseTool::drawFinalShape(QPainter& p) | 30 | void FilledEllipseTool::drawFinalShape(QPainter& p) |
32 | { | 31 | { |
diff --git a/noncore/graphics/drawpad/filltool.cpp b/noncore/graphics/drawpad/filltool.cpp index b47aa60..fedf3a5 100644 --- a/noncore/graphics/drawpad/filltool.cpp +++ b/noncore/graphics/drawpad/filltool.cpp | |||
@@ -8,25 +8,24 @@ | |||
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 | #include "filltool.h" | 14 | #include "filltool.h" |
15 | 15 | ||
16 | #include "drawpad.h" | 16 | #include "drawpad.h" |
17 | #include "drawpadcanvas.h" | 17 | #include "drawpadcanvas.h" |
18 | #include "page.h" | 18 | #include "page.h" |
19 | 19 | ||
20 | #include <qimage.h> | ||
21 | 20 | ||
22 | const int FILL_THRESHOLD = 65536; | 21 | const int FILL_THRESHOLD = 65536; |
23 | 22 | ||
24 | FillTool::FillTool(DrawPad* drawPad, DrawPadCanvas* drawPadCanvas) | 23 | FillTool::FillTool(DrawPad* drawPad, DrawPadCanvas* drawPadCanvas) |
25 | : Tool(drawPad, drawPadCanvas) | 24 | : Tool(drawPad, drawPadCanvas) |
26 | { | 25 | { |
27 | } | 26 | } |
28 | 27 | ||
29 | FillTool::~FillTool() | 28 | FillTool::~FillTool() |
30 | { | 29 | { |
31 | } | 30 | } |
32 | 31 | ||
diff --git a/noncore/graphics/drawpad/importdialog.cpp b/noncore/graphics/drawpad/importdialog.cpp index 9a59a20..ce2e7ee 100644 --- a/noncore/graphics/drawpad/importdialog.cpp +++ b/noncore/graphics/drawpad/importdialog.cpp | |||
@@ -4,25 +4,24 @@ | |||
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 | #include "importdialog.h" | 14 | #include "importdialog.h" |
15 | 15 | ||
16 | #include <qpe/applnk.h> | ||
17 | #include <opie/ofileselector.h> | 16 | #include <opie/ofileselector.h> |
18 | 17 | ||
19 | #include <qcheckbox.h> | 18 | #include <qcheckbox.h> |
20 | #include <qimage.h> | 19 | #include <qimage.h> |
21 | #include <qlabel.h> | 20 | #include <qlabel.h> |
22 | #include <qlayout.h> | 21 | #include <qlayout.h> |
23 | #include <qpushbutton.h> | 22 | #include <qpushbutton.h> |
24 | 23 | ||
25 | ImportDialog::ImportDialog(QWidget* parent, const char* name) | 24 | ImportDialog::ImportDialog(QWidget* parent, const char* name) |
26 | : QDialog(parent, name, true) | 25 | : QDialog(parent, name, true) |
27 | { | 26 | { |
28 | setCaption(tr("DrawPad - Import")); | 27 | setCaption(tr("DrawPad - Import")); |
diff --git a/noncore/graphics/drawpad/linetool.cpp b/noncore/graphics/drawpad/linetool.cpp index b6baa2a..5ea068c 100644 --- a/noncore/graphics/drawpad/linetool.cpp +++ b/noncore/graphics/drawpad/linetool.cpp | |||
@@ -8,25 +8,24 @@ | |||
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 | #include "linetool.h" | 14 | #include "linetool.h" |
15 | 15 | ||
16 | #include "drawpad.h" | 16 | #include "drawpad.h" |
17 | #include "drawpadcanvas.h" | 17 | #include "drawpadcanvas.h" |
18 | 18 | ||
19 | #include <qimage.h> | 19 | #include <qimage.h> |
20 | #include <qpixmap.h> | ||
21 | 20 | ||
22 | LineTool::LineTool(DrawPad* drawPad, DrawPadCanvas* drawPadCanvas) | 21 | LineTool::LineTool(DrawPad* drawPad, DrawPadCanvas* drawPadCanvas) |
23 | : ShapeTool(drawPad, drawPadCanvas) | 22 | : ShapeTool(drawPad, drawPadCanvas) |
24 | { | 23 | { |
25 | } | 24 | } |
26 | 25 | ||
27 | LineTool::~LineTool() | 26 | LineTool::~LineTool() |
28 | { | 27 | { |
29 | } | 28 | } |
30 | 29 | ||
31 | void LineTool::drawFinalShape(QPainter& p) | 30 | void LineTool::drawFinalShape(QPainter& p) |
32 | { | 31 | { |
diff --git a/noncore/graphics/drawpad/main.cpp b/noncore/graphics/drawpad/main.cpp index 87bc621..c87cc0f 100644 --- a/noncore/graphics/drawpad/main.cpp +++ b/noncore/graphics/drawpad/main.cpp | |||
@@ -4,16 +4,15 @@ | |||
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 | #include "drawpad.h" | 14 | #include "drawpad.h" |
15 | 15 | ||
16 | #include <qpe/qpeapplication.h> | ||
17 | #include <opie/oapplicationfactory.h> | 16 | #include <opie/oapplicationfactory.h> |
18 | 17 | ||
19 | OPIE_EXPORT_APP( OApplicationFactory<DrawPad> ) | 18 | OPIE_EXPORT_APP( OApplicationFactory<DrawPad> ) |
diff --git a/noncore/graphics/drawpad/newpagedialog.cpp b/noncore/graphics/drawpad/newpagedialog.cpp index e6e7fcb..dc8999a 100644 --- a/noncore/graphics/drawpad/newpagedialog.cpp +++ b/noncore/graphics/drawpad/newpagedialog.cpp | |||
@@ -5,25 +5,24 @@ | |||
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 | #include "newpagedialog.h" | 14 | #include "newpagedialog.h" |
15 | 15 | ||
16 | #include <qbuttongroup.h> | 16 | #include <qbuttongroup.h> |
17 | #include <qgroupbox.h> | ||
18 | #include <qlabel.h> | 17 | #include <qlabel.h> |
19 | #include <qlayout.h> | 18 | #include <qlayout.h> |
20 | #include <qlineedit.h> | 19 | #include <qlineedit.h> |
21 | #include <qradiobutton.h> | 20 | #include <qradiobutton.h> |
22 | #include <qspinbox.h> | 21 | #include <qspinbox.h> |
23 | 22 | ||
24 | NewPageDialog::NewPageDialog(uint width, uint height, const QColor& penColor, | 23 | NewPageDialog::NewPageDialog(uint width, uint height, const QColor& penColor, |
25 | const QColor& brushColor, QWidget* parent, const char* name) | 24 | const QColor& brushColor, QWidget* parent, const char* name) |
26 | : QDialog(parent, name, true) | 25 | : QDialog(parent, name, true) |
27 | { | 26 | { |
28 | setCaption(tr("New Page")); | 27 | setCaption(tr("New Page")); |
29 | 28 | ||
diff --git a/noncore/graphics/drawpad/pointtool.cpp b/noncore/graphics/drawpad/pointtool.cpp index b9b52bc..4fb7ad1 100644 --- a/noncore/graphics/drawpad/pointtool.cpp +++ b/noncore/graphics/drawpad/pointtool.cpp | |||
@@ -9,25 +9,24 @@ | |||
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 | #include "pointtool.h" | 14 | #include "pointtool.h" |
15 | 15 | ||
16 | #include "drawpad.h" | 16 | #include "drawpad.h" |
17 | #include "drawpadcanvas.h" | 17 | #include "drawpadcanvas.h" |
18 | #include "page.h" | 18 | #include "page.h" |
19 | 19 | ||
20 | #include <qimage.h> | 20 | #include <qimage.h> |
21 | #include <qpainter.h> | ||
22 | 21 | ||
23 | PointTool::PointTool(DrawPad* drawPad, DrawPadCanvas* drawPadCanvas) | 22 | PointTool::PointTool(DrawPad* drawPad, DrawPadCanvas* drawPadCanvas) |
24 | : Tool(drawPad, drawPadCanvas) | 23 | : Tool(drawPad, drawPadCanvas) |
25 | { | 24 | { |
26 | m_mousePressed = false; | 25 | m_mousePressed = false; |
27 | m_polyline.resize(3); | 26 | m_polyline.resize(3); |
28 | } | 27 | } |
29 | 28 | ||
30 | PointTool::~PointTool() | 29 | PointTool::~PointTool() |
31 | { | 30 | { |
32 | } | 31 | } |
33 | 32 | ||
diff --git a/noncore/graphics/drawpad/shapetool.cpp b/noncore/graphics/drawpad/shapetool.cpp index 22e3dd6..6e4276d 100644 --- a/noncore/graphics/drawpad/shapetool.cpp +++ b/noncore/graphics/drawpad/shapetool.cpp | |||
@@ -8,25 +8,24 @@ | |||
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 | #include "shapetool.h" | 14 | #include "shapetool.h" |
15 | 15 | ||
16 | #include "drawpad.h" | 16 | #include "drawpad.h" |
17 | #include "drawpadcanvas.h" | 17 | #include "drawpadcanvas.h" |
18 | #include "page.h" | 18 | #include "page.h" |
19 | 19 | ||
20 | #include <qpainter.h> | ||
21 | 20 | ||
22 | ShapeTool::ShapeTool(DrawPad* drawPad, DrawPadCanvas* drawPadCanvas) | 21 | ShapeTool::ShapeTool(DrawPad* drawPad, DrawPadCanvas* drawPadCanvas) |
23 | : Tool(drawPad, drawPadCanvas) | 22 | : Tool(drawPad, drawPadCanvas) |
24 | { | 23 | { |
25 | m_mousePressed = false; | 24 | m_mousePressed = false; |
26 | m_polyline.resize(3); | 25 | m_polyline.resize(3); |
27 | } | 26 | } |
28 | 27 | ||
29 | ShapeTool::~ShapeTool() | 28 | ShapeTool::~ShapeTool() |
30 | { | 29 | { |
31 | } | 30 | } |
32 | 31 | ||
diff --git a/noncore/graphics/drawpad/texttool.cpp b/noncore/graphics/drawpad/texttool.cpp index 9037abd..3a89e80 100644 --- a/noncore/graphics/drawpad/texttool.cpp +++ b/noncore/graphics/drawpad/texttool.cpp | |||
@@ -10,25 +10,24 @@ | |||
10 | * (at your option) any later version. * | 10 | * (at your option) any later version. * |
11 | * * | 11 | * * |
12 | ***************************************************************************/ | 12 | ***************************************************************************/ |
13 | 13 | ||
14 | #include "texttool.h" | 14 | #include "texttool.h" |
15 | 15 | ||
16 | #include "drawpad.h" | 16 | #include "drawpad.h" |
17 | #include "drawpadcanvas.h" | 17 | #include "drawpadcanvas.h" |
18 | #include "page.h" | 18 | #include "page.h" |
19 | 19 | ||
20 | #include <qlayout.h> | 20 | #include <qlayout.h> |
21 | #include <qlineedit.h> | 21 | #include <qlineedit.h> |
22 | #include <qpainter.h> | ||
23 | 22 | ||
24 | TextToolDialog::TextToolDialog(QWidget* parent, const char* name) | 23 | TextToolDialog::TextToolDialog(QWidget* parent, const char* name) |
25 | : QDialog(parent, name, true) | 24 | : QDialog(parent, name, true) |
26 | { | 25 | { |
27 | setCaption(tr("Insert Text")); | 26 | setCaption(tr("Insert Text")); |
28 | 27 | ||
29 | m_pLineEdit = new QLineEdit(this); | 28 | m_pLineEdit = new QLineEdit(this); |
30 | 29 | ||
31 | QVBoxLayout* mainLayout = new QVBoxLayout(this, 4, 4); | 30 | QVBoxLayout* mainLayout = new QVBoxLayout(this, 4, 4); |
32 | 31 | ||
33 | mainLayout->addWidget(m_pLineEdit); | 32 | mainLayout->addWidget(m_pLineEdit); |
34 | } | 33 | } |
diff --git a/noncore/graphics/drawpad/thumbnailview.cpp b/noncore/graphics/drawpad/thumbnailview.cpp index 90ba39c..1ccf484 100644 --- a/noncore/graphics/drawpad/thumbnailview.cpp +++ b/noncore/graphics/drawpad/thumbnailview.cpp | |||
@@ -14,25 +14,24 @@ | |||
14 | #include "thumbnailview.h" | 14 | #include "thumbnailview.h" |
15 | 15 | ||
16 | #include "drawpad.h" | 16 | #include "drawpad.h" |
17 | #include "drawpadcanvas.h" | 17 | #include "drawpadcanvas.h" |
18 | #include "newpagedialog.h" | 18 | #include "newpagedialog.h" |
19 | #include "page.h" | 19 | #include "page.h" |
20 | 20 | ||
21 | #include <qpe/config.h> | 21 | #include <qpe/config.h> |
22 | #include <qpe/resource.h> | 22 | #include <qpe/resource.h> |
23 | #include <qpe/timestring.h> | 23 | #include <qpe/timestring.h> |
24 | 24 | ||
25 | #include <qapplication.h> | 25 | #include <qapplication.h> |
26 | #include <qimage.h> | ||
27 | #include <qlayout.h> | 26 | #include <qlayout.h> |
28 | #include <qmessagebox.h> | 27 | #include <qmessagebox.h> |
29 | #include <qtoolbutton.h> | 28 | #include <qtoolbutton.h> |
30 | #include <qwhatsthis.h> | 29 | #include <qwhatsthis.h> |
31 | 30 | ||
32 | #define THUMBNAIL_SIZE 48 | 31 | #define THUMBNAIL_SIZE 48 |
33 | 32 | ||
34 | PageListBoxItem::PageListBoxItem(Page* page, QListBox* parent) | 33 | PageListBoxItem::PageListBoxItem(Page* page, QListBox* parent) |
35 | : QListBoxItem(parent) | 34 | : QListBoxItem(parent) |
36 | { | 35 | { |
37 | m_pPage = page; | 36 | m_pPage = page; |
38 | 37 | ||
diff --git a/noncore/graphics/drawpad/tool.cpp b/noncore/graphics/drawpad/tool.cpp index 0d36912..656078e 100644 --- a/noncore/graphics/drawpad/tool.cpp +++ b/noncore/graphics/drawpad/tool.cpp | |||
@@ -4,25 +4,23 @@ | |||
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 | #include "tool.h" | 14 | #include "tool.h" |
15 | 15 | ||
16 | #include "drawpad.h" | ||
17 | #include "drawpadcanvas.h" | ||
18 | 16 | ||
19 | Tool::Tool(DrawPad* drawPad, DrawPadCanvas* drawPadCanvas) | 17 | Tool::Tool(DrawPad* drawPad, DrawPadCanvas* drawPadCanvas) |
20 | : QObject() | 18 | : QObject() |
21 | { | 19 | { |
22 | m_pDrawPad = drawPad; | 20 | m_pDrawPad = drawPad; |
23 | m_pDrawPadCanvas = drawPadCanvas; | 21 | m_pDrawPadCanvas = drawPadCanvas; |
24 | } | 22 | } |
25 | 23 | ||
26 | Tool::~Tool() | 24 | Tool::~Tool() |
27 | { | 25 | { |
28 | } | 26 | } |