author | zautrix <zautrix> | 2005-06-13 07:32:41 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-06-13 07:32:41 (UTC) |
commit | 2be8214908c52298ba79c8058d340edca5a8b417 (patch) (unidiff) | |
tree | 35c2775e9c00c2fe9c5616b3123d3dab62fad983 | |
parent | c4ebf56feb36302b61b9c5ca6af97626812427b8 (diff) | |
download | kdepimpi-2be8214908c52298ba79c8058d340edca5a8b417.zip kdepimpi-2be8214908c52298ba79c8058d340edca5a8b417.tar.gz kdepimpi-2be8214908c52298ba79c8058d340edca5a8b417.tar.bz2 |
fixes
-rw-r--r-- | bin/kdepim/korganizer/germantranslation.txt | 3 | ||||
-rw-r--r-- | korganizer/calendarview.cpp | 29 | ||||
-rw-r--r-- | korganizer/koprefs.cpp | 6 | ||||
-rw-r--r-- | korganizer/mainwindow.cpp | 13 |
4 files changed, 36 insertions, 15 deletions
diff --git a/bin/kdepim/korganizer/germantranslation.txt b/bin/kdepim/korganizer/germantranslation.txt index bb3a00d..acf17b2 100644 --- a/bin/kdepim/korganizer/germantranslation.txt +++ b/bin/kdepim/korganizer/germantranslation.txt | |||
@@ -1023,5 +1023,4 @@ | |||
1023 | { "<p><b>1-0</b> (+<b>ctrl</b>): Select filter 1-10 (11-20)</p>\n","<p><b>1-0</b> (+<b>ctrl</b>): Selektiere Filter 1-10 (11-20)</p>\n" }, | 1023 | { "<p><b>1-0</b> (+<b>ctrl</b>): Select filter 1-10 (11-20)</p>\n","<p><b>1-0</b> (+<b>ctrl</b>): Selektiere Filter 1-10 (11-20)</p>\n" }, |
1024 | { "<p><b>O</b>: Filter On/Off | <b>J</b>: Journal view</p>\n","<p><b>O</b>: Filter An/Aus | <b>J</b>: Journal Ansicht</p>\n" }, | 1024 | { "<p><b>O</b>: Filter On/Off | <b>J</b>: Journal view</p>\n","<p><b>O</b>: Filter An/Aus | <b>J</b>: Journal Ansicht</p>\n" }, |
1025 | { "<p><b>F</b>: Toggle filterview |<b>F+ctrl</b>: Edit filter </p>\n","<p><b>F</b>: Zeige/verstecke Filter Ansicht |<b>F+ctrl</b>: Editiere Filter </p>\n" }, | ||
1026 | { "<p><b>Space</b>: Toggle fullscreen | <b>P</b>: Date picker</p>\n","<p><b>Space</b>: Zeige fullscreen | <b>P</b>: Datums Picker</p>\n" }, | 1025 | { "<p><b>Space</b>: Toggle fullscreen | <b>P</b>: Date picker</p>\n","<p><b>Space</b>: Zeige fullscreen | <b>P</b>: Datums Picker</p>\n" }, |
1027 | { "<p><b>I</b>: Show info for selected event/todo</p>\n","<p><b>I</b>: Zeige Info (Details) für selektiertes Item</p>\n" }, | 1026 | { "<p><b>I</b>: Show info for selected event/todo</p>\n","<p><b>I</b>: Zeige Info (Details) für selektiertes Item</p>\n" }, |
@@ -1381,5 +1380,5 @@ | |||
1381 | { "Configure KO/Pi...","Konfiguriere KO/Pi..." }, | 1380 | { "Configure KO/Pi...","Konfiguriere KO/Pi..." }, |
1382 | { "Global Settings...","Globale Einstellungen..." }, | 1381 | { "Global Settings...","Globale Einstellungen..." }, |
1383 | { "","" }, | 1382 | { "<p><b>R</b>: Toggle Resource View |<b>F</b>: Edit filter </p>\n","<p><b>R</b>: Zeige Resource Ansicht | <b>F</b>: Editiere Filter </p>\n" }, |
1384 | { "","" }, | 1383 | { "","" }, |
1385 | { "","" }, | 1384 | { "","" }, |
diff --git a/korganizer/calendarview.cpp b/korganizer/calendarview.cpp index 1024b4e..b3686aa 100644 --- a/korganizer/calendarview.cpp +++ b/korganizer/calendarview.cpp | |||
@@ -3928,5 +3928,5 @@ void CalendarView::editFilters() | |||
3928 | void CalendarView::toggleFilter() | 3928 | void CalendarView::toggleFilter() |
3929 | { | 3929 | { |
3930 | showFilter(! mFilterView->isVisible()); | 3930 | showFilter(! mCalEditView->isVisible()); |
3931 | } | 3931 | } |
3932 | 3932 | ||
@@ -3943,8 +3943,29 @@ void CalendarView::showFilter(bool visible) | |||
3943 | #if 1 | 3943 | #if 1 |
3944 | if (visible) { | 3944 | if (visible) { |
3945 | mCalEditView->readConfig(); | 3945 | mCalEditView->readConfig(); |
3946 | mCalEditView->show(); | 3946 | mCalEditView->show(); |
3947 | QValueList<int> sizes; | ||
3948 | sizes = mLeftFrame->sizes(); | ||
3949 | if ( sizes.count() == 4 && sizes[3] < 20 ) { | ||
3950 | sizes.clear(); | ||
3951 | sizes << 100; | ||
3952 | sizes << 0; | ||
3953 | sizes << 0; | ||
3954 | sizes << 100; | ||
3955 | mLeftFrame->setSizes(sizes); | ||
3956 | } | ||
3957 | #if 0 | ||
3958 | sizes = mLeftFrame->sizes(); | ||
3959 | int ccc = 0; | ||
3960 | while ( ccc < sizes.count()) { | ||
3961 | qDebug("size %d %d ", ccc, sizes[ccc]); | ||
3962 | ++ccc; | ||
3963 | } | ||
3964 | #endif | ||
3965 | |||
3966 | } | ||
3967 | else { | ||
3968 | mCalEditView->hide(); | ||
3947 | } | 3969 | } |
3948 | else mCalEditView->hide(); | ||
3949 | #else | 3970 | #else |
3950 | if (visible) mFilterView->show(); | 3971 | if (visible) mFilterView->show(); |
diff --git a/korganizer/koprefs.cpp b/korganizer/koprefs.cpp index bc6aae4..9fe285c 100644 --- a/korganizer/koprefs.cpp +++ b/korganizer/koprefs.cpp | |||
@@ -447,5 +447,5 @@ void KOPrefs::usrReadConfig() | |||
447 | } | 447 | } |
448 | while ( mNextAvailableCalendar <= numCals ) { | 448 | while ( mNextAvailableCalendar <= numCals ) { |
449 | qDebug("Read cal #%d ", mNextAvailableCalendar ); | 449 | //qDebug("Read cal #%d ", mNextAvailableCalendar ); |
450 | QString prefix = "Cal_" +QString::number( mNextAvailableCalendar ); | 450 | QString prefix = "Cal_" +QString::number( mNextAvailableCalendar ); |
451 | KopiCalendarFile *kkf = getNewCalendar(); | 451 | KopiCalendarFile *kkf = getNewCalendar(); |
@@ -521,8 +521,8 @@ void KOPrefs::usrWriteConfig() | |||
521 | KopiCalendarFile * kkf = mCalendars.first(); | 521 | KopiCalendarFile * kkf = mCalendars.first(); |
522 | while ( kkf ) { | 522 | while ( kkf ) { |
523 | qDebug("cal num %d %d ", kkf->mCalNumber, numCal); | 523 | //qDebug("cal num %d %d ", kkf->mCalNumber, numCal); |
524 | if ( kkf->mCalNumber == numCal ) { | 524 | if ( kkf->mCalNumber == numCal ) { |
525 | ++writeCal; | 525 | ++writeCal; |
526 | qDebug("Write calendar %d %d ", numCal , writeCal); | 526 | //qDebug("Write calendar %d %d ", numCal , writeCal); |
527 | QString prefix = "Cal_" + QString::number( writeCal ); | 527 | QString prefix = "Cal_" + QString::number( writeCal ); |
528 | config()->writeEntry( prefix+"_isStandard", kkf->isStandard ); | 528 | config()->writeEntry( prefix+"_isStandard", kkf->isStandard ); |
diff --git a/korganizer/mainwindow.cpp b/korganizer/mainwindow.cpp index 0cb0bce..95e1607 100644 --- a/korganizer/mainwindow.cpp +++ b/korganizer/mainwindow.cpp | |||
@@ -788,5 +788,6 @@ void MainWindow::initActions() | |||
788 | icon = loadPixmap( pathString + "filter" ); | 788 | icon = loadPixmap( pathString + "filter" ); |
789 | configureToolBarMenu->insertItem(icon, i18n("Filter menu icon"), 26 ); | 789 | configureToolBarMenu->insertItem(icon, i18n("Filter menu icon"), 26 ); |
790 | action = new QAction( i18n("Toggle FilterView"), icon, i18n("Toggle FilterView"), 0, this ); | 790 | icon = loadPixmap( pathString + "configure" ); |
791 | action = new QAction( i18n("Toggle Resource View"), icon, i18n("Toggle Resource View"), 0, this ); | ||
791 | action->addTo( viewMenu ); | 792 | action->addTo( viewMenu ); |
792 | connect( action, SIGNAL( activated() ), | 793 | connect( action, SIGNAL( activated() ), |
@@ -1489,5 +1490,5 @@ void MainWindow::keyBindings() | |||
1489 | i18n("<p><b>I</b>: Show info for selected event/todo</p>\n") + | 1490 | i18n("<p><b>I</b>: Show info for selected event/todo</p>\n") + |
1490 | i18n("<p><b>Space</b>: Toggle fullscreen | <b>P</b>: Date picker</p>\n")+ | 1491 | i18n("<p><b>Space</b>: Toggle fullscreen | <b>P</b>: Date picker</p>\n")+ |
1491 | i18n("<p><b>F</b>: Toggle filterview |<b>F+ctrl</b>: Edit filter </p>\n")+ | 1492 | i18n("<p><b>R</b>: Toggle Resource View |<b>F</b>: Edit filter </p>\n")+ |
1492 | i18n("<p><b>O</b>: Filter On/Off | <b>J</b>: Journal view</p>\n")+ | 1493 | i18n("<p><b>O</b>: Filter On/Off | <b>J</b>: Journal view</p>\n")+ |
1493 | i18n("<p><b>1-0</b> (+<b>ctrl</b>): Select filter 1-10 (11-20)</p>\n")+ | 1494 | i18n("<p><b>1-0</b> (+<b>ctrl</b>): Select filter 1-10 (11-20)</p>\n")+ |
@@ -1988,8 +1989,8 @@ void MainWindow::keyPressEvent ( QKeyEvent * e ) | |||
1988 | break; | 1989 | break; |
1989 | case Qt::Key_F: | 1990 | case Qt::Key_F: |
1990 | if ( e->state() == Qt::ControlButton|| e->state() == Qt::ShiftButton ) | 1991 | mView->editFilters(); |
1991 | mView->editFilters(); | 1992 | break; |
1992 | else | 1993 | case Qt::Key_R: |
1993 | mView->toggleFilter(); | 1994 | mView->toggleFilter(); |
1994 | break; | 1995 | break; |
1995 | case Qt::Key_X: | 1996 | case Qt::Key_X: |