-rw-r--r-- | noncore/apps/tinykate/libkate/document/katedocument.cpp | 2 | ||||
-rw-r--r-- | noncore/apps/tinykate/libkate/kateconfig.cpp | 2 | ||||
-rw-r--r-- | noncore/apps/tinykate/libkate/view/kateview.cpp | 9 | ||||
-rw-r--r-- | noncore/apps/tinykate/libkate/view/kateviewdialog.cpp | 4 | ||||
-rw-r--r-- | noncore/apps/tinykate/tinykate.cpp | 5 |
5 files changed, 2 insertions, 20 deletions
diff --git a/noncore/apps/tinykate/libkate/document/katedocument.cpp b/noncore/apps/tinykate/libkate/document/katedocument.cpp index 6807544..f05e21a 100644 --- a/noncore/apps/tinykate/libkate/document/katedocument.cpp +++ b/noncore/apps/tinykate/libkate/document/katedocument.cpp | |||
@@ -36,45 +36,43 @@ | |||
36 | along with this library; see the file COPYING.LIB. If not, write to | 36 | along with this library; see the file COPYING.LIB. If not, write to |
37 | the Free Software Foundation, Inc., 59 Temple Place - Suite 330, | 37 | the Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
38 | Boston, MA 02111-1307, USA. | 38 | Boston, MA 02111-1307, USA. |
39 | */ | 39 | */ |
40 | 40 | ||
41 | #include "katedocument.h" | 41 | #include "katedocument.h" |
42 | 42 | ||
43 | 43 | ||
44 | #include <qfileinfo.h> | 44 | #include <qfileinfo.h> |
45 | #include <qdatetime.h> | 45 | #include <qdatetime.h> |
46 | 46 | ||
47 | #include <kmessagebox.h> | 47 | #include <kmessagebox.h> |
48 | #include <klocale.h> | ||
49 | #include <qpe/config.h> | 48 | #include <qpe/config.h> |
50 | #include <qstring.h> | 49 | #include <qstring.h> |
51 | 50 | ||
52 | #include <sys/time.h> | 51 | #include <sys/time.h> |
53 | #include <unistd.h> | 52 | #include <unistd.h> |
54 | 53 | ||
55 | #include <stdio.h> | 54 | #include <stdio.h> |
56 | 55 | ||
57 | #include <qtimer.h> | 56 | #include <qtimer.h> |
58 | #include <qobject.h> | 57 | #include <qobject.h> |
59 | #include <qapplication.h> | 58 | #include <qapplication.h> |
60 | #include <qclipboard.h> | 59 | #include <qclipboard.h> |
61 | #include <qfont.h> | 60 | #include <qfont.h> |
62 | #include <qpainter.h> | 61 | #include <qpainter.h> |
63 | #include <qfile.h> | 62 | #include <qfile.h> |
64 | #include <qtextstream.h> | 63 | #include <qtextstream.h> |
65 | #include <qtextcodec.h> | 64 | #include <qtextcodec.h> |
66 | #include <kglobal.h> | 65 | #include <kglobal.h> |
67 | 66 | ||
68 | #include <klocale.h> | ||
69 | //#include <kcharsets.h> | 67 | //#include <kcharsets.h> |
70 | #include <kdebug.h> | 68 | #include <kdebug.h> |
71 | //#include <kinstance.h> | 69 | //#include <kinstance.h> |
72 | 70 | ||
73 | #include <kglobalsettings.h> | 71 | #include <kglobalsettings.h> |
74 | //#include <kaction.h> | 72 | //#include <kaction.h> |
75 | //#include <kstdaction.h> | 73 | //#include <kstdaction.h> |
76 | 74 | ||
77 | #include "../view/kateview.h" | 75 | #include "../view/kateview.h" |
78 | #include "katebuffer.h" | 76 | #include "katebuffer.h" |
79 | #include "katetextline.h" | 77 | #include "katetextline.h" |
80 | 78 | ||
diff --git a/noncore/apps/tinykate/libkate/kateconfig.cpp b/noncore/apps/tinykate/libkate/kateconfig.cpp index 06ac49f..96f91fb 100644 --- a/noncore/apps/tinykate/libkate/kateconfig.cpp +++ b/noncore/apps/tinykate/libkate/kateconfig.cpp | |||
@@ -10,26 +10,24 @@ | |||
10 | ** | 10 | ** |
11 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE | 11 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE |
12 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. | 12 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. |
13 | ** | 13 | ** |
14 | ** See http://www.trolltech.com/gpl/ for GPL licensing information. | 14 | ** See http://www.trolltech.com/gpl/ for GPL licensing information. |
15 | ** | 15 | ** |
16 | ** Contact info@trolltech.com if any conditions of this licensing are | 16 | ** Contact info@trolltech.com if any conditions of this licensing are |
17 | ** not clear to you. | 17 | ** not clear to you. |
18 | ** | 18 | ** |
19 | **********************************************************************/ | 19 | **********************************************************************/ |
20 | 20 | ||
21 | #include <qdir.h> | 21 | #include <qdir.h> |
22 | #include <qfile.h> | ||
23 | #include <qfileinfo.h> | ||
24 | #include <qmessagebox.h> | 22 | #include <qmessagebox.h> |
25 | #if QT_VERSION <= 230 && defined(QT_NO_CODECS) | 23 | #if QT_VERSION <= 230 && defined(QT_NO_CODECS) |
26 | #include <qtextcodec.h> | 24 | #include <qtextcodec.h> |
27 | #endif | 25 | #endif |
28 | #include <qtextstream.h> | 26 | #include <qtextstream.h> |
29 | 27 | ||
30 | #include <sys/stat.h> | 28 | #include <sys/stat.h> |
31 | #include <sys/types.h> | 29 | #include <sys/types.h> |
32 | #include <fcntl.h> | 30 | #include <fcntl.h> |
33 | #include <stdlib.h> | 31 | #include <stdlib.h> |
34 | #include <unistd.h> | 32 | #include <unistd.h> |
35 | 33 | ||
diff --git a/noncore/apps/tinykate/libkate/view/kateview.cpp b/noncore/apps/tinykate/libkate/view/kateview.cpp index 794fbdb..423634b 100644 --- a/noncore/apps/tinykate/libkate/view/kateview.cpp +++ b/noncore/apps/tinykate/libkate/view/kateview.cpp | |||
@@ -35,62 +35,55 @@ | |||
35 | along with this library; see the file COPYING.LIB. If not, write to | 35 | along with this library; see the file COPYING.LIB. If not, write to |
36 | the Free Software Foundation, Inc., 59 Temple Place - Suite 330, | 36 | the Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
37 | Boston, MA 02111-1307, USA. | 37 | Boston, MA 02111-1307, USA. |
38 | */ | 38 | */ |
39 | 39 | ||
40 | 40 | ||
41 | 41 | ||
42 | #include "kateview.h" | 42 | #include "kateview.h" |
43 | 43 | ||
44 | #include "../document/katedocument.h" | 44 | #include "../document/katedocument.h" |
45 | #include "../document/katecmd.h" | 45 | #include "../document/katecmd.h" |
46 | #include "../document/katehighlight.h" | 46 | #include "../document/katehighlight.h" |
47 | #include "kateviewdialog.h" | ||
48 | #include "../document/katedialogs.h" | 47 | #include "../document/katedialogs.h" |
48 | #include "kateviewdialog.h" | ||
49 | #include <kateconfig.h> | 49 | #include <kateconfig.h> |
50 | 50 | ||
51 | #include <qfocusdata.h> | ||
52 | #include <kdebug.h> | ||
53 | #include <kapplication.h> | 51 | #include <kapplication.h> |
54 | #include <qscrollbar.h> | 52 | #include <qscrollbar.h> |
55 | #include <qiodevice.h> | ||
56 | #include <qpopupmenu.h> | 53 | #include <qpopupmenu.h> |
57 | #include <kpopupmenu.h> | 54 | #include <kpopupmenu.h> |
58 | #include <qkeycode.h> | 55 | #include <qkeycode.h> |
59 | #include <qintdict.h> | 56 | #include <qintdict.h> |
60 | #include <qfont.h> | 57 | #include <qfont.h> |
61 | #include <qpainter.h> | 58 | #include <qpainter.h> |
62 | #include <qpixmap.h> | 59 | #include <qpixmap.h> |
63 | #include <qfileinfo.h> | 60 | #include <qfileinfo.h> |
64 | #include <qfile.h> | 61 | #include <qfile.h> |
65 | #include <qevent.h> | 62 | #include <qevent.h> |
66 | #include <qdir.h> | 63 | #include <qdir.h> |
67 | #include <qvbox.h> | 64 | #include <qvbox.h> |
68 | #include <qprintdialog.h> | 65 | #include <qprintdialog.h> |
69 | #include <qpaintdevicemetrics.h> | 66 | #include <qpaintdevicemetrics.h> |
70 | #include <qiodevice.h> | ||
71 | #include <qbuffer.h> | 67 | #include <qbuffer.h> |
72 | #include <qfocusdata.h> | ||
73 | #include <klocale.h> | 68 | #include <klocale.h> |
74 | #include <kglobal.h> | 69 | #include <kglobal.h> |
75 | #include <kdebug.h> | ||
76 | #include <kmessagebox.h> | 70 | #include <kmessagebox.h> |
77 | #include <qregexp.h> | 71 | #include <qregexp.h> |
78 | #include <kdialogbase.h> | 72 | #include <kdialogbase.h> |
79 | #include <klineeditdlg.h> | 73 | #include <klineeditdlg.h> |
80 | #include <qapplication.h> | 74 | #include <qapplication.h> |
81 | #include <kfiledialog.h> | 75 | #include <kfiledialog.h> |
82 | #include <kiconloader.h> | 76 | #include <kiconloader.h> |
83 | #include "../document/katetextline.h" | 77 | #include "../document/katetextline.h" |
84 | #include "kateviewdialog.h" | ||
85 | #include "kateundohistory.h" | 78 | #include "kateundohistory.h" |
86 | #include <qlayout.h> | 79 | #include <qlayout.h> |
87 | #include <qpe/qpeapplication.h> | 80 | #include <qpe/qpeapplication.h> |
88 | 81 | ||
89 | KateViewInternal::KateViewInternal(KateView *view, KateDocument *doc) : QWidget(view) | 82 | KateViewInternal::KateViewInternal(KateView *view, KateDocument *doc) : QWidget(view) |
90 | { | 83 | { |
91 | waitForPreHighlight=-1; | 84 | waitForPreHighlight=-1; |
92 | myView = view; | 85 | myView = view; |
93 | myDoc = doc; | 86 | myDoc = doc; |
94 | 87 | ||
95 | iconBorderWidth = 16; | 88 | iconBorderWidth = 16; |
96 | iconBorderHeight = 800; | 89 | iconBorderHeight = 800; |
diff --git a/noncore/apps/tinykate/libkate/view/kateviewdialog.cpp b/noncore/apps/tinykate/libkate/view/kateviewdialog.cpp index bd5b74f..a85fb87 100644 --- a/noncore/apps/tinykate/libkate/view/kateviewdialog.cpp +++ b/noncore/apps/tinykate/libkate/view/kateviewdialog.cpp | |||
@@ -16,41 +16,39 @@ | |||
16 | * (at your option) any later version. * | 16 | * (at your option) any later version. * |
17 | * * | 17 | * * |
18 | ***************************************************************************/ | 18 | ***************************************************************************/ |
19 | // Dialogs | 19 | // Dialogs |
20 | 20 | ||
21 | #include <stdio.h> | 21 | #include <stdio.h> |
22 | #include <stdlib.h> | 22 | #include <stdlib.h> |
23 | 23 | ||
24 | #include <qgrid.h> | 24 | #include <qgrid.h> |
25 | #include <qlabel.h> | 25 | #include <qlabel.h> |
26 | #include <qlayout.h> | 26 | #include <qlayout.h> |
27 | #include <qlistbox.h> | 27 | #include <qlistbox.h> |
28 | #include <qspinbox.h> | ||
29 | #include <qcombobox.h> | ||
30 | #include <qgroupbox.h> | 28 | #include <qgroupbox.h> |
31 | #include <qlineedit.h> | 29 | #include <qlineedit.h> |
32 | #include <qcheckbox.h> | 30 | #include <qcheckbox.h> |
33 | #include <qcollection.h> | 31 | #include <qcollection.h> |
34 | #include <qpushbutton.h> | 32 | #include <qpushbutton.h> |
35 | #include <qobjectlist.h> | 33 | #include <qobjectlist.h> |
36 | #include <qradiobutton.h> | 34 | #include <qradiobutton.h> |
37 | #include <qwhatsthis.h> | 35 | #include <qwhatsthis.h> |
38 | #include <qstringlist.h> | 36 | #include <qstringlist.h> |
39 | #include <klocale.h> | 37 | #include <klocale.h> |
40 | #include <kcolorbtn.h> | 38 | #include <kcolorbtn.h> |
41 | #include <qcombobox.h> | ||
42 | #include <kglobal.h> | 39 | #include <kglobal.h> |
43 | #include <qvbox.h> | 40 | #include <qvbox.h> |
44 | #include <qspinbox.h> | 41 | #include <qspinbox.h> |
42 | #include <qcombobox.h> | ||
45 | #include <kfontdialog.h> | 43 | #include <kfontdialog.h> |
46 | 44 | ||
47 | #include "../document/katedocument.h" | 45 | #include "../document/katedocument.h" |
48 | #include "kateviewdialog.h" | 46 | #include "kateviewdialog.h" |
49 | #include <opie2/ofontselector.h> | 47 | #include <opie2/ofontselector.h> |
50 | 48 | ||
51 | 49 | ||
52 | SearchDialog::SearchDialog( QWidget *parent, QStringList &searchFor, QStringList &replaceWith, int flags ) | 50 | SearchDialog::SearchDialog( QWidget *parent, QStringList &searchFor, QStringList &replaceWith, int flags ) |
53 | : KDialogBase( parent, 0L, true, i18n( "Find Text" ), Ok | Cancel, Ok ) | 51 | : KDialogBase( parent, 0L, true, i18n( "Find Text" ), Ok | Cancel, Ok ) |
54 | , m_replace( 0L ) | 52 | , m_replace( 0L ) |
55 | { | 53 | { |
56 | QWidget *page = new QWidget( this ); | 54 | QWidget *page = new QWidget( this ); |
diff --git a/noncore/apps/tinykate/tinykate.cpp b/noncore/apps/tinykate/tinykate.cpp index bbf80ce..19a0127 100644 --- a/noncore/apps/tinykate/tinykate.cpp +++ b/noncore/apps/tinykate/tinykate.cpp | |||
@@ -5,40 +5,35 @@ | |||
5 | begin : November 2002 | 5 | begin : November 2002 |
6 | copyright : (C) 2002 by Joseph Wenninger <jowenn@kde.org> | 6 | copyright : (C) 2002 by Joseph Wenninger <jowenn@kde.org> |
7 | ***************************************************************************/ | 7 | ***************************************************************************/ |
8 | 8 | ||
9 | /*************************************************************************** | 9 | /*************************************************************************** |
10 | * * | 10 | * * |
11 | * This program is free softwaSre; you can redistribute it and/or modify * | 11 | * This program is free softwaSre; you can redistribute it and/or modify * |
12 | * it under the terms of the GNU General Public License as published by * | 12 | * it under the terms of the GNU General Public License as published by * |
13 | * the Free Software Foundation. * | 13 | * the Free Software Foundation. * |
14 | * ONLY VERSION 2 OF THE LICENSE IS APPLICABLE * | 14 | * ONLY VERSION 2 OF THE LICENSE IS APPLICABLE * |
15 | * * | 15 | * * |
16 | ***************************************************************************/ | 16 | ***************************************************************************/ |
17 | #include <qwidget.h> | ||
18 | #include <qaction.h> | 17 | #include <qaction.h> |
19 | #include <qlayout.h> | ||
20 | #include <qtoolbutton.h> | 18 | #include <qtoolbutton.h> |
21 | #include <qmenubar.h> | 19 | #include <qmenubar.h> |
22 | #include <qpe/resource.h> | 20 | #include <qpe/resource.h> |
23 | #include <qpe/global.h> | ||
24 | #include <qpe/qpeapplication.h> | 21 | #include <qpe/qpeapplication.h> |
25 | 22 | ||
26 | #include <opie2/ofiledialog.h> | 23 | #include <opie2/ofiledialog.h> |
27 | 24 | ||
28 | #include "tinykate.h" | 25 | #include "tinykate.h" |
29 | 26 | ||
30 | #include <katedocument.h> | 27 | #include <katedocument.h> |
31 | #include <katehighlight.h> | ||
32 | #include <kateview.h> | ||
33 | #include <kglobal.h> | 28 | #include <kglobal.h> |
34 | 29 | ||
35 | TinyKate::TinyKate( QWidget *parent, const char *name, WFlags f) : | 30 | TinyKate::TinyKate( QWidget *parent, const char *name, WFlags f) : |
36 | QMainWindow( parent, name, f ) | 31 | QMainWindow( parent, name, f ) |
37 | { | 32 | { |
38 | shutDown=false; | 33 | shutDown=false; |
39 | nextUnnamed=0; | 34 | nextUnnamed=0; |
40 | currentView=0; | 35 | currentView=0; |
41 | viewCount=0; | 36 | viewCount=0; |
42 | setCaption(tr("TinyKATE")); | 37 | setCaption(tr("TinyKATE")); |
43 | KGlobal::setAppName("TinyKATE"); | 38 | KGlobal::setAppName("TinyKATE"); |
44 | 39 | ||