author | zautrix <zautrix> | 2004-09-22 03:08:05 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2004-09-22 03:08:05 (UTC) |
commit | d63eac7a612a9724705bc58ad98c65c6ac052d07 (patch) (unidiff) | |
tree | dc584a0ddcbd5f828ea36b86b6af640e46e137f2 | |
parent | 633522024e48efc423155a04b71083a03696211d (diff) | |
download | kdepimpi-d63eac7a612a9724705bc58ad98c65c6ac052d07.zip kdepimpi-d63eac7a612a9724705bc58ad98c65c6ac052d07.tar.gz kdepimpi-d63eac7a612a9724705bc58ad98c65c6ac052d07.tar.bz2 |
connected global config
-rw-r--r-- | kaddressbook/mainembedded.cpp | 15 | ||||
-rw-r--r-- | kmicromail/libmailwrapper/genericwrapper.cpp | 18 | ||||
-rw-r--r-- | kmicromail/opiemail.cpp | 2 | ||||
-rw-r--r-- | korganizer/calendarview.cpp | 6 | ||||
-rw-r--r-- | korganizer/koprefs.cpp | 2 | ||||
-rw-r--r-- | korganizer/koprefsdialog.cpp | 106 | ||||
-rw-r--r-- | korganizer/mainwindow.cpp | 2 | ||||
-rw-r--r-- | libkdepim/kcmconfigs/kdepimconfigwidget.cpp | 2 | ||||
-rw-r--r-- | libkdepim/kpimglobalprefs.cpp | 17 | ||||
-rw-r--r-- | libkdepim/kpimglobalprefs.h | 4 |
10 files changed, 93 insertions, 81 deletions
diff --git a/kaddressbook/mainembedded.cpp b/kaddressbook/mainembedded.cpp index 10b1013..965fb06 100644 --- a/kaddressbook/mainembedded.cpp +++ b/kaddressbook/mainembedded.cpp | |||
@@ -1,41 +1,42 @@ | |||
1 | #ifndef DESKTOP_VERSION | 1 | #ifndef DESKTOP_VERSION |
2 | #include <qpe/qpeapplication.h> | 2 | #include <qpe/qpeapplication.h> |
3 | #include <stdlib.h> | 3 | #include <stdlib.h> |
4 | #else | 4 | #else |
5 | #include <qapplication.h> | 5 | #include <qapplication.h> |
6 | #include <qwindowsstyle.h> | 6 | #include <qwindowsstyle.h> |
7 | #include <qplatinumstyle.h> | 7 | #include <qplatinumstyle.h> |
8 | #include <qmainwindow.h> | 8 | #include <qmainwindow.h> |
9 | #endif | 9 | #endif |
10 | 10 | ||
11 | #include <kstandarddirs.h> | 11 | #include <kstandarddirs.h> |
12 | #include <qregexp.h> | 12 | #include <qregexp.h> |
13 | #include <kglobal.h> | 13 | #include <kglobal.h> |
14 | #include <stdio.h> | 14 | #include <stdio.h> |
15 | #include <qdir.h> | 15 | #include <qdir.h> |
16 | #include "kaddressbookmain.h" | 16 | #include "kaddressbookmain.h" |
17 | #include "externalapphandler.h" | 17 | #include "externalapphandler.h" |
18 | #include <libkdepim/kpimglobalprefs.h> | ||
18 | 19 | ||
19 | int main( int argc, char **argv ) | 20 | int main( int argc, char **argv ) |
20 | { | 21 | { |
21 | #ifndef DESKTOP_VERSION | 22 | #ifndef DESKTOP_VERSION |
22 | QPEApplication a( argc, argv ); | 23 | QPEApplication a( argc, argv ); |
23 | a.setKeepRunning (); | 24 | a.setKeepRunning (); |
24 | #else | 25 | #else |
25 | QApplication a( argc, argv ); | 26 | QApplication a( argc, argv ); |
26 | QApplication::setStyle( new QPlatinumStyle ()); | 27 | QApplication::setStyle( new QPlatinumStyle ()); |
27 | QString hdir = QDir::homeDirPath(); | 28 | QString hdir = QDir::homeDirPath(); |
28 | // there is a bug when creating dirs for WIN 98 | 29 | // there is a bug when creating dirs for WIN 98 |
29 | // it is difficult to fix, because we have no WIN 98 runnung | 30 | // it is difficult to fix, because we have no WIN 98 runnung |
30 | // such that we try it to create the dirs at startup here | 31 | // such that we try it to create the dirs at startup here |
31 | if ( hdir == "C:\\" ) { // win 98 or ME | 32 | if ( hdir == "C:\\" ) { // win 98 or ME |
32 | QDir app_dir; | 33 | QDir app_dir; |
33 | if ( !app_dir.exists("C:\\kdepim") ) | 34 | if ( !app_dir.exists("C:\\kdepim") ) |
34 | app_dir.mkdir ("C:\\kdepim"); | 35 | app_dir.mkdir ("C:\\kdepim"); |
35 | if ( !app_dir.exists("C:\\kdepim\\apps") ) | 36 | if ( !app_dir.exists("C:\\kdepim\\apps") ) |
36 | app_dir.mkdir ("C:\\kdepim\\apps"); | 37 | app_dir.mkdir ("C:\\kdepim\\apps"); |
37 | if ( !app_dir.exists("C:\\kdepim\\config") ) | 38 | if ( !app_dir.exists("C:\\kdepim\\config") ) |
38 | app_dir.mkdir ("C:\\kdepim\\config"); | 39 | app_dir.mkdir ("C:\\kdepim\\config"); |
39 | if ( !app_dir.exists("C:\\kdepim\\apps\\kaddressbook") ) | 40 | if ( !app_dir.exists("C:\\kdepim\\apps\\kaddressbook") ) |
40 | app_dir.mkdir ("C:\\kdepim\\apps\\kaddressbook"); | 41 | app_dir.mkdir ("C:\\kdepim\\apps\\kaddressbook"); |
41 | } | 42 | } |
@@ -52,61 +53,49 @@ int main( int argc, char **argv ) | |||
52 | exitHelp = true; | 53 | exitHelp = true; |
53 | } | 54 | } |
54 | } | 55 | } |
55 | if ( ! exitHelp ) { | 56 | if ( ! exitHelp ) { |
56 | 57 | ||
57 | KGlobal::setAppName( "kaddressbook" ); | 58 | KGlobal::setAppName( "kaddressbook" ); |
58 | #ifndef DESKTOP_VERSION | 59 | #ifndef DESKTOP_VERSION |
59 | if ( QApplication::desktop()->width() > 320 ) | 60 | if ( QApplication::desktop()->width() > 320 ) |
60 | KGlobal::iconLoader()->setIconPath(QString(getenv("QPEDIR"))+"/pics/kdepim/kaddressbook/icons22/"); | 61 | KGlobal::iconLoader()->setIconPath(QString(getenv("QPEDIR"))+"/pics/kdepim/kaddressbook/icons22/"); |
61 | else | 62 | else |
62 | KGlobal::iconLoader()->setIconPath(QString(getenv("QPEDIR"))+"/pics/kdepim/kaddressbook/icons16/"); | 63 | KGlobal::iconLoader()->setIconPath(QString(getenv("QPEDIR"))+"/pics/kdepim/kaddressbook/icons16/"); |
63 | #else | 64 | #else |
64 | QString fileName ; | 65 | QString fileName ; |
65 | fileName = qApp->applicationDirPath () + "/kdepim/kaddressbook/icons22/"; | 66 | fileName = qApp->applicationDirPath () + "/kdepim/kaddressbook/icons22/"; |
66 | KGlobal::iconLoader()->setIconPath(QDir::convertSeparators(fileName)); | 67 | KGlobal::iconLoader()->setIconPath(QDir::convertSeparators(fileName)); |
67 | QApplication::addLibraryPath ( qApp->applicationDirPath () ); | 68 | QApplication::addLibraryPath ( qApp->applicationDirPath () ); |
68 | 69 | ||
69 | #endif | 70 | #endif |
70 | KStandardDirs::setAppDir( QDir::convertSeparators(locateLocal("data", "kaddressbook"))); | 71 | KStandardDirs::setAppDir( QDir::convertSeparators(locateLocal("data", "kaddressbook"))); |
71 | KAddressBookMain m ; | 72 | KAddressBookMain m ; |
72 | //US MainWindow m; | 73 | //US MainWindow m; |
73 | QObject::connect(&a, SIGNAL (appMessage ( const QCString &, const QByteArray & )), ExternalAppHandler::instance(), SLOT (appMessage ( const QCString &, const QByteArray & ))); | 74 | QObject::connect(&a, SIGNAL (appMessage ( const QCString &, const QByteArray & )), ExternalAppHandler::instance(), SLOT (appMessage ( const QCString &, const QByteArray & ))); |
74 | 75 | ||
75 | { | 76 | { |
76 | KConfig kon ( locateLocal( "config", "korganizerrc" ) ); | 77 | KPimGlobalPrefs::instance()->setGlobalConfig(); |
77 | kon.setGroup("Locale"); | ||
78 | KGlobal::locale()->setIntDateFormat( (KLocale::IntDateFormat)kon.readNumEntry( "PreferredDate",0) ); | ||
79 | QString dummy = kon.readEntry( "UserDateFormatShort","%aK %d.%m.%y" );// kon.readEntry( ""); | ||
80 | KGlobal::locale()->setHore24Format( !kon.readNumEntry( "PreferredTime",0 ) ); | ||
81 | KGlobal::locale()->setDateFormatShort(dummy.replace( QRegExp("K"), QString(",") )); | ||
82 | dummy = kon.readEntry( "UserDateFormatLong","%A %d %b %y" ); | ||
83 | KGlobal::locale()->setDateFormat(dummy.replace( QRegExp("K"), QString(",") )); | ||
84 | kon.setGroup("Time & Date"); | ||
85 | KGlobal::locale()->setDaylightSaving( kon.readBoolEntry( "UseDaylightsaving", true ), | ||
86 | kon.readNumEntry( "DaylightsavingStart", 90), | ||
87 | kon.readNumEntry( "DaylightsavingEnd",304) ); | ||
88 | KGlobal::locale()->setTimezone( kon.readEntry( "TimeZoneName" ," 00:00 Europe/London(UTC)") ); | ||
89 | } | 78 | } |
90 | #ifndef DESKTOP_VERSION | 79 | #ifndef DESKTOP_VERSION |
91 | a.showMainWidget( &m ); | 80 | a.showMainWidget( &m ); |
92 | #else | 81 | #else |
93 | a.setMainWidget( &m ); | 82 | a.setMainWidget( &m ); |
94 | m.resize (640, 480 ); | 83 | m.resize (640, 480 ); |
95 | m.show(); | 84 | m.show(); |
96 | #endif | 85 | #endif |
97 | a.exec(); | 86 | a.exec(); |
98 | 87 | ||
99 | } | 88 | } |
100 | qDebug("KA: Bye! "); | 89 | qDebug("KA: Bye! "); |
101 | } | 90 | } |
102 | 91 | ||
103 | /* | 92 | /* |
104 | #include <stdlib.h> | 93 | #include <stdlib.h> |
105 | 94 | ||
106 | #include <qstring.h> | 95 | #include <qstring.h> |
107 | 96 | ||
108 | #include <kabc/stdaddressbook.h> | 97 | #include <kabc/stdaddressbook.h> |
109 | #include <kaboutdata.h> | 98 | #include <kaboutdata.h> |
110 | #include <kcmdlineargs.h> | 99 | #include <kcmdlineargs.h> |
111 | #include <kcrash.h> | 100 | #include <kcrash.h> |
112 | #include <kdebug.h> | 101 | #include <kdebug.h> |
diff --git a/kmicromail/libmailwrapper/genericwrapper.cpp b/kmicromail/libmailwrapper/genericwrapper.cpp index 09a6447..e691082 100644 --- a/kmicromail/libmailwrapper/genericwrapper.cpp +++ b/kmicromail/libmailwrapper/genericwrapper.cpp | |||
@@ -8,67 +8,49 @@ | |||
8 | #include <kstandarddirs.h> | 8 | #include <kstandarddirs.h> |
9 | 9 | ||
10 | 10 | ||
11 | using namespace Opie::Core; | 11 | using namespace Opie::Core; |
12 | Genericwrapper::Genericwrapper() | 12 | Genericwrapper::Genericwrapper() |
13 | : AbstractMail() | 13 | : AbstractMail() |
14 | { | 14 | { |
15 | bodyCache.clear(); | 15 | bodyCache.clear(); |
16 | m_storage = 0; | 16 | m_storage = 0; |
17 | m_folder = 0; | 17 | m_folder = 0; |
18 | } | 18 | } |
19 | 19 | ||
20 | Genericwrapper::~Genericwrapper() | 20 | Genericwrapper::~Genericwrapper() |
21 | { | 21 | { |
22 | if (m_folder) { | 22 | if (m_folder) { |
23 | mailfolder_free(m_folder); | 23 | mailfolder_free(m_folder); |
24 | } | 24 | } |
25 | if (m_storage) { | 25 | if (m_storage) { |
26 | mailstorage_free(m_storage); | 26 | mailstorage_free(m_storage); |
27 | } | 27 | } |
28 | cleanMimeCache(); | 28 | cleanMimeCache(); |
29 | } | 29 | } |
30 | const QDateTime Genericwrapper::parseDateTime( mailimf_date_time *date ) | 30 | const QDateTime Genericwrapper::parseDateTime( mailimf_date_time *date ) |
31 | { | 31 | { |
32 | static bool init = false ; | ||
33 | if ( ! init ) { | ||
34 | KConfig kon ( locateLocal( "config", "korganizerrc" ) ); | ||
35 | kon.setGroup("Locale"); | ||
36 | KGlobal::locale()->setIntDateFormat( (KLocale::IntDateFormat)kon.readNumEntry( "PreferredDate",0) ); | ||
37 | QString dummy = kon.readEntry( "UserDateFormatShort","%aK %d.%m.%y" );// kon.readEntry( ""); | ||
38 | KGlobal::locale()->setHore24Format( !kon.readNumEntry( "PreferredTime",0 ) ); | ||
39 | KGlobal::locale()->setDateFormatShort(dummy.replace( QRegExp("K"), QString(",") )); | ||
40 | dummy = kon.readEntry( "UserDateFormatLong","%A %d %b %y" ); | ||
41 | KGlobal::locale()->setDateFormat(dummy.replace( QRegExp("K"), QString(",") )); | ||
42 | kon.setGroup("Time & Date"); | ||
43 | KGlobal::locale()->setDaylightSaving( kon.readBoolEntry( "UseDaylightsaving", true ), | ||
44 | kon.readNumEntry( "DaylightsavingStart", 90), | ||
45 | kon.readNumEntry( "DaylightsavingEnd",304) ); | ||
46 | KGlobal::locale()->setTimezone( kon.readEntry( "TimeZoneName" ," 00:00 Europe/London(UTC)") ); | ||
47 | |||
48 | init = true; | ||
49 | 32 | ||
50 | } | ||
51 | QDate da (date->dt_year,date->dt_month, date->dt_day ); | 33 | QDate da (date->dt_year,date->dt_month, date->dt_day ); |
52 | QTime ti ( date->dt_hour, date->dt_min, date->dt_sec ); | 34 | QTime ti ( date->dt_hour, date->dt_min, date->dt_sec ); |
53 | QDateTime dt ( da ,ti ); | 35 | QDateTime dt ( da ,ti ); |
54 | int addsec = -date->dt_zone*36; | 36 | int addsec = -date->dt_zone*36; |
55 | //qDebug("adsec1 %d ",addsec ); | 37 | //qDebug("adsec1 %d ",addsec ); |
56 | dt = dt.addSecs( addsec ); | 38 | dt = dt.addSecs( addsec ); |
57 | int off = KGlobal::locale()->localTimeOffset( dt ); | 39 | int off = KGlobal::locale()->localTimeOffset( dt ); |
58 | //qDebug("adsec2 %d ",off*60 ); | 40 | //qDebug("adsec2 %d ",off*60 ); |
59 | 41 | ||
60 | dt = dt.addSecs( off*60 ); | 42 | dt = dt.addSecs( off*60 ); |
61 | return dt; | 43 | return dt; |
62 | #if 0 | 44 | #if 0 |
63 | QString ret; | 45 | QString ret; |
64 | if ( dt.date() == QDate::currentDate () ) | 46 | if ( dt.date() == QDate::currentDate () ) |
65 | ret = KGlobal::locale()->formatTime( dt.time(),true); | 47 | ret = KGlobal::locale()->formatTime( dt.time(),true); |
66 | 48 | ||
67 | else { | 49 | else { |
68 | ret = KGlobal::locale()->formatDateTime( dt,true,true); | 50 | ret = KGlobal::locale()->formatDateTime( dt,true,true); |
69 | } | 51 | } |
70 | #endif | 52 | #endif |
71 | #if 0 | 53 | #if 0 |
72 | if ( off < 0 ) | 54 | if ( off < 0 ) |
73 | ret += " -"; | 55 | ret += " -"; |
74 | else | 56 | else |
diff --git a/kmicromail/opiemail.cpp b/kmicromail/opiemail.cpp index 9a1a750..164988c 100644 --- a/kmicromail/opiemail.cpp +++ b/kmicromail/opiemail.cpp | |||
@@ -1,58 +1,60 @@ | |||
1 | // CHANGED 2004-09-31 Lutz Rogowski | 1 | // CHANGED 2004-09-31 Lutz Rogowski |
2 | // CHANGED 2004-08-06 Lutz Rogowski | 2 | // CHANGED 2004-08-06 Lutz Rogowski |
3 | 3 | ||
4 | #include "settingsdialog.h" | 4 | #include "settingsdialog.h" |
5 | #include "opiemail.h" | 5 | #include "opiemail.h" |
6 | #include "editaccounts.h" | 6 | #include "editaccounts.h" |
7 | #include "composemail.h" | 7 | #include "composemail.h" |
8 | #include "mailistviewitem.h" | 8 | #include "mailistviewitem.h" |
9 | #include "viewmail.h" | 9 | #include "viewmail.h" |
10 | #include "selectstore.h" | 10 | #include "selectstore.h" |
11 | #include "selectsmtp.h" | 11 | #include "selectsmtp.h" |
12 | #include "accountitem.h" | 12 | #include "accountitem.h" |
13 | #include "koprefsdialog.h" | 13 | #include "koprefsdialog.h" |
14 | 14 | ||
15 | #include <qmessagebox.h> | 15 | #include <qmessagebox.h> |
16 | #include <qtimer.h> | 16 | #include <qtimer.h> |
17 | #include <libkdepim/externalapphandler.h> | 17 | #include <libkdepim/externalapphandler.h> |
18 | #include <libkdepim/kpimglobalprefs.h> | ||
18 | 19 | ||
19 | #include <qpe/qpeapplication.h> | 20 | #include <qpe/qpeapplication.h> |
20 | #include <libmailwrapper/smtpwrapper.h> | 21 | #include <libmailwrapper/smtpwrapper.h> |
21 | #include <libmailwrapper/mailtypes.h> | 22 | #include <libmailwrapper/mailtypes.h> |
22 | #include <libmailwrapper/abstractmail.h> | 23 | #include <libmailwrapper/abstractmail.h> |
23 | /* OPIE */ | 24 | /* OPIE */ |
24 | //#include <qpe/resource.h> | 25 | //#include <qpe/resource.h> |
25 | //#include <qpe/qpeapplication.h> | 26 | //#include <qpe/qpeapplication.h> |
26 | 27 | ||
27 | /* QT */ | 28 | /* QT */ |
28 | 29 | ||
29 | //using namespace Opie::Core; | 30 | //using namespace Opie::Core; |
30 | 31 | ||
31 | OpieMail::OpieMail( QWidget *parent, const char *name ) | 32 | OpieMail::OpieMail( QWidget *parent, const char *name ) |
32 | : MainWindow( parent, name) //, WStyle_ContextHelp ) | 33 | : MainWindow( parent, name) //, WStyle_ContextHelp ) |
33 | { | 34 | { |
34 | settings = new Settings(); | 35 | settings = new Settings(); |
36 | KPimGlobalPrefs::instance()->setGlobalConfig(); | ||
35 | 37 | ||
36 | folderView->populate( settings->getAccounts() ); | 38 | folderView->populate( settings->getAccounts() ); |
37 | 39 | ||
38 | } | 40 | } |
39 | 41 | ||
40 | OpieMail::~OpieMail() | 42 | OpieMail::~OpieMail() |
41 | { | 43 | { |
42 | if (settings) delete settings; | 44 | if (settings) delete settings; |
43 | } | 45 | } |
44 | 46 | ||
45 | void OpieMail::appMessage(const QCString &msg, const QByteArray &data) | 47 | void OpieMail::appMessage(const QCString &msg, const QByteArray &data) |
46 | { | 48 | { |
47 | 49 | ||
48 | } | 50 | } |
49 | #include <stdlib.h> | 51 | #include <stdlib.h> |
50 | void OpieMail::message(const QCString &msg, const QByteArray &data) | 52 | void OpieMail::message(const QCString &msg, const QByteArray &data) |
51 | { | 53 | { |
52 | // copied from old mail2 | 54 | // copied from old mail2 |
53 | static int ii = 0; | 55 | static int ii = 0; |
54 | //qDebug("QCOP CALL ############################# %d ", ii); | 56 | //qDebug("QCOP CALL ############################# %d ", ii); |
55 | //QString mess ( msg ); | 57 | //QString mess ( msg ); |
56 | //qDebug("Message = %s ",mess.latin1()); | 58 | //qDebug("Message = %s ",mess.latin1()); |
57 | ++ii; | 59 | ++ii; |
58 | //qDebug("KM:appMessage %d *%s* %x", ii, msg.data(), this); | 60 | //qDebug("KM:appMessage %d *%s* %x", ii, msg.data(), this); |
diff --git a/korganizer/calendarview.cpp b/korganizer/calendarview.cpp index bc8625d..3635cfa 100644 --- a/korganizer/calendarview.cpp +++ b/korganizer/calendarview.cpp | |||
@@ -42,48 +42,49 @@ | |||
42 | #include <qtimer.h> | 42 | #include <qtimer.h> |
43 | #include <qwidgetstack.h> | 43 | #include <qwidgetstack.h> |
44 | #include <qptrlist.h> | 44 | #include <qptrlist.h> |
45 | #include <qregexp.h> | 45 | #include <qregexp.h> |
46 | #include <qgroupbox.h> | 46 | #include <qgroupbox.h> |
47 | #include <qfile.h> | 47 | #include <qfile.h> |
48 | #include <qdir.h> | 48 | #include <qdir.h> |
49 | #ifndef KORG_NOSPLITTER | 49 | #ifndef KORG_NOSPLITTER |
50 | #include <qsplitter.h> | 50 | #include <qsplitter.h> |
51 | #endif | 51 | #endif |
52 | 52 | ||
53 | #include <kglobal.h> | 53 | #include <kglobal.h> |
54 | #include <kdebug.h> | 54 | #include <kdebug.h> |
55 | #include <kstandarddirs.h> | 55 | #include <kstandarddirs.h> |
56 | #include <kfiledialog.h> | 56 | #include <kfiledialog.h> |
57 | #include <kmessagebox.h> | 57 | #include <kmessagebox.h> |
58 | #include <knotifyclient.h> | 58 | #include <knotifyclient.h> |
59 | #include <kconfig.h> | 59 | #include <kconfig.h> |
60 | 60 | ||
61 | #include <libkdepim/ksyncprefsdialog.h> | 61 | #include <libkdepim/ksyncprefsdialog.h> |
62 | #include <krun.h> | 62 | #include <krun.h> |
63 | #include <kdirwatch.h> | 63 | #include <kdirwatch.h> |
64 | #include <libkdepim/kdatepicker.h> | 64 | #include <libkdepim/kdatepicker.h> |
65 | #include <libkdepim/ksyncprofile.h> | 65 | #include <libkdepim/ksyncprofile.h> |
66 | #include <libkdepim/kpimglobalprefs.h> | ||
66 | 67 | ||
67 | #include <libkcal/vcaldrag.h> | 68 | #include <libkcal/vcaldrag.h> |
68 | #include <libkcal/icaldrag.h> | 69 | #include <libkcal/icaldrag.h> |
69 | #include <libkcal/icalformat.h> | 70 | #include <libkcal/icalformat.h> |
70 | #include <libkcal/vcalformat.h> | 71 | #include <libkcal/vcalformat.h> |
71 | #include <libkcal/scheduler.h> | 72 | #include <libkcal/scheduler.h> |
72 | #include <libkcal/calendarlocal.h> | 73 | #include <libkcal/calendarlocal.h> |
73 | #include <libkcal/journal.h> | 74 | #include <libkcal/journal.h> |
74 | #include <libkcal/calfilter.h> | 75 | #include <libkcal/calfilter.h> |
75 | #include <libkcal/attendee.h> | 76 | #include <libkcal/attendee.h> |
76 | #include <libkcal/dndfactory.h> | 77 | #include <libkcal/dndfactory.h> |
77 | #include <libkcal/freebusy.h> | 78 | #include <libkcal/freebusy.h> |
78 | #include <libkcal/filestorage.h> | 79 | #include <libkcal/filestorage.h> |
79 | #include <libkcal/calendarresources.h> | 80 | #include <libkcal/calendarresources.h> |
80 | #include <libkcal/qtopiaformat.h> | 81 | #include <libkcal/qtopiaformat.h> |
81 | #include "../kalarmd/alarmdialog.h" | 82 | #include "../kalarmd/alarmdialog.h" |
82 | 83 | ||
83 | #ifndef DESKTOP_VERSION | 84 | #ifndef DESKTOP_VERSION |
84 | #include <libkcal/sharpformat.h> | 85 | #include <libkcal/sharpformat.h> |
85 | #endif | 86 | #endif |
86 | #include <libkcal/phoneformat.h> | 87 | #include <libkcal/phoneformat.h> |
87 | #ifndef KORG_NOMAIL | 88 | #ifndef KORG_NOMAIL |
88 | #include "komailclient.h" | 89 | #include "komailclient.h" |
89 | #endif | 90 | #endif |
@@ -1863,62 +1864,65 @@ void CalendarView::writeFilterSettings(KConfig *config) | |||
1863 | 1864 | ||
1864 | void CalendarView::goToday() | 1865 | void CalendarView::goToday() |
1865 | { | 1866 | { |
1866 | mNavigator->selectToday(); | 1867 | mNavigator->selectToday(); |
1867 | } | 1868 | } |
1868 | 1869 | ||
1869 | void CalendarView::goNext() | 1870 | void CalendarView::goNext() |
1870 | { | 1871 | { |
1871 | mNavigator->selectNext(); | 1872 | mNavigator->selectNext(); |
1872 | } | 1873 | } |
1873 | 1874 | ||
1874 | void CalendarView::goPrevious() | 1875 | void CalendarView::goPrevious() |
1875 | { | 1876 | { |
1876 | mNavigator->selectPrevious(); | 1877 | mNavigator->selectPrevious(); |
1877 | } | 1878 | } |
1878 | void CalendarView::goNextMonth() | 1879 | void CalendarView::goNextMonth() |
1879 | { | 1880 | { |
1880 | mNavigator->selectNextMonth(); | 1881 | mNavigator->selectNextMonth(); |
1881 | } | 1882 | } |
1882 | 1883 | ||
1883 | void CalendarView::goPreviousMonth() | 1884 | void CalendarView::goPreviousMonth() |
1884 | { | 1885 | { |
1885 | mNavigator->selectPreviousMonth(); | 1886 | mNavigator->selectPreviousMonth(); |
1886 | } | 1887 | } |
1887 | void CalendarView::writeLocale() | 1888 | void CalendarView::writeLocale() |
1888 | { | 1889 | { |
1890 | //KPimGlobalPrefs::instance()->setGlobalConfig(); | ||
1891 | #if 0 | ||
1889 | KGlobal::locale()->setHore24Format( !KOPrefs::instance()->mPreferredTime ); | 1892 | KGlobal::locale()->setHore24Format( !KOPrefs::instance()->mPreferredTime ); |
1890 | KGlobal::locale()->setWeekStartMonday( !KOPrefs::instance()->mWeekStartsOnSunday ); | 1893 | KGlobal::locale()->setWeekStartMonday( !KOPrefs::instance()->mWeekStartsOnSunday ); |
1891 | KGlobal::locale()->setIntDateFormat( (KLocale::IntDateFormat)KOPrefs::instance()->mPreferredDate ); | 1894 | KGlobal::locale()->setIntDateFormat( (KLocale::IntDateFormat)KOPrefs::instance()->mPreferredDate ); |
1892 | KGlobal::locale()->setLanguage( KOPrefs::instance()->mPreferredLanguage ); | 1895 | KGlobal::locale()->setLanguage( KOPrefs::instance()->mPreferredLanguage ); |
1893 | QString dummy = KOPrefs::instance()->mUserDateFormatLong; | 1896 | QString dummy = KOPrefs::instance()->mUserDateFormatLong; |
1894 | KGlobal::locale()->setDateFormat(dummy.replace( QRegExp("K"), QString(",") )); | 1897 | KGlobal::locale()->setDateFormat(dummy.replace( QRegExp("K"), QString(",") )); |
1895 | dummy = KOPrefs::instance()->mUserDateFormatShort; | 1898 | dummy = KOPrefs::instance()->mUserDateFormatShort; |
1896 | KGlobal::locale()->setDateFormatShort(dummy.replace( QRegExp("K"), QString(",") )); | 1899 | KGlobal::locale()->setDateFormatShort(dummy.replace( QRegExp("K"), QString(",") )); |
1897 | KGlobal::locale()->setDaylightSaving( KOPrefs::instance()->mUseDaylightsaving, | 1900 | KGlobal::locale()->setDaylightSaving( KOPrefs::instance()->mUseDaylightsaving, |
1898 | KOPrefs::instance()->mDaylightsavingStart, | 1901 | KOPrefs::instance()->mDaylightsavingStart, |
1899 | KOPrefs::instance()->mDaylightsavingEnd ); | 1902 | KOPrefs::instance()->mDaylightsavingEnd ); |
1900 | KGlobal::locale()->setTimezone( KOPrefs::instance()->mTimeZoneId ); | 1903 | KGlobal::locale()->setTimezone( KOPrefs::instance()->mTimeZoneId ); |
1904 | #endif | ||
1901 | } | 1905 | } |
1902 | void CalendarView::updateConfig() | 1906 | void CalendarView::updateConfig() |
1903 | { | 1907 | { |
1904 | writeLocale(); | 1908 | writeLocale(); |
1905 | if ( KOPrefs::instance()->mUseAppColors ) | 1909 | if ( KOPrefs::instance()->mUseAppColors ) |
1906 | QApplication::setPalette( QPalette (KOPrefs::instance()->mAppColor1, KOPrefs::instance()->mAppColor2), true ); | 1910 | QApplication::setPalette( QPalette (KOPrefs::instance()->mAppColor1, KOPrefs::instance()->mAppColor2), true ); |
1907 | emit configChanged(); | 1911 | emit configChanged(); |
1908 | mTodoList->updateConfig(); | 1912 | mTodoList->updateConfig(); |
1909 | // mDateNavigator->setFont ( KOPrefs::instance()->mDateNavigatorFont); | 1913 | // mDateNavigator->setFont ( KOPrefs::instance()->mDateNavigatorFont); |
1910 | mCalendar->setTimeZoneId(KOPrefs::instance()->mTimeZoneId); | 1914 | mCalendar->setTimeZoneId(KOPrefs::instance()->mTimeZoneId); |
1911 | // To make the "fill window" configurations work | 1915 | // To make the "fill window" configurations work |
1912 | //mViewManager->raiseCurrentView(); | 1916 | //mViewManager->raiseCurrentView(); |
1913 | } | 1917 | } |
1914 | 1918 | ||
1915 | 1919 | ||
1916 | void CalendarView::eventChanged(Event *event) | 1920 | void CalendarView::eventChanged(Event *event) |
1917 | { | 1921 | { |
1918 | changeEventDisplay(event,KOGlobals::EVENTEDITED); | 1922 | changeEventDisplay(event,KOGlobals::EVENTEDITED); |
1919 | //updateUnmanagedViews(); | 1923 | //updateUnmanagedViews(); |
1920 | } | 1924 | } |
1921 | 1925 | ||
1922 | void CalendarView::eventAdded(Event *event) | 1926 | void CalendarView::eventAdded(Event *event) |
1923 | { | 1927 | { |
1924 | changeEventDisplay(event,KOGlobals::EVENTADDED); | 1928 | changeEventDisplay(event,KOGlobals::EVENTADDED); |
diff --git a/korganizer/koprefs.cpp b/korganizer/koprefs.cpp index dd978bf..5d7db4f 100644 --- a/korganizer/koprefs.cpp +++ b/korganizer/koprefs.cpp | |||
@@ -20,48 +20,49 @@ | |||
20 | with any edition of Qt, and distribute the resulting executable, | 20 | with any edition of Qt, and distribute the resulting executable, |
21 | without including the source code for Qt in the source distribution. | 21 | without including the source code for Qt in the source distribution. |
22 | */ | 22 | */ |
23 | 23 | ||
24 | #include <time.h> | 24 | #include <time.h> |
25 | #ifndef _WIN32_ | 25 | #ifndef _WIN32_ |
26 | #include <unistd.h> | 26 | #include <unistd.h> |
27 | #endif | 27 | #endif |
28 | #include <qdir.h> | 28 | #include <qdir.h> |
29 | #include <qtextstream.h> | 29 | #include <qtextstream.h> |
30 | #include <qtextcodec.h> | 30 | #include <qtextcodec.h> |
31 | #include <qstring.h> | 31 | #include <qstring.h> |
32 | #include <qregexp.h> | 32 | #include <qregexp.h> |
33 | #include <qfont.h> | 33 | #include <qfont.h> |
34 | #include <qcolor.h> | 34 | #include <qcolor.h> |
35 | #include <qstringlist.h> | 35 | #include <qstringlist.h> |
36 | #include <stdlib.h> | 36 | #include <stdlib.h> |
37 | 37 | ||
38 | #include <kglobal.h> | 38 | #include <kglobal.h> |
39 | #include <kconfig.h> | 39 | #include <kconfig.h> |
40 | #include <klocale.h> | 40 | #include <klocale.h> |
41 | #include <kdebug.h> | 41 | #include <kdebug.h> |
42 | #include <kemailsettings.h> | 42 | #include <kemailsettings.h> |
43 | #include <kstaticdeleter.h> | 43 | #include <kstaticdeleter.h> |
44 | #include <libkdepim/kpimglobalprefs.h> | ||
44 | 45 | ||
45 | #include "koprefs.h" | 46 | #include "koprefs.h" |
46 | #include "mainwindow.h" | 47 | #include "mainwindow.h" |
47 | 48 | ||
48 | const char *germanwords[][2] = { | 49 | const char *germanwords[][2] = { |
49 | #include "wordsgerman.h" | 50 | #include "wordsgerman.h" |
50 | "", "" | 51 | "", "" |
51 | }; | 52 | }; |
52 | 53 | ||
53 | KOPrefs *KOPrefs::mInstance = 0; | 54 | KOPrefs *KOPrefs::mInstance = 0; |
54 | static KStaticDeleter<KOPrefs> insd; | 55 | static KStaticDeleter<KOPrefs> insd; |
55 | 56 | ||
56 | KOPrefs::KOPrefs() : | 57 | KOPrefs::KOPrefs() : |
57 | KPimPrefs("korganizerrc") | 58 | KPimPrefs("korganizerrc") |
58 | { | 59 | { |
59 | mCategoryColors.setAutoDelete(true); | 60 | mCategoryColors.setAutoDelete(true); |
60 | mLocaleDict = 0; | 61 | mLocaleDict = 0; |
61 | fillMailDefaults(); | 62 | fillMailDefaults(); |
62 | mDefaultCategoryColor = QColor(175,210,255);//196,196,196); | 63 | mDefaultCategoryColor = QColor(175,210,255);//196,196,196); |
63 | QColor defaultHolidayColor = QColor(255,0,0); | 64 | QColor defaultHolidayColor = QColor(255,0,0); |
64 | QColor defaultHighlightColor = QColor(129,112,255);//64,64,255); | 65 | QColor defaultHighlightColor = QColor(129,112,255);//64,64,255); |
65 | QColor defaultAgendaBgColor = QColor(239,241,169);//128,128,128); | 66 | QColor defaultAgendaBgColor = QColor(239,241,169);//128,128,128); |
66 | QColor defaultWorkingHoursColor = QColor(170,223,150);//160,160,160); | 67 | QColor defaultWorkingHoursColor = QColor(170,223,150);//160,160,160); |
67 | QColor defaultTodoDueTodayColor = QColor(255,220,100); | 68 | QColor defaultTodoDueTodayColor = QColor(255,220,100); |
@@ -369,48 +370,49 @@ void KOPrefs::setCategoryDefaults() | |||
369 | 370 | ||
370 | QStringList::Iterator it; | 371 | QStringList::Iterator it; |
371 | for (it = mCustomCategories.begin();it != mCustomCategories.end();++it ) { | 372 | for (it = mCustomCategories.begin();it != mCustomCategories.end();++it ) { |
372 | setCategoryColor(*it,mDefaultCategoryColor); | 373 | setCategoryColor(*it,mDefaultCategoryColor); |
373 | } | 374 | } |
374 | } | 375 | } |
375 | 376 | ||
376 | QStringList KOPrefs::getDefaultList() | 377 | QStringList KOPrefs::getDefaultList() |
377 | { | 378 | { |
378 | QStringList retval ; | 379 | QStringList retval ; |
379 | retval << i18n("Anniversary") << i18n("Appointment") << i18n("Birthday") << i18n("Business") << i18n("Business Travel") << i18n("Cinema") << i18n("Customer") | 380 | retval << i18n("Anniversary") << i18n("Appointment") << i18n("Birthday") << i18n("Business") << i18n("Business Travel") << i18n("Cinema") << i18n("Customer") |
380 | << i18n("Break")<< i18n("Breakfast")<< i18n("Competition")<< i18n("Dinner") | 381 | << i18n("Break")<< i18n("Breakfast")<< i18n("Competition")<< i18n("Dinner") |
381 | << i18n("Education")<< i18n("Family") << i18n("Favorites") << i18n("Festival")<< i18n("Fishing")<< i18n("Flight") << i18n("Gifts") | 382 | << i18n("Education")<< i18n("Family") << i18n("Favorites") << i18n("Festival")<< i18n("Fishing")<< i18n("Flight") << i18n("Gifts") |
382 | << i18n("Holiday") << i18n("Holiday Cards")<< i18n("Hot Contacts") << i18n("Hiking") << i18n("Hunting") << i18n("Key Customer") << i18n("Kids") | 383 | << i18n("Holiday") << i18n("Holiday Cards")<< i18n("Hot Contacts") << i18n("Hiking") << i18n("Hunting") << i18n("Key Customer") << i18n("Kids") |
383 | << i18n("Lunch") << i18n("Meeting") << i18n("Miscellaneous") << i18n("Partner")<< i18n("Party") << i18n("Personal") << i18n("Personal Travel") | 384 | << i18n("Lunch") << i18n("Meeting") << i18n("Miscellaneous") << i18n("Partner")<< i18n("Party") << i18n("Personal") << i18n("Personal Travel") |
384 | << i18n("PHB") << i18n("Phone Calls") << i18n("Projects") << i18n("Recurring") << i18n("School") << i18n("Shopping") | 385 | << i18n("PHB") << i18n("Phone Calls") << i18n("Projects") << i18n("Recurring") << i18n("School") << i18n("Shopping") |
385 | << i18n("Speach") << i18n("Special Occasion") << i18n("Sports") << i18n("Talk") << i18n("Travel") << i18n("TV")<< i18n("University") | 386 | << i18n("Speach") << i18n("Special Occasion") << i18n("Sports") << i18n("Talk") << i18n("Travel") << i18n("TV")<< i18n("University") |
386 | << i18n("Vacation") << i18n("VIP") << i18n("SyncEvent") ; | 387 | << i18n("Vacation") << i18n("VIP") << i18n("SyncEvent") ; |
387 | retval.sort(); | 388 | retval.sort(); |
388 | return retval; | 389 | return retval; |
389 | } | 390 | } |
390 | 391 | ||
391 | void KOPrefs::usrReadConfig() | 392 | void KOPrefs::usrReadConfig() |
392 | { | 393 | { |
394 | mPreferredLanguage = KPimGlobalPrefs::instance()->mPreferredLanguage; | ||
393 | mLocaleDict = 0; | 395 | mLocaleDict = 0; |
394 | // pending LR fix translation | 396 | // pending LR fix translation |
395 | // qDebug("KOPrefs::usrReadConfig() fix translation "); | 397 | // qDebug("KOPrefs::usrReadConfig() fix translation "); |
396 | if ( mPreferredLanguage > 0 && mPreferredLanguage < 4 ) { | 398 | if ( mPreferredLanguage > 0 && mPreferredLanguage < 4 ) { |
397 | if ( mPreferredLanguage == 1 ) { | 399 | if ( mPreferredLanguage == 1 ) { |
398 | mLocaleDict = new QDict<QString>; | 400 | mLocaleDict = new QDict<QString>; |
399 | int i = 0; | 401 | int i = 0; |
400 | QString fw ( germanwords[i] [0]); | 402 | QString fw ( germanwords[i] [0]); |
401 | while ( !fw.isEmpty() ) { | 403 | while ( !fw.isEmpty() ) { |
402 | mLocaleDict->insert( fw, new QString (germanwords[i] [1] )); | 404 | mLocaleDict->insert( fw, new QString (germanwords[i] [1] )); |
403 | ++i; | 405 | ++i; |
404 | fw = germanwords[i] [0]; | 406 | fw = germanwords[i] [0]; |
405 | } | 407 | } |
406 | 408 | ||
407 | setLocaleDict( mLocaleDict ); | 409 | setLocaleDict( mLocaleDict ); |
408 | } else { | 410 | } else { |
409 | QString fileName ; | 411 | QString fileName ; |
410 | if ( mPreferredLanguage == 3 ) | 412 | if ( mPreferredLanguage == 3 ) |
411 | fileName = MainWindow::resourcePath()+"usertranslation.txt"; | 413 | fileName = MainWindow::resourcePath()+"usertranslation.txt"; |
412 | else if ( mPreferredLanguage == 2 ) | 414 | else if ( mPreferredLanguage == 2 ) |
413 | fileName = MainWindow::resourcePath()+"frenchtranslation.txt"; | 415 | fileName = MainWindow::resourcePath()+"frenchtranslation.txt"; |
414 | QFile file( fileName ); | 416 | QFile file( fileName ); |
415 | if (file.open( IO_ReadOnly ) ) { | 417 | if (file.open( IO_ReadOnly ) ) { |
416 | QTextStream ts( &file ); | 418 | QTextStream ts( &file ); |
diff --git a/korganizer/koprefsdialog.cpp b/korganizer/koprefsdialog.cpp index 7dafcd8..b4b3b27 100644 --- a/korganizer/koprefsdialog.cpp +++ b/korganizer/koprefsdialog.cpp | |||
@@ -60,77 +60,78 @@ | |||
60 | #if defined(USE_SOLARIS) | 60 | #if defined(USE_SOLARIS) |
61 | #include <sys/param.h> | 61 | #include <sys/param.h> |
62 | 62 | ||
63 | #define ZONEINFODIR "/usr/share/lib/zoneinfo" | 63 | #define ZONEINFODIR "/usr/share/lib/zoneinfo" |
64 | #define INITFILE "/etc/default/init" | 64 | #define INITFILE "/etc/default/init" |
65 | #endif | 65 | #endif |
66 | 66 | ||
67 | #include "koprefs.h" | 67 | #include "koprefs.h" |
68 | 68 | ||
69 | #include "koprefsdialog.h" | 69 | #include "koprefsdialog.h" |
70 | #include "kpimglobalprefs.h" | 70 | #include "kpimglobalprefs.h" |
71 | 71 | ||
72 | 72 | ||
73 | KOPrefsDialog::KOPrefsDialog(QWidget *parent, char *name, bool modal) : | 73 | KOPrefsDialog::KOPrefsDialog(QWidget *parent, char *name, bool modal) : |
74 | KPrefsDialog(KOPrefs::instance(),parent,name,true) | 74 | KPrefsDialog(KOPrefs::instance(),parent,name,true) |
75 | { | 75 | { |
76 | 76 | ||
77 | setCaption( i18n("Preferences - some settings need a restart (nr)")); | 77 | setCaption( i18n("Preferences - some settings need a restart (nr)")); |
78 | mCategoryDict.setAutoDelete(true); | 78 | mCategoryDict.setAutoDelete(true); |
79 | 79 | ||
80 | KGlobal::locale()->insertCatalogue("timezones"); | 80 | KGlobal::locale()->insertCatalogue("timezones"); |
81 | 81 | ||
82 | setupGlobalTab(); | 82 | setupGlobalTab(); |
83 | setupMainTab(); | 83 | setupMainTab(); |
84 | setupLocaleTab(); | 84 | // setupLocaleTab(); |
85 | setupTimeZoneTab(); | 85 | //setupTimeZoneTab(); |
86 | setupTimeTab(); | 86 | setupTimeTab(); |
87 | setupLocaleDateTab(); | 87 | //setupLocaleDateTab(); |
88 | setupFontsTab(); | 88 | setupFontsTab(); |
89 | setupColorsTab(); | 89 | setupColorsTab(); |
90 | setupViewsTab(); | 90 | setupViewsTab(); |
91 | //setupSyncTab(); | 91 | //setupSyncTab(); |
92 | //setupSyncAlgTab(); | 92 | //setupSyncAlgTab(); |
93 | //setupPrinterTab(); | 93 | //setupPrinterTab(); |
94 | //setupGroupSchedulingTab(); | 94 | //setupGroupSchedulingTab(); |
95 | //setupGroupAutomationTab(); | 95 | //setupGroupAutomationTab(); |
96 | } | 96 | } |
97 | 97 | ||
98 | 98 | ||
99 | KOPrefsDialog::~KOPrefsDialog() | 99 | KOPrefsDialog::~KOPrefsDialog() |
100 | { | 100 | { |
101 | } | 101 | } |
102 | void KOPrefsDialog::setupGlobalTab() | 102 | void KOPrefsDialog::setupGlobalTab() |
103 | { | 103 | { |
104 | QFrame *topFrame = addPage(i18n("Global"),0,0); | 104 | QFrame *topFrame = addPage(i18n("Global"),0,0); |
105 | kdelibcfg = new KDEPIMConfigWidget( KPimGlobalPrefs::instance(), topFrame, "KCMKdeLibConfig" ); | 105 | kdelibcfg = new KDEPIMConfigWidget( KPimGlobalPrefs::instance(), topFrame, "KCMKdeLibConfig" ); |
106 | QVBoxLayout *topLayout = new QVBoxLayout(topFrame); | 106 | QVBoxLayout *topLayout = new QVBoxLayout(topFrame); |
107 | topLayout->addWidget( kdelibcfg ); | 107 | topLayout->addWidget( kdelibcfg ); |
108 | 108 | ||
109 | 109 | ||
110 | } | 110 | } |
111 | void KOPrefsDialog::setupLocaleDateTab() | 111 | void KOPrefsDialog::setupLocaleDateTab() |
112 | { | 112 | { |
113 | #if 0 | ||
113 | QFrame *topFrame = addPage(i18n("Date Format"),0,0); | 114 | QFrame *topFrame = addPage(i18n("Date Format"),0,0); |
114 | QGridLayout *topLayout = new QGridLayout(topFrame,3,2); | 115 | QGridLayout *topLayout = new QGridLayout(topFrame,3,2); |
115 | topLayout->setSpacing(spacingHint()); | 116 | topLayout->setSpacing(spacingHint()); |
116 | topLayout->setMargin(marginHint()); | 117 | topLayout->setMargin(marginHint()); |
117 | int iii = 0; | 118 | int iii = 0; |
118 | 119 | ||
119 | 120 | ||
120 | KPrefsDialogWidRadios *syncPrefsGroup = | 121 | KPrefsDialogWidRadios *syncPrefsGroup = |
121 | addWidRadios(i18n("Date Format:"),&(KOPrefs::instance()->mPreferredDate),topFrame); | 122 | addWidRadios(i18n("Date Format:"),&(KOPrefs::instance()->mPreferredDate),topFrame); |
122 | QString format; | 123 | QString format; |
123 | if ( QApplication::desktop()->width() < 480 ) | 124 | if ( QApplication::desktop()->width() < 480 ) |
124 | format = "(%d.%m.%Y)"; | 125 | format = "(%d.%m.%Y)"; |
125 | else | 126 | else |
126 | format = "(%d.%m.%Y|%A %d %B %Y)"; | 127 | format = "(%d.%m.%Y|%A %d %B %Y)"; |
127 | syncPrefsGroup->addRadio(i18n("24.03.2004 "+format)); | 128 | syncPrefsGroup->addRadio(i18n("24.03.2004 "+format)); |
128 | if ( QApplication::desktop()->width() < 480 ) | 129 | if ( QApplication::desktop()->width() < 480 ) |
129 | format = "(%m.%d.%Y)"; | 130 | format = "(%m.%d.%Y)"; |
130 | else | 131 | else |
131 | format = "(%m.%d.%Y|%A %B %d %Y)"; | 132 | format = "(%m.%d.%Y|%A %B %d %Y)"; |
132 | syncPrefsGroup->addRadio(i18n("03.24.2004 "+format)); | 133 | syncPrefsGroup->addRadio(i18n("03.24.2004 "+format)); |
133 | if ( QApplication::desktop()->width() < 480 ) | 134 | if ( QApplication::desktop()->width() < 480 ) |
134 | format = "(%Y-%m-%d)"; | 135 | format = "(%Y-%m-%d)"; |
135 | else | 136 | else |
136 | format = "(%Y-%m-%d|%A %Y %B %d)"; | 137 | format = "(%Y-%m-%d|%A %Y %B %d)"; |
@@ -138,53 +139,55 @@ QFrame *topFrame = addPage(i18n("Date Format"),0,0); | |||
138 | syncPrefsGroup->addRadio(i18n("User defined")); | 139 | syncPrefsGroup->addRadio(i18n("User defined")); |
139 | topLayout->addMultiCellWidget( syncPrefsGroup->groupBox(),iii,iii,0,1); | 140 | topLayout->addMultiCellWidget( syncPrefsGroup->groupBox(),iii,iii,0,1); |
140 | ++iii; | 141 | ++iii; |
141 | ++iii; | 142 | ++iii; |
142 | QLabel * lab; | 143 | QLabel * lab; |
143 | mUserDateFormatLong = new QLineEdit(topFrame); | 144 | mUserDateFormatLong = new QLineEdit(topFrame); |
144 | lab = new QLabel(mUserDateFormatLong, i18n("User long date:"), topFrame); | 145 | lab = new QLabel(mUserDateFormatLong, i18n("User long date:"), topFrame); |
145 | topLayout->addWidget(lab ,iii,0); | 146 | topLayout->addWidget(lab ,iii,0); |
146 | topLayout->addWidget(mUserDateFormatLong,iii,1); | 147 | topLayout->addWidget(mUserDateFormatLong,iii,1); |
147 | ++iii; | 148 | ++iii; |
148 | mUserDateFormatShort = new QLineEdit(topFrame); | 149 | mUserDateFormatShort = new QLineEdit(topFrame); |
149 | lab = new QLabel(mUserDateFormatShort, i18n("User short date:"), topFrame); | 150 | lab = new QLabel(mUserDateFormatShort, i18n("User short date:"), topFrame); |
150 | topLayout->addWidget(lab ,iii,0); | 151 | topLayout->addWidget(lab ,iii,0); |
151 | topLayout->addWidget(mUserDateFormatShort,iii,1); | 152 | topLayout->addWidget(mUserDateFormatShort,iii,1); |
152 | ++iii; | 153 | ++iii; |
153 | lab = new QLabel( i18n("Monday 19 April 2004: %A %d %B %Y"), topFrame); | 154 | lab = new QLabel( i18n("Monday 19 April 2004: %A %d %B %Y"), topFrame); |
154 | topLayout->addMultiCellWidget(lab ,iii,iii,0,1); | 155 | topLayout->addMultiCellWidget(lab ,iii,iii,0,1); |
155 | ++iii; | 156 | ++iii; |
156 | lab = new QLabel( i18n("Mon 19.04.04: %a %d.%m.%y"), topFrame); | 157 | lab = new QLabel( i18n("Mon 19.04.04: %a %d.%m.%y"), topFrame); |
157 | topLayout->addMultiCellWidget(lab ,iii,iii,0,1); | 158 | topLayout->addMultiCellWidget(lab ,iii,iii,0,1); |
158 | ++iii; | 159 | ++iii; |
159 | lab = new QLabel( i18n("Mon, 19.Apr.04: %a, %d.%b.%y"), topFrame); | 160 | lab = new QLabel( i18n("Mon, 19.Apr.04: %a, %d.%b.%y"), topFrame); |
160 | topLayout->addMultiCellWidget(lab ,iii,iii,0,1); | 161 | topLayout->addMultiCellWidget(lab ,iii,iii,0,1); |
161 | ++iii; | 162 | ++iii; |
163 | #endif | ||
162 | 164 | ||
163 | } | 165 | } |
164 | 166 | ||
165 | void KOPrefsDialog::setupLocaleTab() | 167 | void KOPrefsDialog::setupLocaleTab() |
166 | { | 168 | { |
169 | #if 0 | ||
167 | QFrame *topFrame = addPage(i18n("Locale"),0,0); | 170 | QFrame *topFrame = addPage(i18n("Locale"),0,0); |
168 | QGridLayout *topLayout = new QGridLayout(topFrame,4,2); | 171 | QGridLayout *topLayout = new QGridLayout(topFrame,4,2); |
169 | topLayout->setSpacing(spacingHint()); | 172 | topLayout->setSpacing(spacingHint()); |
170 | topLayout->setMargin(marginHint()); | 173 | topLayout->setMargin(marginHint()); |
171 | int iii = 0; | 174 | int iii = 0; |
172 | KPrefsDialogWidRadios *syncPrefsGroup = | 175 | KPrefsDialogWidRadios *syncPrefsGroup = |
173 | addWidRadios(i18n("Language:(needs restart)"),&(KOPrefs::instance()->mPreferredLanguage),topFrame); | 176 | addWidRadios(i18n("Language:(needs restart)"),&(KOPrefs::instance()->mPreferredLanguage),topFrame); |
174 | syncPrefsGroup->addRadio(i18n("English")); | 177 | syncPrefsGroup->addRadio(i18n("English")); |
175 | syncPrefsGroup->addRadio(i18n("German")); | 178 | syncPrefsGroup->addRadio(i18n("German")); |
176 | syncPrefsGroup->addRadio(i18n("French")); | 179 | syncPrefsGroup->addRadio(i18n("French")); |
177 | syncPrefsGroup->addRadio(i18n("User defined (usertranslation.txt)")); | 180 | syncPrefsGroup->addRadio(i18n("User defined (usertranslation.txt)")); |
178 | if ( QApplication::desktop()->width() < 300 ) | 181 | if ( QApplication::desktop()->width() < 300 ) |
179 | ;// syncPrefsGroup->groupBox()-> setOrientation (Qt::Vertical); | 182 | ;// syncPrefsGroup->groupBox()-> setOrientation (Qt::Vertical); |
180 | topLayout->addMultiCellWidget( syncPrefsGroup->groupBox(),iii,iii,0,1); | 183 | topLayout->addMultiCellWidget( syncPrefsGroup->groupBox(),iii,iii,0,1); |
181 | ++iii; | 184 | ++iii; |
182 | 185 | ||
183 | syncPrefsGroup = | 186 | syncPrefsGroup = |
184 | addWidRadios(i18n("Time Format(nr):"),&(KOPrefs::instance()->mPreferredTime),topFrame); | 187 | addWidRadios(i18n("Time Format(nr):"),&(KOPrefs::instance()->mPreferredTime),topFrame); |
185 | if ( QApplication::desktop()->width() > 300 ) | 188 | if ( QApplication::desktop()->width() > 300 ) |
186 | syncPrefsGroup->groupBox()-> setOrientation (Qt::Vertical); | 189 | syncPrefsGroup->groupBox()-> setOrientation (Qt::Vertical); |
187 | syncPrefsGroup->addRadio(i18n("24:00")); | 190 | syncPrefsGroup->addRadio(i18n("24:00")); |
188 | syncPrefsGroup->addRadio(i18n("12:00am")); | 191 | syncPrefsGroup->addRadio(i18n("12:00am")); |
189 | syncPrefsGroup->groupBox()-> setOrientation (Qt::Vertical); | 192 | syncPrefsGroup->groupBox()-> setOrientation (Qt::Vertical); |
190 | topLayout->addMultiCellWidget( syncPrefsGroup->groupBox(),iii,iii,0,1); | 193 | topLayout->addMultiCellWidget( syncPrefsGroup->groupBox(),iii,iii,0,1); |
@@ -202,48 +205,49 @@ void KOPrefsDialog::setupLocaleTab() | |||
202 | topLayout->addMultiCellWidget(sb->checkBox(), iii,iii,0,1); | 205 | topLayout->addMultiCellWidget(sb->checkBox(), iii,iii,0,1); |
203 | } | 206 | } |
204 | else { | 207 | else { |
205 | QWidget * hb = new QWidget( topFrame ); | 208 | QWidget * hb = new QWidget( topFrame ); |
206 | QHBoxLayout *hbLayout = new QHBoxLayout(hb); | 209 | QHBoxLayout *hbLayout = new QHBoxLayout(hb); |
207 | sb = | 210 | sb = |
208 | addWidBool(i18n("Week starts on Sunday"), | 211 | addWidBool(i18n("Week starts on Sunday"), |
209 | &(KOPrefs::instance()->mWeekStartsOnSunday),hb); | 212 | &(KOPrefs::instance()->mWeekStartsOnSunday),hb); |
210 | hbLayout->addWidget(sb->checkBox() ); | 213 | hbLayout->addWidget(sb->checkBox() ); |
211 | sb = | 214 | sb = |
212 | addWidBool(i18n("Use short date in (WN/E) view"), | 215 | addWidBool(i18n("Use short date in (WN/E) view"), |
213 | &(KOPrefs::instance()->mShortDateInViewer),hb); | 216 | &(KOPrefs::instance()->mShortDateInViewer),hb); |
214 | hbLayout->addWidget(sb->checkBox() ); | 217 | hbLayout->addWidget(sb->checkBox() ); |
215 | topLayout->addMultiCellWidget(hb, iii,iii,0,1); | 218 | topLayout->addMultiCellWidget(hb, iii,iii,0,1); |
216 | 219 | ||
217 | } | 220 | } |
218 | // KPrefsDialogWidBool *sb; //#ifndef DESKTOP_VERSION | 221 | // KPrefsDialogWidBool *sb; //#ifndef DESKTOP_VERSION |
219 | #if 0 | 222 | #if 0 |
220 | ++iii; | 223 | ++iii; |
221 | sb = | 224 | sb = |
222 | addWidBool(i18n("Quick load/save (w/o Unicode)"), | 225 | addWidBool(i18n("Quick load/save (w/o Unicode)"), |
223 | &(KOPrefs::instance()->mUseQuicksave),topFrame); | 226 | &(KOPrefs::instance()->mUseQuicksave),topFrame); |
224 | topLayout->addMultiCellWidget(sb->checkBox(), iii,iii,0,1); | 227 | topLayout->addMultiCellWidget(sb->checkBox(), iii,iii,0,1); |
225 | #endif | 228 | #endif |
229 | #endif | ||
226 | } | 230 | } |
227 | void KOPrefsDialog::showSyncPage() | 231 | void KOPrefsDialog::showSyncPage() |
228 | { | 232 | { |
229 | showPage ( 2 ) ; | 233 | showPage ( 2 ) ; |
230 | 234 | ||
231 | } | 235 | } |
232 | void KOPrefsDialog::setupSyncAlgTab() | 236 | void KOPrefsDialog::setupSyncAlgTab() |
233 | { | 237 | { |
234 | #if 0 | 238 | #if 0 |
235 | QLabel * lab; | 239 | QLabel * lab; |
236 | QFrame *topFrame = addPage(i18n("Sync Prefs"),0,0); | 240 | QFrame *topFrame = addPage(i18n("Sync Prefs"),0,0); |
237 | mSetupSyncAlgTab = topFrame; | 241 | mSetupSyncAlgTab = topFrame; |
238 | QGridLayout *topLayout = new QGridLayout(topFrame,6,2); | 242 | QGridLayout *topLayout = new QGridLayout(topFrame,6,2); |
239 | topLayout->setSpacing(spacingHint()); | 243 | topLayout->setSpacing(spacingHint()); |
240 | topLayout->setMargin(marginHint()); | 244 | topLayout->setMargin(marginHint()); |
241 | int iii = 0; | 245 | int iii = 0; |
242 | 246 | ||
243 | KPrefsDialogWidBool *sb = | 247 | KPrefsDialogWidBool *sb = |
244 | addWidBool(i18n("Ask for preferences before syncing"), | 248 | addWidBool(i18n("Ask for preferences before syncing"), |
245 | &(KOPrefs::instance()->mAskForPreferences),topFrame); | 249 | &(KOPrefs::instance()->mAskForPreferences),topFrame); |
246 | topLayout->addMultiCellWidget(sb->checkBox(), iii,iii,0,1); | 250 | topLayout->addMultiCellWidget(sb->checkBox(), iii,iii,0,1); |
247 | 251 | ||
248 | ++iii; | 252 | ++iii; |
249 | 253 | ||
@@ -602,64 +606,49 @@ void KOPrefsDialog::setupViewsTab() | |||
602 | topLayout->addWidget(dummy->checkBox(),ii++,0); | 606 | topLayout->addWidget(dummy->checkBox(),ii++,0); |
603 | 607 | ||
604 | dummy = | 608 | dummy = |
605 | addWidBool(i18n("Use light color for highlight current day"), | 609 | addWidBool(i18n("Use light color for highlight current day"), |
606 | &(KOPrefs::instance()->mUseHighlightLightColor),topFrame); | 610 | &(KOPrefs::instance()->mUseHighlightLightColor),topFrame); |
607 | topLayout->addWidget(dummy->checkBox(),ii++,0); | 611 | topLayout->addWidget(dummy->checkBox(),ii++,0); |
608 | 612 | ||
609 | KPrefsDialogWidBool *dailyRecur = | 613 | KPrefsDialogWidBool *dailyRecur = |
610 | addWidBool(i18n("Show events that recur daily in date nav."), | 614 | addWidBool(i18n("Show events that recur daily in date nav."), |
611 | &(KOPrefs::instance()->mDailyRecur),topFrame); | 615 | &(KOPrefs::instance()->mDailyRecur),topFrame); |
612 | topLayout->addWidget(dailyRecur->checkBox(),ii++,0); | 616 | topLayout->addWidget(dailyRecur->checkBox(),ii++,0); |
613 | 617 | ||
614 | KPrefsDialogWidBool *weeklyRecur = | 618 | KPrefsDialogWidBool *weeklyRecur = |
615 | addWidBool(i18n("Show ev. that recur weekly in date nav."), | 619 | addWidBool(i18n("Show ev. that recur weekly in date nav."), |
616 | &(KOPrefs::instance()->mWeeklyRecur),topFrame); | 620 | &(KOPrefs::instance()->mWeeklyRecur),topFrame); |
617 | topLayout->addWidget(weeklyRecur->checkBox(),ii++,0); | 621 | topLayout->addWidget(weeklyRecur->checkBox(),ii++,0); |
618 | if ( QApplication::desktop()->width() > 640 ) { | 622 | if ( QApplication::desktop()->width() > 640 ) { |
619 | 623 | ||
620 | KPrefsDialogWidBool *enableToolTips = | 624 | KPrefsDialogWidBool *enableToolTips = |
621 | addWidBool(i18n("Enable tooltips displaying summary of ev."), | 625 | addWidBool(i18n("Enable tooltips displaying summary of ev."), |
622 | &(KOPrefs::instance()->mEnableToolTips),topFrame); | 626 | &(KOPrefs::instance()->mEnableToolTips),topFrame); |
623 | topLayout->addWidget(enableToolTips->checkBox(),ii++,0); | 627 | topLayout->addWidget(enableToolTips->checkBox(),ii++,0); |
624 | 628 | ||
625 | } | 629 | } |
626 | KPrefsDialogWidBool *passwdk = | 630 | |
627 | addWidBool(i18n("Show parent To-Do's in What's Next view"), | ||
628 | &(KOPrefs::instance()->mWNViewShowsParents),topFrame); | ||
629 | topLayout->addWidget(passwdk->checkBox(), ii++,0); | ||
630 | |||
631 | passwdk = | ||
632 | addWidBool(i18n("Show location in What's Next view"), | ||
633 | &(KOPrefs::instance()->mWNViewShowLocation),topFrame); | ||
634 | topLayout->addWidget(passwdk->checkBox(), ii++,0); | ||
635 | |||
636 | passwdk = | ||
637 | addWidBool(i18n("Show Sync Events in WN/Agenda view"), | ||
638 | &(KOPrefs::instance()->mShowSyncEvents),topFrame); | ||
639 | topLayout->addWidget(passwdk->checkBox(), ii++,0); | ||
640 | |||
641 | |||
642 | KPrefsDialogWidBool *marcusBainsEnabled = | 631 | KPrefsDialogWidBool *marcusBainsEnabled = |
643 | addWidBool(i18n("Show Marcus Bains line"), | 632 | addWidBool(i18n("Show Marcus Bains line"), |
644 | &(KOPrefs::instance()->mMarcusBainsEnabled),topFrame); | 633 | &(KOPrefs::instance()->mMarcusBainsEnabled),topFrame); |
645 | topLayout->addWidget(marcusBainsEnabled->checkBox(),ii++,0); | 634 | topLayout->addWidget(marcusBainsEnabled->checkBox(),ii++,0); |
646 | 635 | ||
647 | 636 | ||
648 | // topLayout->addWidget(hourSizeGroup,ii++,0); | 637 | // topLayout->addWidget(hourSizeGroup,ii++,0); |
649 | // topLayout->addMultiCellWidget(hourSizeGroup,ii,ii,0,0); | 638 | // topLayout->addMultiCellWidget(hourSizeGroup,ii,ii,0,0); |
650 | //topLayout->setRowStretch(11,1); | 639 | //topLayout->setRowStretch(11,1); |
651 | 640 | ||
652 | 641 | ||
653 | 642 | ||
654 | 643 | ||
655 | 644 | ||
656 | 645 | ||
657 | topFrame = addPage(i18n("ViewChange"),0,0); | 646 | topFrame = addPage(i18n("ViewChange"),0,0); |
658 | // DesktopIcon("viewmag",KIcon::SizeMedium)); | 647 | // DesktopIcon("viewmag",KIcon::SizeMedium)); |
659 | 648 | ||
660 | topLayout = new QGridLayout(topFrame,6,1); | 649 | topLayout = new QGridLayout(topFrame,6,1); |
661 | topLayout->setSpacing(spacingHint()); | 650 | topLayout->setSpacing(spacingHint()); |
662 | topLayout->setMargin(marginHint()); | 651 | topLayout->setMargin(marginHint()); |
663 | ii = 0; | 652 | ii = 0; |
664 | 653 | ||
665 | 654 | ||
@@ -778,49 +767,75 @@ void KOPrefsDialog::setupViewsTab() | |||
778 | topLayout->addWidget(dummy->checkBox(),ii++,0); | 767 | topLayout->addWidget(dummy->checkBox(),ii++,0); |
779 | coloredCategoriesInMonthView = | 768 | coloredCategoriesInMonthView = |
780 | addWidBool(i18n("Month view uses day colors"), | 769 | addWidBool(i18n("Month view uses day colors"), |
781 | &(KOPrefs::instance()->mMonthViewUsesDayColors),topFrame); | 770 | &(KOPrefs::instance()->mMonthViewUsesDayColors),topFrame); |
782 | topLayout->addWidget(coloredCategoriesInMonthView->checkBox(),ii++,0); | 771 | topLayout->addWidget(coloredCategoriesInMonthView->checkBox(),ii++,0); |
783 | 772 | ||
784 | KPrefsDialogWidColor *holidayColor = | 773 | KPrefsDialogWidColor *holidayColor = |
785 | addWidColor(i18n("Day color odd months"), | 774 | addWidColor(i18n("Day color odd months"), |
786 | &(KOPrefs::instance()->mMonthViewOddColor),topFrame); | 775 | &(KOPrefs::instance()->mMonthViewOddColor),topFrame); |
787 | topLayout->addWidget(holidayColor->label(),ii,0); | 776 | topLayout->addWidget(holidayColor->label(),ii,0); |
788 | topLayout->addWidget(holidayColor->button(),ii++,1); | 777 | topLayout->addWidget(holidayColor->button(),ii++,1); |
789 | 778 | ||
790 | holidayColor = | 779 | holidayColor = |
791 | addWidColor(i18n("Day color even months"), | 780 | addWidColor(i18n("Day color even months"), |
792 | &(KOPrefs::instance()->mMonthViewEvenColor),topFrame); | 781 | &(KOPrefs::instance()->mMonthViewEvenColor),topFrame); |
793 | topLayout->addWidget(holidayColor->label(),ii,0); | 782 | topLayout->addWidget(holidayColor->label(),ii,0); |
794 | topLayout->addWidget(holidayColor->button(),ii++,1); | 783 | topLayout->addWidget(holidayColor->button(),ii++,1); |
795 | 784 | ||
796 | 785 | ||
797 | holidayColor = | 786 | holidayColor = |
798 | addWidColor(i18n("Color for Sundays + category \"Holiday\""), | 787 | addWidColor(i18n("Color for Sundays + category \"Holiday\""), |
799 | &(KOPrefs::instance()->mMonthViewHolidayColor),topFrame); | 788 | &(KOPrefs::instance()->mMonthViewHolidayColor),topFrame); |
800 | topLayout->addWidget(holidayColor->label(),ii,0); | 789 | topLayout->addWidget(holidayColor->label(),ii,0); |
801 | topLayout->addWidget(holidayColor->button(),ii++,1); | 790 | topLayout->addWidget(holidayColor->button(),ii++,1); |
802 | 791 | // *********************** What'sNext View | |
792 | topFrame = addPage(i18n("What's Next View"),0,0); | ||
793 | // DesktopIcon("viewmag",KIcon::SizeMedium)); | ||
794 | |||
795 | topLayout = new QGridLayout(topFrame,4,1); | ||
796 | topLayout->setSpacing(spacingHint()); | ||
797 | topLayout->setMargin(marginHint()); | ||
798 | ii = 0; | ||
799 | KPrefsDialogWidBool *passwdk = | ||
800 | addWidBool(i18n("Show parent To-Do's in What's Next view"), | ||
801 | &(KOPrefs::instance()->mWNViewShowsParents),topFrame); | ||
802 | topLayout->addWidget(passwdk->checkBox(), ii++,0); | ||
803 | |||
804 | passwdk = | ||
805 | addWidBool(i18n("Show location in What's Next view"), | ||
806 | &(KOPrefs::instance()->mWNViewShowLocation),topFrame); | ||
807 | topLayout->addWidget(passwdk->checkBox(), ii++,0); | ||
808 | |||
809 | passwdk = | ||
810 | addWidBool(i18n("Show Sync Events in \nWhat's Next/Agenda view"), | ||
811 | &(KOPrefs::instance()->mShowSyncEvents),topFrame); | ||
812 | topLayout->addWidget(passwdk->checkBox(), ii++,0); | ||
813 | passwdk = | ||
814 | addWidBool(i18n("Use short date in \nWhat's Next/Event view"), | ||
815 | &(KOPrefs::instance()->mShortDateInViewer),topFrame); | ||
816 | topLayout->addMultiCellWidget(passwdk->checkBox(), ii,ii,0,1); | ||
817 | |||
803 | // *********************** Todo View | 818 | // *********************** Todo View |
804 | 819 | ||
805 | topFrame = addPage(i18n("Todo View"),0,0); | 820 | topFrame = addPage(i18n("Todo View"),0,0); |
806 | // DesktopIcon("viewmag",KIcon::SizeMedium)); | 821 | // DesktopIcon("viewmag",KIcon::SizeMedium)); |
807 | 822 | ||
808 | topLayout = new QGridLayout(topFrame,4,1); | 823 | topLayout = new QGridLayout(topFrame,4,1); |
809 | topLayout->setSpacing(spacingHint()); | 824 | topLayout->setSpacing(spacingHint()); |
810 | topLayout->setMargin(marginHint()); | 825 | topLayout->setMargin(marginHint()); |
811 | ii = 0; | 826 | ii = 0; |
812 | 827 | ||
813 | KPrefsDialogWidBool *showCompletedTodo = | 828 | KPrefsDialogWidBool *showCompletedTodo = |
814 | addWidBool(i18n("To-do view shows completed Todos"), | 829 | addWidBool(i18n("To-do view shows completed Todos"), |
815 | &(KOPrefs::instance()->mShowCompletedTodo),topFrame); | 830 | &(KOPrefs::instance()->mShowCompletedTodo),topFrame); |
816 | topLayout->addWidget(showCompletedTodo->checkBox(),ii++,0); | 831 | topLayout->addWidget(showCompletedTodo->checkBox(),ii++,0); |
817 | dummy = | 832 | dummy = |
818 | addWidBool(i18n("To-do view shows complete as 'xx %'"), | 833 | addWidBool(i18n("To-do view shows complete as 'xx %'"), |
819 | &(KOPrefs::instance()->mTodoViewShowsPercentage),topFrame); | 834 | &(KOPrefs::instance()->mTodoViewShowsPercentage),topFrame); |
820 | topLayout->addWidget(dummy->checkBox(),ii++,0); | 835 | topLayout->addWidget(dummy->checkBox(),ii++,0); |
821 | 836 | ||
822 | dummy = | 837 | dummy = |
823 | addWidBool(i18n("Small To-do view uses smaller font"), | 838 | addWidBool(i18n("Small To-do view uses smaller font"), |
824 | &(KOPrefs::instance()->mTodoViewUsesSmallFont),topFrame); | 839 | &(KOPrefs::instance()->mTodoViewUsesSmallFont),topFrame); |
825 | topLayout->addWidget(dummy->checkBox(),ii++,0); | 840 | topLayout->addWidget(dummy->checkBox(),ii++,0); |
826 | 841 | ||
@@ -1315,122 +1330,122 @@ void KOPrefsDialog::showPrinterTab() | |||
1315 | 1330 | ||
1316 | void KOPrefsDialog::setCombo(QComboBox *combo, const QString & text, | 1331 | void KOPrefsDialog::setCombo(QComboBox *combo, const QString & text, |
1317 | const QStringList *tags) | 1332 | const QStringList *tags) |
1318 | { | 1333 | { |
1319 | if (tags) { | 1334 | if (tags) { |
1320 | int i = tags->findIndex(text); | 1335 | int i = tags->findIndex(text); |
1321 | if (i > 0) combo->setCurrentItem(i); | 1336 | if (i > 0) combo->setCurrentItem(i); |
1322 | } else { | 1337 | } else { |
1323 | for(int i=0;i<combo->count();++i) { | 1338 | for(int i=0;i<combo->count();++i) { |
1324 | if (combo->text(i) == text) { | 1339 | if (combo->text(i) == text) { |
1325 | combo->setCurrentItem(i); | 1340 | combo->setCurrentItem(i); |
1326 | break; | 1341 | break; |
1327 | } | 1342 | } |
1328 | } | 1343 | } |
1329 | } | 1344 | } |
1330 | } | 1345 | } |
1331 | 1346 | ||
1332 | void KOPrefsDialog::usrReadConfig() | 1347 | void KOPrefsDialog::usrReadConfig() |
1333 | { | 1348 | { |
1334 | kdelibcfg->readConfig(); | 1349 | kdelibcfg->readConfig(); |
1335 | mNameEdit->setText(KOPrefs::instance()->fullName()); | 1350 | mNameEdit->setText(KOPrefs::instance()->fullName()); |
1336 | mEmailEdit->setText(KOPrefs::instance()->email()); | 1351 | mEmailEdit->setText(KOPrefs::instance()->email()); |
1337 | 1352 | ||
1338 | mAutoSaveIntervalSpin->setValue(KOPrefs::instance()->mAutoSaveInterval); | 1353 | mAutoSaveIntervalSpin->setValue(KOPrefs::instance()->mAutoSaveInterval); |
1339 | QDate current ( 2001, 1,1); | 1354 | // QDate current ( 2001, 1,1); |
1340 | mStartDateSavingEdit->setDate(current.addDays(KOPrefs::instance()->mDaylightsavingStart-1)); | 1355 | //mStartDateSavingEdit->setDate(current.addDays(KOPrefs::instance()->mDaylightsavingStart-1)); |
1341 | mEndDateSavingEdit->setDate(current.addDays(KOPrefs::instance()->mDaylightsavingEnd-1)); | 1356 | //mEndDateSavingEdit->setDate(current.addDays(KOPrefs::instance()->mDaylightsavingEnd-1)); |
1342 | setCombo(mTimeZoneCombo,i18n(KOPrefs::instance()->mTimeZoneId)); | 1357 | //setCombo(mTimeZoneCombo,i18n(KOPrefs::instance()->mTimeZoneId)); |
1343 | //mTimezoneOffsetSpin->setValue( KOPrefs::instance()->mTimeZoneOffset); | 1358 | //mTimezoneOffsetSpin->setValue( KOPrefs::instance()->mTimeZoneOffset); |
1344 | mStartTimeSpin->setValue(KOPrefs::instance()->mStartTime); | 1359 | mStartTimeSpin->setValue(KOPrefs::instance()->mStartTime); |
1345 | mDefaultDurationSpin->setValue(KOPrefs::instance()->mDefaultDuration); | 1360 | mDefaultDurationSpin->setValue(KOPrefs::instance()->mDefaultDuration); |
1346 | mAlarmTimeCombo->setCurrentItem(KOPrefs::instance()->mAlarmTime); | 1361 | mAlarmTimeCombo->setCurrentItem(KOPrefs::instance()->mAlarmTime); |
1347 | // if (KOPrefs::instance()->mAllDaySize > 47 ) | 1362 | // if (KOPrefs::instance()->mAllDaySize > 47 ) |
1348 | // KOPrefs::instance()->mAllDaySize = KOPrefs::instance()->mAllDaySize/2; | 1363 | // KOPrefs::instance()->mAllDaySize = KOPrefs::instance()->mAllDaySize/2; |
1349 | //mHourSizeSlider->setValue(KOPrefs::instance()->mAllDaySize); | 1364 | //mHourSizeSlider->setValue(KOPrefs::instance()->mAllDaySize); |
1350 | 1365 | ||
1351 | mNextXDaysSpin->setValue(KOPrefs::instance()->mNextXDays); | 1366 | mNextXDaysSpin->setValue(KOPrefs::instance()->mNextXDays); |
1352 | mWhatsNextSpin->setValue(KOPrefs::instance()->mWhatsNextDays); | 1367 | mWhatsNextSpin->setValue(KOPrefs::instance()->mWhatsNextDays); |
1353 | mPrioSpin->setValue(KOPrefs::instance()->mWhatsNextPrios); | 1368 | mPrioSpin->setValue(KOPrefs::instance()->mWhatsNextPrios); |
1354 | // mAMails->clear(); | 1369 | // mAMails->clear(); |
1355 | // for ( QStringList::Iterator it = KOPrefs::instance()->mAdditionalMails.begin(); | 1370 | // for ( QStringList::Iterator it = KOPrefs::instance()->mAdditionalMails.begin(); |
1356 | // it != KOPrefs::instance()->mAdditionalMails.end(); ++it ) { | 1371 | // it != KOPrefs::instance()->mAdditionalMails.end(); ++it ) { |
1357 | // QListViewItem *item = new QListViewItem(mAMails); | 1372 | // QListViewItem *item = new QListViewItem(mAMails); |
1358 | // item->setText(0,*it); | 1373 | // item->setText(0,*it); |
1359 | // mAMails->insertItem(item); | 1374 | // mAMails->insertItem(item); |
1360 | // } | 1375 | // } |
1361 | 1376 | ||
1362 | // mRemoteIPEdit->setText(KOPrefs::instance()->mRemoteIP); | 1377 | // mRemoteIPEdit->setText(KOPrefs::instance()->mRemoteIP); |
1363 | //mRemoteUser->setText(KOPrefs::instance()->mRemoteUser); | 1378 | //mRemoteUser->setText(KOPrefs::instance()->mRemoteUser); |
1364 | //mRemotePassWd->setText(KOPrefs::instance()->mRemotePassWd); | 1379 | //mRemotePassWd->setText(KOPrefs::instance()->mRemotePassWd); |
1365 | //mRemoteFile->setText(KOPrefs::instance()->mRemoteFile); | 1380 | //mRemoteFile->setText(KOPrefs::instance()->mRemoteFile); |
1366 | 1381 | ||
1367 | //that soundmLocalTempFile->setText(KOPrefs::instance()->mLocalTempFile); | 1382 | //that soundmLocalTempFile->setText(KOPrefs::instance()->mLocalTempFile); |
1368 | mDefaultAlarmFile->setText(KOPrefs::instance()->mDefaultAlarmFile); | 1383 | mDefaultAlarmFile->setText(KOPrefs::instance()->mDefaultAlarmFile); |
1369 | QString dummy = KOPrefs::instance()->mUserDateFormatLong; | 1384 | //QString dummy = KOPrefs::instance()->mUserDateFormatLong; |
1370 | mUserDateFormatLong->setText(dummy.replace( QRegExp("K"), QString(",") )); | 1385 | //mUserDateFormatLong->setText(dummy.replace( QRegExp("K"), QString(",") )); |
1371 | dummy = KOPrefs::instance()->mUserDateFormatShort; | 1386 | //dummy = KOPrefs::instance()->mUserDateFormatShort; |
1372 | mUserDateFormatShort->setText(dummy.replace( QRegExp("K"), QString(",") )); | 1387 | //mUserDateFormatShort->setText(dummy.replace( QRegExp("K"), QString(",") )); |
1373 | updateCategories(); | 1388 | updateCategories(); |
1374 | mAlarmPlayBeeps->setValue(KOPrefs::instance()->mAlarmPlayBeeps ); | 1389 | mAlarmPlayBeeps->setValue(KOPrefs::instance()->mAlarmPlayBeeps ); |
1375 | mAlarmSuspendTime->setValue(KOPrefs::instance()->mAlarmSuspendTime ); | 1390 | mAlarmSuspendTime->setValue(KOPrefs::instance()->mAlarmSuspendTime ); |
1376 | mAlarmSuspendCount->setValue(KOPrefs::instance()->mAlarmSuspendCount ); | 1391 | mAlarmSuspendCount->setValue(KOPrefs::instance()->mAlarmSuspendCount ); |
1377 | mAlarmBeepInterval->setValue(KOPrefs::instance()->mAlarmBeepInterval ); | 1392 | mAlarmBeepInterval->setValue(KOPrefs::instance()->mAlarmBeepInterval ); |
1378 | } | 1393 | } |
1379 | 1394 | ||
1380 | 1395 | ||
1381 | void KOPrefsDialog::usrWriteConfig() | 1396 | void KOPrefsDialog::usrWriteConfig() |
1382 | { | 1397 | { |
1383 | 1398 | ||
1384 | kdelibcfg->writeConfig(); | 1399 | kdelibcfg->writeConfig(); |
1385 | // KOPrefs::instance()->mRemoteIP = mRemoteIPEdit->text(); | 1400 | // KOPrefs::instance()->mRemoteIP = mRemoteIPEdit->text(); |
1386 | //KOPrefs::instance()->mRemoteUser = mRemoteUser->text(); | 1401 | //KOPrefs::instance()->mRemoteUser = mRemoteUser->text(); |
1387 | //KOPrefs::instance()->mRemotePassWd = mRemotePassWd->text(); | 1402 | //KOPrefs::instance()->mRemotePassWd = mRemotePassWd->text(); |
1388 | //KOPrefs::instance()->mRemoteFile= mRemoteFile->text(); | 1403 | //KOPrefs::instance()->mRemoteFile= mRemoteFile->text(); |
1389 | //KOPrefs::instance()->mLocalTempFile =mLocalTempFile->text(); | 1404 | //KOPrefs::instance()->mLocalTempFile =mLocalTempFile->text(); |
1390 | KOPrefs::instance()->mDefaultAlarmFile =mDefaultAlarmFile->text(); | 1405 | KOPrefs::instance()->mDefaultAlarmFile =mDefaultAlarmFile->text(); |
1391 | 1406 | ||
1392 | KOPrefs::instance()->mUserDateFormatShort = mUserDateFormatShort->text().replace( QRegExp(","), QString("K") ); | 1407 | //KOPrefs::instance()->mUserDateFormatShort = mUserDateFormatShort->text().replace( QRegExp(","), QString("K") ); |
1393 | KOPrefs::instance()->mUserDateFormatLong = mUserDateFormatLong->text().replace( QRegExp(","), QString("K") ); | 1408 | //KOPrefs::instance()->mUserDateFormatLong = mUserDateFormatLong->text().replace( QRegExp(","), QString("K") ); |
1394 | KOPrefs::instance()->setFullName(mNameEdit->text()); | 1409 | KOPrefs::instance()->setFullName(mNameEdit->text()); |
1395 | KOPrefs::instance()->setEmail(mEmailEdit->text()); | 1410 | KOPrefs::instance()->setEmail(mEmailEdit->text()); |
1396 | 1411 | ||
1397 | KOPrefs::instance()->mAutoSaveInterval = mAutoSaveIntervalSpin->value(); | 1412 | KOPrefs::instance()->mAutoSaveInterval = mAutoSaveIntervalSpin->value(); |
1398 | 1413 | ||
1399 | KOPrefs::instance()->mTimeZoneId = mTimeZoneCombo->currentText(); | 1414 | // KOPrefs::instance()->mTimeZoneId = mTimeZoneCombo->currentText(); |
1400 | QDate date; | 1415 | //QDate date; |
1401 | date = mStartDateSavingEdit->date(); | 1416 | //date = mStartDateSavingEdit->date(); |
1402 | int sub = 0; | 1417 | //int sub = 0; |
1403 | if ( QDate::leapYear( date.year() ) && date.dayOfYear() > 59 ) | 1418 | //if ( QDate::leapYear( date.year() ) && date.dayOfYear() > 59 ) |
1404 | sub = 1; | 1419 | // sub = 1; |
1405 | KOPrefs::instance()->mDaylightsavingStart = date.dayOfYear()-sub; | 1420 | // KOPrefs::instance()->mDaylightsavingStart = date.dayOfYear()-sub; |
1406 | date = mEndDateSavingEdit->date(); | 1421 | // date = mEndDateSavingEdit->date(); |
1407 | if ( QDate::leapYear( date.year() ) && date.dayOfYear() > 59 ) | 1422 | // if ( QDate::leapYear( date.year() ) && date.dayOfYear() > 59 ) |
1408 | sub = 1; | 1423 | // sub = 1; |
1409 | else | 1424 | // else |
1410 | sub = 0; | 1425 | // sub = 0; |
1411 | KOPrefs::instance()->mDaylightsavingEnd = date.dayOfYear()-sub; | 1426 | // KOPrefs::instance()->mDaylightsavingEnd = date.dayOfYear()-sub; |
1412 | // KOPrefs::instance()->mTimeZoneOffset = mTimezoneOffsetSpin->value(); | 1427 | // // KOPrefs::instance()->mTimeZoneOffset = mTimezoneOffsetSpin->value(); |
1413 | 1428 | ||
1414 | KOPrefs::instance()->mStartTime = mStartTimeSpin->value(); | 1429 | KOPrefs::instance()->mStartTime = mStartTimeSpin->value(); |
1415 | KOPrefs::instance()->mDefaultDuration = mDefaultDurationSpin->value(); | 1430 | KOPrefs::instance()->mDefaultDuration = mDefaultDurationSpin->value(); |
1416 | KOPrefs::instance()->mAlarmTime = mAlarmTimeCombo->currentItem(); | 1431 | KOPrefs::instance()->mAlarmTime = mAlarmTimeCombo->currentItem(); |
1417 | 1432 | ||
1418 | //KOPrefs::instance()->mAllDaySize = mHourSizeSlider->value(); | 1433 | //KOPrefs::instance()->mAllDaySize = mHourSizeSlider->value(); |
1419 | 1434 | ||
1420 | QDictIterator<QColor> it(mCategoryDict); | 1435 | QDictIterator<QColor> it(mCategoryDict); |
1421 | while (it.current()) { | 1436 | while (it.current()) { |
1422 | KOPrefs::instance()->setCategoryColor(it.currentKey(),*it.current()); | 1437 | KOPrefs::instance()->setCategoryColor(it.currentKey(),*it.current()); |
1423 | ++it; | 1438 | ++it; |
1424 | } | 1439 | } |
1425 | 1440 | ||
1426 | KOPrefs::instance()->mNextXDays = mNextXDaysSpin->value(); | 1441 | KOPrefs::instance()->mNextXDays = mNextXDaysSpin->value(); |
1427 | KOPrefs::instance()->mWhatsNextDays = mWhatsNextSpin->value(); | 1442 | KOPrefs::instance()->mWhatsNextDays = mWhatsNextSpin->value(); |
1428 | KOPrefs::instance()->mWhatsNextPrios = mPrioSpin->value(); | 1443 | KOPrefs::instance()->mWhatsNextPrios = mPrioSpin->value(); |
1429 | 1444 | ||
1430 | KOPrefs::instance()->mAdditionalMails.clear(); | 1445 | KOPrefs::instance()->mAdditionalMails.clear(); |
1431 | // QListViewItem *item; | 1446 | // QListViewItem *item; |
1432 | // item = mAMails->firstChild(); | 1447 | // item = mAMails->firstChild(); |
1433 | // while (item) | 1448 | // while (item) |
1434 | // { | 1449 | // { |
1435 | // KOPrefs::instance()->mAdditionalMails.append( item->text(0) ); | 1450 | // KOPrefs::instance()->mAdditionalMails.append( item->text(0) ); |
1436 | // item = item->nextSibling(); | 1451 | // item = item->nextSibling(); |
@@ -1536,48 +1551,49 @@ void KOPrefsDialog::updateInput() | |||
1536 | void KOPrefsDialog::updateTimezoneOffset( int index ) | 1551 | void KOPrefsDialog::updateTimezoneOffset( int index ) |
1537 | { | 1552 | { |
1538 | /* | 1553 | /* |
1539 | qDebug("updateTimezoneOffset %d ", index); | 1554 | qDebug("updateTimezoneOffset %d ", index); |
1540 | if ( index < 24 ) { | 1555 | if ( index < 24 ) { |
1541 | mTimezoneOffsetSpin->setEnabled ( false ); | 1556 | mTimezoneOffsetSpin->setEnabled ( false ); |
1542 | mTimezoneOffsetSpin->setValue( ( index-11 ) * 60 ); | 1557 | mTimezoneOffsetSpin->setValue( ( index-11 ) * 60 ); |
1543 | 1558 | ||
1544 | 1559 | ||
1545 | } else { | 1560 | } else { |
1546 | if ( index == 24 ) { | 1561 | if ( index == 24 ) { |
1547 | mTimezoneOffsetSpin->setEnabled ( true ); | 1562 | mTimezoneOffsetSpin->setEnabled ( true ); |
1548 | mTimezoneOffsetSpin->setValue( KOPrefs::instance()->mTimeZoneOffset); | 1563 | mTimezoneOffsetSpin->setValue( KOPrefs::instance()->mTimeZoneOffset); |
1549 | 1564 | ||
1550 | } else { | 1565 | } else { |
1551 | mTimezoneOffsetSpin->setEnabled ( false ); | 1566 | mTimezoneOffsetSpin->setEnabled ( false ); |
1552 | mTimezoneOffsetSpin->setValue( 0 ); | 1567 | mTimezoneOffsetSpin->setValue( 0 ); |
1553 | } | 1568 | } |
1554 | } | 1569 | } |
1555 | */ | 1570 | */ |
1556 | } | 1571 | } |
1557 | 1572 | ||
1558 | void KOPrefsDialog::setupTimeZoneTab() | 1573 | void KOPrefsDialog::setupTimeZoneTab() |
1559 | { | 1574 | { |
1575 | #if 0 | ||
1560 | QFrame *topFrame = addPage(i18n("Time Zone"),0,0); | 1576 | QFrame *topFrame = addPage(i18n("Time Zone"),0,0); |
1561 | // DesktopIcon("clock",KIcon::SizeMedium)); | 1577 | // DesktopIcon("clock",KIcon::SizeMedium)); |
1562 | 1578 | ||
1563 | QGridLayout *topLayout = new QGridLayout(topFrame,5,2); | 1579 | QGridLayout *topLayout = new QGridLayout(topFrame,5,2); |
1564 | topLayout->setSpacing(spacingHint()); | 1580 | topLayout->setSpacing(spacingHint()); |
1565 | topLayout->setMargin(marginHint()); | 1581 | topLayout->setMargin(marginHint()); |
1566 | 1582 | ||
1567 | QHBox *timeZoneBox = new QHBox( topFrame ); | 1583 | QHBox *timeZoneBox = new QHBox( topFrame ); |
1568 | topLayout->addMultiCellWidget( timeZoneBox, 0, 0, 0, 1 ); | 1584 | topLayout->addMultiCellWidget( timeZoneBox, 0, 0, 0, 1 ); |
1569 | 1585 | ||
1570 | new QLabel( i18n("Timezone:"), timeZoneBox ); | 1586 | new QLabel( i18n("Timezone:"), timeZoneBox ); |
1571 | mTimeZoneCombo = new QComboBox( timeZoneBox ); | 1587 | mTimeZoneCombo = new QComboBox( timeZoneBox ); |
1572 | if ( QApplication::desktop()->width() < 300 ) { | 1588 | if ( QApplication::desktop()->width() < 300 ) { |
1573 | mTimeZoneCombo->setMaximumWidth(150); | 1589 | mTimeZoneCombo->setMaximumWidth(150); |
1574 | } | 1590 | } |
1575 | 1591 | ||
1576 | QStringList list; | 1592 | QStringList list; |
1577 | list = KGlobal::locale()->timeZoneList(); | 1593 | list = KGlobal::locale()->timeZoneList(); |
1578 | mTimeZoneCombo->insertStringList(list); | 1594 | mTimeZoneCombo->insertStringList(list); |
1579 | 1595 | ||
1580 | // find the currently set time zone and select it | 1596 | // find the currently set time zone and select it |
1581 | QString sCurrentlySet = KOPrefs::instance()->mTimeZoneId; | 1597 | QString sCurrentlySet = KOPrefs::instance()->mTimeZoneId; |
1582 | int nCurrentlySet = 11; | 1598 | int nCurrentlySet = 11; |
1583 | for (int i = 0; i < mTimeZoneCombo->count(); i++) | 1599 | for (int i = 0; i < mTimeZoneCombo->count(); i++) |
@@ -1594,28 +1610,28 @@ void KOPrefsDialog::setupTimeZoneTab() | |||
1594 | addWidBool(i18n("Timezone has daylight saving"), | 1610 | addWidBool(i18n("Timezone has daylight saving"), |
1595 | &(KOPrefs::instance()->mUseDaylightsaving),topFrame); | 1611 | &(KOPrefs::instance()->mUseDaylightsaving),topFrame); |
1596 | topLayout->addMultiCellWidget(sb->checkBox(), iii,iii,0,1); | 1612 | topLayout->addMultiCellWidget(sb->checkBox(), iii,iii,0,1); |
1597 | ++iii; | 1613 | ++iii; |
1598 | QLabel* lab = new QLabel( i18n("Actual start and end is the\nsunday before this date."), topFrame ); | 1614 | QLabel* lab = new QLabel( i18n("Actual start and end is the\nsunday before this date."), topFrame ); |
1599 | topLayout->addMultiCellWidget(lab, iii,iii,0,1); | 1615 | topLayout->addMultiCellWidget(lab, iii,iii,0,1); |
1600 | ++iii; | 1616 | ++iii; |
1601 | lab = new QLabel( i18n("The year in the date is ignored."), topFrame ); | 1617 | lab = new QLabel( i18n("The year in the date is ignored."), topFrame ); |
1602 | topLayout->addMultiCellWidget(lab, iii,iii,0,1); | 1618 | topLayout->addMultiCellWidget(lab, iii,iii,0,1); |
1603 | ++iii; | 1619 | ++iii; |
1604 | lab = new QLabel( i18n("Daylight start:"), topFrame ); | 1620 | lab = new QLabel( i18n("Daylight start:"), topFrame ); |
1605 | topLayout->addWidget(lab, iii,0); | 1621 | topLayout->addWidget(lab, iii,0); |
1606 | mStartDateSavingEdit = new KDateEdit(topFrame); | 1622 | mStartDateSavingEdit = new KDateEdit(topFrame); |
1607 | topLayout->addWidget(mStartDateSavingEdit, iii,1); | 1623 | topLayout->addWidget(mStartDateSavingEdit, iii,1); |
1608 | ++iii; | 1624 | ++iii; |
1609 | 1625 | ||
1610 | lab = new QLabel( i18n("Daylight end:"), topFrame ); | 1626 | lab = new QLabel( i18n("Daylight end:"), topFrame ); |
1611 | topLayout->addWidget(lab, iii,0); | 1627 | topLayout->addWidget(lab, iii,0); |
1612 | mEndDateSavingEdit = new KDateEdit(topFrame); | 1628 | mEndDateSavingEdit = new KDateEdit(topFrame); |
1613 | topLayout->addWidget(mEndDateSavingEdit, iii,1); | 1629 | topLayout->addWidget(mEndDateSavingEdit, iii,1); |
1614 | ++iii; | 1630 | ++iii; |
1615 | QDate current ( 2001, 1,1); | 1631 | QDate current ( 2001, 1,1); |
1616 | mStartDateSavingEdit->setDate(current.addDays(KOPrefs::instance()->mDaylightsavingStart-1)); | 1632 | mStartDateSavingEdit->setDate(current.addDays(KOPrefs::instance()->mDaylightsavingStart-1)); |
1617 | mEndDateSavingEdit->setDate(current.addDays(KOPrefs::instance()->mDaylightsavingEnd-1)); | 1633 | mEndDateSavingEdit->setDate(current.addDays(KOPrefs::instance()->mDaylightsavingEnd-1)); |
1618 | 1634 | #endif | |
1619 | 1635 | ||
1620 | } | 1636 | } |
1621 | 1637 | ||
diff --git a/korganizer/mainwindow.cpp b/korganizer/mainwindow.cpp index b597a6a..1c4a186 100644 --- a/korganizer/mainwindow.cpp +++ b/korganizer/mainwindow.cpp | |||
@@ -13,95 +13,97 @@ | |||
13 | #include <qlabel.h> | 13 | #include <qlabel.h> |
14 | #include <qmap.h> | 14 | #include <qmap.h> |
15 | #include <qwmatrix.h> | 15 | #include <qwmatrix.h> |
16 | #include <qtextbrowser.h> | 16 | #include <qtextbrowser.h> |
17 | #include <qtextstream.h> | 17 | #include <qtextstream.h> |
18 | #ifndef DESKTOP_VERSION | 18 | #ifndef DESKTOP_VERSION |
19 | #include <qpe/global.h> | 19 | #include <qpe/global.h> |
20 | #include <qpe/qpemenubar.h> | 20 | #include <qpe/qpemenubar.h> |
21 | #include <qpe/qpetoolbar.h> | 21 | #include <qpe/qpetoolbar.h> |
22 | #include <qpe/resource.h> | 22 | #include <qpe/resource.h> |
23 | #include <qpe/qpeapplication.h> | 23 | #include <qpe/qpeapplication.h> |
24 | #include <qtopia/alarmserver.h> | 24 | #include <qtopia/alarmserver.h> |
25 | #include <qtopia/qcopenvelope_qws.h> | 25 | #include <qtopia/qcopenvelope_qws.h> |
26 | #else | 26 | #else |
27 | #include <qmenubar.h> | 27 | #include <qmenubar.h> |
28 | #include <qtoolbar.h> | 28 | #include <qtoolbar.h> |
29 | #include <qapplication.h> | 29 | #include <qapplication.h> |
30 | //#include <resource.h> | 30 | //#include <resource.h> |
31 | 31 | ||
32 | #endif | 32 | #endif |
33 | #include <libkcal/calendarlocal.h> | 33 | #include <libkcal/calendarlocal.h> |
34 | #include <libkcal/todo.h> | 34 | #include <libkcal/todo.h> |
35 | #include <libkdepim/ksyncprofile.h> | 35 | #include <libkdepim/ksyncprofile.h> |
36 | #include <libkcal/kincidenceformatter.h> | 36 | #include <libkcal/kincidenceformatter.h> |
37 | #include <libkdepim/kpimglobalprefs.h> | ||
37 | 38 | ||
38 | #include "calendarview.h" | 39 | #include "calendarview.h" |
39 | #include "koviewmanager.h" | 40 | #include "koviewmanager.h" |
40 | #include "datenavigator.h" | 41 | #include "datenavigator.h" |
41 | #include "koagendaview.h" | 42 | #include "koagendaview.h" |
42 | #include "koagenda.h" | 43 | #include "koagenda.h" |
43 | #include "kodialogmanager.h" | 44 | #include "kodialogmanager.h" |
44 | #include "kdialogbase.h" | 45 | #include "kdialogbase.h" |
45 | #include "kapplication.h" | 46 | #include "kapplication.h" |
46 | #include "kofilterview.h" | 47 | #include "kofilterview.h" |
47 | #include "kstandarddirs.h" | 48 | #include "kstandarddirs.h" |
48 | #include "koprefs.h" | 49 | #include "koprefs.h" |
49 | #include "kfiledialog.h" | 50 | #include "kfiledialog.h" |
50 | #include "koglobals.h" | 51 | #include "koglobals.h" |
51 | #include "kglobal.h" | 52 | #include "kglobal.h" |
52 | #include "klocale.h" | 53 | #include "klocale.h" |
53 | #include "kconfig.h" | 54 | #include "kconfig.h" |
54 | #include "simplealarmclient.h" | 55 | #include "simplealarmclient.h" |
55 | #include "externalapphandler.h" | 56 | #include "externalapphandler.h" |
56 | 57 | ||
57 | using namespace KCal; | 58 | using namespace KCal; |
58 | #ifndef _WIN32_ | 59 | #ifndef _WIN32_ |
59 | #include <unistd.h> | 60 | #include <unistd.h> |
60 | #else | 61 | #else |
61 | #include "koimportoldialog.h" | 62 | #include "koimportoldialog.h" |
62 | #endif | 63 | #endif |
63 | #include "mainwindow.h" | 64 | #include "mainwindow.h" |
64 | 65 | ||
65 | int globalFlagBlockStartup; | 66 | int globalFlagBlockStartup; |
66 | MainWindow::MainWindow( QWidget *parent, const char *name, QString msg) : | 67 | MainWindow::MainWindow( QWidget *parent, const char *name, QString msg) : |
67 | QMainWindow( parent, name ) | 68 | QMainWindow( parent, name ) |
68 | { | 69 | { |
69 | 70 | ||
70 | #ifdef DESKTOP_VERSION | 71 | #ifdef DESKTOP_VERSION |
71 | setFont( QFont("Arial"), 14 ); | 72 | setFont( QFont("Arial"), 14 ); |
72 | #endif | 73 | #endif |
73 | 74 | ||
74 | mClosed = false; | 75 | mClosed = false; |
75 | //QString confFile = KStandardDirs::appDir() + "config/korganizerrc"; | 76 | //QString confFile = KStandardDirs::appDir() + "config/korganizerrc"; |
76 | QString confFile = locateLocal("config","korganizerrc"); | 77 | QString confFile = locateLocal("config","korganizerrc"); |
77 | QFileInfo finf ( confFile ); | 78 | QFileInfo finf ( confFile ); |
78 | bool showWarning = !finf.exists(); | 79 | bool showWarning = !finf.exists(); |
79 | setIcon(SmallIcon( "ko24" ) ); | 80 | setIcon(SmallIcon( "ko24" ) ); |
80 | mBlockAtStartup = true; | 81 | mBlockAtStartup = true; |
81 | mFlagKeyPressed = false; | 82 | mFlagKeyPressed = false; |
82 | setCaption("KOrganizer/Pi"); | 83 | setCaption("KOrganizer/Pi"); |
83 | KOPrefs *p = KOPrefs::instance(); | 84 | KOPrefs *p = KOPrefs::instance(); |
85 | KPimGlobalPrefs::instance()->setGlobalConfig(); | ||
84 | // if ( QApplication::desktop()->height() > 480 ) { | 86 | // if ( QApplication::desktop()->height() > 480 ) { |
85 | // if ( p->mHourSize == 4 ) | 87 | // if ( p->mHourSize == 4 ) |
86 | // p->mHourSize = 6; | 88 | // p->mHourSize = 6; |
87 | // } | 89 | // } |
88 | if ( p->mHourSize > 18 ) | 90 | if ( p->mHourSize > 18 ) |
89 | p->mHourSize = 18; | 91 | p->mHourSize = 18; |
90 | QMainWindow::ToolBarDock tbd; | 92 | QMainWindow::ToolBarDock tbd; |
91 | if ( p->mToolBarHor ) { | 93 | if ( p->mToolBarHor ) { |
92 | if ( p->mToolBarUp ) | 94 | if ( p->mToolBarUp ) |
93 | tbd = Bottom; | 95 | tbd = Bottom; |
94 | else | 96 | else |
95 | tbd = Top; | 97 | tbd = Top; |
96 | } | 98 | } |
97 | else { | 99 | else { |
98 | if ( p->mToolBarUp ) | 100 | if ( p->mToolBarUp ) |
99 | tbd = Right; | 101 | tbd = Right; |
100 | else | 102 | else |
101 | tbd = Left; | 103 | tbd = Left; |
102 | } | 104 | } |
103 | if ( KOPrefs::instance()->mUseAppColors ) | 105 | if ( KOPrefs::instance()->mUseAppColors ) |
104 | QApplication::setPalette( QPalette (KOPrefs::instance()->mAppColor1, KOPrefs::instance()->mAppColor2), true ); | 106 | QApplication::setPalette( QPalette (KOPrefs::instance()->mAppColor1, KOPrefs::instance()->mAppColor2), true ); |
105 | globalFlagBlockStartup = 1; | 107 | globalFlagBlockStartup = 1; |
106 | iconToolBar = new QPEToolBar( this ); | 108 | iconToolBar = new QPEToolBar( this ); |
107 | addToolBar (iconToolBar , tbd ); | 109 | addToolBar (iconToolBar , tbd ); |
diff --git a/libkdepim/kcmconfigs/kdepimconfigwidget.cpp b/libkdepim/kcmconfigs/kdepimconfigwidget.cpp index 00a07d9..2819ab1 100644 --- a/libkdepim/kcmconfigs/kdepimconfigwidget.cpp +++ b/libkdepim/kcmconfigs/kdepimconfigwidget.cpp | |||
@@ -723,49 +723,49 @@ void KDEPIMConfigWidget::usrWriteConfig() | |||
723 | 723 | ||
724 | prefs->mFaxClient = mFaxClient; | 724 | prefs->mFaxClient = mFaxClient; |
725 | prefs->mFaxOtherChannel = mFaxOtherChannel; | 725 | prefs->mFaxOtherChannel = mFaxOtherChannel; |
726 | prefs->mFaxOtherMessage = mFaxOtherMessage; | 726 | prefs->mFaxOtherMessage = mFaxOtherMessage; |
727 | prefs->mFaxOtherMessageParameters = mFaxOtherMessageParameters; | 727 | prefs->mFaxOtherMessageParameters = mFaxOtherMessageParameters; |
728 | 728 | ||
729 | prefs->mSMSClient = mSMSClient; | 729 | prefs->mSMSClient = mSMSClient; |
730 | prefs->mSMSOtherChannel = mSMSOtherChannel; | 730 | prefs->mSMSOtherChannel = mSMSOtherChannel; |
731 | prefs->mSMSOtherMessage = mSMSOtherMessage; | 731 | prefs->mSMSOtherMessage = mSMSOtherMessage; |
732 | prefs->mSMSOtherMessageParameters = mSMSOtherMessageParameters; | 732 | prefs->mSMSOtherMessageParameters = mSMSOtherMessageParameters; |
733 | 733 | ||
734 | prefs->mPagerClient = mPagerClient; | 734 | prefs->mPagerClient = mPagerClient; |
735 | prefs->mPagerOtherChannel = mPagerOtherChannel; | 735 | prefs->mPagerOtherChannel = mPagerOtherChannel; |
736 | prefs->mPagerOtherMessage = mPagerOtherMessage; | 736 | prefs->mPagerOtherMessage = mPagerOtherMessage; |
737 | prefs->mPagerOtherMessageParameters = mPagerOtherMessageParameters; | 737 | prefs->mPagerOtherMessageParameters = mPagerOtherMessageParameters; |
738 | 738 | ||
739 | 739 | ||
740 | prefs->mSipClient = mSipClient; | 740 | prefs->mSipClient = mSipClient; |
741 | prefs->mSipOtherChannel = mSipOtherChannel; | 741 | prefs->mSipOtherChannel = mSipOtherChannel; |
742 | prefs->mSipOtherMessage = mSipOtherMessage; | 742 | prefs->mSipOtherMessage = mSipOtherMessage; |
743 | prefs->mSipOtherMessageParameters = mSipOtherMessageParameters; | 743 | prefs->mSipOtherMessageParameters = mSipOtherMessageParameters; |
744 | 744 | ||
745 | //release the cache that other views can access the changed values instantanious | 745 | //release the cache that other views can access the changed values instantanious |
746 | ExternalAppHandler::instance()->loadConfig(); | 746 | ExternalAppHandler::instance()->loadConfig(); |
747 | 747 | KPimGlobalPrefs::instance()->setGlobalConfig(); | |
748 | } | 748 | } |
749 | 749 | ||
750 | 750 | ||
751 | void KDEPIMConfigWidget::setCombo(QComboBox *combo, const QString & text, | 751 | void KDEPIMConfigWidget::setCombo(QComboBox *combo, const QString & text, |
752 | const QStringList *tags) | 752 | const QStringList *tags) |
753 | { | 753 | { |
754 | if (tags) { | 754 | if (tags) { |
755 | int i = tags->findIndex(text); | 755 | int i = tags->findIndex(text); |
756 | if (i > 0) combo->setCurrentItem(i); | 756 | if (i > 0) combo->setCurrentItem(i); |
757 | } else { | 757 | } else { |
758 | for(int i=0;i<combo->count();++i) { | 758 | for(int i=0;i<combo->count();++i) { |
759 | if (combo->text(i) == text) { | 759 | if (combo->text(i) == text) { |
760 | combo->setCurrentItem(i); | 760 | combo->setCurrentItem(i); |
761 | break; | 761 | break; |
762 | } | 762 | } |
763 | } | 763 | } |
764 | } | 764 | } |
765 | } | 765 | } |
766 | 766 | ||
767 | 767 | ||
768 | void KDEPIMConfigWidget::textChanged( const QString& text ) | 768 | void KDEPIMConfigWidget::textChanged( const QString& text ) |
769 | { | 769 | { |
770 | emit changed( true ); | 770 | emit changed( true ); |
771 | } | 771 | } |
diff --git a/libkdepim/kpimglobalprefs.cpp b/libkdepim/kpimglobalprefs.cpp index 12a503d..a896a0f 100644 --- a/libkdepim/kpimglobalprefs.cpp +++ b/libkdepim/kpimglobalprefs.cpp | |||
@@ -79,37 +79,54 @@ KPimGlobalPrefs::KPimGlobalPrefs( const QString &name ) | |||
79 | addItemString( "PhoneChannelParameters", &mPhoneOtherMessageParameters, "" ); | 79 | addItemString( "PhoneChannelParameters", &mPhoneOtherMessageParameters, "" ); |
80 | 80 | ||
81 | addItemInt( "FaxChannelType", &mFaxClient, NONE_FAC ); | 81 | addItemInt( "FaxChannelType", &mFaxClient, NONE_FAC ); |
82 | addItemString( "FaxChannel", &mFaxOtherChannel, "" ); | 82 | addItemString( "FaxChannel", &mFaxOtherChannel, "" ); |
83 | addItemString( "FaxChannelMessage", &mFaxOtherMessage, "" ); | 83 | addItemString( "FaxChannelMessage", &mFaxOtherMessage, "" ); |
84 | addItemString( "FaxChannelParameters", &mFaxOtherMessageParameters, "" ); | 84 | addItemString( "FaxChannelParameters", &mFaxOtherMessageParameters, "" ); |
85 | 85 | ||
86 | addItemInt( "SMSChannelType", &mSMSClient, NONE_SMC ); | 86 | addItemInt( "SMSChannelType", &mSMSClient, NONE_SMC ); |
87 | addItemString( "SMSChannel", &mSMSOtherChannel, "" ); | 87 | addItemString( "SMSChannel", &mSMSOtherChannel, "" ); |
88 | addItemString( "SMSChannelMessage", &mSMSOtherMessage, "" ); | 88 | addItemString( "SMSChannelMessage", &mSMSOtherMessage, "" ); |
89 | addItemString( "SMSChannelParameters", &mSMSOtherMessageParameters, "" ); | 89 | addItemString( "SMSChannelParameters", &mSMSOtherMessageParameters, "" ); |
90 | 90 | ||
91 | addItemInt( "PagerChannelType", &mPagerClient, NONE_PAC ); | 91 | addItemInt( "PagerChannelType", &mPagerClient, NONE_PAC ); |
92 | addItemString( "PagerChannel", &mPagerOtherChannel, "" ); | 92 | addItemString( "PagerChannel", &mPagerOtherChannel, "" ); |
93 | addItemString( "PagerChannelMessage", &mPagerOtherMessage, "" ); | 93 | addItemString( "PagerChannelMessage", &mPagerOtherMessage, "" ); |
94 | addItemString( "PagerChannelParameters", &mPagerOtherMessageParameters, "" ); | 94 | addItemString( "PagerChannelParameters", &mPagerOtherMessageParameters, "" ); |
95 | 95 | ||
96 | addItemInt( "SIPChannelType", &mSipClient, NONE_SIC ); | 96 | addItemInt( "SIPChannelType", &mSipClient, NONE_SIC ); |
97 | addItemString( "SIPChannel", &mSipOtherChannel, "" ); | 97 | addItemString( "SIPChannel", &mSipOtherChannel, "" ); |
98 | addItemString( "SIPChannelMessage", &mSipOtherMessage, "" ); | 98 | addItemString( "SIPChannelMessage", &mSipOtherMessage, "" ); |
99 | addItemString( "SIPChannelParameters", &mSipOtherMessageParameters, "" ); | 99 | addItemString( "SIPChannelParameters", &mSipOtherMessageParameters, "" ); |
100 | 100 | ||
101 | } | 101 | } |
102 | 102 | ||
103 | void KPimGlobalPrefs::setGlobalConfig() | ||
104 | { | ||
105 | |||
106 | KGlobal::locale()->setHore24Format( !mPreferredTime ); | ||
107 | KGlobal::locale()->setWeekStartMonday( !mWeekStartsOnSunday ); | ||
108 | KGlobal::locale()->setIntDateFormat( (KLocale::IntDateFormat)mPreferredDate ); | ||
109 | KGlobal::locale()->setLanguage( mPreferredLanguage ); | ||
110 | QString dummy = mUserDateFormatLong; | ||
111 | KGlobal::locale()->setDateFormat(dummy.replace( QRegExp("K"), QString(",") )); | ||
112 | dummy = mUserDateFormatShort; | ||
113 | KGlobal::locale()->setDateFormatShort(dummy.replace( QRegExp("K"), QString(",") )); | ||
114 | KGlobal::locale()->setDaylightSaving( mUseDaylightsaving, | ||
115 | mDaylightsavingStart, | ||
116 | mDaylightsavingEnd ); | ||
117 | KGlobal::locale()->setTimezone( mTimeZoneId ); | ||
118 | |||
119 | } | ||
103 | KPimGlobalPrefs::~KPimGlobalPrefs() | 120 | KPimGlobalPrefs::~KPimGlobalPrefs() |
104 | { | 121 | { |
105 | } | 122 | } |
106 | 123 | ||
107 | KPimGlobalPrefs *KPimGlobalPrefs::instance() | 124 | KPimGlobalPrefs *KPimGlobalPrefs::instance() |
108 | { | 125 | { |
109 | if ( !sInstance ) { | 126 | if ( !sInstance ) { |
110 | sInstance = staticDeleter.setObject( new KPimGlobalPrefs() ); | 127 | sInstance = staticDeleter.setObject( new KPimGlobalPrefs() ); |
111 | sInstance->readConfig(); | 128 | sInstance->readConfig(); |
112 | } | 129 | } |
113 | 130 | ||
114 | return sInstance; | 131 | return sInstance; |
115 | } | 132 | } |
diff --git a/libkdepim/kpimglobalprefs.h b/libkdepim/kpimglobalprefs.h index dad78e6..84ba689 100644 --- a/libkdepim/kpimglobalprefs.h +++ b/libkdepim/kpimglobalprefs.h | |||
@@ -16,48 +16,49 @@ | |||
16 | along with this program; if not, write to the Free Software | 16 | along with this program; if not, write to the Free Software |
17 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | 17 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
18 | 18 | ||
19 | As a special exception, permission is given to link this program | 19 | As a special exception, permission is given to link this program |
20 | with any edition of Qt, and distribute the resulting executable, | 20 | with any edition of Qt, and distribute the resulting executable, |
21 | without including the source code for Qt in the source distribution. | 21 | without including the source code for Qt in the source distribution. |
22 | */ | 22 | */ |
23 | 23 | ||
24 | /* | 24 | /* |
25 | Enhanced Version of the file for platform independent KDE tools. | 25 | Enhanced Version of the file for platform independent KDE tools. |
26 | Copyright (c) 2004 Ulf Schenk | 26 | Copyright (c) 2004 Ulf Schenk |
27 | 27 | ||
28 | $Id$ | 28 | $Id$ |
29 | */ | 29 | */ |
30 | 30 | ||
31 | #ifndef KPIMGLOBALPREFS_H | 31 | #ifndef KPIMGLOBALPREFS_H |
32 | #define KPIMGLOBALPREFS_H | 32 | #define KPIMGLOBALPREFS_H |
33 | 33 | ||
34 | #include "kprefs.h" | 34 | #include "kprefs.h" |
35 | 35 | ||
36 | class KPimGlobalPrefs : public KPrefs | 36 | class KPimGlobalPrefs : public KPrefs |
37 | { | 37 | { |
38 | public: | 38 | public: |
39 | 39 | ||
40 | void setGlobalConfig(); | ||
40 | static KPimGlobalPrefs *instance(); | 41 | static KPimGlobalPrefs *instance(); |
41 | 42 | ||
42 | 43 | ||
43 | virtual ~KPimGlobalPrefs(); | 44 | virtual ~KPimGlobalPrefs(); |
44 | 45 | ||
45 | 46 | ||
46 | enum EMailClients { | 47 | enum EMailClients { |
47 | NONE_EMC = 0, | 48 | NONE_EMC = 0, |
48 | OTHER_EMC = 1, | 49 | OTHER_EMC = 1, |
49 | OMPI_EMC = 2, | 50 | OMPI_EMC = 2, |
50 | QTOPIA_EMC = 3, | 51 | QTOPIA_EMC = 3, |
51 | OPIE_EMC = 4 | 52 | OPIE_EMC = 4 |
52 | }; | 53 | }; |
53 | 54 | ||
54 | enum PhoneClients { | 55 | enum PhoneClients { |
55 | NONE_PHC = 0, | 56 | NONE_PHC = 0, |
56 | OTHER_PHC = 1, | 57 | OTHER_PHC = 1, |
57 | KPPI_PHC = 2 | 58 | KPPI_PHC = 2 |
58 | }; | 59 | }; |
59 | 60 | ||
60 | enum FaxClients { | 61 | enum FaxClients { |
61 | NONE_FAC = 0, | 62 | NONE_FAC = 0, |
62 | OTHER_FAC = 1 | 63 | OTHER_FAC = 1 |
63 | }; | 64 | }; |
@@ -75,51 +76,48 @@ class KPimGlobalPrefs : public KPrefs | |||
75 | enum SIPClients { | 76 | enum SIPClients { |
76 | NONE_SIC = 0, | 77 | NONE_SIC = 0, |
77 | OTHER_SIC = 1 | 78 | OTHER_SIC = 1 |
78 | }; | 79 | }; |
79 | 80 | ||
80 | private: | 81 | private: |
81 | KPimGlobalPrefs( const QString &name = QString::null ); | 82 | KPimGlobalPrefs( const QString &name = QString::null ); |
82 | 83 | ||
83 | static KPimGlobalPrefs *sInstance; | 84 | static KPimGlobalPrefs *sInstance; |
84 | 85 | ||
85 | 86 | ||
86 | public: | 87 | public: |
87 | //US I copied the following "locale" settings from KOPrefs | 88 | //US I copied the following "locale" settings from KOPrefs |
88 | int mPreferredDate; | 89 | int mPreferredDate; |
89 | QString mUserDateFormatLong; | 90 | QString mUserDateFormatLong; |
90 | QString mUserDateFormatShort; | 91 | QString mUserDateFormatShort; |
91 | int mPreferredLanguage; | 92 | int mPreferredLanguage; |
92 | int mPreferredTime; | 93 | int mPreferredTime; |
93 | bool mWeekStartsOnSunday; | 94 | bool mWeekStartsOnSunday; |
94 | QString mTimeZoneId; | 95 | QString mTimeZoneId; |
95 | bool mUseDaylightsaving; | 96 | bool mUseDaylightsaving; |
96 | int mDaylightsavingStart; | 97 | int mDaylightsavingStart; |
97 | int mDaylightsavingEnd; | 98 | int mDaylightsavingEnd; |
98 | 99 | ||
99 | |||
100 | |||
101 | |||
102 | int mEmailClient; | 100 | int mEmailClient; |
103 | QString mEmailOtherChannel; | 101 | QString mEmailOtherChannel; |
104 | QString mEmailOtherMessage; | 102 | QString mEmailOtherMessage; |
105 | QString mEmailOtherMessageParameters; | 103 | QString mEmailOtherMessageParameters; |
106 | QString mEmailOtherMessage2; | 104 | QString mEmailOtherMessage2; |
107 | QString mEmailOtherMessageParameters2; | 105 | QString mEmailOtherMessageParameters2; |
108 | 106 | ||
109 | int mPhoneClient; | 107 | int mPhoneClient; |
110 | QString mPhoneOtherChannel; | 108 | QString mPhoneOtherChannel; |
111 | QString mPhoneOtherMessage; | 109 | QString mPhoneOtherMessage; |
112 | QString mPhoneOtherMessageParameters; | 110 | QString mPhoneOtherMessageParameters; |
113 | 111 | ||
114 | int mFaxClient; | 112 | int mFaxClient; |
115 | QString mFaxOtherChannel; | 113 | QString mFaxOtherChannel; |
116 | QString mFaxOtherMessage; | 114 | QString mFaxOtherMessage; |
117 | QString mFaxOtherMessageParameters; | 115 | QString mFaxOtherMessageParameters; |
118 | 116 | ||
119 | int mSMSClient; | 117 | int mSMSClient; |
120 | QString mSMSOtherChannel; | 118 | QString mSMSOtherChannel; |
121 | QString mSMSOtherMessage; | 119 | QString mSMSOtherMessage; |
122 | QString mSMSOtherMessageParameters; | 120 | QString mSMSOtherMessageParameters; |
123 | 121 | ||
124 | int mPagerClient; | 122 | int mPagerClient; |
125 | QString mPagerOtherChannel; | 123 | QString mPagerOtherChannel; |