summaryrefslogtreecommitdiffabout
path: root/korganizer/koviewmanager.cpp
authorzautrix <zautrix>2005-03-26 21:33:09 (UTC)
committer zautrix <zautrix>2005-03-26 21:33:09 (UTC)
commit7177e62052b732f901eca6627825d0b38d8438be (patch) (side-by-side diff)
tree9c6531a24e57221db445841610eaed7350ddc21f /korganizer/koviewmanager.cpp
parenta24f954912ee2dbb76dcbde1abc9f20b06abbf93 (diff)
downloadkdepimpi-7177e62052b732f901eca6627825d0b38d8438be.zip
kdepimpi-7177e62052b732f901eca6627825d0b38d8438be.tar.gz
kdepimpi-7177e62052b732f901eca6627825d0b38d8438be.tar.bz2
next view
Diffstat (limited to 'korganizer/koviewmanager.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--korganizer/koviewmanager.cpp65
1 files changed, 65 insertions, 0 deletions
diff --git a/korganizer/koviewmanager.cpp b/korganizer/koviewmanager.cpp
index 31ee5e2..b5de4a1 100644
--- a/korganizer/koviewmanager.cpp
+++ b/korganizer/koviewmanager.cpp
@@ -198,7 +198,72 @@ void KOViewManager::writeSettings(KConfig *config)
mTodoView->saveLayout(config,"Todo View");
}
}
+void KOViewManager::showNextView()
+{
+ if (mCurrentView == mWhatsNextView) goto NEXT_X;
+
+ if (mCurrentView == mAgendaView && mFlagShowNextxDays) goto LIST;
+
+ if (mCurrentView == mListView ) goto DAY_1;
+
+ if (mCurrentView == mAgendaView && mCurrentAgendaView == 1 ) goto DAY_5;
+
+ if (mCurrentView == mAgendaView && mCurrentAgendaView == 5 ) goto DAY_7;
+
+ if (mCurrentView == mAgendaView ) goto DAY_6;
+
+ if (mCurrentView == mMonthView && KOPrefs::instance()->mMonthViewWeek) goto MONTH;
+
+ if (mCurrentView == mMonthView ) goto TODO;
+
+ if (mCurrentView == mTodoView ) goto JOURNAL;
+
+ NEXT:
+ if ( KOPrefs::instance()->mShowIconNext ) { showWhatsNextView();return ;}
+ NEXT_X:
+ if ( KOPrefs::instance()->mShowIconNextDays ) { showNextXView() ;return ;}
+ LIST:
+ if ( KOPrefs::instance()->mShowIconList ) { showListView() ;return ;}
+ DAY_1:
+ if ( KOPrefs::instance()->mShowIconDay1 ) { showDayView() ;return ;}
+ DAY_5:
+ if ( KOPrefs::instance()->mShowIconDay5 ) { showWorkWeekView() ;return ;}
+ DAY_7:
+ if ( KOPrefs::instance()->mShowIconDay7 ) { showWeekView();return ;}
+ DAY_6:
+ if ( KOPrefs::instance()->mShowIconDay6 ) { showMonthViewWeek();return ;}
+ MONTH:
+ if ( KOPrefs::instance()->mShowIconMonth ) { showMonthView();return ;}
+ TODO:
+ if ( KOPrefs::instance()->mShowIconTodoview ) { showTodoView() ;return ;}
+ JOURNAL:
+ if ( KOPrefs::instance()->mShowIconJournal ) { showJournalView() ;return ;}
+
+
+
+ if ( KOPrefs::instance()->mShowIconNext ) { showWhatsNextView();return ;}
+
+ if ( KOPrefs::instance()->mShowIconNextDays ) { showNextXView() ;return ;}
+
+ if ( KOPrefs::instance()->mShowIconList ) { showListView() ;return ;}
+
+ if ( KOPrefs::instance()->mShowIconDay1 ) { showDayView() ;return ;}
+ if ( KOPrefs::instance()->mShowIconDay5 ) { showWorkWeekView() ;return ;}
+
+ if ( KOPrefs::instance()->mShowIconDay7 ) { showWeekView();return ;}
+
+ if ( KOPrefs::instance()->mShowIconDay6 ) { showMonthViewWeek();return ;}
+
+ if ( KOPrefs::instance()->mShowIconMonth ) { showMonthView();return ;}
+
+ if ( KOPrefs::instance()->mShowIconTodoview ) { showTodoView() ;return ;}
+
+ if ( KOPrefs::instance()->mShowIconJournal ) { showJournalView() ;return ;}
+
+
+
+}
void KOViewManager::showView(KOrg::BaseView *view, bool fullScreen )
{