author | zautrix <zautrix> | 2005-07-09 08:48:32 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-07-09 08:48:32 (UTC) |
commit | f731dd9fc5b3f14c44d4de26eb5370a79c63887c (patch) (unidiff) | |
tree | e3d7b3929cc8819a5451bd04c9698bc0767e49b1 /korganizer/mainwindow.cpp | |
parent | e27ad31c6016152449bbdaf4f9f387fa61183c37 (diff) | |
download | kdepimpi-f731dd9fc5b3f14c44d4de26eb5370a79c63887c.zip kdepimpi-f731dd9fc5b3f14c44d4de26eb5370a79c63887c.tar.gz kdepimpi-f731dd9fc5b3f14c44d4de26eb5370a79c63887c.tar.bz2 |
fixi
-rw-r--r-- | korganizer/mainwindow.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/korganizer/mainwindow.cpp b/korganizer/mainwindow.cpp index 5249300..4bedb61 100644 --- a/korganizer/mainwindow.cpp +++ b/korganizer/mainwindow.cpp | |||
@@ -2499,97 +2499,97 @@ void MainWindow::exportVCalendar() | |||
2499 | bool createbup = true; | 2499 | bool createbup = true; |
2500 | if ( info. exists() ) { | 2500 | if ( info. exists() ) { |
2501 | mes = i18n("Save file\nalready exists!\nOld save file from:\n%1\nOverwrite?\n").arg (KGlobal::locale()->formatDateTime(info.lastModified (), true, false ) ); | 2501 | mes = i18n("Save file\nalready exists!\nOld save file from:\n%1\nOverwrite?\n").arg (KGlobal::locale()->formatDateTime(info.lastModified (), true, false ) ); |
2502 | int result = QMessageBox::warning( this, i18n("KO/Pi: Warning!"),mes, | 2502 | int result = QMessageBox::warning( this, i18n("KO/Pi: Warning!"),mes, |
2503 | i18n("Overwrite!"), i18n("Cancel"), 0, | 2503 | i18n("Overwrite!"), i18n("Cancel"), 0, |
2504 | 0, 1 ); | 2504 | 0, 1 ); |
2505 | if ( result != 0 ) { | 2505 | if ( result != 0 ) { |
2506 | createbup = false; | 2506 | createbup = false; |
2507 | } | 2507 | } |
2508 | } | 2508 | } |
2509 | if ( createbup ) { | 2509 | if ( createbup ) { |
2510 | if ( mView->exportVCalendar( fn ) ) { | 2510 | if ( mView->exportVCalendar( fn ) ) { |
2511 | KOPrefs::instance()->mLastVcalFile = fn; | 2511 | KOPrefs::instance()->mLastVcalFile = fn; |
2512 | if ( fn.length() > 20 ) | 2512 | if ( fn.length() > 20 ) |
2513 | mes = i18n("KO/Pi:Exported to ...%1").arg(fn.right(20)) ; | 2513 | mes = i18n("KO/Pi:Exported to ...%1").arg(fn.right(20)) ; |
2514 | else | 2514 | else |
2515 | mes = i18n("KO/Pi:Exported to %1").arg(fn ); | 2515 | mes = i18n("KO/Pi:Exported to %1").arg(fn ); |
2516 | setCaption(mes); | 2516 | setCaption(mes); |
2517 | } | 2517 | } |
2518 | } | 2518 | } |
2519 | 2519 | ||
2520 | } | 2520 | } |
2521 | QString MainWindow::sentSyncFile() | 2521 | QString MainWindow::sentSyncFile() |
2522 | { | 2522 | { |
2523 | #ifdef DESKTOP_VERSION | 2523 | #ifdef DESKTOP_VERSION |
2524 | return locateLocal( "tmp", "copysynccal.ics" ); | 2524 | return locateLocal( "tmp", "copysynccal.ics" ); |
2525 | #else | 2525 | #else |
2526 | return QString( "/tmp/copysynccal.ics" ); | 2526 | return QString( "/tmp/copysynccal.ics" ); |
2527 | #endif | 2527 | #endif |
2528 | } | 2528 | } |
2529 | 2529 | ||
2530 | void MainWindow::syncFileRequest() | 2530 | void MainWindow::syncFileRequest() |
2531 | { | 2531 | { |
2532 | if ( KOPrefs::instance()->mPassiveSyncWithDesktop ) { | 2532 | if ( KOPrefs::instance()->mPassiveSyncWithDesktop ) { |
2533 | mSyncManager->slotSyncMenu( 999 ); | 2533 | mSyncManager->slotSyncMenu( 999 ); |
2534 | } | 2534 | } |
2535 | 2535 | ||
2536 | setCaption(i18n("Saving Data to temp file ..." )); | 2536 | setCaption(i18n("Saving Data to temp file ..." )); |
2537 | mView->saveCalendar( sentSyncFile() ); | 2537 | mView->saveCalendar( sentSyncFile() ); |
2538 | setCaption(i18n("Data saved to temp file!" )); | 2538 | setCaption(i18n("Data saved to temp file!" )); |
2539 | 2539 | ||
2540 | } | 2540 | } |
2541 | void MainWindow::getFile( bool success ) | 2541 | void MainWindow::getFile( bool success ) |
2542 | { | 2542 | { |
2543 | if ( ! success ) { | 2543 | if ( ! success ) { |
2544 | setCaption( i18n("Error receiving file. Nothing changed!") ); | 2544 | setCaption( i18n("Error receiving file. Nothing changed!") ); |
2545 | return; | 2545 | return; |
2546 | } | 2546 | } |
2547 | mView->openCalendar( sentSyncFile() ); | 2547 | mView->mergeFile( sentSyncFile() ); |
2548 | if ( KOPrefs::instance()->mPassiveSyncWithDesktop ) { | 2548 | if ( KOPrefs::instance()->mPassiveSyncWithDesktop ) { |
2549 | mSyncManager->slotSyncMenu( 999 ); | 2549 | mSyncManager->slotSyncMenu( 999 ); |
2550 | } | 2550 | } |
2551 | setCaption( i18n("Pi-Sync successful!") ); | 2551 | setCaption( i18n("Pi-Sync successful!") ); |
2552 | } | 2552 | } |
2553 | void MainWindow::printListView() | 2553 | void MainWindow::printListView() |
2554 | { | 2554 | { |
2555 | 2555 | ||
2556 | QString message = i18n("You can make a printout of the <b>List View</b> and the list view in the <b>Search Dialog</b>! To do this, please go to the <b>List View/Search Dialog</b>. Right click on the list. Select in the popup menu the entry <b>Print complete list</b>. That prints the list as you see it. You can remove items from the list before printing without deleting the corresponding event/todo! Simply select all items you do not want to print out. Then right click on one of the items and choose <b>Hide selected items</b>. After that you can print the list without these items."); | 2556 | QString message = i18n("You can make a printout of the <b>List View</b> and the list view in the <b>Search Dialog</b>! To do this, please go to the <b>List View/Search Dialog</b>. Right click on the list. Select in the popup menu the entry <b>Print complete list</b>. That prints the list as you see it. You can remove items from the list before printing without deleting the corresponding event/todo! Simply select all items you do not want to print out. Then right click on one of the items and choose <b>Hide selected items</b>. After that you can print the list without these items."); |
2557 | 2557 | ||
2558 | KMessageBox::information( this, message); | 2558 | KMessageBox::information( this, message); |
2559 | } | 2559 | } |
2560 | void MainWindow::printSel( ) | 2560 | void MainWindow::printSel( ) |
2561 | { | 2561 | { |
2562 | mView->viewManager()->agendaView()->agenda()->printSelection(); | 2562 | mView->viewManager()->agendaView()->agenda()->printSelection(); |
2563 | } | 2563 | } |
2564 | 2564 | ||
2565 | void MainWindow::printCal() | 2565 | void MainWindow::printCal() |
2566 | { | 2566 | { |
2567 | mView->print();//mCp->showDialog(); | 2567 | mView->print();//mCp->showDialog(); |
2568 | } | 2568 | } |
2569 | 2569 | ||
2570 | 2570 | ||
2571 | #include "libkdepim/kdatepicker.h" | 2571 | #include "libkdepim/kdatepicker.h" |
2572 | #include <kdatetbl.h> | 2572 | #include <kdatetbl.h> |
2573 | 2573 | ||
2574 | void MainWindow::weekAction() | 2574 | void MainWindow::weekAction() |
2575 | { | 2575 | { |
2576 | int month; | 2576 | int month; |
2577 | KPopupFrame* popup = new KPopupFrame(this); | 2577 | KPopupFrame* popup = new KPopupFrame(this); |
2578 | KDateInternalWeekPicker* picker = new KDateInternalWeekPicker(popup); | 2578 | KDateInternalWeekPicker* picker = new KDateInternalWeekPicker(popup); |
2579 | // ----- | 2579 | // ----- |
2580 | picker->resize(picker->sizeHint()); | 2580 | picker->resize(picker->sizeHint()); |
2581 | popup->setMainWidget(picker); | 2581 | popup->setMainWidget(picker); |
2582 | picker->setFocus(); | 2582 | picker->setFocus(); |
2583 | connect(picker, SIGNAL(closeMe(int)), popup, SLOT(close(int))); | 2583 | connect(picker, SIGNAL(closeMe(int)), popup, SLOT(close(int))); |
2584 | int x = 0; | 2584 | int x = 0; |
2585 | int y = iconToolBar->height(); | 2585 | int y = iconToolBar->height(); |
2586 | int dX = 0; | 2586 | int dX = 0; |
2587 | int dY = 0; | 2587 | int dY = 0; |
2588 | if ( iconToolBar->orientation () == Qt:: Horizontal ) { | 2588 | if ( iconToolBar->orientation () == Qt:: Horizontal ) { |
2589 | if ( iconToolBar->y() > height()/2 ) { | 2589 | if ( iconToolBar->y() > height()/2 ) { |
2590 | dY = picker->sizeHint().height()+8; | 2590 | dY = picker->sizeHint().height()+8; |
2591 | y = 0; | 2591 | y = 0; |
2592 | } | 2592 | } |
2593 | } else { | 2593 | } else { |
2594 | if ( iconToolBar->x() > width()/2 ) { // right side | 2594 | if ( iconToolBar->x() > width()/2 ) { // right side |
2595 | x=0; | 2595 | x=0; |