summaryrefslogtreecommitdiffabout
path: root/korganizer
authorzautrix <zautrix>2005-09-19 02:18:36 (UTC)
committer zautrix <zautrix>2005-09-19 02:18:36 (UTC)
commitf4b88b634935aac5a1212e86d8eb5d90c1eff301 (patch) (unidiff)
tree67394dc47bfd03e91444ec6cf41835b28ae8192c /korganizer
parentd73247ed44cab687a0d94a96ea7b3cf604b80ba0 (diff)
downloadkdepimpi-f4b88b634935aac5a1212e86d8eb5d90c1eff301.zip
kdepimpi-f4b88b634935aac5a1212e86d8eb5d90c1eff301.tar.gz
kdepimpi-f4b88b634935aac5a1212e86d8eb5d90c1eff301.tar.bz2
wn
Diffstat (limited to 'korganizer') (more/less context) (ignore whitespace changes)
-rw-r--r--korganizer/mainwindow.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/korganizer/mainwindow.cpp b/korganizer/mainwindow.cpp
index 1776dcc..883a9d1 100644
--- a/korganizer/mainwindow.cpp
+++ b/korganizer/mainwindow.cpp
@@ -599,79 +599,76 @@ void MainWindow::recieve( const QCString& cmsg, const QByteArray& data )
599 stream >> fileName; 599 stream >> fileName;
600 //qDebug("filename %s ", fileName.latin1()); 600 //qDebug("filename %s ", fileName.latin1());
601 showMaximized(); 601 showMaximized();
602 raise(); 602 raise();
603 KOPrefs::instance()->mLastSyncedLocalFile = fileName ; 603 KOPrefs::instance()->mLastSyncedLocalFile = fileName ;
604 mSyncManager->slotSyncMenu( 1002 ); 604 mSyncManager->slotSyncMenu( 1002 );
605 return; 605 return;
606 } 606 }
607 607
608 if ( cmsg == "-writeFile" ) { 608 if ( cmsg == "-writeFile" ) {
609 // I made from the "-writeFile" an "-writeAlarm" 609 // I made from the "-writeFile" an "-writeAlarm"
610 mView->viewManager()->showWhatsNextView(); 610 mView->viewManager()->showWhatsNextView();
611 mCalendar->checkAlarmForIncidence( 0, true); 611 mCalendar->checkAlarmForIncidence( 0, true);
612 showMaximized(); 612 showMaximized();
613 raise(); 613 raise();
614 return; 614 return;
615 615
616 } 616 }
617 if ( cmsg == "-writeFileSilent" ) { 617 if ( cmsg == "-writeFileSilent" ) {
618 // I made from the "-writeFile" an "-writeAlarm" 618 // I made from the "-writeFile" an "-writeAlarm"
619 // mView->viewManager()->showWhatsNextView(); 619 // mView->viewManager()->showWhatsNextView();
620 mCalendar->checkAlarmForIncidence( 0, true); 620 mCalendar->checkAlarmForIncidence( 0, true);
621 //showMaximized(); 621 //showMaximized();
622 //raise(); 622 //raise();
623 hide(); 623 //hide();
624 return; 624 return;
625 } 625 }
626 if ( cmsg == "-newCountdown" ) { 626 if ( cmsg == "-newCountdown" ) {
627 qDebug("newCountdown "); 627 qDebug("newCountdown ");
628 628
629 } 629 }
630 QString msg ; 630 QString msg ;
631 QString allmsg = cmsg; 631 QString allmsg = cmsg;
632 while ( allmsg.length() > 0 ) { 632 while ( allmsg.length() > 0 ) {
633 int nextC = allmsg.find( "-", 1 ); 633 int nextC = allmsg.find( "-", 1 );
634 if ( nextC == -1 ) { 634 if ( nextC == -1 ) {
635 msg = allmsg; 635 msg = allmsg;
636 allmsg = ""; 636 allmsg = "";
637 } else{ 637 } else{
638 msg = allmsg.left( nextC ); 638 msg = allmsg.left( nextC );
639 allmsg = allmsg.mid( nextC, allmsg.length()-nextC ); 639 allmsg = allmsg.mid( nextC, allmsg.length()-nextC );
640 } 640 }
641 //qDebug("msg: %s all: %s ", msg.latin1(), allmsg.latin1() ); 641 //qDebug("msg: %s all: %s ", msg.latin1(), allmsg.latin1() );
642 if ( msg == "-newEvent" ) { 642 if ( msg == "-newEvent" ) {
643 QTimer::singleShot( 0, mView, SLOT ( newEvent())); 643 QTimer::singleShot( 0, mView, SLOT ( newEvent()));
644 } 644 }
645 if ( msg == "-newTodo" ) { 645 if ( msg == "-newTodo" ) {
646 QTimer::singleShot( 0, mView, SLOT ( newTodo())); 646 QTimer::singleShot( 0, mView, SLOT ( newTodo()));
647 } 647 }
648 if ( msg == "-showWN" ) { 648 if ( msg == "-showWN" ) {
649 mView->viewManager()->showWhatsNextView(); 649 mView->viewManager()->showWhatsNextView();
650 } 650 }
651 if ( msg == "-showTodo" ) {
652 mView->viewManager()->showTodoView();
653 }
654 if ( msg == "-showList" ) { 651 if ( msg == "-showList" ) {
655 mView->viewManager()->showListView(); 652 mView->viewManager()->showListView();
656 } 653 }
657 else if ( msg == "-showDay" ) { 654 else if ( msg == "-showDay" ) {
658 mView->viewManager()->showDayView(); 655 mView->viewManager()->showDayView();
659 } 656 }
660 else if ( msg == "-showWWeek" ) { 657 else if ( msg == "-showWWeek" ) {
661 mView->viewManager()->showWorkWeekView(); 658 mView->viewManager()->showWorkWeekView();
662 } 659 }
663 else if ( msg == "-ringSync" ) { 660 else if ( msg == "-ringSync" ) {
664 QTimer::singleShot( 0, this, SLOT (startMultiSync())); 661 QTimer::singleShot( 0, this, SLOT (startMultiSync()));
665 } 662 }
666 else if ( msg == "-showWeek" ) { 663 else if ( msg == "-showWeek" ) {
667 mView->viewManager()->showWeekView(); 664 mView->viewManager()->showWeekView();
668 } 665 }
669 else if ( msg == "-showTodo" ) { 666 else if ( msg == "-showTodo" ) {
670 mView->viewManager()->showTodoView(); 667 mView->viewManager()->showTodoView();
671 } 668 }
672 else if ( msg == "-showJournal" ) { 669 else if ( msg == "-showJournal" ) {
673 mView->dateNavigator()->selectDates( 1 ); 670 mView->dateNavigator()->selectDates( 1 );
674 mView->dateNavigator()->selectToday(); 671 mView->dateNavigator()->selectToday();
675 mView->viewManager()->showJournalView(); 672 mView->viewManager()->showJournalView();
676 } 673 }
677 else if ( msg == "-showKO" ) { 674 else if ( msg == "-showKO" ) {