author | zautrix <zautrix> | 2005-03-31 11:26:51 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-03-31 11:26:51 (UTC) |
commit | c0fa26aa3b33c293853bdd7d028ddb0545e33c85 (patch) (unidiff) | |
tree | 12bbb65fb6d235415bd7a7007c1e019ccfcf97ac /korganizer | |
parent | f39d5000ed2f9a436ee94cbd42f840651afa89d6 (diff) | |
download | kdepimpi-c0fa26aa3b33c293853bdd7d028ddb0545e33c85.zip kdepimpi-c0fa26aa3b33c293853bdd7d028ddb0545e33c85.tar.gz kdepimpi-c0fa26aa3b33c293853bdd7d028ddb0545e33c85.tar.bz2 |
many fixes
-rw-r--r-- | korganizer/mainwindow.cpp | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/korganizer/mainwindow.cpp b/korganizer/mainwindow.cpp index 09a0880..d98915b 100644 --- a/korganizer/mainwindow.cpp +++ b/korganizer/mainwindow.cpp | |||
@@ -1394,109 +1394,111 @@ void MainWindow::usertrans() | |||
1394 | 1394 | ||
1395 | void MainWindow::kdesynchowto() | 1395 | void MainWindow::kdesynchowto() |
1396 | { | 1396 | { |
1397 | KApplication::showFile( "KDE-Pim/Pi Synchronization HowTo", "kdepim/Zaurus-KDE_syncHowTo.txt" ); | 1397 | KApplication::showFile( "KDE-Pim/Pi Synchronization HowTo", "kdepim/Zaurus-KDE_syncHowTo.txt" ); |
1398 | } | 1398 | } |
1399 | void MainWindow::multisynchowto() | 1399 | void MainWindow::multisynchowto() |
1400 | { | 1400 | { |
1401 | KApplication::showFile( "KDE-Pim/Pi Synchronization HowTo", "kdepim/MultiSyncHowTo.txt" ); | 1401 | KApplication::showFile( "KDE-Pim/Pi Synchronization HowTo", "kdepim/MultiSyncHowTo.txt" ); |
1402 | } | 1402 | } |
1403 | void MainWindow::synchowto() | 1403 | void MainWindow::synchowto() |
1404 | { | 1404 | { |
1405 | KApplication::showFile( "KDE-Pim/Pi Synchronization HowTo", "kdepim/SyncHowto.txt" ); | 1405 | KApplication::showFile( "KDE-Pim/Pi Synchronization HowTo", "kdepim/SyncHowto.txt" ); |
1406 | } | 1406 | } |
1407 | void MainWindow::faq() | 1407 | void MainWindow::faq() |
1408 | { | 1408 | { |
1409 | KApplication::showFile( i18n("KO/Pi FAQ"), "kdepim/korganizer/kopiFAQ.txt" ); | 1409 | KApplication::showFile( i18n("KO/Pi FAQ"), "kdepim/korganizer/kopiFAQ.txt" ); |
1410 | 1410 | ||
1411 | } | 1411 | } |
1412 | void MainWindow::whatsNew() | 1412 | void MainWindow::whatsNew() |
1413 | { | 1413 | { |
1414 | KApplication::showFile( "KDE-Pim/Pi Version Info", "kdepim/WhatsNew.txt" ); | 1414 | KApplication::showFile( "KDE-Pim/Pi Version Info", "kdepim/WhatsNew.txt" ); |
1415 | 1415 | ||
1416 | } | 1416 | } |
1417 | void MainWindow::licence() | 1417 | void MainWindow::licence() |
1418 | { | 1418 | { |
1419 | KApplication::showLicence(); | 1419 | KApplication::showLicence(); |
1420 | 1420 | ||
1421 | } | 1421 | } |
1422 | void MainWindow::about() | 1422 | void MainWindow::about() |
1423 | { | 1423 | { |
1424 | QString version; | 1424 | QString version; |
1425 | #include <../version> | 1425 | #include <../version> |
1426 | QMessageBox::about( this, i18n("About KOrganizer/Pi"), | 1426 | QMessageBox::about( this, i18n("About KOrganizer/Pi"), |
1427 | i18n("KOrganizer/Platform-independent\n") + | 1427 | i18n("KOrganizer/Platform-independent\n") + |
1428 | "(KO/Pi) " + version + " - " + | 1428 | "(KO/Pi) " + version + " - " + |
1429 | 1429 | ||
1430 | #ifdef DESKTOP_VERSION | 1430 | #ifdef DESKTOP_VERSION |
1431 | i18n("Desktop Edition\n") + | 1431 | i18n("Desktop Edition\n") + |
1432 | #else | 1432 | #else |
1433 | i18n("PDA-Edition\nfor: Zaurus 5x00/7x0/860/3000/6000\n") + | 1433 | i18n("PDA-Edition\nfor: Zaurus 5x00/7x0/860/3000/6000\n") + |
1434 | #endif | 1434 | #endif |
1435 | i18n("(c)2004 Lutz Rogowski (rogowski@kde.org)\nKO/Pi is based on KOrganizer\n(c)2002,2003 Cornelius Schumacher\n(schumacher@kde.org) and the KDE team.\nKOrganizer/Pi is licensed under the GPL.\nKO/Pi can be compiled for\nLinux, Zaurus-PDA and Windows\nwww.pi-sync.info --- www.korganizer.org\nSpecial thanks to Michael and Ben\nfor intensive testing!") ); | 1435 | i18n("(c)2004 Lutz Rogowski (rogowski@kde.org)\nKO/Pi is based on KOrganizer\n(c)2002,2003 Cornelius Schumacher\n(schumacher@kde.org) and the KDE team.\nKOrganizer/Pi is licensed under the GPL.\nKO/Pi can be compiled for\nLinux, Zaurus-PDA and Windows\nwww.pi-sync.info --- www.korganizer.org\nSpecial thanks to Michael and Ben\nfor intensive testing!") ); |
1436 | } | 1436 | } |
1437 | void MainWindow::keyBindings() | 1437 | void MainWindow::keyBindings() |
1438 | { | 1438 | { |
1439 | QString cap = i18n("KO/Pi Keys + Colors"); | 1439 | QString cap = i18n("KO/Pi Keys + Colors"); |
1440 | QString text = i18n("<p><h2>KO/Pi key shortcuts:</h2></p>\n") + | 1440 | QString text = i18n("<p><h2>KO/Pi key shortcuts:</h2></p>\n") + |
1441 | i18n("<p><b>H</b>: This help dialog | <b>S</b>: Search dialog</p>\n")+ | 1441 | i18n("<p><b>H</b>: This help dialog | <b>S</b>: Search dialog</p>\n")+ |
1442 | i18n("<p><b>N</b>: Switch to next view which has a toolbar icon</p>\n") + | ||
1443 | i18n("<p><b>A+(shift or ctrl)</b>: Show occurence of next alarm</p>\n") + | ||
1442 | i18n("<p><b>I</b>: Show info for selected event/todo</p>\n") + | 1444 | i18n("<p><b>I</b>: Show info for selected event/todo</p>\n") + |
1443 | i18n("<p><b>Space</b>: Toggle fullscreen | <b>P</b>: Date picker</p>\n")+ | 1445 | i18n("<p><b>Space</b>: Toggle fullscreen | <b>P</b>: Date picker</p>\n")+ |
1444 | i18n("<p><b>F</b>: Toggle filterview |<b>F+ctrl</b>: Edit filter </p>\n")+ | 1446 | i18n("<p><b>F</b>: Toggle filterview |<b>F+ctrl</b>: Edit filter </p>\n")+ |
1445 | i18n("<p><b>O</b>: Filter On/Off | <b>J</b>: Journal view</p>\n")+ | 1447 | i18n("<p><b>O</b>: Filter On/Off | <b>J</b>: Journal view</p>\n")+ |
1446 | i18n("<p><b>1-0</b> (+<b>ctrl</b>): Select filter 1-10 (11-20)</p>\n")+ | 1448 | i18n("<p><b>1-0</b> (+<b>ctrl</b>): Select filter 1-10 (11-20)</p>\n")+ |
1447 | i18n("<p><b>N</b>: Next days view| <b>W</b>: What's next view\n ")+ | 1449 | i18n("<p><b>X</b>: Next X days view| <b>W</b>: What's next view\n ")+ |
1448 | i18n("<p><b>V</b>: Todo view | <b>L</b>: Event list view</p>\n")+ | 1450 | i18n("<p><b>V</b>: Todo view | <b>L</b>: Event list view</p>\n")+ |
1449 | i18n("<p><b>Z,Y</b>: Work week view | <b>U</b>: Week view</p>\n")+ | 1451 | i18n("<p><b>Z,Y</b>: Work week view | <b>U</b>: Week view</p>\n")+ |
1450 | i18n("<p><b>D</b>: One day view | <b>M</b>: Month view</p>\n")+ | 1452 | i18n("<p><b>D</b>: One day view | <b>M</b>: Month view</p>\n")+ |
1451 | i18n("<p><b>K</b>: Week view in Month view syle</p>\n")+ | 1453 | i18n("<p><b>K</b>: Week view in Month view syle</p>\n")+ |
1452 | i18n("<p><b>E</b>: Edit selected item |<b> E+ctrl</b>: New Event</p>\n")+ | 1454 | i18n("<p><b>E</b>: Edit selected item |<b> E+ctrl</b>: New Event</p>\n")+ |
1453 | i18n("<p><b>T</b>: Goto today | <b>T+ctrl</b>: New Todo</p>\n")+ | 1455 | i18n("<p><b>T</b>: Goto today | <b>T+ctrl</b>: New Todo</p>\n")+ |
1454 | i18n("<p><b>S+ctrl</b>: Add sub-todo | <b>X</b>: Toggle datenavigator</p>\n")+ | 1456 | i18n("<p><b>S+ctrl</b>: Add sub-todo | <b>X+ctrl</b>: Toggle datenavigator</p>\n")+ |
1455 | i18n("<p><b>+,-</b> : Zoom in/out agenda | <b>A</b>: Toggle allday agenda height</p>\n")+ | 1457 | i18n("<p><b>+,-</b> : Zoom in/out agenda | <b>A</b>: Toggle allday agenda height</p>\n")+ |
1456 | i18n("<p><b>C</b>: Show current time in agenda view</p>\n")+ | 1458 | i18n("<p><b>C</b>: Show current time in agenda view</p>\n")+ |
1457 | i18n("<p><b>B</b>: Edit description (details) of selected item</p>\n")+ | 1459 | i18n("<p><b>B</b>: Edit description (details) of selected item</p>\n")+ |
1458 | i18n("<p><b>right</b>: Next week | <b>right+ctrl</b>: Next month</p>\n")+ | 1460 | i18n("<p><b>right</b>: Next week | <b>right+ctrl</b>: Next month</p>\n")+ |
1459 | i18n("<p><b>left</b>: Prev. week | <b>left+ctrl</b>: Prev. month</p>\n")+ | 1461 | i18n("<p><b>left</b>: Prev. week | <b>left+ctrl</b>: Prev. month</p>\n")+ |
1460 | i18n("<p><b>del,backspace</b>: Delete selected item</p>\n")+ | 1462 | i18n("<p><b>del,backspace</b>: Delete selected item</p>\n")+ |
1461 | i18n("<p><h3>In agenda view:</h3></p>\n") + | 1463 | i18n("<p><h3>In agenda view:</h3></p>\n") + |
1462 | i18n("<p><b>up/down</b>: Scroll agenda view</p>\n")+ | 1464 | i18n("<p><b>up/down</b>: Scroll agenda view</p>\n")+ |
1463 | i18n("<p><b>ctrl+up/down</b>: Scroll small todo view</p>\n")+ | 1465 | i18n("<p><b>ctrl+up/down</b>: Scroll small todo view</p>\n")+ |
1464 | i18n("<p><h3>In todo view:</h3></p>\n") + | 1466 | i18n("<p><h3>In todo view:</h3></p>\n") + |
1465 | i18n("<p><b>shift+U</b>: <b>U</b>nparent todo (make root todo)</p>\n")+ | 1467 | i18n("<p><b>shift+U</b>: <b>U</b>nparent todo (make root todo)</p>\n")+ |
1466 | i18n("<p><b>shift+S</b>: Make <b>S</b>ubtodo (reparent todo)</p>\n")+ | 1468 | i18n("<p><b>shift+S</b>: Make <b>S</b>ubtodo (reparent todo)</p>\n")+ |
1467 | i18n("<p><b>shift+P</b>: Make new <b>P</b>arent for todo selected with shift+S</p>\n")+ | 1469 | i18n("<p><b>shift+P</b>: Make new <b>P</b>arent for todo selected with shift+S</p>\n")+ |
1468 | i18n("<p><b>Q</b>: Toggle quick todo line edit.</p>\n")+ | 1470 | i18n("<p><b>Q</b>: Toggle quick todo line edit.</p>\n")+ |
1469 | i18n("<p><b>I</b>: Show info of current item+one step down.</p>\n")+ | 1471 | i18n("<p><b>I</b>: Show info of current item+one step down.</p>\n")+ |
1470 | i18n("<p><b>return</b>: Mark item as completed+one step down.</p>\n")+ | 1472 | i18n("<p><b>return</b>: Mark item as completed+one step down.</p>\n")+ |
1471 | i18n("<p><b>return+shift</b>: Mark item as not completed+one step down</p>\n")+ | 1473 | i18n("<p><b>return+shift</b>: Mark item as not completed+one step down</p>\n")+ |
1472 | i18n("<p><h3>In list view:</h3></p>\n") + | 1474 | i18n("<p><h3>In list view:</h3></p>\n") + |
1473 | i18n("<p><b>I</b>: Show info of current item+one step down.</p>\n")+ | 1475 | i18n("<p><b>I</b>: Show info of current item+one step down.</p>\n")+ |
1474 | i18n("<p><b>return</b>: Select item+one step down</p>\n")+ | 1476 | i18n("<p><b>return</b>: Select item+one step down</p>\n")+ |
1475 | i18n("<p><b>return+shift</b>: Deselect item+one step down</p>\n")+ | 1477 | i18n("<p><b>return+shift</b>: Deselect item+one step down</p>\n")+ |
1476 | i18n("<p><b>up/down</b>: Next/prev item</p>\n")+ | 1478 | i18n("<p><b>up/down</b>: Next/prev item</p>\n")+ |
1477 | i18n("<p><b>ctrl+up/down</b>: Goto up/down by 20% of items</p>\n")+ | 1479 | i18n("<p><b>ctrl+up/down</b>: Goto up/down by 20% of items</p>\n")+ |
1478 | i18n("<p><b>shift+up/down</b>: Goto first/last item</p>\n")+ | 1480 | i18n("<p><b>shift+up/down</b>: Goto first/last item</p>\n")+ |
1479 | i18n("<p><h3>In event/todo viewer:</h3></p>\n") + | 1481 | i18n("<p><h3>In event/todo viewer:</h3></p>\n") + |
1480 | i18n("<p><b>I,C</b>: Close dialog.</p>\n")+ | 1482 | i18n("<p><b>I,C</b>: Close dialog.</p>\n")+ |
1481 | i18n("<p><b>A</b>: Show agenda view.</p>\n")+ | 1483 | i18n("<p><b>A</b>: Show agenda view.</p>\n")+ |
1482 | i18n("<p><b>E</b>: Edit item</p>\n") + | 1484 | i18n("<p><b>E</b>: Edit item</p>\n") + |
1483 | i18n("<p><h2>KO/Pi icon colors:</h2></p>\n") + | 1485 | i18n("<p><h2>KO/Pi icon colors:</h2></p>\n") + |
1484 | i18n("<p><b>(for square icons in agenda and month view)</b></p>\n") + | 1486 | i18n("<p><b>(for square icons in agenda and month view)</b></p>\n") + |
1485 | i18n("<p><b>Cross</b>: Item cancelled.([c] in Whats'Next view)</p>\n")+ | 1487 | i18n("<p><b>Cross</b>: Item cancelled.([c] in Whats'Next view)</p>\n")+ |
1486 | i18n("<p><b>Red</b>: Alarm set.([a] in Whats'Next view)</p>\n")+ | 1488 | i18n("<p><b>Red</b>: Alarm set.([a] in Whats'Next view)</p>\n")+ |
1487 | i18n("<p><b>Blue</b>: Recurrent event.([r] in Whats'Next view)</p>\n")+ | 1489 | i18n("<p><b>Blue</b>: Recurrent event.([r] in Whats'Next view)</p>\n")+ |
1488 | i18n("<p><b>Dark green</b>: Information(description) available.([i] in WN view)</p>\n")+ | 1490 | i18n("<p><b>Dark green</b>: Information(description) available.([i] in WN view)</p>\n")+ |
1489 | i18n("<p><b>Black</b>: Event/todo with attendees. You are the organizer!</p>\n")+ | 1491 | i18n("<p><b>Black</b>: Event/todo with attendees. You are the organizer!</p>\n")+ |
1490 | i18n("<p><b>Dark yellow</b>: Event/todo with attendees.</p>\n") + | 1492 | i18n("<p><b>Dark yellow</b>: Event/todo with attendees.</p>\n") + |
1491 | i18n("<p><b>White</b>: Item readonly</p>\n"); | 1493 | i18n("<p><b>White</b>: Item readonly</p>\n"); |
1492 | displayText( text, cap); | 1494 | displayText( text, cap); |
1493 | } | 1495 | } |
1494 | void MainWindow::aboutAutoSaving() | 1496 | void MainWindow::aboutAutoSaving() |
1495 | { | 1497 | { |
1496 | QString text = i18n("After changing something, the data is\nautomatically saved to the file\n~/kdepim/apps/korganizer/mycalendar.ics\nafter (configurable) three minutes.\nFor safety reasons there is one autosaving\nafter 10 minutes (of idle time) again. The \ndata is saved automatically when closing KO/Pi\nYou can create a backup file \nwith: File - Save Calendar Backup\n"); | 1498 | QString text = i18n("After changing something, the data is\nautomatically saved to the file\n~/kdepim/apps/korganizer/mycalendar.ics\nafter (configurable) three minutes.\nFor safety reasons there is one autosaving\nafter 10 minutes (of idle time) again. The \ndata is saved automatically when closing KO/Pi\nYou can create a backup file \nwith: File - Save Calendar Backup\n"); |
1497 | 1499 | ||
1498 | KApplication::showText( i18n("Auto Saving in KOrganizer/Pi"), text); | 1500 | KApplication::showText( i18n("Auto Saving in KOrganizer/Pi"), text); |
1499 | 1501 | ||
1500 | } | 1502 | } |
1501 | void MainWindow::aboutKnownBugs() | 1503 | void MainWindow::aboutKnownBugs() |
1502 | { | 1504 | { |
@@ -1855,120 +1857,120 @@ void MainWindow::keyPressEvent ( QKeyEvent * e ) | |||
1855 | case Qt::Key_0: | 1857 | case Qt::Key_0: |
1856 | case Qt::Key_1: | 1858 | case Qt::Key_1: |
1857 | case Qt::Key_2: | 1859 | case Qt::Key_2: |
1858 | case Qt::Key_3: | 1860 | case Qt::Key_3: |
1859 | case Qt::Key_4: | 1861 | case Qt::Key_4: |
1860 | case Qt::Key_5: | 1862 | case Qt::Key_5: |
1861 | case Qt::Key_6: | 1863 | case Qt::Key_6: |
1862 | case Qt::Key_7: | 1864 | case Qt::Key_7: |
1863 | case Qt::Key_8: | 1865 | case Qt::Key_8: |
1864 | case Qt::Key_9: | 1866 | case Qt::Key_9: |
1865 | pro = e->key()-48; | 1867 | pro = e->key()-48; |
1866 | if ( pro == 0 ) | 1868 | if ( pro == 0 ) |
1867 | pro = 10; | 1869 | pro = 10; |
1868 | if ( e->state() == Qt::ControlButton) | 1870 | if ( e->state() == Qt::ControlButton) |
1869 | pro += 10; | 1871 | pro += 10; |
1870 | break; | 1872 | break; |
1871 | case Qt::Key_M: | 1873 | case Qt::Key_M: |
1872 | mView->viewManager()->showMonthView(); | 1874 | mView->viewManager()->showMonthView(); |
1873 | showSelectedDates = true; | 1875 | showSelectedDates = true; |
1874 | break; | 1876 | break; |
1875 | case Qt::Key_Insert: | 1877 | case Qt::Key_Insert: |
1876 | mView->newEvent(); | 1878 | mView->newEvent(); |
1877 | break; | 1879 | break; |
1878 | case Qt::Key_S : | 1880 | case Qt::Key_S : |
1879 | if ( e->state() == Qt::ControlButton || e->state() == Qt::ShiftButton) | 1881 | if ( e->state() == Qt::ControlButton || e->state() == Qt::ShiftButton) |
1880 | mView->newSubTodo(); | 1882 | mView->newSubTodo(); |
1881 | else | 1883 | else |
1882 | mView->dialogManager()->showSearchDialog(); | 1884 | mView->dialogManager()->showSearchDialog(); |
1883 | break; | 1885 | break; |
1884 | case Qt::Key_Y : | 1886 | case Qt::Key_Y : |
1885 | case Qt::Key_Z : | 1887 | case Qt::Key_Z : |
1886 | mView->viewManager()->showWorkWeekView(); | 1888 | mView->viewManager()->showWorkWeekView(); |
1887 | showSelectedDates = true; | 1889 | showSelectedDates = true; |
1888 | break; | 1890 | break; |
1889 | case Qt::Key_U : | 1891 | case Qt::Key_U : |
1890 | mView->viewManager()->showWeekView(); | 1892 | mView->viewManager()->showWeekView(); |
1891 | showSelectedDates = true; | 1893 | showSelectedDates = true; |
1892 | break; | 1894 | break; |
1893 | case Qt::Key_H : | 1895 | case Qt::Key_H : |
1894 | keyBindings(); | 1896 | keyBindings(); |
1895 | break; | 1897 | break; |
1896 | case Qt::Key_W: | 1898 | case Qt::Key_W: |
1897 | mView->viewManager()->showWhatsNextView(); | 1899 | mView->viewManager()->showWhatsNextView(); |
1898 | break; | 1900 | break; |
1899 | case Qt::Key_L: | 1901 | case Qt::Key_L: |
1900 | mView->viewManager()->showListView(); | 1902 | mView->viewManager()->showListView(); |
1901 | break; | 1903 | break; |
1902 | case Qt::Key_N: | 1904 | case Qt::Key_N: |
1903 | if ( e->state() == Qt::ControlButton || e->state() == Qt::ShiftButton) | 1905 | mView->viewManager()->showNextView(); |
1904 | mView->viewManager()->showNextView(); | ||
1905 | else { | ||
1906 | mView->viewManager()->showNextXView(); | ||
1907 | showSelectedDates = true; | ||
1908 | } | ||
1909 | break; | 1906 | break; |
1910 | case Qt::Key_V: | 1907 | case Qt::Key_V: |
1911 | mView->viewManager()->showTodoView(); | 1908 | mView->viewManager()->showTodoView(); |
1912 | break; | 1909 | break; |
1913 | case Qt::Key_C: | 1910 | case Qt::Key_C: |
1914 | mView->viewManager()->agendaView()->setStartHour( QTime::currentTime ().hour() ); | 1911 | mView->viewManager()->agendaView()->setStartHour( QTime::currentTime ().hour() ); |
1915 | break; | 1912 | break; |
1916 | case Qt::Key_P: | 1913 | case Qt::Key_P: |
1917 | mView->showDatePicker( ); | 1914 | mView->showDatePicker( ); |
1918 | break; | 1915 | break; |
1919 | case Qt::Key_F: | 1916 | case Qt::Key_F: |
1920 | if ( e->state() == Qt::ControlButton|| e->state() == Qt::ShiftButton ) | 1917 | if ( e->state() == Qt::ControlButton|| e->state() == Qt::ShiftButton ) |
1921 | mView->editFilters(); | 1918 | mView->editFilters(); |
1922 | else | 1919 | else |
1923 | mView->toggleFilter(); | 1920 | mView->toggleFilter(); |
1924 | break; | 1921 | break; |
1925 | case Qt::Key_X: | 1922 | case Qt::Key_X: |
1926 | mView->toggleDateNavigatorWidget(); | 1923 | if ( e->state() == Qt::ControlButton ) |
1924 | mView->toggleDateNavigatorWidget(); | ||
1925 | else { | ||
1926 | mView->viewManager()->showNextXView(); | ||
1927 | showSelectedDates = true; | ||
1928 | } | ||
1927 | break; | 1929 | break; |
1928 | case Qt::Key_Space: | 1930 | case Qt::Key_Space: |
1929 | mView->toggleExpand(); | 1931 | mView->toggleExpand(); |
1930 | break; | 1932 | break; |
1931 | case Qt::Key_A: | 1933 | case Qt::Key_A: |
1932 | if ( e->state() == Qt::ControlButton || e->state() == Qt::ShiftButton ) | 1934 | if ( e->state() == Qt::ControlButton || e->state() == Qt::ShiftButton ) |
1933 | mView->showNextAlarms(); | 1935 | mView->showNextAlarms(); |
1934 | else | 1936 | else |
1935 | mView->toggleAllDaySize(); | 1937 | mView->toggleAllDaySize(); |
1936 | break; | 1938 | break; |
1937 | case Qt::Key_T: | 1939 | case Qt::Key_T: |
1938 | if ( e->state() == Qt::ControlButton|| e->state() == Qt::ShiftButton ) | 1940 | if ( e->state() == Qt::ControlButton|| e->state() == Qt::ShiftButton ) |
1939 | mView->newTodo(); | 1941 | mView->newTodo(); |
1940 | else { | 1942 | else { |
1941 | mView->goToday(); | 1943 | mView->goToday(); |
1942 | showSelectedDates = true; | 1944 | showSelectedDates = true; |
1943 | } | 1945 | } |
1944 | break; | 1946 | break; |
1945 | case Qt::Key_J: | 1947 | case Qt::Key_J: |
1946 | mView->viewManager()->showJournalView(); | 1948 | mView->viewManager()->showJournalView(); |
1947 | break; | 1949 | break; |
1948 | case Qt::Key_B: | 1950 | case Qt::Key_B: |
1949 | mView->editIncidenceDescription();; | 1951 | mView->editIncidenceDescription();; |
1950 | break; | 1952 | break; |
1951 | // case Qt::Key_Return: | 1953 | // case Qt::Key_Return: |
1952 | case Qt::Key_E: | 1954 | case Qt::Key_E: |
1953 | if ( e->state() == Qt::ControlButton|| e->state() == Qt::ShiftButton ) | 1955 | if ( e->state() == Qt::ControlButton|| e->state() == Qt::ShiftButton ) |
1954 | mView->newEvent(); | 1956 | mView->newEvent(); |
1955 | else | 1957 | else |
1956 | mView->editIncidence(); | 1958 | mView->editIncidence(); |
1957 | break; | 1959 | break; |
1958 | case Qt::Key_Plus: | 1960 | case Qt::Key_Plus: |
1959 | size = p->mHourSize +2; | 1961 | size = p->mHourSize +2; |
1960 | if ( size <= 22 ) | 1962 | if ( size <= 22 ) |
1961 | configureAgenda( size ); | 1963 | configureAgenda( size ); |
1962 | break; | 1964 | break; |
1963 | case Qt::Key_Minus: | 1965 | case Qt::Key_Minus: |
1964 | size = p->mHourSize - 2; | 1966 | size = p->mHourSize - 2; |
1965 | if ( size >= 4 ) | 1967 | if ( size >= 4 ) |
1966 | configureAgenda( size ); | 1968 | configureAgenda( size ); |
1967 | break; | 1969 | break; |
1968 | 1970 | ||
1969 | 1971 | ||
1970 | default: | 1972 | default: |
1971 | e->ignore(); | 1973 | e->ignore(); |
1972 | } | 1974 | } |
1973 | if ( pro > 0 ) { | 1975 | if ( pro > 0 ) { |
1974 | mView->selectFilter( pro-1 ); | 1976 | mView->selectFilter( pro-1 ); |