summaryrefslogtreecommitdiffabout
path: root/korganizer
Unidiff
Diffstat (limited to 'korganizer') (more/less context) (show whitespace changes)
-rw-r--r--korganizer/mainwindow.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/korganizer/mainwindow.cpp b/korganizer/mainwindow.cpp
index 6c0aa9b..4b00062 100644
--- a/korganizer/mainwindow.cpp
+++ b/korganizer/mainwindow.cpp
@@ -8,12 +8,13 @@
8#include <qlineedit.h> 8#include <qlineedit.h>
9#include <qfile.h> 9#include <qfile.h>
10#include <qdir.h> 10#include <qdir.h>
11#include <qapp.h> 11#include <qapp.h>
12#include <qfileinfo.h> 12#include <qfileinfo.h>
13#include <qlabel.h> 13#include <qlabel.h>
14#include <qmap.h>
14#include <qwmatrix.h> 15#include <qwmatrix.h>
15#include <qtextbrowser.h> 16#include <qtextbrowser.h>
16#include <qtextstream.h> 17#include <qtextstream.h>
17#ifndef DESKTOP_VERSION 18#ifndef DESKTOP_VERSION
18#include <qpe/global.h> 19#include <qpe/global.h>
19#include <qpe/qpemenubar.h> 20#include <qpe/qpemenubar.h>
@@ -48,12 +49,14 @@
48#include "kfiledialog.h" 49#include "kfiledialog.h"
49#include "koglobals.h" 50#include "koglobals.h"
50#include "kglobal.h" 51#include "kglobal.h"
51#include "klocale.h" 52#include "klocale.h"
52#include "kconfig.h" 53#include "kconfig.h"
53#include "simplealarmclient.h" 54#include "simplealarmclient.h"
55#include "externalapphandler.h"
56
54using namespace KCal; 57using namespace KCal;
55#ifndef _WIN32_ 58#ifndef _WIN32_
56#include <unistd.h> 59#include <unistd.h>
57#else 60#else
58#include "koimportoldialog.h" 61#include "koimportoldialog.h"
59#endif 62#endif
@@ -194,12 +197,15 @@ MainWindow::MainWindow( QWidget *parent, const char *name, QString msg) :
194 if ( showWarning ) { 197 if ( showWarning ) {
195 KMessageBox::information( this, 198 KMessageBox::information( this,
196 "You are starting KO/Pi for the first time.\nPlease read menu: Help-What's New,\nif you did an update!\nPlease choose your timezone in the \nConfigure Dialog TAB Time Zone!\nPlease choose your language\nin the TAB Locale!\nYou get the Configure Dialog\nvia Menu: Actions - Configure....\nClick OK to show the Configure Dialog!\n", "KO/Pi information"); 199 "You are starting KO/Pi for the first time.\nPlease read menu: Help-What's New,\nif you did an update!\nPlease choose your timezone in the \nConfigure Dialog TAB Time Zone!\nPlease choose your language\nin the TAB Locale!\nYou get the Configure Dialog\nvia Menu: Actions - Configure....\nClick OK to show the Configure Dialog!\n", "KO/Pi information");
197 qApp->processEvents(); 200 qApp->processEvents();
198 mView->dialogManager()->showSyncOptions(); 201 mView->dialogManager()->showSyncOptions();
199 } 202 }
203
204 //US listen for result adressed from Ka/Pi
205 connect(qApp, SIGNAL (appMessage ( const QCString &, const QByteArray & )), ExternalAppHandler::instance(), SLOT (appMessage ( const QCString &, const QByteArray & )));
200} 206}
201MainWindow::~MainWindow() 207MainWindow::~MainWindow()
202{ 208{
203 //qDebug("MainWindow::~MainWindow() "); 209 //qDebug("MainWindow::~MainWindow() ");
204 //save toolbar location 210 //save toolbar location
205 211
@@ -245,12 +251,22 @@ void MainWindow::recieve( const QCString& cmsg, const QByteArray& data )
245{ 251{
246 QDataStream stream( data, IO_ReadOnly ); 252 QDataStream stream( data, IO_ReadOnly );
247 // QMessageBox::about( this, "About KOrganizer/Pi", "*" +msg +"*" ); 253 // QMessageBox::about( this, "About KOrganizer/Pi", "*" +msg +"*" );
248 //QString datamess; 254 //QString datamess;
249 //qDebug("message "); 255 //qDebug("message ");
250 qDebug("KO: QCOP message received: %s ", cmsg.data() ); 256 qDebug("KO: QCOP message received: %s ", cmsg.data() );
257
258 if ( cmsg == "-writeFile" ) {
259 // I made from the "-writeFile" an "-writeAlarm"
260 mView->viewManager()->showWhatsNextView();
261 mCalendar->checkAlarmForIncidence( 0, true);
262 showMaximized();
263 raise();
264 return;
265 }
266
251 if ( cmsg == "-writeFile" ) { 267 if ( cmsg == "-writeFile" ) {
252 // I made from the "-writeFile" an "-writeAlarm" 268 // I made from the "-writeFile" an "-writeAlarm"
253 mView->viewManager()->showWhatsNextView(); 269 mView->viewManager()->showWhatsNextView();
254 mCalendar->checkAlarmForIncidence( 0, true); 270 mCalendar->checkAlarmForIncidence( 0, true);
255 showMaximized(); 271 showMaximized();
256 raise(); 272 raise();