author | zautrix <zautrix> | 2005-03-29 18:35:10 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-03-29 18:35:10 (UTC) |
commit | b70d9695bb6a2d567b75965c0530792ad90c84a3 (patch) (unidiff) | |
tree | bc27647d044cf4a8d9c75acd19d9a2d078fe00b2 /korganizer | |
parent | a7c827aa0e555206b60dec3bc07f7afab4352883 (diff) | |
download | kdepimpi-b70d9695bb6a2d567b75965c0530792ad90c84a3.zip kdepimpi-b70d9695bb6a2d567b75965c0530792ad90c84a3.tar.gz kdepimpi-b70d9695bb6a2d567b75965c0530792ad90c84a3.tar.bz2 |
icons
-rw-r--r-- | korganizer/koviewmanager.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/korganizer/koviewmanager.cpp b/korganizer/koviewmanager.cpp index 8752636..53cd011 100644 --- a/korganizer/koviewmanager.cpp +++ b/korganizer/koviewmanager.cpp | |||
@@ -215,97 +215,97 @@ void KOViewManager::showNextView() | |||
215 | if (mCurrentView == mMonthView && KOPrefs::instance()->mMonthViewWeek) goto MONTH; | 215 | if (mCurrentView == mMonthView && KOPrefs::instance()->mMonthViewWeek) goto MONTH; |
216 | 216 | ||
217 | if (mCurrentView == mMonthView ) goto LIST; | 217 | if (mCurrentView == mMonthView ) goto LIST; |
218 | 218 | ||
219 | if (mCurrentView == mListView ) goto TODO; | 219 | if (mCurrentView == mListView ) goto TODO; |
220 | 220 | ||
221 | // if (mCurrentView == mTodoView ) goto LIST; | 221 | // if (mCurrentView == mTodoView ) goto LIST; |
222 | 222 | ||
223 | 223 | ||
224 | NEXT: | 224 | NEXT: |
225 | if ( KOPrefs::instance()->mShowIconNext ) { showWhatsNextView();return ;} | 225 | if ( KOPrefs::instance()->mShowIconNext ) { showWhatsNextView();return ;} |
226 | NEXT_X: | 226 | NEXT_X: |
227 | if ( KOPrefs::instance()->mShowIconNextDays ) { showNextXView() ;return ;} | 227 | if ( KOPrefs::instance()->mShowIconNextDays ) { showNextXView() ;return ;} |
228 | JOURNAL: | 228 | JOURNAL: |
229 | if ( KOPrefs::instance()->mShowIconJournal ) { showJournalView() ;return ;} | 229 | if ( KOPrefs::instance()->mShowIconJournal ) { showJournalView() ;return ;} |
230 | DAY_1: | 230 | DAY_1: |
231 | if ( KOPrefs::instance()->mShowIconDay1 ) { showDayView() ;return ;} | 231 | if ( KOPrefs::instance()->mShowIconDay1 ) { showDayView() ;return ;} |
232 | DAY_5: | 232 | DAY_5: |
233 | if ( KOPrefs::instance()->mShowIconDay5 ) { showWorkWeekView() ;return ;} | 233 | if ( KOPrefs::instance()->mShowIconDay5 ) { showWorkWeekView() ;return ;} |
234 | DAY_7: | 234 | DAY_7: |
235 | if ( KOPrefs::instance()->mShowIconDay7 ) { showWeekView();return ;} | 235 | if ( KOPrefs::instance()->mShowIconDay7 ) { showWeekView();return ;} |
236 | DAY_6: | 236 | DAY_6: |
237 | if ( KOPrefs::instance()->mShowIconDay6 ) { showMonthViewWeek();return ;} | 237 | if ( KOPrefs::instance()->mShowIconDay6 ) { showMonthViewWeek();return ;} |
238 | MONTH: | 238 | MONTH: |
239 | if ( KOPrefs::instance()->mShowIconMonth ) { showMonthView();return ;} | 239 | if ( KOPrefs::instance()->mShowIconMonth ) { showMonthView();return ;} |
240 | LIST: | 240 | LIST: |
241 | if ( KOPrefs::instance()->mShowIconList ) { showListView() ;return ;} | 241 | if ( KOPrefs::instance()->mShowIconList ) { showListView() ;return ;} |
242 | TODO: | 242 | TODO: |
243 | if ( KOPrefs::instance()->mShowIconTodoview ) { showTodoView() ;return ;} | 243 | if ( KOPrefs::instance()->mShowIconTodoview ) { showTodoView() ;return ;} |
244 | 244 | ||
245 | if ( KOPrefs::instance()->mShowIconNext ) { showWhatsNextView();return ;} | 245 | if ( KOPrefs::instance()->mShowIconNext ) { showWhatsNextView();return ;} |
246 | 246 | ||
247 | if ( KOPrefs::instance()->mShowIconNextDays ) { showNextXView() ;return ;} | 247 | if ( KOPrefs::instance()->mShowIconNextDays ) { showNextXView() ;return ;} |
248 | 248 | ||
249 | if ( KOPrefs::instance()->mShowIconJournal ) { showJournalView() ;return ;} | 249 | if ( KOPrefs::instance()->mShowIconJournal ) { showJournalView() ;return ;} |
250 | 250 | ||
251 | if ( KOPrefs::instance()->mShowIconDay1 ) { showDayView() ;return ;} | 251 | if ( KOPrefs::instance()->mShowIconDay1 ) { showDayView() ;return ;} |
252 | 252 | ||
253 | if ( KOPrefs::instance()->mShowIconDay5 ) { showWorkWeekView() ;return ;} | 253 | if ( KOPrefs::instance()->mShowIconDay5 ) { showWorkWeekView() ;return ;} |
254 | 254 | ||
255 | if ( KOPrefs::instance()->mShowIconDay7 ) { showWeekView();return ;} | 255 | if ( KOPrefs::instance()->mShowIconDay7 ) { showWeekView();return ;} |
256 | 256 | ||
257 | if ( KOPrefs::instance()->mShowIconDay6 ) { showMonthViewWeek();return ;} | 257 | if ( KOPrefs::instance()->mShowIconDay6 ) { showMonthViewWeek();return ;} |
258 | 258 | ||
259 | if ( KOPrefs::instance()->mShowIconMonth ) { showMonthView();return ;} | 259 | if ( KOPrefs::instance()->mShowIconMonth ) { showMonthView();return ;} |
260 | 260 | ||
261 | if ( KOPrefs::instance()->mShowIconList ) { showListView() ;return ;} | 261 | if ( KOPrefs::instance()->mShowIconList ) { showListView() ;return ;} |
262 | 262 | ||
263 | if ( KOPrefs::instance()->mShowIconTodoview ) { showTodoView() ;return ;} | 263 | //if ( KOPrefs::instance()->mShowIconTodoview ) { showTodoView() ;return ;} |
264 | 264 | ||
265 | 265 | ||
266 | 266 | ||
267 | } | 267 | } |
268 | void KOViewManager::showView(KOrg::BaseView *view, bool fullScreen ) | 268 | void KOViewManager::showView(KOrg::BaseView *view, bool fullScreen ) |
269 | { | 269 | { |
270 | 270 | ||
271 | //mFlagShowNextxDays = false; | 271 | //mFlagShowNextxDays = false; |
272 | //if(view == mCurrentView) return; | 272 | //if(view == mCurrentView) return; |
273 | if ( view == 0 ) { | 273 | if ( view == 0 ) { |
274 | view = mCurrentView; | 274 | view = mCurrentView; |
275 | if ( view == 0 ) | 275 | if ( view == 0 ) |
276 | return; | 276 | return; |
277 | } | 277 | } |
278 | bool callupdate = !(view == mCurrentView); | 278 | bool callupdate = !(view == mCurrentView); |
279 | bool full = fullScreen; | 279 | bool full = fullScreen; |
280 | if(view == mCurrentView && view != mWhatsNextView ) { | 280 | if(view == mCurrentView && view != mWhatsNextView ) { |
281 | if ( mCurrentAgendaView < 0 ) | 281 | if ( mCurrentAgendaView < 0 ) |
282 | return; | 282 | return; |
283 | if ( view != mMonthView ) | 283 | if ( view != mMonthView ) |
284 | full = mMainView->leftFrame()->isVisible(); | 284 | full = mMainView->leftFrame()->isVisible(); |
285 | } else { | 285 | } else { |
286 | if ( view == mMonthView && mMonthView) | 286 | if ( view == mMonthView && mMonthView) |
287 | ;//mMonthView->skipResize = true ; | 287 | ;//mMonthView->skipResize = true ; |
288 | mCurrentView = view; | 288 | mCurrentView = view; |
289 | // bool full = fullScreen; | 289 | // bool full = fullScreen; |
290 | bool isFull = !mMainView->leftFrame()->isVisible(); | 290 | bool isFull = !mMainView->leftFrame()->isVisible(); |
291 | if ( isFull && KOPrefs::instance()->mViewChangeHoldFullscreen ) | 291 | if ( isFull && KOPrefs::instance()->mViewChangeHoldFullscreen ) |
292 | full = true; | 292 | full = true; |
293 | if ( !isFull && KOPrefs::instance()->mViewChangeHoldNonFullscreen ) | 293 | if ( !isFull && KOPrefs::instance()->mViewChangeHoldNonFullscreen ) |
294 | full = false; | 294 | full = false; |
295 | } | 295 | } |
296 | if ( mAgendaView ) mAgendaView->deleteSelectedDateTime(); | 296 | if ( mAgendaView ) mAgendaView->deleteSelectedDateTime(); |
297 | //raiseCurrentView( full ); | 297 | //raiseCurrentView( full ); |
298 | mMainView->processIncidenceSelection( 0 ); | 298 | mMainView->processIncidenceSelection( 0 ); |
299 | //mMainView->updateView(); | 299 | //mMainView->updateView(); |
300 | raiseCurrentView( full, callupdate ); | 300 | raiseCurrentView( full, callupdate ); |
301 | mMainView->adaptNavigationUnits(); | 301 | mMainView->adaptNavigationUnits(); |
302 | } | 302 | } |
303 | 303 | ||
304 | void KOViewManager::raiseCurrentView( bool fullScreen, bool callUpdateView ) | 304 | void KOViewManager::raiseCurrentView( bool fullScreen, bool callUpdateView ) |
305 | { | 305 | { |
306 | mCurrentAgendaView = 0; | 306 | mCurrentAgendaView = 0; |
307 | if ( fullScreen ) { | 307 | if ( fullScreen ) { |
308 | mMainView->leftFrame()->hide(); | 308 | mMainView->leftFrame()->hide(); |
309 | } else { | 309 | } else { |
310 | mMainView->leftFrame()->show(); | 310 | mMainView->leftFrame()->show(); |
311 | } | 311 | } |