author | zautrix <zautrix> | 2005-06-09 15:30:45 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-06-09 15:30:45 (UTC) |
commit | ad88eadf0bdb34cb4a93639b50a5566a06470c22 (patch) (unidiff) | |
tree | 194ed7da0894b1b0d96b8edcfb6c41b4a1f903b7 | |
parent | a9a6a8f4eb0200fb5fbf67091e6348a3859976f9 (diff) | |
download | kdepimpi-ad88eadf0bdb34cb4a93639b50a5566a06470c22.zip kdepimpi-ad88eadf0bdb34cb4a93639b50a5566a06470c22.tar.gz kdepimpi-ad88eadf0bdb34cb4a93639b50a5566a06470c22.tar.bz2 |
print hint
-rw-r--r-- | bin/kdepim/korganizer/germantranslation.txt | 10 | ||||
-rw-r--r-- | korganizer/mainwindow.cpp | 16 |
2 files changed, 20 insertions, 6 deletions
diff --git a/bin/kdepim/korganizer/germantranslation.txt b/bin/kdepim/korganizer/germantranslation.txt index 9105919..6b62d4e 100644 --- a/bin/kdepim/korganizer/germantranslation.txt +++ b/bin/kdepim/korganizer/germantranslation.txt | |||
@@ -1315,67 +1315,77 @@ | |||
1315 | { "KO/Pi Printout","KO/Pi Ausdruck" }, | 1315 | { "KO/Pi Printout","KO/Pi Ausdruck" }, |
1316 | { "Print unscaled","Drucke unskaliert" }, | 1316 | { "Print unscaled","Drucke unskaliert" }, |
1317 | { "Print scaled down to fit one page","Drucke runterskaliert um auf eine Seite zu passen." }, | 1317 | { "Print scaled down to fit one page","Drucke runterskaliert um auf eine Seite zu passen." }, |
1318 | { "Print scaled up/down to fit one page","Drucke hoch/runterskaliert um genau auf eine Seite zu passen." }, | 1318 | { "Print scaled up/down to fit one page","Drucke hoch/runterskaliert um genau auf eine Seite zu passen." }, |
1319 | { "Printout Mode","Druck Modus" }, | 1319 | { "Printout Mode","Druck Modus" }, |
1320 | { "Filter menu icon","Filtermenu Icon" }, | 1320 | { "Filter menu icon","Filtermenu Icon" }, |
1321 | { "<p><b>A+(shift or ctrl)</b>: Show occurence of next alarm</p>\n","<p><b>A+(shift oder ctrl)</b>: Zeige Zeit bis zum nächsten Alarm</p>\n" }, | 1321 | { "<p><b>A+(shift or ctrl)</b>: Show occurence of next alarm</p>\n","<p><b>A+(shift oder ctrl)</b>: Zeige Zeit bis zum nächsten Alarm</p>\n" }, |
1322 | { "<p><b>N</b>: Switch to next view which has a toolbar icon</p>\n","<p><b>N</b>: Wechsle zur nächsten Ansicht, die ein Icon in der Toolbar hat</p>\n" }, | 1322 | { "<p><b>N</b>: Switch to next view which has a toolbar icon</p>\n","<p><b>N</b>: Wechsle zur nächsten Ansicht, die ein Icon in der Toolbar hat</p>\n" }, |
1323 | { "%1d","%1t" }, | 1323 | { "%1d","%1t" }, |
1324 | { "%1h","%1std" }, | 1324 | { "%1h","%1std" }, |
1325 | { "%1min","%1min" }, | 1325 | { "%1min","%1min" }, |
1326 | { "( %1 before )","( %1 vorher )" }, | 1326 | { "( %1 before )","( %1 vorher )" }, |
1327 | { "The next alarm is in\nless than one minute!","Der nächste Alarm kommt in\nweniger als einer Minute!" }, | 1327 | { "The next alarm is in\nless than one minute!","Der nächste Alarm kommt in\nweniger als einer Minute!" }, |
1328 | { "\nThe internal alarm notification is disabled!\n","\nDie interne Alarmbenachrichtigung ist ausgeschaltet!\n" }, | 1328 | { "\nThe internal alarm notification is disabled!\n","\nDie interne Alarmbenachrichtigung ist ausgeschaltet!\n" }, |
1329 | { "Enable it in the settings menu, TAB alarm.","Schalten Sie sie an im Menu Einstellungen, TAB Alarm." }, | 1329 | { "Enable it in the settings menu, TAB alarm.","Schalten Sie sie an im Menu Einstellungen, TAB Alarm." }, |
1330 | { "Show Sync Events","Zeige Sync-Ereignisse" }, | 1330 | { "Show Sync Events","Zeige Sync-Ereignisse" }, |
1331 | { "Use short date in WN+Event view","Zeige Kurzdatum in WN+Terminanzeige" }, | 1331 | { "Use short date in WN+Event view","Zeige Kurzdatum in WN+Terminanzeige" }, |
1332 | { "Number of max.displayed todo prios:","Anzahl max.angezeigter Todo-Prios:" }, | 1332 | { "Number of max.displayed todo prios:","Anzahl max.angezeigter Todo-Prios:" }, |
1333 | { " on "," am " }, | 1333 | { " on "," am " }, |
1334 | { "On: ","Am: " }, | 1334 | { "On: ","Am: " }, |
1335 | { "<i>The recurrence is computed from the start datetime!</i>","<i>Die Wiederholung wird vom Startwert aus berechnet!</i>" }, | 1335 | { "<i>The recurrence is computed from the start datetime!</i>","<i>Die Wiederholung wird vom Startwert aus berechnet!</i>" }, |
1336 | { "Start/Stop todo...","Starte/Stoppe Todo..." }, | 1336 | { "Start/Stop todo...","Starte/Stoppe Todo..." }, |
1337 | { "Color for running todos:","Farbe für laufende Todos:" }, | 1337 | { "Color for running todos:","Farbe für laufende Todos:" }, |
1338 | { "The todo\n%1\nis started.\nDo you want to set\nthe state to stopped?","Das Todo\n%1\nist gestartet.\nWollen Sie es\nauf gestoppt setzen?" }, | 1338 | { "The todo\n%1\nis started.\nDo you want to set\nthe state to stopped?","Das Todo\n%1\nist gestartet.\nWollen Sie es\nauf gestoppt setzen?" }, |
1339 | { "Todo is started","Todo ist gestartet" }, | 1339 | { "Todo is started","Todo ist gestartet" }, |
1340 | { "Stop todo","Stoppe Todo" }, | 1340 | { "Stop todo","Stoppe Todo" }, |
1341 | { "Todo is stopped","Todo ist gestoppt" }, | 1341 | { "Todo is stopped","Todo ist gestoppt" }, |
1342 | { "Start todo","Starte Todo" }, | 1342 | { "Start todo","Starte Todo" }, |
1343 | { "The todo\n%1\nis stopped.\nDo you want to set\nthe state to started?","Das Todo\n%1\nist gestoppt.\nWollen Sie es auf\ngestartet setzen?" }, | 1343 | { "The todo\n%1\nis stopped.\nDo you want to set\nthe state to started?","Das Todo\n%1\nist gestoppt.\nWollen Sie es auf\ngestartet setzen?" }, |
1344 | { "The todo\n%1\nwill be cloned!\nIt has subtodos!\nDo you want to clone\nall subtodos as well?","Das Todo\n%1\nwird geklont!\nEs hat Untertodos!\nMöchten Sie alle\nUntertodos auch klonen?" }, | 1344 | { "The todo\n%1\nwill be cloned!\nIt has subtodos!\nDo you want to clone\nall subtodos as well?","Das Todo\n%1\nwird geklont!\nEs hat Untertodos!\nMöchten Sie alle\nUntertodos auch klonen?" }, |
1345 | { "Todo has subtodos","Todo hat Untertodos" }, | 1345 | { "Todo has subtodos","Todo hat Untertodos" }, |
1346 | { "Block popup until mouse button release","Sperre Popup bis Mausknopf losgelassen" }, | 1346 | { "Block popup until mouse button release","Sperre Popup bis Mausknopf losgelassen" }, |
1347 | { "Colors","Farben" }, | 1347 | { "Colors","Farben" }, |
1348 | { "Click on new parent item","Klicke auf neues Übertodo" }, | 1348 | { "Click on new parent item","Klicke auf neues Übertodo" }, |
1349 | { "Reparenting aborted!","Übertodo setzen abgebrochen" }, | 1349 | { "Reparenting aborted!","Übertodo setzen abgebrochen" }, |
1350 | { "Cannot move Todo to itself\nor a child of itself","Kann nicht Todo auf\nsich selbst oder\nein Untertodo verschieben" }, | 1350 | { "Cannot move Todo to itself\nor a child of itself","Kann nicht Todo auf\nsich selbst oder\nein Untertodo verschieben" }, |
1351 | { "Recursive reparenting not possible!","Rekursives Verschieben nicht möglich" }, | 1351 | { "Recursive reparenting not possible!","Rekursives Verschieben nicht möglich" }, |
1352 | { "Delete all completed todos?\n(Completed recurring todos\nwill not be deleted!)","Entferne alle erledigten Todos?\n(Erledigte wiederholende Todos\nwerden nicht gelöscht!)" }, | 1352 | { "Delete all completed todos?\n(Completed recurring todos\nwill not be deleted!)","Entferne alle erledigten Todos?\n(Erledigte wiederholende Todos\nwerden nicht gelöscht!)" }, |
1353 | { "Alternating background of list views","Abwechselnder Hintergrund für Listen" }, | 1353 | { "Alternating background of list views","Abwechselnder Hintergrund für Listen" }, |
1354 | { "times","Zeiten" }, | 1354 | { "times","Zeiten" }, |
1355 | { "The todo\n%1\nhas subtodos!\nDo you want to set\nthe categories for\nall subtodos as well?","Das Todo\n%1\nhat Untertodos!\nMöchten Sie die Kategorien\nauch für alle Untertodos setzen?" }, | 1355 | { "The todo\n%1\nhas subtodos!\nDo you want to set\nthe categories for\nall subtodos as well?","Das Todo\n%1\nhat Untertodos!\nMöchten Sie die Kategorien\nauch für alle Untertodos setzen?" }, |
1356 | { "Backup enabled","Backup angeschaltet" }, | 1356 | { "Backup enabled","Backup angeschaltet" }, |
1357 | { "Use standard backup dir","Standard Backupverzeichnis" }, | 1357 | { "Use standard backup dir","Standard Backupverzeichnis" }, |
1358 | { "Number of Backups:","Anzahl der Backups" }, | 1358 | { "Number of Backups:","Anzahl der Backups" }, |
1359 | { "Make backup every ","Mache ein Backup alle " }, | 1359 | { "Make backup every ","Mache ein Backup alle " }, |
1360 | { " days"," Tage" }, | 1360 | { " days"," Tage" }, |
1361 | { "Creating backup ... please wait ...","Erzeuge Backup ... bitte warten ..." }, | 1361 | { "Creating backup ... please wait ...","Erzeuge Backup ... bitte warten ..." }, |
1362 | { "Backup Failed!","Backup Problem!" }, | 1362 | { "Backup Failed!","Backup Problem!" }, |
1363 | { "Try again now","Versuche jetzt nochmal" }, | 1363 | { "Try again now","Versuche jetzt nochmal" }, |
1364 | { "Try again later","Versuche später nochmal" }, | 1364 | { "Try again later","Versuche später nochmal" }, |
1365 | { "Try again tomorrow","Versuche morgen nochmal" }, | 1365 | { "Try again tomorrow","Versuche morgen nochmal" }, |
1366 | { "Disable backup","Schalte Backup ab" }, | 1366 | { "Disable backup","Schalte Backup ab" }, |
1367 | { "<b>Backup directory does not exist: </b>","<b>Backup Verzeichnis existiert nicht: </b>" }, | 1367 | { "<b>Backup directory does not exist: </b>","<b>Backup Verzeichnis existiert nicht: </b>" }, |
1368 | { "<b>The backup copy command failed!</b>","<b>Das Backup Kopierkommando is fehlgeschlagen!</b>" }, | 1368 | { "<b>The backup copy command failed!</b>","<b>Das Backup Kopierkommando is fehlgeschlagen!</b>" }, |
1369 | { "Choose action","Wähle Aktion" }, | 1369 | { "Choose action","Wähle Aktion" }, |
1370 | { "Comment for todo:","Kommentar zum Todo:" }, | 1370 | { "Comment for todo:","Kommentar zum Todo:" }, |
1371 | { "Stop+note","Stop+Notiz" }, | 1371 | { "Stop+note","Stop+Notiz" }, |
1372 | { "Agenda view shows completed todos","Agenda Ansicht zeigt erledigte Todos" }, | 1372 | { "Agenda view shows completed todos","Agenda Ansicht zeigt erledigte Todos" }, |
1373 | { "KO/Pi: Missing alarms!","KO/Pi: Verpasste Alarme!" }, | 1373 | { "KO/Pi: Missing alarms!","KO/Pi: Verpasste Alarme!" }, |
1374 | { "You missed the alarms for the following events or todos:","Sie verpassten die Alarme für folgende Termine oder Todos:" }, | 1374 | { "You missed the alarms for the following events or todos:","Sie verpassten die Alarme für folgende Termine oder Todos:" }, |
1375 | { "Print complete list","Drucke komplette Liste" }, | 1375 | { "Print complete list","Drucke komplette Liste" }, |
1376 | { "Hide all selected","Verstecke Selektierte" }, | 1376 | { "Hide all selected","Verstecke Selektierte" }, |
1377 | { "Add items","hinzufügen" }, | 1377 | { "Add items","hinzufügen" }, |
1378 | { "One (or more) selected\ntodo has subtodos!\nDo you want to select\nall subtodos of all\nselected todos as well?","Ein (oder mehrere) ausgewähltes\nTodo hat Untertodos!\nMöchten Sie der Auswahlliste\nalle Untertodos von allen\nausgewählten Todos hinzufügen?" }, | 1378 | { "One (or more) selected\ntodo has subtodos!\nDo you want to select\nall subtodos of all\nselected todos as well?","Ein (oder mehrere) ausgewähltes\nTodo hat Untertodos!\nMöchten Sie der Auswahlliste\nalle Untertodos von allen\nausgewählten Todos hinzufügen?" }, |
1379 | { "Print List View...","Drucke Listenansicht..." }, | ||
1380 | { "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.","Sie können die <b>Listenansicht</b> und die Listenansicht im <b>Suchdialog</b> ausdrucken! Um das zu machen gehen Sie bitte zur <b>Listenansicht</b> oder zum <b>Suchdialog</b>. Rechtsklicken Sie auf die Liste. Wählen Sie im Popupmenu den Eintrag <b>Drucke komplette Liste</b>. Das druckt die Liste so, wie man sie sieht. Sie können Listeneinträge entfernen ohne die korrespondierenden Ereignisse/Todos zu löschen! Selektieren sie einfach alle Einträge, die sie nicht ausdrucken möchten. Dann Rechtsklicken Sie auf einen Eintrag und wählen <b>Verstecke Selektierte</b>. Danach können Sie die Liste ohne diese Einträge ausdrucken." }, | ||
1381 | { "","" }, | ||
1382 | { "","" }, | ||
1383 | { "","" }, | ||
1384 | { "","" }, | ||
1385 | { "","" }, | ||
1386 | { "","" }, | ||
1387 | { "","" }, | ||
1388 | { "","" }, | ||
1379 | { "","" }, | 1389 | { "","" }, |
1380 | { "","" }, | 1390 | { "","" }, |
1381 | { "","" }, \ No newline at end of file | 1391 | { "","" }, \ No newline at end of file |
diff --git a/korganizer/mainwindow.cpp b/korganizer/mainwindow.cpp index 20f8b57..25e76ee 100644 --- a/korganizer/mainwindow.cpp +++ b/korganizer/mainwindow.cpp | |||
@@ -998,138 +998,139 @@ 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 | |
1063 | icon = loadPixmap( pathString + "print" ); | ||
1064 | action = new QAction( i18n("Print List View..."),icon,i18n("Print List View..."), 0, this ); | ||
1063 | action->addTo( beamMenu_X ); | 1065 | action->addTo( beamMenu_X ); |
1064 | connect( action, SIGNAL( activated() ), | 1066 | connect( action, SIGNAL( activated() ), |
1065 | mView, SLOT( slotprintSelInc() ) ); | 1067 | this, SLOT( printListView() ) ); |
1066 | 1068 | ||
1067 | icon = loadPixmap( pathString + "print" ); | 1069 | action = new QAction( i18n("Print selected event / todo..."),icon,i18n("Print selected event / todo..."), 0, this ); |
1068 | action = new QAction( i18n("Print list view..."),icon,i18n("Print list view..."), 0, this ); | ||
1069 | action->addTo( beamMenu_X ); | 1070 | action->addTo( beamMenu_X ); |
1070 | connect( action, SIGNAL( activated() ), | 1071 | connect( action, SIGNAL( activated() ), |
1071 | this, SLOT( printListView() ) ); | 1072 | mView, SLOT( slotprintSelInc() ) ); |
1072 | 1073 | ||
1073 | importMenu->insertItem( i18n("Print"), beamMenu_X ); | 1074 | importMenu->insertItem( i18n("Print"), beamMenu_X ); |
1074 | #endif | 1075 | #endif |
1075 | importMenu->insertSeparator(); | 1076 | importMenu->insertSeparator(); |
1076 | action = new QAction( "manage cat", i18n("Manage new categories..."), 0, | 1077 | action = new QAction( "manage cat", i18n("Manage new categories..."), 0, |
1077 | this ); | 1078 | this ); |
1078 | action->addTo( importMenu ); | 1079 | action->addTo( importMenu ); |
1079 | connect( action, SIGNAL( activated() ), mView, SLOT( manageCategories() ) ); | 1080 | connect( action, SIGNAL( activated() ), mView, SLOT( manageCategories() ) ); |
1080 | importMenu->insertSeparator(); | 1081 | importMenu->insertSeparator(); |
1081 | action = new QAction( "beam all", i18n("Save"), 0, | 1082 | action = new QAction( "beam all", i18n("Save"), 0, |
1082 | this ); | 1083 | this ); |
1083 | action->addTo( importMenu ); | 1084 | action->addTo( importMenu ); |
1084 | connect( action, SIGNAL( activated() ), this, SLOT( save() ) ); | 1085 | connect( action, SIGNAL( activated() ), this, SLOT( save() ) ); |
1085 | action = new QAction( "beam all", i18n("Exit (+save)"), 0, | 1086 | action = new QAction( "beam all", i18n("Exit (+save)"), 0, |
1086 | this ); | 1087 | this ); |
1087 | action->addTo( importMenu ); | 1088 | action->addTo( importMenu ); |
1088 | connect( action, SIGNAL( activated() ), this, SLOT( close() ) ); | 1089 | connect( action, SIGNAL( activated() ), this, SLOT( close() ) ); |
1089 | 1090 | ||
1090 | //menuBar->insertItem( "Configure",configureMenu ); | 1091 | //menuBar->insertItem( "Configure",configureMenu ); |
1091 | //configureMenu->insertItem( "Toolbar",configureToolBarMenu ); | 1092 | //configureMenu->insertItem( "Toolbar",configureToolBarMenu ); |
1092 | icon = loadPixmap( "korganizer/korganizer" ); | 1093 | icon = loadPixmap( "korganizer/korganizer" ); |
1093 | 1094 | ||
1094 | action = new QAction( "Whats New", i18n("What's new?"), 0,this ); | 1095 | action = new QAction( "Whats New", i18n("What's new?"), 0,this ); |
1095 | action->addTo( helpMenu ); | 1096 | action->addTo( helpMenu ); |
1096 | connect( action, SIGNAL( activated() ), | 1097 | connect( action, SIGNAL( activated() ), |
1097 | SLOT( whatsNew() ) ); | 1098 | SLOT( whatsNew() ) ); |
1098 | action = new QAction( "featureHowto", i18n("Features + hints..."), 0,this ); | 1099 | action = new QAction( "featureHowto", i18n("Features + hints..."), 0,this ); |
1099 | action->addTo( helpMenu ); | 1100 | action->addTo( helpMenu ); |
1100 | connect( action, SIGNAL( activated() ), | 1101 | connect( action, SIGNAL( activated() ), |
1101 | SLOT( features() ) ); | 1102 | SLOT( features() ) ); |
1102 | action = new QAction( "Keys + Colors", i18n("Keys + Colors..."), 0, this ); | 1103 | action = new QAction( "Keys + Colors", i18n("Keys + Colors..."), 0, this ); |
1103 | action->addTo( helpMenu ); | 1104 | action->addTo( helpMenu ); |
1104 | connect( action, SIGNAL( activated() ), | 1105 | connect( action, SIGNAL( activated() ), |
1105 | SLOT( keyBindings() ) ); | 1106 | SLOT( keyBindings() ) ); |
1106 | action = new QAction( "Storage Howto", i18n("Storage HowTo..."), 0,this ); | 1107 | action = new QAction( "Storage Howto", i18n("Storage HowTo..."), 0,this ); |
1107 | action->addTo( helpMenu ); | 1108 | action->addTo( helpMenu ); |
1108 | connect( action, SIGNAL( activated() ), | 1109 | connect( action, SIGNAL( activated() ), |
1109 | SLOT( storagehowto() ) ); | 1110 | SLOT( storagehowto() ) ); |
1110 | action = new QAction( "Timetracking Howto", i18n("Timetracking HowTo..."), 0,this ); | 1111 | action = new QAction( "Timetracking Howto", i18n("Timetracking HowTo..."), 0,this ); |
1111 | action->addTo( helpMenu ); | 1112 | action->addTo( helpMenu ); |
1112 | connect( action, SIGNAL( activated() ), | 1113 | connect( action, SIGNAL( activated() ), |
1113 | SLOT( timetrackinghowto() ) ); | 1114 | SLOT( timetrackinghowto() ) ); |
1114 | action = new QAction( "Sync Howto", i18n("Sync HowTo..."), 0,this ); | 1115 | action = new QAction( "Sync Howto", i18n("Sync HowTo..."), 0,this ); |
1115 | action->addTo( helpMenu ); | 1116 | action->addTo( helpMenu ); |
1116 | connect( action, SIGNAL( activated() ), | 1117 | connect( action, SIGNAL( activated() ), |
1117 | SLOT( synchowto() ) ); | 1118 | SLOT( synchowto() ) ); |
1118 | action = new QAction( "KDE Sync Howto", i18n("KDE Sync HowTo..."), 0,this ); | 1119 | action = new QAction( "KDE Sync Howto", i18n("KDE Sync HowTo..."), 0,this ); |
1119 | action->addTo( helpMenu ); | 1120 | action->addTo( helpMenu ); |
1120 | connect( action, SIGNAL( activated() ), | 1121 | connect( action, SIGNAL( activated() ), |
1121 | SLOT( kdesynchowto() ) ); | 1122 | SLOT( kdesynchowto() ) ); |
1122 | action = new QAction( "Multi Sync Howto", i18n("Multi Sync HowTo..."), 0,this ); | 1123 | action = new QAction( "Multi Sync Howto", i18n("Multi Sync HowTo..."), 0,this ); |
1123 | action->addTo( helpMenu ); | 1124 | action->addTo( helpMenu ); |
1124 | connect( action, SIGNAL( activated() ), | 1125 | connect( action, SIGNAL( activated() ), |
1125 | SLOT( multisynchowto() ) ); | 1126 | SLOT( multisynchowto() ) ); |
1126 | action = new QAction( "Auto saving", i18n("Auto saving..."), 0, this ); | 1127 | action = new QAction( "Auto saving", i18n("Auto saving..."), 0, this ); |
1127 | action->addTo( helpMenu ); | 1128 | action->addTo( helpMenu ); |
1128 | connect( action, SIGNAL( activated() ), | 1129 | connect( action, SIGNAL( activated() ), |
1129 | SLOT( aboutAutoSaving() ) ); | 1130 | SLOT( aboutAutoSaving() ) ); |
1130 | action = new QAction( "Problemd", i18n("Known Problems..."), 0,this ); | 1131 | action = new QAction( "Problemd", i18n("Known Problems..."), 0,this ); |
1131 | action->addTo( helpMenu ); | 1132 | action->addTo( helpMenu ); |
1132 | connect( action, SIGNAL( activated() ), | 1133 | connect( action, SIGNAL( activated() ), |
1133 | SLOT( aboutKnownBugs() ) ); | 1134 | SLOT( aboutKnownBugs() ) ); |
1134 | action = new QAction( "Translate Howto", i18n("User translation..."), 0,this ); | 1135 | action = new QAction( "Translate Howto", i18n("User translation..."), 0,this ); |
1135 | action->addTo( helpMenu ); | 1136 | action->addTo( helpMenu ); |
@@ -2366,129 +2367,132 @@ void MainWindow::exportVCalendar() | |||
2366 | { | 2367 | { |
2367 | QString fn = KOPrefs::instance()->mLastVcalFile; | 2368 | QString fn = KOPrefs::instance()->mLastVcalFile; |
2368 | fn = KFileDialog::getSaveFileName( fn, i18n("Export vcal filename(*.vcs)"), this ); | 2369 | fn = KFileDialog::getSaveFileName( fn, i18n("Export vcal filename(*.vcs)"), this ); |
2369 | if ( fn == "" ) | 2370 | if ( fn == "" ) |
2370 | return; | 2371 | return; |
2371 | QFileInfo info; | 2372 | QFileInfo info; |
2372 | info.setFile( fn ); | 2373 | info.setFile( fn ); |
2373 | QString mes; | 2374 | QString mes; |
2374 | bool createbup = true; | 2375 | bool createbup = true; |
2375 | if ( info. exists() ) { | 2376 | if ( info. exists() ) { |
2376 | mes = i18n("Save file\nalready exists!\nOld save file from:\n%1\nOverwrite?\n").arg (KGlobal::locale()->formatDateTime(info.lastModified (), true, false ) ); | 2377 | mes = i18n("Save file\nalready exists!\nOld save file from:\n%1\nOverwrite?\n").arg (KGlobal::locale()->formatDateTime(info.lastModified (), true, false ) ); |
2377 | int result = QMessageBox::warning( this, i18n("KO/Pi: Warning!"),mes, | 2378 | int result = QMessageBox::warning( this, i18n("KO/Pi: Warning!"),mes, |
2378 | i18n("Overwrite!"), i18n("Cancel"), 0, | 2379 | i18n("Overwrite!"), i18n("Cancel"), 0, |
2379 | 0, 1 ); | 2380 | 0, 1 ); |
2380 | if ( result != 0 ) { | 2381 | if ( result != 0 ) { |
2381 | createbup = false; | 2382 | createbup = false; |
2382 | } | 2383 | } |
2383 | } | 2384 | } |
2384 | if ( createbup ) { | 2385 | if ( createbup ) { |
2385 | if ( mView->exportVCalendar( fn ) ) { | 2386 | if ( mView->exportVCalendar( fn ) ) { |
2386 | KOPrefs::instance()->mLastVcalFile = fn; | 2387 | KOPrefs::instance()->mLastVcalFile = fn; |
2387 | if ( fn.length() > 20 ) | 2388 | if ( fn.length() > 20 ) |
2388 | mes = i18n("KO/Pi:Exported to ...%1").arg(fn.right(20)) ; | 2389 | mes = i18n("KO/Pi:Exported to ...%1").arg(fn.right(20)) ; |
2389 | else | 2390 | else |
2390 | mes = i18n("KO/Pi:Exported to %1").arg(fn ); | 2391 | mes = i18n("KO/Pi:Exported to %1").arg(fn ); |
2391 | setCaption(mes); | 2392 | setCaption(mes); |
2392 | } | 2393 | } |
2393 | } | 2394 | } |
2394 | 2395 | ||
2395 | } | 2396 | } |
2396 | QString MainWindow::sentSyncFile() | 2397 | QString MainWindow::sentSyncFile() |
2397 | { | 2398 | { |
2398 | #ifdef DESKTOP_VERSION | 2399 | #ifdef DESKTOP_VERSION |
2399 | return locateLocal( "tmp", "copysynccal.ics" ); | 2400 | return locateLocal( "tmp", "copysynccal.ics" ); |
2400 | #else | 2401 | #else |
2401 | return QString( "/tmp/copysynccal.ics" ); | 2402 | return QString( "/tmp/copysynccal.ics" ); |
2402 | #endif | 2403 | #endif |
2403 | } | 2404 | } |
2404 | 2405 | ||
2405 | void MainWindow::syncFileRequest() | 2406 | void MainWindow::syncFileRequest() |
2406 | { | 2407 | { |
2407 | if ( KOPrefs::instance()->mPassiveSyncWithDesktop ) { | 2408 | if ( KOPrefs::instance()->mPassiveSyncWithDesktop ) { |
2408 | mSyncManager->slotSyncMenu( 999 ); | 2409 | mSyncManager->slotSyncMenu( 999 ); |
2409 | } | 2410 | } |
2410 | 2411 | ||
2411 | setCaption(i18n("Saving Data to temp file ..." )); | 2412 | setCaption(i18n("Saving Data to temp file ..." )); |
2412 | mView->saveCalendar( sentSyncFile() ); | 2413 | mView->saveCalendar( sentSyncFile() ); |
2413 | setCaption(i18n("Data saved to temp file!" )); | 2414 | setCaption(i18n("Data saved to temp file!" )); |
2414 | 2415 | ||
2415 | } | 2416 | } |
2416 | void MainWindow::getFile( bool success ) | 2417 | void MainWindow::getFile( bool success ) |
2417 | { | 2418 | { |
2418 | if ( ! success ) { | 2419 | if ( ! success ) { |
2419 | setCaption( i18n("Error receiving file. Nothing changed!") ); | 2420 | setCaption( i18n("Error receiving file. Nothing changed!") ); |
2420 | return; | 2421 | return; |
2421 | } | 2422 | } |
2422 | mView->openCalendar( sentSyncFile() ); | 2423 | mView->openCalendar( sentSyncFile() ); |
2423 | if ( KOPrefs::instance()->mPassiveSyncWithDesktop ) { | 2424 | if ( KOPrefs::instance()->mPassiveSyncWithDesktop ) { |
2424 | mSyncManager->slotSyncMenu( 999 ); | 2425 | mSyncManager->slotSyncMenu( 999 ); |
2425 | } | 2426 | } |
2426 | setCaption( i18n("Pi-Sync successful!") ); | 2427 | setCaption( i18n("Pi-Sync successful!") ); |
2427 | } | 2428 | } |
2428 | void MainWindow::printListView() | 2429 | void MainWindow::printListView() |
2429 | { | 2430 | { |
2430 | qDebug("MainWindow::printListView() "); | 2431 | |
2432 | 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."); | ||
2433 | |||
2434 | KMessageBox::information( this, message); | ||
2431 | } | 2435 | } |
2432 | void MainWindow::printSel( ) | 2436 | void MainWindow::printSel( ) |
2433 | { | 2437 | { |
2434 | mView->viewManager()->agendaView()->agenda()->printSelection(); | 2438 | mView->viewManager()->agendaView()->agenda()->printSelection(); |
2435 | } | 2439 | } |
2436 | 2440 | ||
2437 | void MainWindow::printCal() | 2441 | void MainWindow::printCal() |
2438 | { | 2442 | { |
2439 | mView->print();//mCp->showDialog(); | 2443 | mView->print();//mCp->showDialog(); |
2440 | } | 2444 | } |
2441 | 2445 | ||
2442 | 2446 | ||
2443 | #include "libkdepim/kdatepicker.h" | 2447 | #include "libkdepim/kdatepicker.h" |
2444 | #include <kdatetbl.h> | 2448 | #include <kdatetbl.h> |
2445 | 2449 | ||
2446 | void MainWindow::weekAction() | 2450 | void MainWindow::weekAction() |
2447 | { | 2451 | { |
2448 | int month; | 2452 | int month; |
2449 | KPopupFrame* popup = new KPopupFrame(this); | 2453 | KPopupFrame* popup = new KPopupFrame(this); |
2450 | KDateInternalWeekPicker* picker = new KDateInternalWeekPicker(popup); | 2454 | KDateInternalWeekPicker* picker = new KDateInternalWeekPicker(popup); |
2451 | // ----- | 2455 | // ----- |
2452 | picker->resize(picker->sizeHint()); | 2456 | picker->resize(picker->sizeHint()); |
2453 | popup->setMainWidget(picker); | 2457 | popup->setMainWidget(picker); |
2454 | picker->setFocus(); | 2458 | picker->setFocus(); |
2455 | connect(picker, SIGNAL(closeMe(int)), popup, SLOT(close(int))); | 2459 | connect(picker, SIGNAL(closeMe(int)), popup, SLOT(close(int))); |
2456 | int x = 0; | 2460 | int x = 0; |
2457 | int y = iconToolBar->height(); | 2461 | int y = iconToolBar->height(); |
2458 | int dX = 0; | 2462 | int dX = 0; |
2459 | int dY = 0; | 2463 | int dY = 0; |
2460 | if ( iconToolBar->orientation () == Qt:: Horizontal ) { | 2464 | if ( iconToolBar->orientation () == Qt:: Horizontal ) { |
2461 | if ( iconToolBar->y() > height()/2 ) { | 2465 | if ( iconToolBar->y() > height()/2 ) { |
2462 | dY = picker->sizeHint().height()+8; | 2466 | dY = picker->sizeHint().height()+8; |
2463 | y = 0; | 2467 | y = 0; |
2464 | } | 2468 | } |
2465 | } else { | 2469 | } else { |
2466 | if ( iconToolBar->x() > width()/2 ) { // right side | 2470 | if ( iconToolBar->x() > width()/2 ) { // right side |
2467 | x=0; | 2471 | x=0; |
2468 | dX= picker->sizeHint().width()+8; | 2472 | dX= picker->sizeHint().width()+8; |
2469 | y = 0; | 2473 | y = 0; |
2470 | } else { | 2474 | } else { |
2471 | x= iconToolBar->width(); | 2475 | x= iconToolBar->width(); |
2472 | y = 0; | 2476 | y = 0; |
2473 | } | 2477 | } |
2474 | } | 2478 | } |
2475 | //qDebug("dax %d dy %d %d %d ", dX, dY, iconToolBar->x(), iconToolBar->y() ); | 2479 | //qDebug("dax %d dy %d %d %d ", dX, dY, iconToolBar->x(), iconToolBar->y() ); |
2476 | if(popup->exec(iconToolBar->mapToGlobal(QPoint(x,y)-QPoint( dX,dY)))) | 2480 | if(popup->exec(iconToolBar->mapToGlobal(QPoint(x,y)-QPoint( dX,dY)))) |
2477 | { | 2481 | { |
2478 | month = picker->getResult(); | 2482 | month = picker->getResult(); |
2479 | emit selectWeek ( month ); | 2483 | emit selectWeek ( month ); |
2480 | //qDebug("weekSelected %d ", month); | 2484 | //qDebug("weekSelected %d ", month); |
2481 | } | 2485 | } |
2482 | delete popup; | 2486 | delete popup; |
2483 | } | 2487 | } |
2484 | 2488 | ||
2485 | void MainWindow::hideEvent ( QHideEvent * ) | 2489 | void MainWindow::hideEvent ( QHideEvent * ) |
2486 | { | 2490 | { |
2487 | QString message; | 2491 | QString message; |
2488 | QDateTime nextA = mCalendar->nextAlarmEventDateTime(); | 2492 | QDateTime nextA = mCalendar->nextAlarmEventDateTime(); |
2489 | if ( nextA.isValid() ) { | 2493 | if ( nextA.isValid() ) { |
2490 | QString sum = mCalendar->nextSummary(); | 2494 | QString sum = mCalendar->nextSummary(); |
2491 | 2495 | ||
2492 | message = i18n("%1 %2 - %3 (next event/todo with alarm)").arg( KGlobal::locale()->formatTime(nextA.time() , false)).arg(sum ).arg( KGlobal::locale()->formatDate(nextA.date() , false)); | 2496 | message = i18n("%1 %2 - %3 (next event/todo with alarm)").arg( KGlobal::locale()->formatTime(nextA.time() , false)).arg(sum ).arg( KGlobal::locale()->formatDate(nextA.date() , false)); |
2493 | setCaption( message ); | 2497 | setCaption( message ); |
2494 | } | 2498 | } |