-rw-r--r-- | core/launcher/launcher.cpp | 2 | ||||
-rw-r--r-- | core/launcher/launcher.pro | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/core/launcher/launcher.cpp b/core/launcher/launcher.cpp index 1a52f69..a0f04f1 100644 --- a/core/launcher/launcher.cpp +++ b/core/launcher/launcher.cpp | |||
@@ -1,154 +1,154 @@ | |||
1 | /********************************************************************** | 1 | /********************************************************************** |
2 | ** Copyright (c) 2002 Holger zecke Freyther | 2 | ** Copyright (c) 2002 Holger zecke Freyther |
3 | ** Copyright (C) 2000 Trolltech AS. All rights reserved. | 3 | ** Copyright (C) 2000 Trolltech AS. All rights reserved. |
4 | ** | 4 | ** |
5 | ** This file is part of Qtopia Environment. | 5 | ** This file is part of Qtopia Environment. |
6 | ** | 6 | ** |
7 | ** This file may be distributed and/or modified under the terms of the | 7 | ** This file may be distributed and/or modified under the terms of the |
8 | ** GNU General Public License version 2 as published by the Free Software | 8 | ** GNU General Public License version 2 as published by the Free Software |
9 | ** Foundation and appearing in the file LICENSE.GPL included in the | 9 | ** Foundation and appearing in the file LICENSE.GPL included in the |
10 | ** packaging of this file. | 10 | ** packaging of this file. |
11 | ** | 11 | ** |
12 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE | 12 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE |
13 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. | 13 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. |
14 | ** | 14 | ** |
15 | ** See http://www.trolltech.com/gpl/ for GPL licensing information. | 15 | ** See http://www.trolltech.com/gpl/ for GPL licensing information. |
16 | ** | 16 | ** |
17 | ** Contact info@trolltech.com if any conditions of this licensing are | 17 | ** Contact info@trolltech.com if any conditions of this licensing are |
18 | ** not clear to you. | 18 | ** not clear to you. |
19 | ** | 19 | ** |
20 | **********************************************************************/ | 20 | **********************************************************************/ |
21 | 21 | ||
22 | // WARNING: Do *NOT* define this yourself. The SL5xxx from SHARP does NOT | 22 | // WARNING: Do *NOT* define this yourself. The SL5xxx from SHARP does NOT |
23 | // have this class. | 23 | // have this class. |
24 | #define QTOPIA_INTERNAL_FSLP | 24 | #define QTOPIA_INTERNAL_FSLP |
25 | 25 | ||
26 | #include <opie/oconfig.h> | 26 | #include <qpe/config.h> |
27 | #include <qpe/qcopenvelope_qws.h> | 27 | #include <qpe/qcopenvelope_qws.h> |
28 | #include <qpe/resource.h> | 28 | #include <qpe/resource.h> |
29 | #include <qpe/applnk.h> | 29 | #include <qpe/applnk.h> |
30 | #include <qpe/config.h> | 30 | #include <qpe/config.h> |
31 | #include <qpe/global.h> | 31 | #include <qpe/global.h> |
32 | #include <qpe/qpeapplication.h> | 32 | #include <qpe/qpeapplication.h> |
33 | #include <qpe/mimetype.h> | 33 | #include <qpe/mimetype.h> |
34 | #include <qpe/storage.h> | 34 | #include <qpe/storage.h> |
35 | #include <qpe/palmtoprecord.h> | 35 | #include <qpe/palmtoprecord.h> |
36 | 36 | ||
37 | #include <qdatetime.h> | 37 | #include <qdatetime.h> |
38 | #include <qdir.h> | 38 | #include <qdir.h> |
39 | #include <qwindowsystem_qws.h> | 39 | #include <qwindowsystem_qws.h> |
40 | #include <qtimer.h> | 40 | #include <qtimer.h> |
41 | #include <qcombobox.h> | 41 | #include <qcombobox.h> |
42 | #include <qvbox.h> | 42 | #include <qvbox.h> |
43 | #include <qlayout.h> | 43 | #include <qlayout.h> |
44 | #include <qstyle.h> | 44 | #include <qstyle.h> |
45 | #include <qpushbutton.h> | 45 | #include <qpushbutton.h> |
46 | #include <qtabbar.h> | 46 | #include <qtabbar.h> |
47 | #include <qwidgetstack.h> | 47 | #include <qwidgetstack.h> |
48 | #include <qlayout.h> | 48 | #include <qlayout.h> |
49 | #include <qregexp.h> | 49 | #include <qregexp.h> |
50 | #include <qmessagebox.h> | 50 | #include <qmessagebox.h> |
51 | #include <qframe.h> | 51 | #include <qframe.h> |
52 | #include <qpainter.h> | 52 | #include <qpainter.h> |
53 | #include <qlabel.h> | 53 | #include <qlabel.h> |
54 | #include <qtextstream.h> | 54 | #include <qtextstream.h> |
55 | 55 | ||
56 | #include "launcherview.h" | 56 | #include "launcherview.h" |
57 | #include "launcher.h" | 57 | #include "launcher.h" |
58 | #include "syncdialog.h" | 58 | #include "syncdialog.h" |
59 | #include "desktop.h" | 59 | #include "desktop.h" |
60 | #include <qpe/lnkproperties.h> | 60 | #include <qpe/lnkproperties.h> |
61 | #include "mrulist.h" | 61 | #include "mrulist.h" |
62 | #include "qrsync.h" | 62 | #include "qrsync.h" |
63 | #include <stdlib.h> | 63 | #include <stdlib.h> |
64 | #include <unistd.h> | 64 | #include <unistd.h> |
65 | 65 | ||
66 | #if defined(_OS_LINUX_) || defined(Q_OS_LINUX) | 66 | #if defined(_OS_LINUX_) || defined(Q_OS_LINUX) |
67 | #include <stdio.h> | 67 | #include <stdio.h> |
68 | #include <sys/vfs.h> | 68 | #include <sys/vfs.h> |
69 | #include <mntent.h> | 69 | #include <mntent.h> |
70 | #endif | 70 | #endif |
71 | 71 | ||
72 | #include <qpe/storage.h> | 72 | #include <qpe/storage.h> |
73 | #include "mediummountgui.h" | 73 | #include "mediummountgui.h" |
74 | //#define SHOW_ALL | 74 | //#define SHOW_ALL |
75 | 75 | ||
76 | // uidGen | 76 | // uidGen |
77 | 77 | ||
78 | // uidGen | 78 | // uidGen |
79 | namespace { | 79 | namespace { |
80 | QStringList configToMime( Config *cfg ){ | 80 | QStringList configToMime( Config *cfg ){ |
81 | QStringList mimes; | 81 | QStringList mimes; |
82 | bool tmpMime = true; | 82 | bool tmpMime = true; |
83 | cfg->setGroup("mimetypes" ); | 83 | cfg->setGroup("mimetypes" ); |
84 | tmpMime = cfg->readBoolEntry("all" ,true); | 84 | tmpMime = cfg->readBoolEntry("all" ,true); |
85 | if( tmpMime ){ | 85 | if( tmpMime ){ |
86 | mimes << QString::null; | 86 | mimes << QString::null; |
87 | return mimes; | 87 | return mimes; |
88 | }else{ | 88 | }else{ |
89 | tmpMime = cfg->readBoolEntry("audio", true ); | 89 | tmpMime = cfg->readBoolEntry("audio", true ); |
90 | if(tmpMime ) | 90 | if(tmpMime ) |
91 | mimes.append("audio/*" ); | 91 | mimes.append("audio/*" ); |
92 | 92 | ||
93 | tmpMime = cfg->readBoolEntry("image", true ); | 93 | tmpMime = cfg->readBoolEntry("image", true ); |
94 | if(tmpMime ) | 94 | if(tmpMime ) |
95 | mimes.append("image/*" ); | 95 | mimes.append("image/*" ); |
96 | 96 | ||
97 | tmpMime = cfg->readBoolEntry("text", true ); | 97 | tmpMime = cfg->readBoolEntry("text", true ); |
98 | if(tmpMime ) | 98 | if(tmpMime ) |
99 | mimes.append("text/*"); | 99 | mimes.append("text/*"); |
100 | 100 | ||
101 | tmpMime = cfg->readBoolEntry("video", true ); | 101 | tmpMime = cfg->readBoolEntry("video", true ); |
102 | if(tmpMime ) | 102 | if(tmpMime ) |
103 | mimes.append("video/*" ); | 103 | mimes.append("video/*" ); |
104 | } | 104 | } |
105 | return mimes; | 105 | return mimes; |
106 | } | 106 | } |
107 | 107 | ||
108 | } | 108 | } |
109 | 109 | ||
110 | 110 | ||
111 | CategoryTabWidget::CategoryTabWidget( QWidget* parent ) : | 111 | CategoryTabWidget::CategoryTabWidget( QWidget* parent ) : |
112 | QVBox( parent ) | 112 | QVBox( parent ) |
113 | { | 113 | { |
114 | categoryBar = 0; | 114 | categoryBar = 0; |
115 | stack = 0; | 115 | stack = 0; |
116 | } | 116 | } |
117 | 117 | ||
118 | void CategoryTabWidget::prevTab() | 118 | void CategoryTabWidget::prevTab() |
119 | { | 119 | { |
120 | if ( categoryBar ) { | 120 | if ( categoryBar ) { |
121 | int n = categoryBar->count(); | 121 | int n = categoryBar->count(); |
122 | int tab = categoryBar->currentTab(); | 122 | int tab = categoryBar->currentTab(); |
123 | if ( tab >= 0 ) | 123 | if ( tab >= 0 ) |
124 | categoryBar->setCurrentTab( (tab - 1 + n)%n ); | 124 | categoryBar->setCurrentTab( (tab - 1 + n)%n ); |
125 | } | 125 | } |
126 | } | 126 | } |
127 | 127 | ||
128 | void CategoryTabWidget::nextTab() | 128 | void CategoryTabWidget::nextTab() |
129 | { | 129 | { |
130 | if ( categoryBar ) { | 130 | if ( categoryBar ) { |
131 | int n = categoryBar->count(); | 131 | int n = categoryBar->count(); |
132 | int tab = categoryBar->currentTab(); | 132 | int tab = categoryBar->currentTab(); |
133 | categoryBar->setCurrentTab( (tab + 1)%n ); | 133 | categoryBar->setCurrentTab( (tab + 1)%n ); |
134 | } | 134 | } |
135 | } | 135 | } |
136 | 136 | ||
137 | void CategoryTabWidget::addItem( const QString& linkfile ) | 137 | void CategoryTabWidget::addItem( const QString& linkfile ) |
138 | { | 138 | { |
139 | int i=0; | 139 | int i=0; |
140 | AppLnk *app = new AppLnk(linkfile); | 140 | AppLnk *app = new AppLnk(linkfile); |
141 | if ( !app->isValid() ) { | 141 | if ( !app->isValid() ) { |
142 | delete app; | 142 | delete app; |
143 | return; | 143 | return; |
144 | } | 144 | } |
145 | if ( !app->file().isEmpty() ) { | 145 | if ( !app->file().isEmpty() ) { |
146 | // A document | 146 | // A document |
147 | delete app; | 147 | delete app; |
148 | app = new DocLnk(linkfile); | 148 | app = new DocLnk(linkfile); |
149 | ((LauncherView*)(stack->widget(ids.count()-1)))->addItem(app); | 149 | ((LauncherView*)(stack->widget(ids.count()-1)))->addItem(app); |
150 | return; | 150 | return; |
151 | } | 151 | } |
152 | for ( QStringList::Iterator it=ids.begin(); it!=ids.end(); ++it) { | 152 | for ( QStringList::Iterator it=ids.begin(); it!=ids.end(); ++it) { |
153 | if ( !(*it).isEmpty() ) { | 153 | if ( !(*it).isEmpty() ) { |
154 | QRegExp tf(*it,FALSE,TRUE); | 154 | QRegExp tf(*it,FALSE,TRUE); |
diff --git a/core/launcher/launcher.pro b/core/launcher/launcher.pro index f94f338..c77da50 100644 --- a/core/launcher/launcher.pro +++ b/core/launcher/launcher.pro | |||
@@ -1,123 +1,123 @@ | |||
1 | TEMPLATE= app | 1 | TEMPLATE= app |
2 | 2 | ||
3 | CONFIG = qt warn_on release | 3 | CONFIG = qt warn_on release |
4 | 4 | ||
5 | DESTDIR = $(OPIEDIR)/bin | 5 | DESTDIR = $(OPIEDIR)/bin |
6 | 6 | ||
7 | HEADERS = background.h \ | 7 | HEADERS = background.h \ |
8 | desktop.h \ | 8 | desktop.h \ |
9 | qprocess.h \ | 9 | qprocess.h \ |
10 | mediummountgui.h \ | 10 | mediummountgui.h \ |
11 | info.h \ | 11 | info.h \ |
12 | appicons.h \ | 12 | appicons.h \ |
13 | taskbar.h \ | 13 | taskbar.h \ |
14 | sidething.h \ | 14 | sidething.h \ |
15 | mrulist.h \ | 15 | mrulist.h \ |
16 | stabmon.h \ | 16 | stabmon.h \ |
17 | inputmethods.h \ | 17 | inputmethods.h \ |
18 | systray.h \ | 18 | systray.h \ |
19 | wait.h \ | 19 | wait.h \ |
20 | shutdownimpl.h \ | 20 | shutdownimpl.h \ |
21 | launcher.h \ | 21 | launcher.h \ |
22 | launcherview.h \ | 22 | launcherview.h \ |
23 | ../calibrate/calibrate.h \ | 23 | ../calibrate/calibrate.h \ |
24 | startmenu.h \ | 24 | startmenu.h \ |
25 | transferserver.h \ | 25 | transferserver.h \ |
26 | qcopbridge.h \ | 26 | qcopbridge.h \ |
27 | packageslave.h \ | 27 | packageslave.h \ |
28 | irserver.h \ | 28 | irserver.h \ |
29 | $(OPIEDIR)/rsync/buf.h \ | 29 | $(OPIEDIR)/rsync/buf.h \ |
30 | $(OPIEDIR)/rsync/checksum.h \ | 30 | $(OPIEDIR)/rsync/checksum.h \ |
31 | $(OPIEDIR)/rsync/command.h \ | 31 | $(OPIEDIR)/rsync/command.h \ |
32 | $(OPIEDIR)/rsync/emit.h \ | 32 | $(OPIEDIR)/rsync/emit.h \ |
33 | $(OPIEDIR)/rsync/job.h \ | 33 | $(OPIEDIR)/rsync/job.h \ |
34 | $(OPIEDIR)/rsync/netint.h \ | 34 | $(OPIEDIR)/rsync/netint.h \ |
35 | $(OPIEDIR)/rsync/protocol.h \ | 35 | $(OPIEDIR)/rsync/protocol.h \ |
36 | $(OPIEDIR)/rsync/prototab.h \ | 36 | $(OPIEDIR)/rsync/prototab.h \ |
37 | $(OPIEDIR)/rsync/rsync.h \ | 37 | $(OPIEDIR)/rsync/rsync.h \ |
38 | $(OPIEDIR)/rsync/search.h \ | 38 | $(OPIEDIR)/rsync/search.h \ |
39 | $(OPIEDIR)/rsync/stream.h \ | 39 | $(OPIEDIR)/rsync/stream.h \ |
40 | $(OPIEDIR)/rsync/sumset.h \ | 40 | $(OPIEDIR)/rsync/sumset.h \ |
41 | $(OPIEDIR)/rsync/trace.h \ | 41 | $(OPIEDIR)/rsync/trace.h \ |
42 | $(OPIEDIR)/rsync/types.h \ | 42 | $(OPIEDIR)/rsync/types.h \ |
43 | $(OPIEDIR)/rsync/util.h \ | 43 | $(OPIEDIR)/rsync/util.h \ |
44 | $(OPIEDIR)/rsync/whole.h \ | 44 | $(OPIEDIR)/rsync/whole.h \ |
45 | $(OPIEDIR)/rsync/config_rsync.h \ | 45 | $(OPIEDIR)/rsync/config_rsync.h \ |
46 | $(OPIEDIR)/rsync/qrsync.h | 46 | $(OPIEDIR)/rsync/qrsync.h |
47 | # quicklauncher.h \ | 47 | # quicklauncher.h \ |
48 | 48 | ||
49 | SOURCES = background.cpp \ | 49 | SOURCES = background.cpp \ |
50 | desktop.cpp \ | 50 | desktop.cpp \ |
51 | mediummountgui.cpp \ | 51 | mediummountgui.cpp \ |
52 | qprocess.cpp qprocess_unix.cpp \ | 52 | qprocess.cpp qprocess_unix.cpp \ |
53 | info.cpp \ | 53 | info.cpp \ |
54 | appicons.cpp \ | 54 | appicons.cpp \ |
55 | taskbar.cpp \ | 55 | taskbar.cpp \ |
56 | sidething.cpp \ | 56 | sidething.cpp \ |
57 | mrulist.cpp \ | 57 | mrulist.cpp \ |
58 | stabmon.cpp \ | 58 | stabmon.cpp \ |
59 | inputmethods.cpp \ | 59 | inputmethods.cpp \ |
60 | systray.cpp \ | 60 | systray.cpp \ |
61 | wait.cpp \ | 61 | wait.cpp \ |
62 | shutdownimpl.cpp \ | 62 | shutdownimpl.cpp \ |
63 | launcher.cpp \ | 63 | launcher.cpp \ |
64 | launcherview.cpp \ | 64 | launcherview.cpp \ |
65 | $(OPIEDIR)/calibrate/calibrate.cpp \ | 65 | $(OPIEDIR)/calibrate/calibrate.cpp \ |
66 | transferserver.cpp \ | 66 | transferserver.cpp \ |
67 | packageslave.cpp \ | 67 | packageslave.cpp \ |
68 | irserver.cpp \ | 68 | irserver.cpp \ |
69 | qcopbridge.cpp \ | 69 | qcopbridge.cpp \ |
70 | startmenu.cpp \ | 70 | startmenu.cpp \ |
71 | main.cpp \ | 71 | main.cpp \ |
72 | $(OPIEDIR)/rsync/base64.c \ | 72 | $(OPIEDIR)/rsync/base64.c \ |
73 | $(OPIEDIR)/rsync/buf.c \ | 73 | $(OPIEDIR)/rsync/buf.c \ |
74 | $(OPIEDIR)/rsync/checksum.c \ | 74 | $(OPIEDIR)/rsync/checksum.c \ |
75 | $(OPIEDIR)/rsync/command.c \ | 75 | $(OPIEDIR)/rsync/command.c \ |
76 | $(OPIEDIR)/rsync/delta.c \ | 76 | $(OPIEDIR)/rsync/delta.c \ |
77 | $(OPIEDIR)/rsync/emit.c \ | 77 | $(OPIEDIR)/rsync/emit.c \ |
78 | $(OPIEDIR)/rsync/hex.c \ | 78 | $(OPIEDIR)/rsync/hex.c \ |
79 | $(OPIEDIR)/rsync/job.c \ | 79 | $(OPIEDIR)/rsync/job.c \ |
80 | $(OPIEDIR)/rsync/mdfour.c \ | 80 | $(OPIEDIR)/rsync/mdfour.c \ |
81 | $(OPIEDIR)/rsync/mksum.c \ | 81 | $(OPIEDIR)/rsync/mksum.c \ |
82 | $(OPIEDIR)/rsync/msg.c \ | 82 | $(OPIEDIR)/rsync/msg.c \ |
83 | $(OPIEDIR)/rsync/netint.c \ | 83 | $(OPIEDIR)/rsync/netint.c \ |
84 | $(OPIEDIR)/rsync/patch.c \ | 84 | $(OPIEDIR)/rsync/patch.c \ |
85 | $(OPIEDIR)/rsync/prototab.c \ | 85 | $(OPIEDIR)/rsync/prototab.c \ |
86 | $(OPIEDIR)/rsync/readsums.c \ | 86 | $(OPIEDIR)/rsync/readsums.c \ |
87 | $(OPIEDIR)/rsync/scoop.c \ | 87 | $(OPIEDIR)/rsync/scoop.c \ |
88 | $(OPIEDIR)/rsync/search.c \ | 88 | $(OPIEDIR)/rsync/search.c \ |
89 | $(OPIEDIR)/rsync/stats.c \ | 89 | $(OPIEDIR)/rsync/stats.c \ |
90 | $(OPIEDIR)/rsync/stream.c \ | 90 | $(OPIEDIR)/rsync/stream.c \ |
91 | $(OPIEDIR)/rsync/sumset.c \ | 91 | $(OPIEDIR)/rsync/sumset.c \ |
92 | $(OPIEDIR)/rsync/trace.c \ | 92 | $(OPIEDIR)/rsync/trace.c \ |
93 | $(OPIEDIR)/rsync/tube.c \ | 93 | $(OPIEDIR)/rsync/tube.c \ |
94 | $(OPIEDIR)/rsync/util.c \ | 94 | $(OPIEDIR)/rsync/util.c \ |
95 | $(OPIEDIR)/rsync/version.c \ | 95 | $(OPIEDIR)/rsync/version.c \ |
96 | $(OPIEDIR)/rsync/whole.c \ | 96 | $(OPIEDIR)/rsync/whole.c \ |
97 | $(OPIEDIR)/rsync/qrsync.cpp | 97 | $(OPIEDIR)/rsync/qrsync.cpp |
98 | 98 | ||
99 | INTERFACES= shutdown.ui syncdialog.ui | 99 | INTERFACES= shutdown.ui syncdialog.ui |
100 | 100 | ||
101 | INCLUDEPATH += $(OPIEDIR)/include | 101 | INCLUDEPATH += $(OPIEDIR)/include |
102 | DEPENDPATH+= $(OPIEDIR)/include . | 102 | DEPENDPATH+= $(OPIEDIR)/include . |
103 | 103 | ||
104 | INCLUDEPATH += $(OPIEDIR)/calibrate | 104 | INCLUDEPATH += $(OPIEDIR)/calibrate |
105 | DEPENDPATH+= $(OPIEDIR)/calibrate | 105 | DEPENDPATH+= $(OPIEDIR)/calibrate |
106 | 106 | ||
107 | INCLUDEPATH += $(OPIEDIR)/rsync | 107 | INCLUDEPATH += $(OPIEDIR)/rsync |
108 | DEPENDPATH+= $(OPIEDIR)/rsync | 108 | DEPENDPATH+= $(OPIEDIR)/rsync |
109 | 109 | ||
110 | TARGET = qpe | 110 | TARGET = qpe |
111 | 111 | ||
112 | LIBS += -lqpe -lcrypt -lopie | 112 | LIBS += -lqpe -lcrypt |
113 | 113 | ||
114 | TRANSLATIONS = ../i18n/de/qpe.ts | 114 | TRANSLATIONS = ../i18n/de/qpe.ts |
115 | TRANSLATIONS += ../i18n/pt_BR/qpe.ts | 115 | TRANSLATIONS += ../i18n/pt_BR/qpe.ts |
116 | TRANSLATIONS += ../i18n/en/qpe.ts | 116 | TRANSLATIONS += ../i18n/en/qpe.ts |
117 | TRANSLATIONS += ../i18n/hu/qpe.ts | 117 | TRANSLATIONS += ../i18n/hu/qpe.ts |
118 | TRANSLATIONS += ../i18n/ja/qpe.ts | 118 | TRANSLATIONS += ../i18n/ja/qpe.ts |
119 | TRANSLATIONS += ../i18n/fr/qpe.ts | 119 | TRANSLATIONS += ../i18n/fr/qpe.ts |
120 | TRANSLATIONS += ../i18n/ko/qpe.ts | 120 | TRANSLATIONS += ../i18n/ko/qpe.ts |
121 | TRANSLATIONS += ../i18n/no/qpe.ts | 121 | TRANSLATIONS += ../i18n/no/qpe.ts |
122 | TRANSLATIONS += ../i18n/zh_CN/qpe.ts | 122 | TRANSLATIONS += ../i18n/zh_CN/qpe.ts |
123 | TRANSLATIONS += ../i18n/zh_TW/qpe.ts | 123 | TRANSLATIONS += ../i18n/zh_TW/qpe.ts |