author | zautrix <zautrix> | 2005-01-25 15:12:21 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-01-25 15:12:21 (UTC) |
commit | fe4e6e85abc2ec90cc80108fc7434899b6e13048 (patch) (unidiff) | |
tree | 9a3cf83ecf8796d0020076e4e8e275d193fb2584 /korganizer | |
parent | 165d969ce6ac38c5e3d7b5c629af0b00d0fff017 (diff) | |
download | kdepimpi-fe4e6e85abc2ec90cc80108fc7434899b6e13048.zip kdepimpi-fe4e6e85abc2ec90cc80108fc7434899b6e13048.tar.gz kdepimpi-fe4e6e85abc2ec90cc80108fc7434899b6e13048.tar.bz2 |
small fixes
-rw-r--r-- | korganizer/koprefsdialog.cpp | 2 | ||||
-rw-r--r-- | korganizer/korganizer.pro | 32 | ||||
-rw-r--r-- | korganizer/main.cpp | 29 | ||||
-rw-r--r-- | korganizer/mainwindow.cpp | 8 |
4 files changed, 37 insertions, 34 deletions
diff --git a/korganizer/koprefsdialog.cpp b/korganizer/koprefsdialog.cpp index 8aa24ee..ea73fd0 100644 --- a/korganizer/koprefsdialog.cpp +++ b/korganizer/koprefsdialog.cpp | |||
@@ -94,8 +94,10 @@ KOPrefsDialog::KOPrefsDialog(QWidget *parent, char *name, bool modal) : | |||
94 | //setupGroupSchedulingTab(); | 94 | //setupGroupSchedulingTab(); |
95 | //setupGroupAutomationTab(); | 95 | //setupGroupAutomationTab(); |
96 | 96 | ||
97 | #ifndef DESKTOP_VERSION | ||
97 | if ( QApplication::desktop()->height() == 480 ) | 98 | if ( QApplication::desktop()->height() == 480 ) |
98 | hideButtons(); | 99 | hideButtons(); |
100 | #endif | ||
99 | } | 101 | } |
100 | 102 | ||
101 | 103 | ||
diff --git a/korganizer/korganizer.pro b/korganizer/korganizer.pro index c2602b2..4d67dca 100644 --- a/korganizer/korganizer.pro +++ b/korganizer/korganizer.pro | |||
@@ -1,5 +1,5 @@ | |||
1 | TEMPLATE= app | 1 | TEMPLATE= app |
2 | CONFIG = qt warn_on | 2 | CONFIG += qt warn_off |
3 | TARGET = kopi | 3 | TARGET = kopi |
4 | OBJECTS_DIR = _obj/ | 4 | OBJECTS_DIR = _obj/ |
5 | MOC_DIR = _moc | 5 | MOC_DIR = _moc |
@@ -36,12 +36,23 @@ LIBS += ../bin/microkabc.lib | |||
36 | LIBS += ../libical/lib/ical.lib | 36 | LIBS += ../libical/lib/ical.lib |
37 | LIBS += ../libical/lib/icalss.lib | 37 | LIBS += ../libical/lib/icalss.lib |
38 | #LIBS += atls.lib | 38 | #LIBS += atls.lib |
39 | LIBS += mfc71u.lib | ||
40 | QMAKE_LINK += /NODEFAULTLIB:LIBC | 39 | QMAKE_LINK += /NODEFAULTLIB:LIBC |
41 | #QMAKE_LINK += /NODEFAULTLIB:MSVCRT | 40 | #QMAKE_LINK += /NODEFAULTLIB:MSVCRT |
42 | #QMAKE_LINK += /NODEFAULTLIB:uafxcw.lib | 41 | #QMAKE_LINK += /NODEFAULTLIB:uafxcw.lib |
43 | OBJECTS_DIR = obj/win | 42 | OBJECTS_DIR = obj/win |
44 | MOC_DIR = moc/win | 43 | MOC_DIR = moc/win |
44 | #olimport section | ||
45 | #blabla: { | ||
46 | LIBS += mfc71u.lib | ||
47 | DEFINES += _OL_IMPORT_ | ||
48 | |||
49 | HEADERS += ../outport/msoutl9.h \ | ||
50 | koimportoldialog.h | ||
51 | SOURCES += ../outport/msoutl9.cpp \ | ||
52 | koimportoldialog.cpp | ||
53 | #} | ||
54 | #olimport section end | ||
55 | |||
45 | } | 56 | } |
46 | 57 | ||
47 | 58 | ||
@@ -50,7 +61,7 @@ INTERFACES = kofilterview_base.ui | |||
50 | 61 | ||
51 | # kdateedit.h \ | 62 | # kdateedit.h \ |
52 | 63 | ||
53 | HEADERS = \ | 64 | HEADERS += \ |
54 | filteredit_base.h \ | 65 | filteredit_base.h \ |
55 | alarmclient.h \ | 66 | alarmclient.h \ |
56 | calendarview.h \ | 67 | calendarview.h \ |
@@ -113,7 +124,7 @@ HEADERS = \ | |||
113 | ../kalarmd/alarmdialog.h \ | 124 | ../kalarmd/alarmdialog.h \ |
114 | 125 | ||
115 | 126 | ||
116 | SOURCES = \ | 127 | SOURCES += \ |
117 | filteredit_base.cpp \ | 128 | filteredit_base.cpp \ |
118 | calendarview.cpp \ | 129 | calendarview.cpp \ |
119 | datenavigator.cpp \ | 130 | datenavigator.cpp \ |
@@ -178,16 +189,3 @@ INTERFACES += calprintdayconfig_base.ui \ | |||
178 | calprintweekconfig_base.ui | 189 | calprintweekconfig_base.ui |
179 | SOURCES += calprintbase.cpp calprinter.cpp calprintplugins.cpp cellitem.cpp | 190 | SOURCES += calprintbase.cpp calprinter.cpp calprintplugins.cpp cellitem.cpp |
180 | 191 | ||
181 | |||
182 | |||
183 | win32: { | ||
184 | HEADERS += ../outport/msoutl9.h \ | ||
185 | koimportoldialog.h | ||
186 | |||
187 | |||
188 | SOURCES += ../outport/msoutl9.cpp \ | ||
189 | koimportoldialog.cpp | ||
190 | |||
191 | |||
192 | } | ||
193 | |||
diff --git a/korganizer/main.cpp b/korganizer/main.cpp index 2481ca4..4b207d9 100644 --- a/korganizer/main.cpp +++ b/korganizer/main.cpp | |||
@@ -11,6 +11,7 @@ | |||
11 | #include <qwindowsstyle.h> | 11 | #include <qwindowsstyle.h> |
12 | #include <qplatinumstyle.h> | 12 | #include <qplatinumstyle.h> |
13 | #include <qsgistyle.h> | 13 | #include <qsgistyle.h> |
14 | #include <stdlib.h> | ||
14 | #endif | 15 | #endif |
15 | #include <qtextcodec.h> | 16 | #include <qtextcodec.h> |
16 | 17 | ||
@@ -29,22 +30,22 @@ int main( int argc, char **argv ) | |||
29 | #else | 30 | #else |
30 | QApplication a( argc, argv ); | 31 | QApplication a( argc, argv ); |
31 | QApplication::setStyle( new QPlatinumStyle ()); | 32 | QApplication::setStyle( new QPlatinumStyle ()); |
32 | QString hdir = QDir::homeDirPath(); | 33 | #ifdef _WIN32_ |
33 | // there is a bug when creating dirs for WIN 98 | 34 | QString hdir ( getenv( "HOME") ); |
34 | // it is difficult to fix, because we have no WIN 98 runnung | 35 | if ( hdir.isEmpty() ) { |
35 | // such that we try it to create the dirs at startup here | 36 | QString hd ("C:/" ); |
36 | if ( hdir == "C:\\" ) { // win 98 or ME | 37 | //QMessageBox::information(0,"hh",QDir::homeDirPath()+" xx" +hd ); |
37 | QDir app_dir; | 38 | if ( QDir::homeDirPath().lower() == hd.lower() ) { |
38 | if ( !app_dir.exists("C:\\kdepim") ) | 39 | _putenv( "HOME=C:"); |
39 | app_dir.mkdir ("C:\\kdepim"); | 40 | //QMessageBox::information(0,"hh",QString ( getenv( "HOME") ) ); |
40 | if ( !app_dir.exists("C:\\kdepim\\apps") ) | 41 | } |
41 | app_dir.mkdir ("C:\\kdepim\\apps"); | 42 | } else { |
42 | if ( !app_dir.exists("C:\\kdepim\\config") ) | 43 | QDir app_dir; |
43 | app_dir.mkdir ("C:\\kdepim\\config"); | 44 | if ( !app_dir.exists(hdir) ) |
44 | if ( !app_dir.exists("C:\\kdepim\\apps\\korganizer") ) | 45 | app_dir.mkdir (hdir); |
45 | app_dir.mkdir ("C:\\kdepim\\apps\\korganizer"); | ||
46 | } | 46 | } |
47 | #endif | 47 | #endif |
48 | #endif | ||
48 | bool exitHelp = false; | 49 | bool exitHelp = false; |
49 | if ( argc > 1 ) { | 50 | if ( argc > 1 ) { |
50 | QString command = argv[1]; | 51 | QString command = argv[1]; |
diff --git a/korganizer/mainwindow.cpp b/korganizer/mainwindow.cpp index 7b07a2e..26ea1e2 100644 --- a/korganizer/mainwindow.cpp +++ b/korganizer/mainwindow.cpp | |||
@@ -66,8 +66,10 @@ using namespace KCal; | |||
66 | #ifndef _WIN32_ | 66 | #ifndef _WIN32_ |
67 | #include <unistd.h> | 67 | #include <unistd.h> |
68 | #else | 68 | #else |
69 | #ifdef _OL_IMPORT_ | ||
69 | #include "koimportoldialog.h" | 70 | #include "koimportoldialog.h" |
70 | #endif | 71 | #endif |
72 | #endif | ||
71 | #include "mainwindow.h" | 73 | #include "mainwindow.h" |
72 | 74 | ||
73 | class KOex2phonePrefs : public QDialog | 75 | class KOex2phonePrefs : public QDialog |
@@ -778,7 +780,7 @@ void MainWindow::initActions() | |||
778 | action->addTo( importMenu ); | 780 | action->addTo( importMenu ); |
779 | connect( action, SIGNAL( activated() ), SLOT( importQtopia() ) ); | 781 | connect( action, SIGNAL( activated() ), SLOT( importQtopia() ) ); |
780 | #else | 782 | #else |
781 | #ifdef _WIN32_ | 783 | #ifdef _OL_IMPORT_ |
782 | importMenu->insertSeparator(); | 784 | importMenu->insertSeparator(); |
783 | action = new QAction( "import_ol", i18n("Import from OL"), 0, | 785 | action = new QAction( "import_ol", i18n("Import from OL"), 0, |
784 | this ); | 786 | this ); |
@@ -1367,8 +1369,8 @@ void MainWindow::enableIncidenceActions( bool enabled ) | |||
1367 | } | 1369 | } |
1368 | 1370 | ||
1369 | void MainWindow::importOL() | 1371 | void MainWindow::importOL() |
1370 | { | 1372 | { |
1371 | #ifdef _WIN32_ | 1373 | #ifdef _OL_IMPORT_ |
1372 | KOImportOLdialog *id = new KOImportOLdialog("Import from OL - select folder!" , mView->calendar(),this ); | 1374 | KOImportOLdialog *id = new KOImportOLdialog("Import from OL - select folder!" , mView->calendar(),this ); |
1373 | id->exec(); | 1375 | id->exec(); |
1374 | delete id; | 1376 | delete id; |