summaryrefslogtreecommitdiffabout
path: root/korganizer/mainwindow.cpp
authorzautrix <zautrix>2004-07-09 23:40:14 (UTC)
committer zautrix <zautrix>2004-07-09 23:40:14 (UTC)
commitadaa664ac87d6b78e9431d3376f7a24461edf469 (patch) (side-by-side diff)
treef82b471f0db80aa7836059441e5c3b943166ac84 /korganizer/mainwindow.cpp
parent5135d0b47efac71ecb7a98d7d66314c868133021 (diff)
downloadkdepimpi-adaa664ac87d6b78e9431d3376f7a24461edf469.zip
kdepimpi-adaa664ac87d6b78e9431d3376f7a24461edf469.tar.gz
kdepimpi-adaa664ac87d6b78e9431d3376f7a24461edf469.tar.bz2
Added files for OLE import on wintendo
Diffstat (limited to 'korganizer/mainwindow.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--korganizer/mainwindow.cpp22
1 files changed, 21 insertions, 1 deletions
diff --git a/korganizer/mainwindow.cpp b/korganizer/mainwindow.cpp
index 40f2cf4..be69be7 100644
--- a/korganizer/mainwindow.cpp
+++ b/korganizer/mainwindow.cpp
@@ -50,8 +50,9 @@
#include "kconfig.h"
#include "simplealarmclient.h"
-
using namespace KCal;
#ifndef _WIN32_
#include <unistd.h>
+#else
+#include "koimportoldialog.h"
#endif
#include "mainwindow.h"
@@ -585,4 +586,12 @@ void MainWindow::initActions()
action->addTo( importMenu );
connect( action, SIGNAL( activated() ), SLOT( importQtopia() ) );
+#else
+#ifdef _WIN32_
+ importMenu->insertSeparator();
+ action = new QAction( "import_ol", i18n("Import from OL"), 0,
+ this );
+ action->addTo( importMenu );
+ connect( action, SIGNAL( activated() ), SLOT( importOL() ) );
+#endif
#endif
@@ -931,5 +940,7 @@ void MainWindow::slotSyncMenu( int action )
//qDebug("syncaction %d ", action);
if ( action == 0 ) {
+
confSync();
+
return;
}
@@ -1220,4 +1231,13 @@ void MainWindow::enableIncidenceActions( bool enabled )
}
+void MainWindow::importOL()
+{
+#ifdef _WIN32_
+ KOImportOLdialog *id = new KOImportOLdialog("Import from OL - select folder!" , mView->calendar(),this );
+ id->exec();
+ delete id;
+ mView->updateView();
+#endif
+}
void MainWindow::importBday()
{