author | chicken <chicken> | 2004-03-01 20:00:34 (UTC) |
---|---|---|
committer | chicken <chicken> | 2004-03-01 20:00:34 (UTC) |
commit | 6bab4a28785c4ab5b0f0707c8c8db953e399cac8 (patch) (unidiff) | |
tree | 126dd6c09cc82b3d41ea70410803daac5cde5b60 | |
parent | 4ffae5ecb25f6d640c69f53f02755b6ec58d4c98 (diff) | |
download | opie-6bab4a28785c4ab5b0f0707c8c8db953e399cac8.zip opie-6bab4a28785c4ab5b0f0707c8c8db953e399cac8.tar.gz opie-6bab4a28785c4ab5b0f0707c8c8db953e399cac8.tar.bz2 |
fix includes
24 files changed, 2 insertions, 99 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 | |||
@@ -32,53 +32,51 @@ | |||
32 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 32 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
33 | Library General Public License for more details. | 33 | Library General Public License for more details. |
34 | 34 | ||
35 | You should have received a copy of the GNU Library General Public License | 35 | You should have received a copy of the GNU Library General Public License |
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 | ||
81 | #include "katecmd.h" | 79 | #include "katecmd.h" |
82 | 80 | ||
83 | KateAction::KateAction(Action a, PointStruc &cursor, int len, const QString &text) | 81 | KateAction::KateAction(Action a, PointStruc &cursor, int len, const QString &text) |
84 | : action(a), cursor(cursor), len(len), text(text) { | 82 | : action(a), cursor(cursor), len(len), text(text) { |
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 | |||
@@ -6,34 +6,32 @@ | |||
6 | ** This file may be distributed and/or modified under the terms of the | 6 | ** This file may be distributed and/or modified under the terms of the |
7 | ** GNU General Public License version 2 as published by the Free Software | 7 | ** GNU General Public License version 2 as published by the Free Software |
8 | ** Foundation and appearing in the file LICENSE.GPL included in the | 8 | ** Foundation and appearing in the file LICENSE.GPL included in the |
9 | ** packaging of this file. | 9 | ** packaging of this file. |
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 | ||
36 | #define QTOPIA_INTERNAL_LANGLIST | 34 | #define QTOPIA_INTERNAL_LANGLIST |
37 | #include "kateconfig.h" | 35 | #include "kateconfig.h" |
38 | #include <qpe/global.h> | 36 | #include <qpe/global.h> |
39 | 37 | ||
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 | |||
@@ -31,70 +31,63 @@ | |||
31 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 31 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
32 | Library General Public License for more details. | 32 | Library General Public License for more details. |
33 | 33 | ||
34 | You should have received a copy of the GNU Library General Public License | 34 | You should have received a copy of the GNU Library General Public License |
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; |
97 | 90 | ||
98 | QWidget::setCursor(ibeamCursor); | 91 | QWidget::setCursor(ibeamCursor); |
99 | setBackgroundMode(NoBackground); | 92 | setBackgroundMode(NoBackground); |
100 | 93 | ||
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 | |||
@@ -12,49 +12,47 @@ | |||
12 | * * | 12 | * * |
13 | * This program is free software; you can redistribute it and/or modify * | 13 | * This program is free software; you can redistribute it and/or modify * |
14 | * it under the terms of the GNU General Public License as published by * | 14 | * it under the terms of the GNU General Public License as published by * |
15 | * the Free Software Foundation; either version 2 of the License, or * | 15 | * the Free Software Foundation; either version 2 of the License, or * |
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 ); |
57 | setMainWidget( page ); | 55 | setMainWidget( page ); |
58 | 56 | ||
59 | QVBoxLayout *topLayout = new QVBoxLayout( page, 0, spacingHint() ); | 57 | QVBoxLayout *topLayout = new QVBoxLayout( page, 0, spacingHint() ); |
60 | 58 | ||
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 | |||
@@ -1,48 +1,43 @@ | |||
1 | /*************************************************************************** | 1 | /*************************************************************************** |
2 | tinykate.cpp | 2 | tinykate.cpp |
3 | Tiny KATE mainwindow | 3 | Tiny KATE mainwindow |
4 | ------------------- | 4 | ------------------- |
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 | ||
45 | QMenuBar *mb = new QMenuBar( this ); | 40 | QMenuBar *mb = new QMenuBar( this ); |
46 | mb->setMargin( 0 ); | 41 | mb->setMargin( 0 ); |
47 | 42 | ||
48 | tabwidget=new OTabWidget(this); | 43 | tabwidget=new OTabWidget(this); |
diff --git a/noncore/apps/zsafe/category.cpp b/noncore/apps/zsafe/category.cpp index ce1d614..15448f0 100644 --- a/noncore/apps/zsafe/category.cpp +++ b/noncore/apps/zsafe/category.cpp | |||
@@ -1,22 +1,21 @@ | |||
1 | /* C implementation of RC2 encryption algorithm, as described in RFC2268 */ | 1 | /* C implementation of RC2 encryption algorithm, as described in RFC2268 */ |
2 | /* By Matthew Palmer <mjp16@uow.edu.au> */ | 2 | /* By Matthew Palmer <mjp16@uow.edu.au> */ |
3 | /* $Id$ */ | 3 | /* $Id$ */ |
4 | 4 | ||
5 | #include "category.h" | 5 | #include "category.h" |
6 | #include <qlistview.h> | ||
7 | 6 | ||
8 | Category::Category() | 7 | Category::Category() |
9 | { | 8 | { |
10 | } | 9 | } |
11 | 10 | ||
12 | Category::~Category() | 11 | Category::~Category() |
13 | { | 12 | { |
14 | } | 13 | } |
15 | 14 | ||
16 | QString Category::getIconName() | 15 | QString Category::getIconName() |
17 | { | 16 | { |
18 | return iconName; | 17 | return iconName; |
19 | } | 18 | } |
20 | 19 | ||
21 | QString Category::getCategoryName() | 20 | QString Category::getCategoryName() |
22 | { | 21 | { |
diff --git a/noncore/apps/zsafe/main.cpp b/noncore/apps/zsafe/main.cpp index 7ff549b..4fe319b 100644 --- a/noncore/apps/zsafe/main.cpp +++ b/noncore/apps/zsafe/main.cpp | |||
@@ -2,33 +2,32 @@ | |||
2 | ** Author: Carsten Schneider <CarstenSchneider@t-online.de> | 2 | ** Author: Carsten Schneider <CarstenSchneider@t-online.de> |
3 | ** | 3 | ** |
4 | ** $Id$ | 4 | ** $Id$ |
5 | ** | 5 | ** |
6 | ** Homepage: http://home.t-online.de/home/CarstenSchneider/zsafe/index.html | 6 | ** Homepage: http://home.t-online.de/home/CarstenSchneider/zsafe/index.html |
7 | */ | 7 | */ |
8 | 8 | ||
9 | 9 | ||
10 | #include "zsafe.h" | 10 | #include "zsafe.h" |
11 | #ifdef DESKTOP | 11 | #ifdef DESKTOP |
12 | #include <qapplication.h> | 12 | #include <qapplication.h> |
13 | #else | 13 | #else |
14 | #include <qpe/qpeapplication.h> | 14 | #include <qpe/qpeapplication.h> |
15 | #endif | 15 | #endif |
16 | #include <stdio.h> | 16 | #include <stdio.h> |
17 | #include <signal.h> | 17 | #include <signal.h> |
18 | #include "qsettings.h" | ||
19 | 18 | ||
20 | ZSafe *zs; | 19 | ZSafe *zs; |
21 | #ifdef DESKTOP | 20 | #ifdef DESKTOP |
22 | QApplication *appl; | 21 | QApplication *appl; |
23 | #else | 22 | #else |
24 | QPEApplication *appl; | 23 | QPEApplication *appl; |
25 | #endif | 24 | #endif |
26 | 25 | ||
27 | int DeskW; | 26 | int DeskW; |
28 | int DeskH; | 27 | int DeskH; |
29 | 28 | ||
30 | void suspend (int signum) | 29 | void suspend (int signum) |
31 | { | 30 | { |
32 | printf ("Suspend signal %d received\n", signum); | 31 | printf ("Suspend signal %d received\n", signum); |
33 | } | 32 | } |
34 | 33 | ||
diff --git a/noncore/apps/zsafe/qsettings.cpp b/noncore/apps/zsafe/qsettings.cpp index 62a9947..ee55339 100755 --- a/noncore/apps/zsafe/qsettings.cpp +++ b/noncore/apps/zsafe/qsettings.cpp | |||
@@ -1,22 +1,21 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id$ | 2 | ** $Id$ |
3 | */ | 3 | */ |
4 | 4 | ||
5 | #include "qsettings.h" | 5 | #include "qsettings.h" |
6 | #include <qstringlist.h> | ||
7 | #include <stdio.h> | 6 | #include <stdio.h> |
8 | #include <qfile.h> | 7 | #include <qfile.h> |
9 | #include <qtextstream.h> | 8 | #include <qtextstream.h> |
10 | 9 | ||
11 | 10 | ||
12 | QSettings::QSettings(const QString &_fn) | 11 | QSettings::QSettings(const QString &_fn) |
13 | { | 12 | { |
14 | // read the prefs from the file | 13 | // read the prefs from the file |
15 | fn = _fn; | 14 | fn = _fn; |
16 | 15 | ||
17 | QFile f(_fn); | 16 | QFile f(_fn); |
18 | if ( f.open(IO_ReadOnly) ) { // file opened successfully | 17 | if ( f.open(IO_ReadOnly) ) { // file opened successfully |
19 | QTextStream t( &f ); // use a text stream | 18 | QTextStream t( &f ); // use a text stream |
20 | QString s; | 19 | QString s; |
21 | while ( !t.eof() ) { // until end of file... | 20 | while ( !t.eof() ) { // until end of file... |
22 | s = t.readLine(); // line of text excluding '\n' | 21 | s = t.readLine(); // line of text excluding '\n' |
diff --git a/noncore/apps/zsafe/scqtfiledlg.cpp b/noncore/apps/zsafe/scqtfiledlg.cpp index d6cea64..dd72fdf 100644 --- a/noncore/apps/zsafe/scqtfiledlg.cpp +++ b/noncore/apps/zsafe/scqtfiledlg.cpp | |||
@@ -1,38 +1,33 @@ | |||
1 | /**************************************************************************** | 1 | /**************************************************************************** |
2 | ** Form implementation generated from reading ui file 'scqtfiledlg.ui' | 2 | ** Form implementation generated from reading ui file 'scqtfiledlg.ui' |
3 | ** | 3 | ** |
4 | ** Created: Sun Jun 8 15:51:12 2003 | 4 | ** Created: Sun Jun 8 15:51:12 2003 |
5 | ** by: The User Interface Compiler (uic) | 5 | ** by: The User Interface Compiler (uic) |
6 | ** | 6 | ** |
7 | ** WARNING! All changes made in this file will be lost! | 7 | ** WARNING! All changes made in this file will be lost! |
8 | ****************************************************************************/ | 8 | ****************************************************************************/ |
9 | #include "scqtfiledlg.h" | 9 | #include "scqtfiledlg.h" |
10 | 10 | ||
11 | #include <qcombobox.h> | 11 | #include <qcombobox.h> |
12 | #include <qheader.h> | ||
13 | #include <qlineedit.h> | 12 | #include <qlineedit.h> |
14 | #include <qlistview.h> | 13 | #include <qlistview.h> |
15 | #include <qpushbutton.h> | ||
16 | #include <qtoolbutton.h> | 14 | #include <qtoolbutton.h> |
17 | #include <qlayout.h> | 15 | #include <qlayout.h> |
18 | #include <qvariant.h> | ||
19 | #include <qtooltip.h> | 16 | #include <qtooltip.h> |
20 | #include <qwhatsthis.h> | 17 | #include <qwhatsthis.h> |
21 | #include <qimage.h> | ||
22 | #include <qpixmap.h> | ||
23 | 18 | ||
24 | static const char* const image0_data[] = { | 19 | static const char* const image0_data[] = { |
25 | "24 16 3 1", | 20 | "24 16 3 1", |
26 | ". c None", | 21 | ". c None", |
27 | "# c #000040", | 22 | "# c #000040", |
28 | "a c #808080", | 23 | "a c #808080", |
29 | "........................", | 24 | "........................", |
30 | "........................", | 25 | "........................", |
31 | ".................####...", | 26 | ".................####...", |
32 | ".................####...", | 27 | ".................####...", |
33 | ".......##........#aa#...", | 28 | ".......##........#aa#...", |
34 | "......###........#aa#...", | 29 | "......###........#aa#...", |
35 | ".....####........#aa#...", | 30 | ".....####........#aa#...", |
36 | "....##############aa#...", | 31 | "....##############aa#...", |
37 | "...###aaaaaaaaaaaaaa#...", | 32 | "...###aaaaaaaaaaaaaa#...", |
38 | "..####aaaaaaaaaaaaaa#...", | 33 | "..####aaaaaaaaaaaaaa#...", |
diff --git a/noncore/apps/zsafe/scqtfileedit.cpp b/noncore/apps/zsafe/scqtfileedit.cpp index 7a3d906..08fc2b5 100644 --- a/noncore/apps/zsafe/scqtfileedit.cpp +++ b/noncore/apps/zsafe/scqtfileedit.cpp | |||
@@ -6,36 +6,32 @@ | |||
6 | email : sc@schulte-ac.de | 6 | email : sc@schulte-ac.de |
7 | ***************************************************************************/ | 7 | ***************************************************************************/ |
8 | 8 | ||
9 | /* $Id$ */ | 9 | /* $Id$ */ |
10 | 10 | ||
11 | /*************************************************************************** | 11 | /*************************************************************************** |
12 | * * | 12 | * * |
13 | * This program is free software; you can redistribute it and/or modify * | 13 | * This program is free software; you can redistribute it and/or modify * |
14 | * it under the terms of the GNU General Public License as published by * | 14 | * it under the terms of the GNU General Public License as published by * |
15 | * the Free Software Foundation; either version 2 of the License, or * | 15 | * the Free Software Foundation; either version 2 of the License, or * |
16 | * (at your option) any later version. * | 16 | * (at your option) any later version. * |
17 | * * | 17 | * * |
18 | ***************************************************************************/ | 18 | ***************************************************************************/ |
19 | #include <stdio.h> | 19 | #include <stdio.h> |
20 | #include <stdlib.h> | 20 | #include <stdlib.h> |
21 | 21 | ||
22 | #include "qdir.h" | ||
23 | #include "qdialog.h" | ||
24 | #include "qpixmap.h" | ||
25 | #include "qlistview.h" | ||
26 | #include "qlineedit.h" | 22 | #include "qlineedit.h" |
27 | #include "qtoolbutton.h" | 23 | #include "qtoolbutton.h" |
28 | 24 | ||
29 | #include "scqtfileedit.h" | 25 | #include "scqtfileedit.h" |
30 | 26 | ||
31 | #include <qpe/qpeapplication.h> | 27 | #include <qpe/qpeapplication.h> |
32 | 28 | ||
33 | // #define DEBUGFILEEDIT | 29 | // #define DEBUGFILEEDIT |
34 | 30 | ||
35 | /* XPM */ | 31 | /* XPM */ |
36 | static const char* const file_xpm[]={ | 32 | static const char* const file_xpm[]={ |
37 | "16 16 5 1", | 33 | "16 16 5 1", |
38 | ". c #7f7f7f", | 34 | ". c #7f7f7f", |
39 | "# c None", | 35 | "# c None", |
40 | "c c #000000", | 36 | "c c #000000", |
41 | "b c #bfbfbf", | 37 | "b c #bfbfbf", |
diff --git a/noncore/apps/zsafe/zlistview.cpp b/noncore/apps/zsafe/zlistview.cpp index 23bbc4e..ba02a15 100644 --- a/noncore/apps/zsafe/zlistview.cpp +++ b/noncore/apps/zsafe/zlistview.cpp | |||
@@ -1,23 +1,21 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id$ | 2 | ** $Id$ |
3 | */ | 3 | */ |
4 | 4 | ||
5 | #include "zlistview.h" | 5 | #include "zlistview.h" |
6 | #include <qlistview.h> | ||
7 | #include <qevent.h> | ||
8 | #include <stdio.h> | 6 | #include <stdio.h> |
9 | #include "zsafe.h" | 7 | #include "zsafe.h" |
10 | 8 | ||
11 | ZListView::ZListView (ZSafe *zsafe, const char *id) : QListView(zsafe, id) | 9 | ZListView::ZListView (ZSafe *zsafe, const char *id) : QListView(zsafe, id) |
12 | { | 10 | { |
13 | zs = zsafe; | 11 | zs = zsafe; |
14 | } | 12 | } |
15 | 13 | ||
16 | ZListView::~ZListView() | 14 | ZListView::~ZListView() |
17 | { | 15 | { |
18 | } | 16 | } |
19 | 17 | ||
20 | void ZListView::keyPressEvent ( QKeyEvent *e ) | 18 | void ZListView::keyPressEvent ( QKeyEvent *e ) |
21 | { | 19 | { |
22 | /* | 20 | /* |
23 | char buf[64]; | 21 | char buf[64]; |
diff --git a/noncore/apps/zsafe/zsafe.cpp b/noncore/apps/zsafe/zsafe.cpp index f43a206..a3e805e 100644 --- a/noncore/apps/zsafe/zsafe.cpp +++ b/noncore/apps/zsafe/zsafe.cpp | |||
@@ -66,33 +66,32 @@ using Opie::OFileSelector; | |||
66 | #include <qfile.h> | 66 | #include <qfile.h> |
67 | #include <qpe/fileselector.h> | 67 | #include <qpe/fileselector.h> |
68 | #include <qpe/global.h> | 68 | #include <qpe/global.h> |
69 | #include <qpe/qpeapplication.h> | 69 | #include <qpe/qpeapplication.h> |
70 | #include <qpe/resource.h> | 70 | #include <qpe/resource.h> |
71 | #include <qpe/config.h> | 71 | #include <qpe/config.h> |
72 | #endif | 72 | #endif |
73 | 73 | ||
74 | #include <qtimer.h> | 74 | #include <qtimer.h> |
75 | #include <qlayout.h> | 75 | #include <qlayout.h> |
76 | #include <qmessagebox.h> | 76 | #include <qmessagebox.h> |
77 | #include <qfile.h> | 77 | #include <qfile.h> |
78 | #include <qtextstream.h> | 78 | #include <qtextstream.h> |
79 | #include <qheader.h> | 79 | #include <qheader.h> |
80 | #include <qlistview.h> | 80 | #include <qlistview.h> |
81 | #include <qtoolbutton.h> | 81 | #include <qtoolbutton.h> |
82 | #include <qlayout.h> | ||
83 | #include <qvariant.h> | 82 | #include <qvariant.h> |
84 | #include <qtooltip.h> | 83 | #include <qtooltip.h> |
85 | #include <qwhatsthis.h> | 84 | #include <qwhatsthis.h> |
86 | #include <qimage.h> | 85 | #include <qimage.h> |
87 | #include <qpixmap.h> | 86 | #include <qpixmap.h> |
88 | #include <qlineedit.h> | 87 | #include <qlineedit.h> |
89 | #include <qmultilineedit.h> | 88 | #include <qmultilineedit.h> |
90 | #include <qregexp.h> | 89 | #include <qregexp.h> |
91 | #include <qdir.h> | 90 | #include <qdir.h> |
92 | #include <qtextbrowser.h> | 91 | #include <qtextbrowser.h> |
93 | #include <qlabel.h> | 92 | #include <qlabel.h> |
94 | #include <qcombobox.h> | 93 | #include <qcombobox.h> |
95 | 94 | ||
96 | #include "krc2.h" | 95 | #include "krc2.h" |
97 | 96 | ||
98 | #include "wait.h" | 97 | #include "wait.h" |
diff --git a/noncore/comm/keypebble/krfbbuffer.cpp b/noncore/comm/keypebble/krfbbuffer.cpp index f1cb929..92918d4 100644 --- a/noncore/comm/keypebble/krfbbuffer.cpp +++ b/noncore/comm/keypebble/krfbbuffer.cpp | |||
@@ -1,26 +1,23 @@ | |||
1 | #include <assert.h> | 1 | #include <assert.h> |
2 | #include <qpixmap.h> | ||
3 | #include <qbrush.h> | ||
4 | #include <qimage.h> | 2 | #include <qimage.h> |
5 | #include <qpainter.h> | 3 | #include <qpainter.h> |
6 | #include <qapplication.h> | 4 | #include <qapplication.h> |
7 | #include "krfbdecoder.h" | 5 | #include "krfbdecoder.h" |
8 | #include "krfbbuffer.h" | 6 | #include "krfbbuffer.h" |
9 | #include "krfbconnection.h" | 7 | #include "krfbconnection.h" |
10 | #include "krfbserver.h" | ||
11 | #include "krfbserverinfo.h" | 8 | #include "krfbserverinfo.h" |
12 | 9 | ||
13 | // | 10 | // |
14 | // Endian stuff | 11 | // Endian stuff |
15 | // | 12 | // |
16 | #ifndef KDE_USE_FINAL | 13 | #ifndef KDE_USE_FINAL |
17 | const int endianTest = 1; | 14 | const int endianTest = 1; |
18 | #endif | 15 | #endif |
19 | 16 | ||
20 | #define Swap16IfLE(s) \ | 17 | #define Swap16IfLE(s) \ |
21 | (*(char *)&endianTest ? ((((s) & 0xff) << 8) | (((s) >> 8) & 0xff)) : (s)) | 18 | (*(char *)&endianTest ? ((((s) & 0xff) << 8) | (((s) >> 8) & 0xff)) : (s)) |
22 | 19 | ||
23 | #define Swap32IfLE(l) \ | 20 | #define Swap32IfLE(l) \ |
24 | (*(char *)&endianTest ? ((((l) & 0xff000000) >> 24) | \ | 21 | (*(char *)&endianTest ? ((((l) & 0xff000000) >> 24) | \ |
25 | (((l) & 0x00ff0000) >> 8) | \ | 22 | (((l) & 0x00ff0000) >> 8) | \ |
26 | (((l) & 0x0000ff00) << 8) | \ | 23 | (((l) & 0x0000ff00) << 8) | \ |
diff --git a/noncore/comm/keypebble/krfbcanvas.cpp b/noncore/comm/keypebble/krfbcanvas.cpp index bc71c90..75cba68 100644 --- a/noncore/comm/keypebble/krfbcanvas.cpp +++ b/noncore/comm/keypebble/krfbcanvas.cpp | |||
@@ -1,32 +1,23 @@ | |||
1 | #include "krfbconnection.h" | 1 | #include "krfbconnection.h" |
2 | #include "krfbcanvas.h" | 2 | #include "krfbcanvas.h" |
3 | #include "krfbserver.h" | ||
4 | #include "krfbbuffer.h" | 3 | #include "krfbbuffer.h" |
5 | 4 | ||
6 | #include <qpe/config.h> | ||
7 | #include <qpe/qpeapplication.h> | 5 | #include <qpe/qpeapplication.h> |
8 | 6 | ||
9 | #include <qapplication.h> | ||
10 | #include <qclipboard.h> | 7 | #include <qclipboard.h> |
11 | #include <qaction.h> | ||
12 | #include <qpixmap.h> | ||
13 | #include <qpoint.h> | ||
14 | #include <qapplication.h> | ||
15 | #include <qmainwindow.h> | ||
16 | #include <qiconset.h> | ||
17 | 8 | ||
18 | KRFBCanvas::KRFBCanvas( QWidget *parent, const char *name ) | 9 | KRFBCanvas::KRFBCanvas( QWidget *parent, const char *name ) |
19 | : QScrollView( parent, name ) | 10 | : QScrollView( parent, name ) |
20 | { | 11 | { |
21 | connection_ = new KRFBConnection(); | 12 | connection_ = new KRFBConnection(); |
22 | connect( connection_, SIGNAL( loggedIn() ), | 13 | connect( connection_, SIGNAL( loggedIn() ), |
23 | this, SLOT( loggedIn() ) ); | 14 | this, SLOT( loggedIn() ) ); |
24 | 15 | ||
25 | loggedIn_ = false; | 16 | loggedIn_ = false; |
26 | 17 | ||
27 | //QPEApplication::setStylusOperation(viewport(), QPEApplication::RightOnHold); | 18 | //QPEApplication::setStylusOperation(viewport(), QPEApplication::RightOnHold); |
28 | 19 | ||
29 | viewport()->setFocusPolicy( QWidget::StrongFocus ); | 20 | viewport()->setFocusPolicy( QWidget::StrongFocus ); |
30 | viewport()->setFocus(); | 21 | viewport()->setFocus(); |
31 | 22 | ||
32 | nextRightClick=0; | 23 | nextRightClick=0; |
diff --git a/noncore/comm/keypebble/krfbconnection.cpp b/noncore/comm/keypebble/krfbconnection.cpp index 389c836..e6c33c6 100644 --- a/noncore/comm/keypebble/krfbconnection.cpp +++ b/noncore/comm/keypebble/krfbconnection.cpp | |||
@@ -1,24 +1,23 @@ | |||
1 | #include <assert.h> | 1 | #include <assert.h> |
2 | #include <qsocket.h> | 2 | #include <qsocket.h> |
3 | #include <qtimer.h> | 3 | #include <qtimer.h> |
4 | #include <string.h> | 4 | #include <string.h> |
5 | 5 | ||
6 | #include "krfbconnection.h" | 6 | #include "krfbconnection.h" |
7 | #include "krfblogin.h" | 7 | #include "krfblogin.h" |
8 | #include "krfbserver.h" | ||
9 | #include "krfbdecoder.h" | 8 | #include "krfbdecoder.h" |
10 | #include "krfbbuffer.h" | 9 | #include "krfbbuffer.h" |
11 | 10 | ||
12 | KRFBConnection::KRFBConnection( QObject *parent ) | 11 | KRFBConnection::KRFBConnection( QObject *parent ) |
13 | : QObject( parent, "KRFBConnection" ) | 12 | : QObject( parent, "KRFBConnection" ) |
14 | { | 13 | { |
15 | portBase_ = 5900; | 14 | portBase_ = 5900; |
16 | currentState_ = Disconnected; | 15 | currentState_ = Disconnected; |
17 | sock = 0; | 16 | sock = 0; |
18 | minData_ = 0; | 17 | minData_ = 0; |
19 | options_ = new KRFBServer(); | 18 | options_ = new KRFBServer(); |
20 | updater = 0; | 19 | updater = 0; |
21 | decoder_ = 0; | 20 | decoder_ = 0; |
22 | buffer_ = 0; | 21 | buffer_ = 0; |
23 | } | 22 | } |
24 | 23 | ||
diff --git a/noncore/comm/keypebble/krfbdecoder.cpp b/noncore/comm/keypebble/krfbdecoder.cpp index c43aed5..2c9ad71 100644 --- a/noncore/comm/keypebble/krfbdecoder.cpp +++ b/noncore/comm/keypebble/krfbdecoder.cpp | |||
@@ -1,29 +1,23 @@ | |||
1 | #include "krfbconnection.h" | 1 | #include "krfbconnection.h" |
2 | #include "krfbserver.h" | ||
3 | #include "krfbserverinfo.h" | 2 | #include "krfbserverinfo.h" |
4 | #include "krfbdecoder.h" | 3 | #include "krfbdecoder.h" |
5 | #include "krfbbuffer.h" | 4 | #include "krfbbuffer.h" |
6 | 5 | ||
7 | #include <qpe/qpeapplication.h> | ||
8 | 6 | ||
9 | #include <qpixmap.h> | 7 | #include <qpixmap.h> |
10 | #include <qsocket.h> | ||
11 | #include <qevent.h> | ||
12 | #include <qstring.h> | ||
13 | #include <qclipboard.h> | ||
14 | 8 | ||
15 | #include <assert.h> | 9 | #include <assert.h> |
16 | 10 | ||
17 | // | 11 | // |
18 | // Endian stuff | 12 | // Endian stuff |
19 | // | 13 | // |
20 | #ifndef KDE_USE_FINAL | 14 | #ifndef KDE_USE_FINAL |
21 | const int endianTest = 1; | 15 | const int endianTest = 1; |
22 | #endif | 16 | #endif |
23 | 17 | ||
24 | #define Swap16IfLE(s) \ | 18 | #define Swap16IfLE(s) \ |
25 | (*(char *)&endianTest ? ((((s) & 0xff) << 8) | (((s) >> 8) & 0xff)) : (s)) | 19 | (*(char *)&endianTest ? ((((s) & 0xff) << 8) | (((s) >> 8) & 0xff)) : (s)) |
26 | 20 | ||
27 | #define Swap32IfLE(l) \ | 21 | #define Swap32IfLE(l) \ |
28 | (*(char *)&endianTest ? ((((l) & 0xff000000) >> 24) | \ | 22 | (*(char *)&endianTest ? ((((l) & 0xff000000) >> 24) | \ |
29 | (((l) & 0x00ff0000) >> 8) | \ | 23 | (((l) & 0x00ff0000) >> 8) | \ |
diff --git a/noncore/comm/keypebble/krfblogin.cpp b/noncore/comm/keypebble/krfblogin.cpp index 0d2a205..0b4a757 100644 --- a/noncore/comm/keypebble/krfblogin.cpp +++ b/noncore/comm/keypebble/krfblogin.cpp | |||
@@ -1,27 +1,26 @@ | |||
1 | #include <assert.h> | 1 | #include <assert.h> |
2 | 2 | ||
3 | 3 | ||
4 | extern "C" { | 4 | extern "C" { |
5 | #include "vncauth.h" | 5 | #include "vncauth.h" |
6 | } | 6 | } |
7 | 7 | ||
8 | #include "krfblogin.h" | 8 | #include "krfblogin.h" |
9 | #include "krfbconnection.h" | 9 | #include "krfbconnection.h" |
10 | #include <qtimer.h> | 10 | #include <qtimer.h> |
11 | #include <qregexp.h> | ||
12 | 11 | ||
13 | // The length of the various messages (used to decide how many bytes to | 12 | // The length of the various messages (used to decide how many bytes to |
14 | // wait for). | 13 | // wait for). |
15 | const int ServerVersionLength = 12; | 14 | const int ServerVersionLength = 12; |
16 | const int ClientVersionLength = 12; | 15 | const int ClientVersionLength = 12; |
17 | const int AuthSchemeLength = 4; | 16 | const int AuthSchemeLength = 4; |
18 | const int FailureReasonSizeLength = 4; | 17 | const int FailureReasonSizeLength = 4; |
19 | const int ChallengeLength = 16; | 18 | const int ChallengeLength = 16; |
20 | const int AuthResultLength = 4; | 19 | const int AuthResultLength = 4; |
21 | 20 | ||
22 | // Authentication results | 21 | // Authentication results |
23 | enum AuthResult { | 22 | enum AuthResult { |
24 | AuthOk, | 23 | AuthOk, |
25 | AuthFailed, | 24 | AuthFailed, |
26 | AuthTooMany | 25 | AuthTooMany |
27 | }; | 26 | }; |
diff --git a/noncore/comm/keypebble/krfbserver.cpp b/noncore/comm/keypebble/krfbserver.cpp index b47534e..fda81a1 100644 --- a/noncore/comm/keypebble/krfbserver.cpp +++ b/noncore/comm/keypebble/krfbserver.cpp | |||
@@ -1,17 +1,16 @@ | |||
1 | #include <qpe/config.h> | ||
2 | #include <qpe/qpeapplication.h> | 1 | #include <qpe/qpeapplication.h> |
3 | #include "krfbserver.h" | 2 | #include "krfbserver.h" |
4 | 3 | ||
5 | KRFBServer::KRFBServer() | 4 | KRFBServer::KRFBServer() |
6 | { | 5 | { |
7 | QString name; | 6 | QString name; |
8 | QString hostname; | 7 | QString hostname; |
9 | QString password; | 8 | QString password; |
10 | display=0; | 9 | display=0; |
11 | 10 | ||
12 | scaleFactor=1; | 11 | scaleFactor=1; |
13 | 12 | ||
14 | hexTile=0; | 13 | hexTile=0; |
15 | corre=0; | 14 | corre=0; |
16 | rre=0; | 15 | rre=0; |
17 | copyrect=1; | 16 | copyrect=1; |
diff --git a/noncore/comm/keypebble/kvnc.cpp b/noncore/comm/keypebble/kvnc.cpp index 2fa8d1f..c678edf 100644 --- a/noncore/comm/keypebble/kvnc.cpp +++ b/noncore/comm/keypebble/kvnc.cpp | |||
@@ -1,43 +1,30 @@ | |||
1 | #include <qiconset.h> | ||
2 | #include <qdialog.h> | ||
3 | #include <qpixmap.h> | ||
4 | #include <qdom.h> | ||
5 | #include <qaction.h> | 1 | #include <qaction.h> |
6 | #include <qmenubar.h> | ||
7 | #include <qstatusbar.h> | ||
8 | #include <qpopupmenu.h> | 2 | #include <qpopupmenu.h> |
9 | #include <qpushbutton.h> | 3 | #include <qpushbutton.h> |
10 | #include <qpe/qpetoolbar.h> | ||
11 | #include <qtimer.h> | ||
12 | #include <qmessagebox.h> | 4 | #include <qmessagebox.h> |
13 | #include <qspinbox.h> | ||
14 | #include <qlistbox.h> | 5 | #include <qlistbox.h> |
15 | #include <qlineedit.h> | ||
16 | #include <qpe/qpeapplication.h> | 6 | #include <qpe/qpeapplication.h> |
17 | #include <qpe/global.h> | ||
18 | #include <qpe/qpetoolbar.h> | ||
19 | #include <qpe/resource.h> | 7 | #include <qpe/resource.h> |
20 | 8 | ||
21 | #include <assert.h> | 9 | #include <assert.h> |
22 | 10 | ||
23 | #include "kvnc.h" | 11 | #include "kvnc.h" |
24 | #include "krfbcanvas.h" | 12 | #include "krfbcanvas.h" |
25 | #include "krfbconnection.h" | 13 | #include "krfbconnection.h" |
26 | #include "kvncconndlg.h" | 14 | #include "kvncconndlg.h" |
27 | #include "krfbserver.h" | ||
28 | 15 | ||
29 | static int u_id = 1; | 16 | static int u_id = 1; |
30 | static int get_unique_id() | 17 | static int get_unique_id() |
31 | { | 18 | { |
32 | return u_id++; | 19 | return u_id++; |
33 | } | 20 | } |
34 | 21 | ||
35 | 22 | ||
36 | /* XPM */ | 23 | /* XPM */ |
37 | static char * menu_xpm[] = { | 24 | static char * menu_xpm[] = { |
38 | "12 12 5 1", | 25 | "12 12 5 1", |
39 | " c None", | 26 | " c None", |
40 | ".c #000000", | 27 | ".c #000000", |
41 | "+c #FFFDAD", | 28 | "+c #FFFDAD", |
42 | "@c #FFFF00", | 29 | "@c #FFFF00", |
43 | "#c #E5E100", | 30 | "#c #E5E100", |
diff --git a/noncore/comm/keypebble/kvncbookmarkdlg.cpp b/noncore/comm/keypebble/kvncbookmarkdlg.cpp index 8556d49..ef2fa12 100644 --- a/noncore/comm/keypebble/kvncbookmarkdlg.cpp +++ b/noncore/comm/keypebble/kvncbookmarkdlg.cpp | |||
@@ -1,34 +1,20 @@ | |||
1 | #include <qframe.h> | ||
2 | #include <qvbox.h> | ||
3 | #include <qcheckbox.h> | ||
4 | #include <qspinbox.h> | ||
5 | #include <qlabel.h> | ||
6 | #include <qlayout.h> | ||
7 | #include <qwhatsthis.h> | ||
8 | #include <qfile.h> | ||
9 | #include <qdir.h> | 1 | #include <qdir.h> |
10 | #include <qstring.h> | ||
11 | #include <qapplication.h> | ||
12 | #include <qlineedit.h> | ||
13 | #include <qtextstream.h> | 2 | #include <qtextstream.h> |
14 | #include <qpushbutton.h> | ||
15 | #include <qlistbox.h> | 3 | #include <qlistbox.h> |
16 | #include <qpe/config.h> | ||
17 | #include <qpe/global.h> | 4 | #include <qpe/global.h> |
18 | #include "krfbserver.h" | ||
19 | #include "kvncbookmarkdlg.h" | 5 | #include "kvncbookmarkdlg.h" |
20 | 6 | ||
21 | KVNCBookmarkDlg::KVNCBookmarkDlg( QWidget * parent, const char * name, WFlags f ) | 7 | KVNCBookmarkDlg::KVNCBookmarkDlg( QWidget * parent, const char * name, WFlags f ) |
22 | 8 | ||
23 | : KVNCBookmarkDlgBase( parent, name,f) | 9 | : KVNCBookmarkDlgBase( parent, name,f) |
24 | { | 10 | { |
25 | readBookmarks(); | 11 | readBookmarks(); |
26 | refresh(); | 12 | refresh(); |
27 | 13 | ||
28 | } | 14 | } |
29 | 15 | ||
30 | KVNCBookmarkDlg::~KVNCBookmarkDlg() | 16 | KVNCBookmarkDlg::~KVNCBookmarkDlg() |
31 | { | 17 | { |
32 | } | 18 | } |
33 | 19 | ||
34 | void KVNCBookmarkDlg::addBookmark(KRFBServer * server) | 20 | void KVNCBookmarkDlg::addBookmark(KRFBServer * server) |
diff --git a/noncore/comm/keypebble/kvncconndlg.cpp b/noncore/comm/keypebble/kvncconndlg.cpp index cd55bb0..420c816 100644 --- a/noncore/comm/keypebble/kvncconndlg.cpp +++ b/noncore/comm/keypebble/kvncconndlg.cpp | |||
@@ -1,28 +1,20 @@ | |||
1 | #include <qframe.h> | ||
2 | #include <qvbox.h> | ||
3 | #include <qcheckbox.h> | 1 | #include <qcheckbox.h> |
4 | #include <qcombobox.h> | 2 | #include <qcombobox.h> |
5 | #include <qspinbox.h> | 3 | #include <qspinbox.h> |
6 | #include <qlabel.h> | ||
7 | #include <qlayout.h> | ||
8 | #include <qwhatsthis.h> | ||
9 | #include <qapplication.h> | ||
10 | #include <qlineedit.h> | 4 | #include <qlineedit.h> |
11 | #include <qpushbutton.h> | ||
12 | #include "krfbserver.h" | ||
13 | 5 | ||
14 | #include "kvncconndlg.h" | 6 | #include "kvncconndlg.h" |
15 | 7 | ||
16 | KVNCConnDlg::KVNCConnDlg( KRFBServer *options, | 8 | KVNCConnDlg::KVNCConnDlg( KRFBServer *options, |
17 | QWidget *parent, char *name, bool modal ) | 9 | QWidget *parent, char *name, bool modal ) |
18 | : KVNCConnDlgBase( parent, name, modal, WStyle_ContextHelp ) | 10 | : KVNCConnDlgBase( parent, name, modal, WStyle_ContextHelp ) |
19 | { | 11 | { |
20 | this->options=options; | 12 | this->options=options; |
21 | tmpOptions=*options; | 13 | tmpOptions=*options; |
22 | 14 | ||
23 | serverHostname->setText(options->hostname); | 15 | serverHostname->setText(options->hostname); |
24 | serverDisplay->setValue(options->display); | 16 | serverDisplay->setValue(options->display); |
25 | serverPassword->setText(options->password); | 17 | serverPassword->setText(options->password); |
26 | serverBookmark->setText(options->name); | 18 | serverBookmark->setText(options->name); |
27 | 19 | ||
28 | hex->setChecked( options->hexTile ); | 20 | hex->setChecked( options->hexTile ); |
diff --git a/noncore/comm/keypebble/main.cpp b/noncore/comm/keypebble/main.cpp index 11f67fc..fc34099 100644 --- a/noncore/comm/keypebble/main.cpp +++ b/noncore/comm/keypebble/main.cpp | |||
@@ -1,10 +1,9 @@ | |||
1 | 1 | ||
2 | 2 | ||
3 | 3 | ||
4 | #include <qpe/qpeapplication.h> | ||
5 | #include "kvnc.h" | 4 | #include "kvnc.h" |
6 | #include <opie/oapplicationfactory.h> | 5 | #include <opie/oapplicationfactory.h> |
7 | 6 | ||
8 | 7 | ||
9 | 8 | ||
10 | OPIE_EXPORT_APP( OApplicationFactory<KVNC> ) | 9 | OPIE_EXPORT_APP( OApplicationFactory<KVNC> ) |
diff --git a/noncore/comm/mobilemsg/mobilemsg.cpp b/noncore/comm/mobilemsg/mobilemsg.cpp index 707872e..9a4db35 100644 --- a/noncore/comm/mobilemsg/mobilemsg.cpp +++ b/noncore/comm/mobilemsg/mobilemsg.cpp | |||
@@ -1,24 +1,19 @@ | |||
1 | #include "mobilemsg.h" | 1 | #include "mobilemsg.h" |
2 | #include <qpushbutton.h> | ||
3 | 2 | ||
4 | #include <qpe/qpeapplication.h> | ||
5 | 3 | ||
6 | #include <qlistbox.h> | ||
7 | #include <qpushbutton.h> | ||
8 | #include <qlayout.h> | ||
9 | 4 | ||
10 | 5 | ||
11 | /* | 6 | /* |
12 | * Constructs a MobileMsg which is a child of 'parent', with the | 7 | * Constructs a MobileMsg which is a child of 'parent', with the |
13 | * name 'name' and widget flags set to 'f' | 8 | * name 'name' and widget flags set to 'f' |
14 | */ | 9 | */ |
15 | MobileMsg::MobileMsg( QWidget* parent, const char* name, WFlags fl ) | 10 | MobileMsg::MobileMsg( QWidget* parent, const char* name, WFlags fl ) |
16 | : MobileMsgBase( parent, name, fl ) | 11 | : MobileMsgBase( parent, name, fl ) |
17 | { | 12 | { |
18 | //connect(add, SIGNAL(clicked()), this, SLOT(goodBye())); | 13 | //connect(add, SIGNAL(clicked()), this, SLOT(goodBye())); |
19 | //connect(remove, SIGNAL(clicked()), this, SLOT(goodBye())); | 14 | //connect(remove, SIGNAL(clicked()), this, SLOT(goodBye())); |
20 | //connect(props, SIGNAL(clicked()), this, SLOT(goodBye())); | 15 | //connect(props, SIGNAL(clicked()), this, SLOT(goodBye())); |
21 | //connect(settings, SIGNAL(selectionChanged()), this, SLOT(goodBye()) ); | 16 | //connect(settings, SIGNAL(selectionChanged()), this, SLOT(goodBye()) ); |
22 | } | 17 | } |
23 | 18 | ||
24 | /* | 19 | /* |
diff --git a/noncore/decorations/liquid/liquid.cpp b/noncore/decorations/liquid/liquid.cpp index ef2ac3c..0bd4b1d 100644 --- a/noncore/decorations/liquid/liquid.cpp +++ b/noncore/decorations/liquid/liquid.cpp | |||
@@ -1,21 +1,19 @@ | |||
1 | #include "liquid.h" | 1 | #include "liquid.h" |
2 | 2 | ||
3 | #include <qapplication.h> | 3 | #include <qapplication.h> |
4 | #include <qpainter.h> | ||
5 | #include <qpalette.h> | ||
6 | #include <qdrawutil.h> | 4 | #include <qdrawutil.h> |
7 | 5 | ||
8 | 6 | ||
9 | LiquidDecoInterface::LiquidDecoInterface ( ) | 7 | LiquidDecoInterface::LiquidDecoInterface ( ) |
10 | { | 8 | { |
11 | } | 9 | } |
12 | 10 | ||
13 | LiquidDecoInterface::~LiquidDecoInterface ( ) | 11 | LiquidDecoInterface::~LiquidDecoInterface ( ) |
14 | { | 12 | { |
15 | } | 13 | } |
16 | 14 | ||
17 | 15 | ||
18 | 16 | ||
19 | QString LiquidDecoInterface::name ( ) const | 17 | QString LiquidDecoInterface::name ( ) const |
20 | { | 18 | { |
21 | return qApp-> translate ( "Decoration", "Liquid" ); | 19 | return qApp-> translate ( "Decoration", "Liquid" ); |