-rw-r--r-- | bin/kdepim/WhatsNew.txt | 2 | ||||
-rw-r--r-- | korganizer/mainwindow.cpp | 12 | ||||
-rw-r--r-- | korganizer/mainwindow.h | 1 |
3 files changed, 12 insertions, 3 deletions
diff --git a/bin/kdepim/WhatsNew.txt b/bin/kdepim/WhatsNew.txt index af994ae..ec6a4ec 100644 --- a/bin/kdepim/WhatsNew.txt +++ b/bin/kdepim/WhatsNew.txt | |||
@@ -1,56 +1,56 @@ | |||
1 | Info about the changes in new versions of KDE-Pim/Pi | 1 | Info about the changes in new versions of KDE-Pim/Pi |
2 | 2 | ||
3 | ********** VERSION 2.1.6 ************ | 3 | ********** VERSION 2.1.6 ************ |
4 | 4 | ||
5 | KO/Pi: | 5 | KO/Pi: |
6 | Added to the list view (the list view is used in search dialog as well) the possibility to print it. | 6 | Added to the list view (the list view is used in search dialog as well) the possibility to print it. |
7 | Added to the list view the possibility to hide entries, if you do not want to print all entries of the list view. | 7 | Added to the list view the possibility to hide entries, if you do not want to print all entries of the list view. |
8 | Added to the list view the possibility to add all subtodos of selected todos to an export. | 8 | Added to the list view the possibility to add all subtodos of selected todos to an export/beam. |
9 | Added to the search dialog the possibility to make an additive search such that you can get a better list for export/printout. | 9 | Added to the search dialog the possibility to make an additive search such that you can get a better list for export/printout. |
10 | 10 | ||
11 | ********** VERSION 2.1.5 ************ | 11 | ********** VERSION 2.1.5 ************ |
12 | 12 | ||
13 | This is the new stable version. | 13 | This is the new stable version. |
14 | Bugfix: | 14 | Bugfix: |
15 | Fixed a problem with agenda popup on the desktop in KO/Pi. | 15 | Fixed a problem with agenda popup on the desktop in KO/Pi. |
16 | Fixed a crash when reloading file, e.g. after a passive pi-sync synchronization. | 16 | Fixed a crash when reloading file, e.g. after a passive pi-sync synchronization. |
17 | Added config option to not display completed todos in agenda view. | 17 | Added config option to not display completed todos in agenda view. |
18 | Addressee view is now using the formatted name, if defined. | 18 | Addressee view is now using the formatted name, if defined. |
19 | That makes it possible to display "lastname, firstname" in that view now. | 19 | That makes it possible to display "lastname, firstname" in that view now. |
20 | To set the formatted name for all contacts, please use menu: | 20 | To set the formatted name for all contacts, please use menu: |
21 | Edit->Change->Set formatted name. | 21 | Edit->Change->Set formatted name. |
22 | Fixed the bug in KA/Pi that is was not possible to add images to a contact on Windows. | 22 | Fixed the bug in KA/Pi that is was not possible to add images to a contact on Windows. |
23 | 23 | ||
24 | ********** VERSION 2.1.4 ************ | 24 | ********** VERSION 2.1.4 ************ |
25 | 25 | ||
26 | Fixed two more bugs in the KA/Pi CSV import dialog: | 26 | Fixed two more bugs in the KA/Pi CSV import dialog: |
27 | Made it possible to read multi-line fields and import it to the "Note" field. | 27 | Made it possible to read multi-line fields and import it to the "Note" field. |
28 | Fixed a problem in mapping custom fields, whatever a custem field is... | 28 | Fixed a problem in mapping custom fields, whatever a custem field is... |
29 | 29 | ||
30 | ********** VERSION 2.1.3 ************ | 30 | ********** VERSION 2.1.3 ************ |
31 | 31 | ||
32 | Changed the menu structure of the alarm applet: | 32 | Changed the menu structure of the alarm applet: |
33 | Moved "Simulate" to " Play Beeps" submenu and re-added "Todo List". | 33 | Moved "Simulate" to " Play Beeps" submenu and re-added "Todo List". |
34 | 34 | ||
35 | Fixed several problems in the KA/Pi CSV import dialog: | 35 | Fixed several problems in the KA/Pi CSV import dialog: |
36 | Added "Category", made codec configureable and made it possible to map many fields to the "Note" field. | 36 | Added "Category", made codec configureable and made it possible to map many fields to the "Note" field. |
37 | 37 | ||
38 | 38 | ||
39 | ********** VERSION 2.1.2 ************ | 39 | ********** VERSION 2.1.2 ************ |
40 | 40 | ||
41 | Fixed a problem closing the alarm dialog on Zaurus with "OK" button. | 41 | Fixed a problem closing the alarm dialog on Zaurus with "OK" button. |
42 | 42 | ||
43 | Fixed a problem when importing data from Outlook with mutiple categories set. | 43 | Fixed a problem when importing data from Outlook with mutiple categories set. |
44 | 44 | ||
45 | Changed display of days in datenavigator: | 45 | Changed display of days in datenavigator: |
46 | Birthdays are now blue, not dark green. | 46 | Birthdays are now blue, not dark green. |
47 | When todo view is shown, no birtdays are shown and days with due todos are shown blue. | 47 | When todo view is shown, no birtdays are shown and days with due todos are shown blue. |
48 | When journal view is shown, only holidays are shown and days with journals are blue. | 48 | When journal view is shown, only holidays are shown and days with journals are blue. |
49 | 49 | ||
50 | Added Backup options to global config: | 50 | Added Backup options to global config: |
51 | You can create now x-daily backups for KO/Pi, KA/Pi (for file resources only, file resource is the standard type) and PwM/Pi ( all files you will open ). | 51 | You can create now x-daily backups for KO/Pi, KA/Pi (for file resources only, file resource is the standard type) and PwM/Pi ( all files you will open ). |
52 | It is recommended to use another HDD/Memory card for the backup directory. If (very useful on the Zaurus) the specified backup directory does not exist you are asked if you want to try again to create a backup. That makes it possible to insert your memory card in the Zaurus and then trying again. | 52 | It is recommended to use another HDD/Memory card for the backup directory. If (very useful on the Zaurus) the specified backup directory does not exist you are asked if you want to try again to create a backup. That makes it possible to insert your memory card in the Zaurus and then trying again. |
53 | The backup is created when the application wants to save for the first time on a backup-day. You can specify the amount of backups and the day interval of backups. | 53 | The backup is created when the application wants to save for the first time on a backup-day. You can specify the amount of backups and the day interval of backups. |
54 | 54 | ||
55 | ********** VERSION 2.1.1 ************ | 55 | ********** VERSION 2.1.1 ************ |
56 | 56 | ||
diff --git a/korganizer/mainwindow.cpp b/korganizer/mainwindow.cpp index 481eab4..20f8b57 100644 --- a/korganizer/mainwindow.cpp +++ b/korganizer/mainwindow.cpp | |||
@@ -998,117 +998,122 @@ void MainWindow::initActions() | |||
998 | 998 | ||
999 | //importMenu->insertSeparator(); | 999 | //importMenu->insertSeparator(); |
1000 | action = new QAction( "load_cal", i18n("Load Calendar Backup"), 0, | 1000 | action = new QAction( "load_cal", i18n("Load Calendar Backup"), 0, |
1001 | this ); | 1001 | this ); |
1002 | action->addTo( importMenu ); | 1002 | action->addTo( importMenu ); |
1003 | connect( action, SIGNAL( activated() ), SLOT( loadCalendar() ) ); | 1003 | connect( action, SIGNAL( activated() ), SLOT( loadCalendar() ) ); |
1004 | 1004 | ||
1005 | action = new QAction( "save_cal", i18n("Save Calendar Backup"), 0, | 1005 | action = new QAction( "save_cal", i18n("Save Calendar Backup"), 0, |
1006 | this ); | 1006 | this ); |
1007 | action->addTo( importMenu ); | 1007 | action->addTo( importMenu ); |
1008 | connect( action, SIGNAL( activated() ), SLOT( saveCalendar() ) ); | 1008 | connect( action, SIGNAL( activated() ), SLOT( saveCalendar() ) ); |
1009 | importMenu->insertSeparator(); | 1009 | importMenu->insertSeparator(); |
1010 | importMenu->insertItem( i18n("Import"), importMenu_X ); | 1010 | importMenu->insertItem( i18n("Import"), importMenu_X ); |
1011 | //importMenu->insertSeparator(); | 1011 | //importMenu->insertSeparator(); |
1012 | action = new QAction( "import_qtopia", i18n("Export VCalendar"), 0, | 1012 | action = new QAction( "import_qtopia", i18n("Export VCalendar"), 0, |
1013 | this ); | 1013 | this ); |
1014 | action->addTo( exportMenu_X ); | 1014 | action->addTo( exportMenu_X ); |
1015 | connect( action, SIGNAL( activated() ), SLOT( exportVCalendar() ) ); | 1015 | connect( action, SIGNAL( activated() ), SLOT( exportVCalendar() ) ); |
1016 | 1016 | ||
1017 | 1017 | ||
1018 | //LR | 1018 | //LR |
1019 | QPopupMenu *ex2phone = new QPopupMenu( this ); | 1019 | QPopupMenu *ex2phone = new QPopupMenu( this ); |
1020 | ex2phone->insertItem(i18n("Complete calendar..."), 1 ); | 1020 | ex2phone->insertItem(i18n("Complete calendar..."), 1 ); |
1021 | ex2phone->insertItem(i18n("Filtered calendar..."), 2 ); | 1021 | ex2phone->insertItem(i18n("Filtered calendar..."), 2 ); |
1022 | connect( ex2phone, SIGNAL( activated(int) ), this, SLOT( exportToPhone( int)) ); | 1022 | connect( ex2phone, SIGNAL( activated(int) ), this, SLOT( exportToPhone( int)) ); |
1023 | exportMenu_X->insertItem( i18n("Export to phone"), ex2phone ); | 1023 | exportMenu_X->insertItem( i18n("Export to phone"), ex2phone ); |
1024 | 1024 | ||
1025 | importMenu->insertItem( i18n("Export"), exportMenu_X ); | 1025 | importMenu->insertItem( i18n("Export"), exportMenu_X ); |
1026 | #ifndef DESKTOP_VERSION | 1026 | #ifndef DESKTOP_VERSION |
1027 | //importMenu->insertSeparator(); | 1027 | //importMenu->insertSeparator(); |
1028 | brAction = new QAction( "beam toggle", i18n("Beam receive enabled"), 0, | 1028 | brAction = new QAction( "beam toggle", i18n("Beam receive enabled"), 0, |
1029 | this ); | 1029 | this ); |
1030 | brAction->addTo( beamMenu_X ); | 1030 | brAction->addTo( beamMenu_X ); |
1031 | brAction->setToggleAction (true ) ; | 1031 | brAction->setToggleAction (true ) ; |
1032 | connect( brAction, SIGNAL( activated() ), this, SLOT( toggleBeamReceive() ) ); | 1032 | connect( brAction, SIGNAL( activated() ), this, SLOT( toggleBeamReceive() ) ); |
1033 | 1033 | ||
1034 | action = new QAction( "beam all", i18n("Beam complete calendar..."), 0, | 1034 | action = new QAction( "beam all", i18n("Beam complete calendar..."), 0, |
1035 | this ); | 1035 | this ); |
1036 | action->addTo( beamMenu_X ); | 1036 | action->addTo( beamMenu_X ); |
1037 | connect( action, SIGNAL( activated() ), mView, SLOT( beamCalendar() ) ); | 1037 | connect( action, SIGNAL( activated() ), mView, SLOT( beamCalendar() ) ); |
1038 | 1038 | ||
1039 | action = new QAction( "beam all", i18n("Beam filtered calendar..."), 0, | 1039 | action = new QAction( "beam all", i18n("Beam filtered calendar..."), 0, |
1040 | this ); | 1040 | this ); |
1041 | action->addTo( beamMenu_X ); | 1041 | action->addTo( beamMenu_X ); |
1042 | connect( action, SIGNAL( activated() ), mView, SLOT( beamFilteredCalendar()) ); | 1042 | connect( action, SIGNAL( activated() ), mView, SLOT( beamFilteredCalendar()) ); |
1043 | importMenu->insertItem( i18n("Beam"), beamMenu_X ); | 1043 | importMenu->insertItem( i18n("Beam"), beamMenu_X ); |
1044 | #else | 1044 | #else |
1045 | //importMenu->insertSeparator(); | 1045 | //importMenu->insertSeparator(); |
1046 | icon = loadPixmap( pathString + "print" ); | 1046 | icon = loadPixmap( pathString + "print" ); |
1047 | action = new QAction( i18n("Print calendar..."),icon,i18n("Print calendar..."), 0, this ); | 1047 | action = new QAction( i18n("Print calendar..."),icon,i18n("Print calendar..."), 0, this ); |
1048 | action->addTo( beamMenu_X ); | 1048 | action->addTo( beamMenu_X ); |
1049 | connect( action, SIGNAL( activated() ), | 1049 | connect( action, SIGNAL( activated() ), |
1050 | this, SLOT( printCal() ) ); | 1050 | this, SLOT( printCal() ) ); |
1051 | 1051 | ||
1052 | icon = loadPixmap( pathString + "print" ); | 1052 | icon = loadPixmap( pathString + "print" ); |
1053 | action = new QAction( i18n("Print agenda selection..."),icon,i18n("Print agenda selection..."), 0, this ); | 1053 | action = new QAction( i18n("Print agenda selection..."),icon,i18n("Print agenda selection..."), 0, this ); |
1054 | action->addTo( beamMenu_X ); | 1054 | action->addTo( beamMenu_X ); |
1055 | connect( action, SIGNAL( activated() ), | 1055 | connect( action, SIGNAL( activated() ), |
1056 | this, SLOT( printSel() ) ); | 1056 | this, SLOT( printSel() ) ); |
1057 | action = new QAction( i18n("Print What's Next View..."),icon,i18n("Print What's Next View..."), 0, this ); | 1057 | action = new QAction( i18n("Print What's Next View..."),icon,i18n("Print What's Next View..."), 0, this ); |
1058 | action->addTo( beamMenu_X ); | 1058 | action->addTo( beamMenu_X ); |
1059 | connect( action, SIGNAL( activated() ), | 1059 | connect( action, SIGNAL( activated() ), |
1060 | mView->viewManager(), SLOT( slotprintWNV() ) ); | 1060 | mView->viewManager(), SLOT( slotprintWNV() ) ); |
1061 | 1061 | ||
1062 | action = new QAction( i18n("Print selected event / todo..."),icon,i18n("Print selected event / todo..."), 0, this ); | 1062 | action = new QAction( i18n("Print selected event / todo..."),icon,i18n("Print selected event / todo..."), 0, this ); |
1063 | action->addTo( beamMenu_X ); | 1063 | action->addTo( beamMenu_X ); |
1064 | connect( action, SIGNAL( activated() ), | 1064 | connect( action, SIGNAL( activated() ), |
1065 | mView, SLOT( slotprintSelInc() ) ); | 1065 | mView, SLOT( slotprintSelInc() ) ); |
1066 | 1066 | ||
1067 | icon = loadPixmap( pathString + "print" ); | ||
1068 | action = new QAction( i18n("Print list view..."),icon,i18n("Print list view..."), 0, this ); | ||
1069 | action->addTo( beamMenu_X ); | ||
1070 | connect( action, SIGNAL( activated() ), | ||
1071 | this, SLOT( printListView() ) ); | ||
1067 | 1072 | ||
1068 | importMenu->insertItem( i18n("Print"), beamMenu_X ); | 1073 | importMenu->insertItem( i18n("Print"), beamMenu_X ); |
1069 | #endif | 1074 | #endif |
1070 | importMenu->insertSeparator(); | 1075 | importMenu->insertSeparator(); |
1071 | action = new QAction( "manage cat", i18n("Manage new categories..."), 0, | 1076 | action = new QAction( "manage cat", i18n("Manage new categories..."), 0, |
1072 | this ); | 1077 | this ); |
1073 | action->addTo( importMenu ); | 1078 | action->addTo( importMenu ); |
1074 | connect( action, SIGNAL( activated() ), mView, SLOT( manageCategories() ) ); | 1079 | connect( action, SIGNAL( activated() ), mView, SLOT( manageCategories() ) ); |
1075 | importMenu->insertSeparator(); | 1080 | importMenu->insertSeparator(); |
1076 | action = new QAction( "beam all", i18n("Save"), 0, | 1081 | action = new QAction( "beam all", i18n("Save"), 0, |
1077 | this ); | 1082 | this ); |
1078 | action->addTo( importMenu ); | 1083 | action->addTo( importMenu ); |
1079 | connect( action, SIGNAL( activated() ), this, SLOT( save() ) ); | 1084 | connect( action, SIGNAL( activated() ), this, SLOT( save() ) ); |
1080 | action = new QAction( "beam all", i18n("Exit (+save)"), 0, | 1085 | action = new QAction( "beam all", i18n("Exit (+save)"), 0, |
1081 | this ); | 1086 | this ); |
1082 | action->addTo( importMenu ); | 1087 | action->addTo( importMenu ); |
1083 | connect( action, SIGNAL( activated() ), this, SLOT( close() ) ); | 1088 | connect( action, SIGNAL( activated() ), this, SLOT( close() ) ); |
1084 | 1089 | ||
1085 | //menuBar->insertItem( "Configure",configureMenu ); | 1090 | //menuBar->insertItem( "Configure",configureMenu ); |
1086 | //configureMenu->insertItem( "Toolbar",configureToolBarMenu ); | 1091 | //configureMenu->insertItem( "Toolbar",configureToolBarMenu ); |
1087 | icon = loadPixmap( "korganizer/korganizer" ); | 1092 | icon = loadPixmap( "korganizer/korganizer" ); |
1088 | 1093 | ||
1089 | action = new QAction( "Whats New", i18n("What's new?"), 0,this ); | 1094 | action = new QAction( "Whats New", i18n("What's new?"), 0,this ); |
1090 | action->addTo( helpMenu ); | 1095 | action->addTo( helpMenu ); |
1091 | connect( action, SIGNAL( activated() ), | 1096 | connect( action, SIGNAL( activated() ), |
1092 | SLOT( whatsNew() ) ); | 1097 | SLOT( whatsNew() ) ); |
1093 | action = new QAction( "featureHowto", i18n("Features + hints..."), 0,this ); | 1098 | action = new QAction( "featureHowto", i18n("Features + hints..."), 0,this ); |
1094 | action->addTo( helpMenu ); | 1099 | action->addTo( helpMenu ); |
1095 | connect( action, SIGNAL( activated() ), | 1100 | connect( action, SIGNAL( activated() ), |
1096 | SLOT( features() ) ); | 1101 | SLOT( features() ) ); |
1097 | action = new QAction( "Keys + Colors", i18n("Keys + Colors..."), 0, this ); | 1102 | action = new QAction( "Keys + Colors", i18n("Keys + Colors..."), 0, this ); |
1098 | action->addTo( helpMenu ); | 1103 | action->addTo( helpMenu ); |
1099 | connect( action, SIGNAL( activated() ), | 1104 | connect( action, SIGNAL( activated() ), |
1100 | SLOT( keyBindings() ) ); | 1105 | SLOT( keyBindings() ) ); |
1101 | action = new QAction( "Storage Howto", i18n("Storage HowTo..."), 0,this ); | 1106 | action = new QAction( "Storage Howto", i18n("Storage HowTo..."), 0,this ); |
1102 | action->addTo( helpMenu ); | 1107 | action->addTo( helpMenu ); |
1103 | connect( action, SIGNAL( activated() ), | 1108 | connect( action, SIGNAL( activated() ), |
1104 | SLOT( storagehowto() ) ); | 1109 | SLOT( storagehowto() ) ); |
1105 | action = new QAction( "Timetracking Howto", i18n("Timetracking HowTo..."), 0,this ); | 1110 | action = new QAction( "Timetracking Howto", i18n("Timetracking HowTo..."), 0,this ); |
1106 | action->addTo( helpMenu ); | 1111 | action->addTo( helpMenu ); |
1107 | connect( action, SIGNAL( activated() ), | 1112 | connect( action, SIGNAL( activated() ), |
1108 | SLOT( timetrackinghowto() ) ); | 1113 | SLOT( timetrackinghowto() ) ); |
1109 | action = new QAction( "Sync Howto", i18n("Sync HowTo..."), 0,this ); | 1114 | action = new QAction( "Sync Howto", i18n("Sync HowTo..."), 0,this ); |
1110 | action->addTo( helpMenu ); | 1115 | action->addTo( helpMenu ); |
1111 | connect( action, SIGNAL( activated() ), | 1116 | connect( action, SIGNAL( activated() ), |
1112 | SLOT( synchowto() ) ); | 1117 | SLOT( synchowto() ) ); |
1113 | action = new QAction( "KDE Sync Howto", i18n("KDE Sync HowTo..."), 0,this ); | 1118 | action = new QAction( "KDE Sync Howto", i18n("KDE Sync HowTo..."), 0,this ); |
1114 | action->addTo( helpMenu ); | 1119 | action->addTo( helpMenu ); |
@@ -2375,97 +2380,100 @@ void MainWindow::exportVCalendar() | |||
2375 | if ( result != 0 ) { | 2380 | if ( result != 0 ) { |
2376 | createbup = false; | 2381 | createbup = false; |
2377 | } | 2382 | } |
2378 | } | 2383 | } |
2379 | if ( createbup ) { | 2384 | if ( createbup ) { |
2380 | if ( mView->exportVCalendar( fn ) ) { | 2385 | if ( mView->exportVCalendar( fn ) ) { |
2381 | KOPrefs::instance()->mLastVcalFile = fn; | 2386 | KOPrefs::instance()->mLastVcalFile = fn; |
2382 | if ( fn.length() > 20 ) | 2387 | if ( fn.length() > 20 ) |
2383 | mes = i18n("KO/Pi:Exported to ...%1").arg(fn.right(20)) ; | 2388 | mes = i18n("KO/Pi:Exported to ...%1").arg(fn.right(20)) ; |
2384 | else | 2389 | else |
2385 | mes = i18n("KO/Pi:Exported to %1").arg(fn ); | 2390 | mes = i18n("KO/Pi:Exported to %1").arg(fn ); |
2386 | setCaption(mes); | 2391 | setCaption(mes); |
2387 | } | 2392 | } |
2388 | } | 2393 | } |
2389 | 2394 | ||
2390 | } | 2395 | } |
2391 | QString MainWindow::sentSyncFile() | 2396 | QString MainWindow::sentSyncFile() |
2392 | { | 2397 | { |
2393 | #ifdef DESKTOP_VERSION | 2398 | #ifdef DESKTOP_VERSION |
2394 | return locateLocal( "tmp", "copysynccal.ics" ); | 2399 | return locateLocal( "tmp", "copysynccal.ics" ); |
2395 | #else | 2400 | #else |
2396 | return QString( "/tmp/copysynccal.ics" ); | 2401 | return QString( "/tmp/copysynccal.ics" ); |
2397 | #endif | 2402 | #endif |
2398 | } | 2403 | } |
2399 | 2404 | ||
2400 | void MainWindow::syncFileRequest() | 2405 | void MainWindow::syncFileRequest() |
2401 | { | 2406 | { |
2402 | if ( KOPrefs::instance()->mPassiveSyncWithDesktop ) { | 2407 | if ( KOPrefs::instance()->mPassiveSyncWithDesktop ) { |
2403 | mSyncManager->slotSyncMenu( 999 ); | 2408 | mSyncManager->slotSyncMenu( 999 ); |
2404 | } | 2409 | } |
2405 | 2410 | ||
2406 | setCaption(i18n("Saving Data to temp file ..." )); | 2411 | setCaption(i18n("Saving Data to temp file ..." )); |
2407 | mView->saveCalendar( sentSyncFile() ); | 2412 | mView->saveCalendar( sentSyncFile() ); |
2408 | setCaption(i18n("Data saved to temp file!" )); | 2413 | setCaption(i18n("Data saved to temp file!" )); |
2409 | 2414 | ||
2410 | } | 2415 | } |
2411 | void MainWindow::getFile( bool success ) | 2416 | void MainWindow::getFile( bool success ) |
2412 | { | 2417 | { |
2413 | if ( ! success ) { | 2418 | if ( ! success ) { |
2414 | setCaption( i18n("Error receiving file. Nothing changed!") ); | 2419 | setCaption( i18n("Error receiving file. Nothing changed!") ); |
2415 | return; | 2420 | return; |
2416 | } | 2421 | } |
2417 | mView->openCalendar( sentSyncFile() ); | 2422 | mView->openCalendar( sentSyncFile() ); |
2418 | if ( KOPrefs::instance()->mPassiveSyncWithDesktop ) { | 2423 | if ( KOPrefs::instance()->mPassiveSyncWithDesktop ) { |
2419 | mSyncManager->slotSyncMenu( 999 ); | 2424 | mSyncManager->slotSyncMenu( 999 ); |
2420 | } | 2425 | } |
2421 | setCaption( i18n("Pi-Sync successful!") ); | 2426 | setCaption( i18n("Pi-Sync successful!") ); |
2422 | } | 2427 | } |
2423 | 2428 | void MainWindow::printListView() | |
2429 | { | ||
2430 | qDebug("MainWindow::printListView() "); | ||
2431 | } | ||
2424 | void MainWindow::printSel( ) | 2432 | void MainWindow::printSel( ) |
2425 | { | 2433 | { |
2426 | mView->viewManager()->agendaView()->agenda()->printSelection(); | 2434 | mView->viewManager()->agendaView()->agenda()->printSelection(); |
2427 | } | 2435 | } |
2428 | 2436 | ||
2429 | void MainWindow::printCal() | 2437 | void MainWindow::printCal() |
2430 | { | 2438 | { |
2431 | mView->print();//mCp->showDialog(); | 2439 | mView->print();//mCp->showDialog(); |
2432 | } | 2440 | } |
2433 | 2441 | ||
2434 | 2442 | ||
2435 | #include "libkdepim/kdatepicker.h" | 2443 | #include "libkdepim/kdatepicker.h" |
2436 | #include <kdatetbl.h> | 2444 | #include <kdatetbl.h> |
2437 | 2445 | ||
2438 | void MainWindow::weekAction() | 2446 | void MainWindow::weekAction() |
2439 | { | 2447 | { |
2440 | int month; | 2448 | int month; |
2441 | KPopupFrame* popup = new KPopupFrame(this); | 2449 | KPopupFrame* popup = new KPopupFrame(this); |
2442 | KDateInternalWeekPicker* picker = new KDateInternalWeekPicker(popup); | 2450 | KDateInternalWeekPicker* picker = new KDateInternalWeekPicker(popup); |
2443 | // ----- | 2451 | // ----- |
2444 | picker->resize(picker->sizeHint()); | 2452 | picker->resize(picker->sizeHint()); |
2445 | popup->setMainWidget(picker); | 2453 | popup->setMainWidget(picker); |
2446 | picker->setFocus(); | 2454 | picker->setFocus(); |
2447 | connect(picker, SIGNAL(closeMe(int)), popup, SLOT(close(int))); | 2455 | connect(picker, SIGNAL(closeMe(int)), popup, SLOT(close(int))); |
2448 | int x = 0; | 2456 | int x = 0; |
2449 | int y = iconToolBar->height(); | 2457 | int y = iconToolBar->height(); |
2450 | int dX = 0; | 2458 | int dX = 0; |
2451 | int dY = 0; | 2459 | int dY = 0; |
2452 | if ( iconToolBar->orientation () == Qt:: Horizontal ) { | 2460 | if ( iconToolBar->orientation () == Qt:: Horizontal ) { |
2453 | if ( iconToolBar->y() > height()/2 ) { | 2461 | if ( iconToolBar->y() > height()/2 ) { |
2454 | dY = picker->sizeHint().height()+8; | 2462 | dY = picker->sizeHint().height()+8; |
2455 | y = 0; | 2463 | y = 0; |
2456 | } | 2464 | } |
2457 | } else { | 2465 | } else { |
2458 | if ( iconToolBar->x() > width()/2 ) { // right side | 2466 | if ( iconToolBar->x() > width()/2 ) { // right side |
2459 | x=0; | 2467 | x=0; |
2460 | dX= picker->sizeHint().width()+8; | 2468 | dX= picker->sizeHint().width()+8; |
2461 | y = 0; | 2469 | y = 0; |
2462 | } else { | 2470 | } else { |
2463 | x= iconToolBar->width(); | 2471 | x= iconToolBar->width(); |
2464 | y = 0; | 2472 | y = 0; |
2465 | } | 2473 | } |
2466 | } | 2474 | } |
2467 | //qDebug("dax %d dy %d %d %d ", dX, dY, iconToolBar->x(), iconToolBar->y() ); | 2475 | //qDebug("dax %d dy %d %d %d ", dX, dY, iconToolBar->x(), iconToolBar->y() ); |
2468 | if(popup->exec(iconToolBar->mapToGlobal(QPoint(x,y)-QPoint( dX,dY)))) | 2476 | if(popup->exec(iconToolBar->mapToGlobal(QPoint(x,y)-QPoint( dX,dY)))) |
2469 | { | 2477 | { |
2470 | month = picker->getResult(); | 2478 | month = picker->getResult(); |
2471 | emit selectWeek ( month ); | 2479 | emit selectWeek ( month ); |
diff --git a/korganizer/mainwindow.h b/korganizer/mainwindow.h index 6895e36..1105783 100644 --- a/korganizer/mainwindow.h +++ b/korganizer/mainwindow.h | |||
@@ -40,96 +40,97 @@ class MainWindow : public QMainWindow | |||
40 | ~MainWindow(); | 40 | ~MainWindow(); |
41 | bool beamReceiveEnabled(); | 41 | bool beamReceiveEnabled(); |
42 | static QString defaultFileName(); | 42 | static QString defaultFileName(); |
43 | static QString syncFileName(); | 43 | static QString syncFileName(); |
44 | static QString resourcePath(); | 44 | static QString resourcePath(); |
45 | public slots: | 45 | public slots: |
46 | void setUsesBigPixmaps ( bool ); | 46 | void setUsesBigPixmaps ( bool ); |
47 | void setCaption ( const QString & ); | 47 | void setCaption ( const QString & ); |
48 | void updateWeekNum(const KCal::DateList &); | 48 | void updateWeekNum(const KCal::DateList &); |
49 | void updateWeek(QDate); | 49 | void updateWeek(QDate); |
50 | void updateFilterToolbar(); | 50 | void updateFilterToolbar(); |
51 | virtual void showMaximized (); | 51 | virtual void showMaximized (); |
52 | void configureAgenda( int ); | 52 | void configureAgenda( int ); |
53 | void recieve( const QCString& msg, const QByteArray& data ); | 53 | void recieve( const QCString& msg, const QByteArray& data ); |
54 | protected slots: | 54 | protected slots: |
55 | void setCaptionToDates(); | 55 | void setCaptionToDates(); |
56 | void weekAction(); | 56 | void weekAction(); |
57 | void about(); | 57 | void about(); |
58 | void licence(); | 58 | void licence(); |
59 | void faq(); | 59 | void faq(); |
60 | void usertrans(); | 60 | void usertrans(); |
61 | void features(); | 61 | void features(); |
62 | void synchowto(); | 62 | void synchowto(); |
63 | void storagehowto(); | 63 | void storagehowto(); |
64 | void timetrackinghowto(); | 64 | void timetrackinghowto(); |
65 | void kdesynchowto(); | 65 | void kdesynchowto(); |
66 | void multisynchowto(); | 66 | void multisynchowto(); |
67 | void whatsNew(); | 67 | void whatsNew(); |
68 | void keyBindings(); | 68 | void keyBindings(); |
69 | void aboutAutoSaving();; | 69 | void aboutAutoSaving();; |
70 | void aboutKnownBugs(); | 70 | void aboutKnownBugs(); |
71 | 71 | ||
72 | void processIncidenceSelection( Incidence * ); | 72 | void processIncidenceSelection( Incidence * ); |
73 | 73 | ||
74 | void importQtopia(); | 74 | void importQtopia(); |
75 | void importBday(); | 75 | void importBday(); |
76 | void importOL(); | 76 | void importOL(); |
77 | void importIcal(); | 77 | void importIcal(); |
78 | void importFile( QString, bool ); | 78 | void importFile( QString, bool ); |
79 | void quickImportIcal(); | 79 | void quickImportIcal(); |
80 | 80 | ||
81 | void slotModifiedChanged( bool ); | 81 | void slotModifiedChanged( bool ); |
82 | 82 | ||
83 | void save(); | 83 | void save(); |
84 | void saveStopTimer(); | 84 | void saveStopTimer(); |
85 | void configureToolBar( int ); | 85 | void configureToolBar( int ); |
86 | void printSel(); | 86 | void printSel(); |
87 | void printCal(); | 87 | void printCal(); |
88 | void printListView(); | ||
88 | void saveCalendar(); | 89 | void saveCalendar(); |
89 | void loadCalendar(); | 90 | void loadCalendar(); |
90 | void exportVCalendar(); | 91 | void exportVCalendar(); |
91 | void fillFilterMenu(); | 92 | void fillFilterMenu(); |
92 | void fillFilterMenuTB(); | 93 | void fillFilterMenuTB(); |
93 | void selectFilter( int ); | 94 | void selectFilter( int ); |
94 | void fillFilterMenuPopup(); | 95 | void fillFilterMenuPopup(); |
95 | void selectFilterPopup( int ); | 96 | void selectFilterPopup( int ); |
96 | void exportToPhone( int ); | 97 | void exportToPhone( int ); |
97 | void toggleBeamReceive(); | 98 | void toggleBeamReceive(); |
98 | void disableBR(bool); | 99 | void disableBR(bool); |
99 | signals: | 100 | signals: |
100 | void selectWeek ( int ); | 101 | void selectWeek ( int ); |
101 | private slots: | 102 | private slots: |
102 | void showConfigureAgenda(); | 103 | void showConfigureAgenda(); |
103 | void getFile( bool ); | 104 | void getFile( bool ); |
104 | void syncFileRequest(); | 105 | void syncFileRequest(); |
105 | 106 | ||
106 | protected: | 107 | protected: |
107 | void hideEvent ( QHideEvent * ); | 108 | void hideEvent ( QHideEvent * ); |
108 | QString sentSyncFile(); | 109 | QString sentSyncFile(); |
109 | void displayText( QString, QString); | 110 | void displayText( QString, QString); |
110 | void enableIncidenceActions( bool ); | 111 | void enableIncidenceActions( bool ); |
111 | 112 | ||
112 | private: | 113 | private: |
113 | bool mBRdisabled; | 114 | bool mBRdisabled; |
114 | #ifndef DESKTOP_VERSION | 115 | #ifndef DESKTOP_VERSION |
115 | QCopChannel* infrared; | 116 | QCopChannel* infrared; |
116 | #endif | 117 | #endif |
117 | QAction* brAction; | 118 | QAction* brAction; |
118 | KSyncManager* mSyncManager; | 119 | KSyncManager* mSyncManager; |
119 | bool mClosed; | 120 | bool mClosed; |
120 | void saveOnClose(); | 121 | void saveOnClose(); |
121 | bool mFlagKeyPressed; | 122 | bool mFlagKeyPressed; |
122 | bool mBlockAtStartup; | 123 | bool mBlockAtStartup; |
123 | QPEToolBar *iconToolBar; | 124 | QPEToolBar *iconToolBar; |
124 | QPEToolBar *viewToolBar; | 125 | QPEToolBar *viewToolBar; |
125 | QPEToolBar *navigatorToolBar; | 126 | QPEToolBar *navigatorToolBar; |
126 | QPEToolBar *filterToolBar; | 127 | QPEToolBar *filterToolBar; |
127 | QMenuBar *filterMenubar; | 128 | QMenuBar *filterMenubar; |
128 | QPopupMenu * filterPopupMenu; | 129 | QPopupMenu * filterPopupMenu; |
129 | void initActions(); | 130 | void initActions(); |
130 | void setDefaultPreferences(); | 131 | void setDefaultPreferences(); |
131 | void resizeEvent( QResizeEvent* e); | 132 | void resizeEvent( QResizeEvent* e); |
132 | void keyPressEvent ( QKeyEvent * ) ; | 133 | void keyPressEvent ( QKeyEvent * ) ; |
133 | void keyReleaseEvent ( QKeyEvent * ) ; | 134 | void keyReleaseEvent ( QKeyEvent * ) ; |
134 | QPopupMenu *configureToolBarMenu; | 135 | QPopupMenu *configureToolBarMenu; |
135 | QPopupMenu *selectFilterMenu; | 136 | QPopupMenu *selectFilterMenu; |