summaryrefslogtreecommitdiffabout
path: root/pwmanager
authorzautrix <zautrix>2004-10-23 06:49:54 (UTC)
committer zautrix <zautrix>2004-10-23 06:49:54 (UTC)
commit65989e4ab454f228fb6cd2fa532145ed54366701 (patch) (unidiff)
treea93a8cd6ef806dd5b6c38e8792a6e007b9e5e413 /pwmanager
parent0f0dc54f0edc8c4ec5b320118c82fa5150591fed (diff)
downloadkdepimpi-65989e4ab454f228fb6cd2fa532145ed54366701.zip
kdepimpi-65989e4ab454f228fb6cd2fa532145ed54366701.tar.gz
kdepimpi-65989e4ab454f228fb6cd2fa532145ed54366701.tar.bz2
statusmessage added topwm.fixed initialization problem.changed sring in translation
Diffstat (limited to 'pwmanager') (more/less context) (ignore whitespace changes)
-rw-r--r--pwmanager/pwmanager/pwm.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/pwmanager/pwmanager/pwm.cpp b/pwmanager/pwmanager/pwm.cpp
index ac0c978..9798e8e 100644
--- a/pwmanager/pwmanager/pwm.cpp
+++ b/pwmanager/pwmanager/pwm.cpp
@@ -1,231 +1,237 @@
1/*************************************************************************** 1/***************************************************************************
2 * * 2 * *
3 * copyright (C) 2003, 2004 by Michael Buesch * 3 * copyright (C) 2003, 2004 by Michael Buesch *
4 * email: mbuesch@freenet.de * 4 * email: mbuesch@freenet.de *
5 * * 5 * *
6 * This program is free software; you can redistribute it and/or modify * 6 * This program is free software; you can redistribute it and/or modify *
7 * it under the terms of the GNU General Public License version 2 * 7 * it under the terms of the GNU General Public License version 2 *
8 * as published by the Free Software Foundation. * 8 * as published by the Free Software Foundation. *
9 * * 9 * *
10 ***************************************************************************/ 10 ***************************************************************************/
11 11
12/*************************************************************************** 12/***************************************************************************
13 * copyright (C) 2004 by Ulf Schenk 13 * copyright (C) 2004 by Ulf Schenk
14 * This file is originaly based on version 1.0.1 of pwmanager 14 * This file is originaly based on version 1.0.1 of pwmanager
15 * and was modified to run on embedded devices that run microkde 15 * and was modified to run on embedded devices that run microkde
16 * 16 *
17 * $Id$ 17 * $Id$
18 **************************************************************************/ 18 **************************************************************************/
19 19
20#include <klocale.h> 20#include <klocale.h>
21#include <klistview.h> 21#include <klistview.h>
22#include <ktoolbar.h> 22#include <ktoolbar.h>
23#include <kfiledialog.h> 23#include <kfiledialog.h>
24#include <kiconloader.h> 24#include <kiconloader.h>
25#include <kmessagebox.h> 25#include <kmessagebox.h>
26 26
27#ifndef PWM_EMBEDDED 27#ifndef PWM_EMBEDDED
28#include <kmenubar.h> 28#include <kmenubar.h>
29#include <kstatusbar.h> 29#include <kstatusbar.h>
30#include <dcopclient.h> 30#include <dcopclient.h>
31#include "configwndimpl.h" 31#include "configwndimpl.h"
32#include "configuration.h" 32#include "configuration.h"
33#else 33#else
34#include <qmenubar.h> 34#include <qmenubar.h>
35#include <qmessagebox.h> 35#include <qmessagebox.h>
36#include <pwmprefs.h> 36#include <pwmprefs.h>
37#include <kpimglobalprefs.h> 37#include <kpimglobalprefs.h>
38#include <kcmconfigs/kcmpwmconfig.h> 38#include <kcmconfigs/kcmpwmconfig.h>
39#include <kcmconfigs/kcmkdepimconfig.h> 39#include <kcmconfigs/kcmkdepimconfig.h>
40#include <kcmultidialog.h> 40#include <kcmultidialog.h>
41#endif 41#endif
42 42
43
44#ifndef DESKTOP_VERSION
45#include <qpe/global.h>
46#endif
47
43#include <qpixmap.h> 48#include <qpixmap.h>
44#include <qcheckbox.h> 49#include <qcheckbox.h>
45#include <qspinbox.h> 50#include <qspinbox.h>
46#include <qlineedit.h> 51#include <qlineedit.h>
47#include <qfileinfo.h> 52#include <qfileinfo.h>
48#include <qclipboard.h> 53#include <qclipboard.h>
49 54
50 55
51#include <stdio.h> 56#include <stdio.h>
52 57
53#include "pwm.h" 58#include "pwm.h"
54#include "pwminit.h" 59#include "pwminit.h"
55#include "pwmprint.h" 60#include "pwmprint.h"
56#include "addentrywndimpl.h" 61#include "addentrywndimpl.h"
57#include "globalstuff.h" 62#include "globalstuff.h"
58#include "findwndimpl.h" 63#include "findwndimpl.h"
59#include "csv.h" 64#include "csv.h"
60 65
61#ifdef CONFIG_KWALLETIF 66#ifdef CONFIG_KWALLETIF
62# include "kwalletif.h" 67# include "kwalletif.h"
63# include "kwalletemu.h" 68# include "kwalletemu.h"
64#endif 69#endif
65#ifdef CONFIG_KEYCARD 70#ifdef CONFIG_KEYCARD
66# include "pwmkeycard.h" 71# include "pwmkeycard.h"
67#endif 72#endif
68 73
69 74
70 #define DEFAULT_SIZE (QSize(700, 400)) 75 #define DEFAULT_SIZE (QSize(700, 400))
71 76
72// Button IDs for "file" popup menu 77// Button IDs for "file" popup menu
73enum { 78enum {
74 BUTTON_POPUP_FILE_NEW = 0, 79 BUTTON_POPUP_FILE_NEW = 0,
75 BUTTON_POPUP_FILE_OPEN, 80 BUTTON_POPUP_FILE_OPEN,
76 BUTTON_POPUP_FILE_CLOSE, 81 BUTTON_POPUP_FILE_CLOSE,
77 BUTTON_POPUP_FILE_SAVE, 82 BUTTON_POPUP_FILE_SAVE,
78 BUTTON_POPUP_FILE_SAVEAS, 83 BUTTON_POPUP_FILE_SAVEAS,
79 BUTTON_POPUP_FILE_EXPORT, 84 BUTTON_POPUP_FILE_EXPORT,
80 BUTTON_POPUP_FILE_IMPORT, 85 BUTTON_POPUP_FILE_IMPORT,
81 BUTTON_POPUP_FILE_PRINT, 86 BUTTON_POPUP_FILE_PRINT,
82 BUTTON_POPUP_FILE_QUIT 87 BUTTON_POPUP_FILE_QUIT
83}; 88};
84// Button IDs for "manage" popup menu 89// Button IDs for "manage" popup menu
85enum { 90enum {
86 BUTTON_POPUP_MANAGE_ADD = 0, 91 BUTTON_POPUP_MANAGE_ADD = 0,
87 BUTTON_POPUP_MANAGE_EDIT, 92 BUTTON_POPUP_MANAGE_EDIT,
88 BUTTON_POPUP_MANAGE_DEL, 93 BUTTON_POPUP_MANAGE_DEL,
89 BUTTON_POPUP_MANAGE_CHANGEMP 94 BUTTON_POPUP_MANAGE_CHANGEMP
90}; 95};
91// Button IDs for chipcard popup menu 96// Button IDs for chipcard popup menu
92enum { 97enum {
93#ifdef CONFIG_KEYCARD 98#ifdef CONFIG_KEYCARD
94 BUTTON_POPUP_CHIPCARD_GENNEW = 0, 99 BUTTON_POPUP_CHIPCARD_GENNEW = 0,
95 BUTTON_POPUP_CHIPCARD_DEL, 100 BUTTON_POPUP_CHIPCARD_DEL,
96 BUTTON_POPUP_CHIPCARD_READID, 101 BUTTON_POPUP_CHIPCARD_READID,
97 BUTTON_POPUP_CHIPCARD_SAVEBACKUP, 102 BUTTON_POPUP_CHIPCARD_SAVEBACKUP,
98 BUTTON_POPUP_CHIPCARD_REPLAYBACKUP 103 BUTTON_POPUP_CHIPCARD_REPLAYBACKUP
99#else // CONFIG_KEYCARD 104#else // CONFIG_KEYCARD
100 BUTTON_POPUP_CHIPCARD_NO = 0 105 BUTTON_POPUP_CHIPCARD_NO = 0
101#endif // CONFIG_KEYCARD 106#endif // CONFIG_KEYCARD
102}; 107};
103// Button IDs for "view" popup menu 108// Button IDs for "view" popup menu
104enum { 109enum {
105 BUTTON_POPUP_VIEW_FIND = 0, 110 BUTTON_POPUP_VIEW_FIND = 0,
106 BUTTON_POPUP_VIEW_LOCK, 111 BUTTON_POPUP_VIEW_LOCK,
107 BUTTON_POPUP_VIEW_DEEPLOCK, 112 BUTTON_POPUP_VIEW_DEEPLOCK,
108 BUTTON_POPUP_VIEW_UNLOCK 113 BUTTON_POPUP_VIEW_UNLOCK
109}; 114};
110// Button IDs for "options" popup menu 115// Button IDs for "options" popup menu
111enum { 116enum {
112 BUTTON_POPUP_OPTIONS_CONFIG = 0 117 BUTTON_POPUP_OPTIONS_CONFIG = 0
113}; 118};
114// Button IDs for "export" popup menu (in "file" popup menu) 119// Button IDs for "export" popup menu (in "file" popup menu)
115enum { 120enum {
116 BUTTON_POPUP_EXPORT_TEXT = 0, 121 BUTTON_POPUP_EXPORT_TEXT = 0,
117 BUTTON_POPUP_EXPORT_GPASMAN, 122 BUTTON_POPUP_EXPORT_GPASMAN,
118 BUTTON_POPUP_EXPORT_CSV 123 BUTTON_POPUP_EXPORT_CSV
119#ifdef CONFIG_KWALLETIF 124#ifdef CONFIG_KWALLETIF
120 ,BUTTON_POPUP_EXPORT_KWALLET 125 ,BUTTON_POPUP_EXPORT_KWALLET
121#endif 126#endif
122}; 127};
123// Button IDs for "import" popup menu (in "file" popup menu) 128// Button IDs for "import" popup menu (in "file" popup menu)
124enum { 129enum {
125 BUTTON_POPUP_IMPORT_TEXT = 0, 130 BUTTON_POPUP_IMPORT_TEXT = 0,
126 BUTTON_POPUP_IMPORT_GPASMAN, 131 BUTTON_POPUP_IMPORT_GPASMAN,
127 BUTTON_POPUP_IMPORT_CSV 132 BUTTON_POPUP_IMPORT_CSV
128#ifdef CONFIG_KWALLETIF 133#ifdef CONFIG_KWALLETIF
129 ,BUTTON_POPUP_IMPORT_KWALLET 134 ,BUTTON_POPUP_IMPORT_KWALLET
130#endif 135#endif
131}; 136};
132 137
133#ifdef PWM_EMBEDDED 138#ifdef PWM_EMBEDDED
134// Button IDs for "help" popup menu 139// Button IDs for "help" popup menu
135enum { 140enum {
136 BUTTON_POPUP_HELP_LICENSE = 0, 141 BUTTON_POPUP_HELP_LICENSE = 0,
137 BUTTON_POPUP_HELP_FAQ, 142 BUTTON_POPUP_HELP_FAQ,
138 BUTTON_POPUP_HELP_ABOUT, 143 BUTTON_POPUP_HELP_ABOUT,
139 BUTTON_POPUP_HELP_SYNC, 144 BUTTON_POPUP_HELP_SYNC,
140 BUTTON_POPUP_HELP_WHATSNEW 145 BUTTON_POPUP_HELP_WHATSNEW
141}; 146};
142#endif 147#endif
143 148
144// Button IDs for toolbar 149// Button IDs for toolbar
145enum { 150enum {
146 BUTTON_TOOL_NEW = 0, 151 BUTTON_TOOL_NEW = 0,
147 BUTTON_TOOL_OPEN, 152 BUTTON_TOOL_OPEN,
148 BUTTON_TOOL_SAVE, 153 BUTTON_TOOL_SAVE,
149 BUTTON_TOOL_SAVEAS, 154 BUTTON_TOOL_SAVEAS,
150 BUTTON_TOOL_PRINT, 155 BUTTON_TOOL_PRINT,
151 BUTTON_TOOL_ADD, 156 BUTTON_TOOL_ADD,
152 BUTTON_TOOL_EDIT, 157 BUTTON_TOOL_EDIT,
153 BUTTON_TOOL_DEL, 158 BUTTON_TOOL_DEL,
154 BUTTON_TOOL_FIND, 159 BUTTON_TOOL_FIND,
155 BUTTON_TOOL_LOCK, 160 BUTTON_TOOL_LOCK,
156 BUTTON_TOOL_DEEPLOCK, 161 BUTTON_TOOL_DEEPLOCK,
157 BUTTON_TOOL_UNLOCK 162 BUTTON_TOOL_UNLOCK
158}; 163};
159 164
160 165
161PwM::PwM(PwMInit *_init, PwMDoc *doc, 166PwM::PwM(PwMInit *_init, PwMDoc *doc,
162 bool virginity, 167 bool virginity,
163 QWidget *parent, const char *name) 168 QWidget *parent, const char *name)
164 : KMainWindow(parent, "HALLO") 169 : KMainWindow(parent, "HALLO")
165 , forceQuit (false) 170 , forceQuit (false)
166 , forceMinimizeToTray (false) 171 , forceMinimizeToTray (false)
167{ 172{
173 virgin = !virginity;
168 init = _init; 174 init = _init;
169 connect(doc, SIGNAL(docClosed(PwMDoc *)), 175 connect(doc, SIGNAL(docClosed(PwMDoc *)),
170 this, SLOT(docClosed(PwMDoc *))); 176 this, SLOT(docClosed(PwMDoc *)));
171 initMenubar(); 177 initMenubar();
172 initToolbar(); 178 initToolbar();
173 initMetrics(); 179 initMetrics();
174 setVirgin(virginity); 180 setVirgin(virginity);
175 setFocusPolicy(QWidget::WheelFocus); 181 setFocusPolicy(QWidget::WheelFocus);
176#ifndef PWM_EMBEDDED 182#ifndef PWM_EMBEDDED
177 statusBar()->show(); 183 statusBar()->show();
178#endif 184#endif
179 view = makeNewListView(doc); 185 view = makeNewListView(doc);
180 setCentralWidget(view); 186 setCentralWidget(view);
181 updateCaption(); 187 updateCaption();
182 showStatMsg(i18n("Ready.")); 188 showStatMsg(i18n("Ready."));
183} 189}
184 190
185PwM::~PwM() 191PwM::~PwM()
186{ 192{
187 //qDebug("PwM::~PwM()"); 193 //qDebug("PwM::~PwM()");
188 disconnect(curDoc(), SIGNAL(docClosed(PwMDoc *)), 194 disconnect(curDoc(), SIGNAL(docClosed(PwMDoc *)),
189 this, SLOT(docClosed(PwMDoc *))); 195 this, SLOT(docClosed(PwMDoc *)));
190 conf()->confWndMainWndSize(size()); 196 conf()->confWndMainWndSize(size());
191 emit closed(this); 197 emit closed(this);
192 //qDebug("PwM::~PwM() emited closed(this)"); 198 //qDebug("PwM::~PwM() emited closed(this)");
193 delete view; 199 delete view;
194} 200}
195 201
196void PwM::initMenubar() 202void PwM::initMenubar()
197{ 203{
198 KIconLoader* picons; 204 KIconLoader* picons;
199#ifndef PWM_EMBEDDED 205#ifndef PWM_EMBEDDED
200 KIconLoader icons; 206 KIconLoader icons;
201 picons = &icons; 207 picons = &icons;
202#else 208#else
203 picons = KGlobal::iconLoader(); 209 picons = KGlobal::iconLoader();
204 210
205 211
206 syncPopup = new KPopupMenu(this); 212 syncPopup = new KPopupMenu(this);
207 213
208 syncManager = new KSyncManager((QWidget*)this, (KSyncInterface*)this, KSyncManager::PWMPI, PWMPrefs::instance(), syncPopup); 214 syncManager = new KSyncManager((QWidget*)this, (KSyncInterface*)this, KSyncManager::PWMPI, PWMPrefs::instance(), syncPopup);
209 syncManager->setBlockSave(false); 215 syncManager->setBlockSave(false);
210 216
211 connect ( syncPopup, SIGNAL( activated ( int ) ), syncManager, SLOT (slotSyncMenu( int ) ) ); 217 connect ( syncPopup, SIGNAL( activated ( int ) ), syncManager, SLOT (slotSyncMenu( int ) ) );
212 syncManager->fillSyncMenu(); 218 syncManager->fillSyncMenu();
213 219
214#endif 220#endif
215 filePopup = new KPopupMenu(this); 221 filePopup = new KPopupMenu(this);
216 importPopup = new KPopupMenu(filePopup); 222 importPopup = new KPopupMenu(filePopup);
217 exportPopup = new KPopupMenu(filePopup); 223 exportPopup = new KPopupMenu(filePopup);
218 managePopup = new KPopupMenu(this); 224 managePopup = new KPopupMenu(this);
219#ifdef CONFIG_KEYCARD 225#ifdef CONFIG_KEYCARD
220 chipcardPopup = new KPopupMenu(this); 226 chipcardPopup = new KPopupMenu(this);
221#endif // CONFIG_KEYCARD 227#endif // CONFIG_KEYCARD
222 viewPopup = new KPopupMenu(this); 228 viewPopup = new KPopupMenu(this);
223 optionsPopup = new KPopupMenu(this); 229 optionsPopup = new KPopupMenu(this);
224 230
225// "file" popup menu 231// "file" popup menu
226 filePopup->insertItem(QIconSet(picons->loadIcon("filenew", KIcon::Small)), 232 filePopup->insertItem(QIconSet(picons->loadIcon("filenew", KIcon::Small)),
227 i18n("&New"), this, 233 i18n("&New"), this,
228 SLOT(new_slot()), 0, BUTTON_POPUP_FILE_NEW); 234 SLOT(new_slot()), 0, BUTTON_POPUP_FILE_NEW);
229 filePopup->insertItem(QIconSet(picons->loadIcon("fileopen", KIcon::Small)), 235 filePopup->insertItem(QIconSet(picons->loadIcon("fileopen", KIcon::Small)),
230 i18n("&Open"), this, 236 i18n("&Open"), this,
231 SLOT(open_slot()), 0, BUTTON_POPUP_FILE_OPEN); 237 SLOT(open_slot()), 0, BUTTON_POPUP_FILE_OPEN);
@@ -1298,128 +1304,131 @@ void PwM::makeCardBackup_slot()
1298 init->keycard()->makeBackupImage(); 1304 init->keycard()->makeBackupImage();
1299#endif 1305#endif
1300} 1306}
1301 1307
1302void PwM::replayCardBackup_slot() 1308void PwM::replayCardBackup_slot()
1303{ 1309{
1304#ifdef CONFIG_KEYCARD 1310#ifdef CONFIG_KEYCARD
1305 init->keycard()->replayBackupImage(); 1311 init->keycard()->replayBackupImage();
1306#endif 1312#endif
1307} 1313}
1308 1314
1309void PwM::execLauncher_slot() 1315void PwM::execLauncher_slot()
1310{ 1316{
1311 PWM_ASSERT(curDoc()); 1317 PWM_ASSERT(curDoc());
1312 if (curDoc()->isDeepLocked()) 1318 if (curDoc()->isDeepLocked())
1313 return; 1319 return;
1314 unsigned int curEntryIndex; 1320 unsigned int curEntryIndex;
1315 if (!view->getCurEntryIndex(&curEntryIndex)) 1321 if (!view->getCurEntryIndex(&curEntryIndex))
1316 return; 1322 return;
1317 bool ret = curDoc()->execLauncher(view->getCurrentCategory(), 1323 bool ret = curDoc()->execLauncher(view->getCurrentCategory(),
1318 curEntryIndex); 1324 curEntryIndex);
1319 if (ret) 1325 if (ret)
1320 showStatMsg(i18n("Executed the \"Launcher\".")); 1326 showStatMsg(i18n("Executed the \"Launcher\"."));
1321 else 1327 else
1322 showStatMsg(i18n("ERROR: Couldn't execute the \"Launcher\"!")); 1328 showStatMsg(i18n("ERROR: Couldn't execute the \"Launcher\"!"));
1323} 1329}
1324 1330
1325void PwM::goToURL_slot() 1331void PwM::goToURL_slot()
1326{ 1332{
1327 PWM_ASSERT(curDoc()); 1333 PWM_ASSERT(curDoc());
1328 if (curDoc()->isDeepLocked()) 1334 if (curDoc()->isDeepLocked())
1329 return; 1335 return;
1330 unsigned int curEntryIndex; 1336 unsigned int curEntryIndex;
1331 if (!view->getCurEntryIndex(&curEntryIndex)) 1337 if (!view->getCurEntryIndex(&curEntryIndex))
1332 return; 1338 return;
1333 bool ret = curDoc()->goToURL(view->getCurrentCategory(), 1339 bool ret = curDoc()->goToURL(view->getCurrentCategory(),
1334 curEntryIndex); 1340 curEntryIndex);
1335 if (ret) 1341 if (ret)
1336 showStatMsg(i18n("started browser with current URL.")); 1342 showStatMsg(i18n("started browser with current URL."));
1337 else 1343 else
1338 showStatMsg(i18n("ERROR: Couldn't start browser! Maybe invalid URL?")); 1344 showStatMsg(i18n("ERROR: Couldn't start browser! Maybe invalid URL?"));
1339} 1345}
1340 1346
1341void PwM::copyToClipboard(const QString &s) 1347void PwM::copyToClipboard(const QString &s)
1342{ 1348{
1343 QClipboard *cb = QApplication::clipboard(); 1349 QClipboard *cb = QApplication::clipboard();
1344#ifndef PWM_EMBEDDED 1350#ifndef PWM_EMBEDDED
1345 if (cb->supportsSelection()) 1351 if (cb->supportsSelection())
1346 cb->setText(s, QClipboard::Selection); 1352 cb->setText(s, QClipboard::Selection);
1347 cb->setText(s, QClipboard::Clipboard); 1353 cb->setText(s, QClipboard::Clipboard);
1348#else 1354#else
1349 cb->setText(s); 1355 cb->setText(s);
1350 1356
1351#endif 1357#endif
1352 1358
1353} 1359}
1354 1360
1355void PwM::showStatMsg(const QString &msg) 1361void PwM::showStatMsg(const QString &msg)
1356{ 1362{
1357#ifndef PWM_EMBEDDED 1363#ifndef PWM_EMBEDDED
1358 KStatusBar *statBar = statusBar(); 1364 KStatusBar *statBar = statusBar();
1359 statBar->message(msg, STATUSBAR_MSG_TIMEOUT * 1000); 1365 statBar->message(msg, STATUSBAR_MSG_TIMEOUT * 1000);
1360#else 1366#else
1361 qDebug("Statusbar : %s",msg.latin1()); 1367 qDebug("Statusbar : %s",msg.latin1());
1368#ifndef DESKTOP_VERSION
1369 Global::statusMessage(msg);
1370#endif
1362#endif 1371#endif
1363} 1372}
1364 1373
1365void PwM::focusInEvent(QFocusEvent *e) 1374void PwM::focusInEvent(QFocusEvent *e)
1366{ 1375{
1367 if (e->gotFocus()) { 1376 if (e->gotFocus()) {
1368 emit gotFocus(this); 1377 emit gotFocus(this);
1369 } else if (e->lostFocus()) { 1378 } else if (e->lostFocus()) {
1370 emit lostFocus(this); 1379 emit lostFocus(this);
1371 } 1380 }
1372} 1381}
1373 1382
1374 1383
1375#ifdef PWM_EMBEDDED 1384#ifdef PWM_EMBEDDED
1376 1385
1377void PwM::whatsnew_slot() 1386void PwM::whatsnew_slot()
1378{ 1387{
1379 KApplication::showFile( "KDE-Pim/Pi Version Info", "kdepim/WhatsNew.txt" ); 1388 KApplication::showFile( "KDE-Pim/Pi Version Info", "kdepim/WhatsNew.txt" );
1380} 1389}
1381 1390
1382void PwM::showLicense_slot() 1391void PwM::showLicense_slot()
1383{ 1392{
1384 KApplication::showLicence(); 1393 KApplication::showLicence();
1385} 1394}
1386 1395
1387void PwM::faq_slot() 1396void PwM::faq_slot()
1388{ 1397{
1389 KApplication::showFile( "PWM/Pi FAQ", "kdepim/pwmanager/pwmanagerFAQ.txt" ); 1398 KApplication::showFile( "PWM/Pi FAQ", "kdepim/pwmanager/pwmanagerFAQ.txt" );
1390} 1399}
1391 1400
1392void PwM::syncHowTo_slot() 1401void PwM::syncHowTo_slot()
1393{ 1402{
1394 KApplication::showFile( "KDE-Pim/Pi Synchronization HowTo", "kdepim/SyncHowto.txt" ); 1403 KApplication::showFile( "KDE-Pim/Pi Synchronization HowTo", "kdepim/SyncHowto.txt" );
1395} 1404}
1396 1405
1397 1406
1398void PwM::createAboutData_slot() 1407void PwM::createAboutData_slot()
1399{ 1408{
1400 QString version; 1409 QString version;
1401#include <../version> 1410#include <../version>
1402 QMessageBox::about( this, "About PwManager/Pi", 1411 QMessageBox::about( this, "About PwManager/Pi",
1403 "PwManager/Platform-independent\n" 1412 "PwManager/Platform-independent\n"
1404 "(PWM/Pi) " +version + " - " + 1413 "(PWM/Pi) " +version + " - " +
1405#ifdef DESKTOP_VERSION 1414#ifdef DESKTOP_VERSION
1406 "Desktop Edition\n" 1415 "Desktop Edition\n"
1407#else 1416#else
1408 "PDA-Edition\n" 1417 "PDA-Edition\n"
1409 "for: Zaurus 5500 / 7x0 / 8x0\n" 1418 "for: Zaurus 5500 / 7x0 / 8x0\n"
1410#endif 1419#endif
1411 1420
1412 "(c) 2004 Ulf Schenk\n" 1421 "(c) 2004 Ulf Schenk\n"
1413 "(c) 2004 Lutz Rogowski\n" 1422 "(c) 2004 Lutz Rogowski\n"
1414 "(c) 1997-2004, The KDE PIM Team\n" 1423 "(c) 1997-2004, The KDE PIM Team\n"
1415 1424
1416 "(c) Michael Buesch - main programming\nand current maintainer\nmbuesch@freenet.de\n" 1425 "(c) Michael Buesch - main programming\nand current maintainer\nmbuesch@freenet.de\n"
1417 "Matt Scifo - mscifo@o1.com\n" 1426 "Matt Scifo - mscifo@o1.com\n"
1418 "Elias Probst - elias.probst@gmx.de\n" 1427 "Elias Probst - elias.probst@gmx.de\n"
1419 "George Staikos - staikos@kde.org\n" 1428 "George Staikos - staikos@kde.org\n"
1420 "Matthew Palmer - mjp16@uow.edu.au\n" 1429 "Matthew Palmer - mjp16@uow.edu.au\n"
1421 "Olivier Sessink - gpasman@nl.linux.org\n" 1430 "Olivier Sessink - gpasman@nl.linux.org\n"
1422 "The libgcrypt developers -\nBlowfish and SHA1 algorithms\nftp://ftp.gnupg.org/gcrypt/alpha/libgcrypt/\n" 1431 "The libgcrypt developers -\nBlowfish and SHA1 algorithms\nftp://ftp.gnupg.org/gcrypt/alpha/libgcrypt/\n"
1423 "Troy Engel - tengel@sonic.net\n" 1432 "Troy Engel - tengel@sonic.net\n"
1424 "Wickey - wickey@gmx.at\n" 1433 "Wickey - wickey@gmx.at\n"
1425 "Ian MacGregor - original documentation author.\n" 1434 "Ian MacGregor - original documentation author.\n"