summaryrefslogtreecommitdiffabout
path: root/korganizer
authorzautrix <zautrix>2005-01-19 08:52:01 (UTC)
committer zautrix <zautrix>2005-01-19 08:52:01 (UTC)
commitaf56077eeeab7b46b98ad5159c6653114abf6602 (patch) (side-by-side diff)
treeb621bc3c2c8d283d0aec81b2b8276074082c951a /korganizer
parentc626089f47244d0c0a9ba73bcd12f42927acb28f (diff)
downloadkdepimpi-af56077eeeab7b46b98ad5159c6653114abf6602.zip
kdepimpi-af56077eeeab7b46b98ad5159c6653114abf6602.tar.gz
kdepimpi-af56077eeeab7b46b98ad5159c6653114abf6602.tar.bz2
kopi fixes
Diffstat (limited to 'korganizer') (more/less context) (show whitespace changes)
-rw-r--r--korganizer/calendarview.cpp10
-rw-r--r--korganizer/koprefs.cpp1
-rw-r--r--korganizer/koprefs.h2
-rw-r--r--korganizer/mainwindow.cpp12
4 files changed, 17 insertions, 8 deletions
diff --git a/korganizer/calendarview.cpp b/korganizer/calendarview.cpp
index 9c10ba6..12af655 100644
--- a/korganizer/calendarview.cpp
+++ b/korganizer/calendarview.cpp
@@ -339,7 +339,8 @@ void CalendarView::init()
mTodoList->setFixedWidth( mDateNavigator->sizeHint().width() );
leftFrame->setFixedWidth( mDateNavigator->sizeHint().width() );
}
-
+ if ( !KOPrefs::instance()->mShowDateNavigator)
+ mDateNavigator->hide();
//qDebug("Calendarview Size %d %d ", width(), height());
#endif
@@ -2168,10 +2169,10 @@ void CalendarView::updateView()
{
DateList tmpList = mNavigator->selectedDates();
- // We assume that the navigator only selects consecutive days.
- updateView( tmpList.first(), tmpList.last() );
if ( KOPrefs::instance()->mHideNonStartedTodos )
mTodoList->updateView();
+ // We assume that the navigator only selects consecutive days.
+ updateView( tmpList.first(), tmpList.last() );
}
void CalendarView::updateUnmanagedViews()
@@ -3609,7 +3610,8 @@ KDateNavigator* CalendarView::dateNavigatorWidget()
}
void CalendarView::toggleDateNavigatorWidget()
{
- if (mDateNavigator->isVisible())
+ KOPrefs::instance()->mShowDateNavigator = !KOPrefs::instance()->mShowDateNavigator ;
+ if (!KOPrefs::instance()->mShowDateNavigator )
mDateNavigator->hide();
else
mDateNavigator->show();
diff --git a/korganizer/koprefs.cpp b/korganizer/koprefs.cpp
index 0a767b6..4b26058 100644
--- a/korganizer/koprefs.cpp
+++ b/korganizer/koprefs.cpp
@@ -214,6 +214,7 @@ KOPrefs::KOPrefs() :
KPrefs::setCurrentGroup("Views");
+ addItemBool("Show Date Navigator",&mShowDateNavigator,true);
addItemInt("Hour Size",&mHourSize,8);
addItemBool("Show Daily Recurrences",&mDailyRecur,true);
addItemBool("Show Weekly Recurrences",&mWeeklyRecur,true);
diff --git a/korganizer/koprefs.h b/korganizer/koprefs.h
index 69722a1..b3acda7 100644
--- a/korganizer/koprefs.h
+++ b/korganizer/koprefs.h
@@ -245,6 +245,8 @@ class KOPrefs : public KPimPrefs
bool mHightlightDateTimeEdit;
bool mShortDateInViewer;
+ bool mShowDateNavigator;
+
QStringList mLocationDefaults;
QStringList mEventSummaryUser;
QStringList mTodoSummaryUser;
diff --git a/korganizer/mainwindow.cpp b/korganizer/mainwindow.cpp
index 5ec7ddd..151b55b 100644
--- a/korganizer/mainwindow.cpp
+++ b/korganizer/mainwindow.cpp
@@ -1638,18 +1638,20 @@ void MainWindow::fillFilterMenu()
{
selectFilterMenu->clear();
bool disable = false;
+ selectFilterMenu->insertItem(i18n ( "Edit Filters" ), 0 );
+ selectFilterMenu->insertSeparator();
if ( mView->filterView()->filtersEnabled() ) {
- selectFilterMenu->insertItem(i18n ( "Turn filter off" ), 0 );
+ selectFilterMenu->insertItem(i18n ( "Turn filter off" ), 1 );
}
else {
- selectFilterMenu->insertItem(i18n ( "Turn filter on" ), 0 );
+ selectFilterMenu->insertItem(i18n ( "Turn filter on" ), 1 );
disable = true;
}
selectFilterMenu->insertSeparator();
QPtrList<CalFilter> fili = mView->filters();
CalFilter *curfilter = mView->filterView()->selectedFilter();
CalFilter *filter = fili.first();
- int iii = 1;
+ int iii = 2;
while(filter) {
selectFilterMenu->insertItem( filter->name(), iii );
if ( filter == curfilter)
@@ -1663,9 +1665,11 @@ void MainWindow::fillFilterMenu()
void MainWindow::selectFilter( int fil )
{
if ( fil == 0 ) {
+ mView->editFilters( );
+ } else if ( fil == 1 ){
mView->toggleFilerEnabled( );
} else {
- mView->selectFilter( fil-1 );
+ mView->selectFilter( fil-2 );
}
}
void MainWindow::configureToolBar( int item )