equal
deleted
inserted
replaced
49 CalenNativeView(services), |
49 CalenNativeView(services), |
50 mSoftKeyAction(NULL), |
50 mSoftKeyAction(NULL), |
51 mGoToTodayAction(NULL), |
51 mGoToTodayAction(NULL), |
52 mSwitchToDayViewAction(NULL), |
52 mSwitchToDayViewAction(NULL), |
53 mActionTaken(false), |
53 mActionTaken(false), |
54 mIsAboutToQuitEventConnected(false), |
54 mIsAboutToQuitEventConnected(false) |
55 mDayViewActivated(false) |
|
56 { |
55 { |
57 OstTraceFunctionEntry0( CALENAGENDAVIEW_CALENAGENDAVIEW_ENTRY ); |
56 OstTraceFunctionEntry0( CALENAGENDAVIEW_CALENAGENDAVIEW_ENTRY ); |
58 |
57 |
59 // No implementation yet |
58 // No implementation yet |
60 grabGesture(Qt::SwipeGesture); |
59 grabGesture(Qt::SwipeGesture); |
127 // ---------------------------------------------------------------------------- |
126 // ---------------------------------------------------------------------------- |
128 // |
127 // |
129 void CalenAgendaView::doPopulation() |
128 void CalenAgendaView::doPopulation() |
130 { |
129 { |
131 OstTraceFunctionEntry0( CALENAGENDAVIEW_DOPOPULATION_ENTRY ); |
130 OstTraceFunctionEntry0( CALENAGENDAVIEW_DOPOPULATION_ENTRY ); |
132 mDayViewActivated = false; |
131 |
133 // The content widget has not been constructed. Don't do anything |
132 // The content widget has not been constructed. Don't do anything |
134 if (!mAgendaViewWidget) { |
133 if (!mAgendaViewWidget) { |
135 OstTraceFunctionExit0( CALENAGENDAVIEW_DOPOPULATION_EXIT ); |
134 OstTraceFunctionExit0( CALENAGENDAVIEW_DOPOPULATION_EXIT ); |
136 return; |
135 return; |
137 } |
136 } |
175 } |
174 } |
176 |
175 |
177 |
176 |
178 // Population is complete, issue a notification |
177 // Population is complete, issue a notification |
179 populationComplete(); |
178 populationComplete(); |
180 captureScreenshot(true); |
179 |
181 OstTraceFunctionExit0( DUP1_CALENAGENDAVIEW_DOPOPULATION_EXIT ); |
180 OstTraceFunctionExit0( DUP1_CALENAGENDAVIEW_DOPOPULATION_EXIT ); |
182 } |
181 } |
183 |
182 |
184 /*! |
183 /*! |
185 Funtion to refresh the current view upon selecting a date |
184 Funtion to refresh the current view upon selecting a date |
308 // CalenAgendaView::createNewEvent |
307 // CalenAgendaView::createNewEvent |
309 // ---------------------------------------------------------------------------- |
308 // ---------------------------------------------------------------------------- |
310 // |
309 // |
311 void CalenAgendaView::createNewEvent() |
310 void CalenAgendaView::createNewEvent() |
312 { |
311 { |
313 |
312 captureScreenshot(true); |
314 mAgendaViewWidget->createNewEvent(); |
313 mAgendaViewWidget->createNewEvent(); |
315 } |
314 } |
316 |
315 |
317 // ---------------------------------------------------------------------------- |
316 // ---------------------------------------------------------------------------- |
318 // CalenAgendaView::onLocaleChanged |
317 // CalenAgendaView::onLocaleChanged |
370 // ---------------------------------------------------------------------------- |
369 // ---------------------------------------------------------------------------- |
371 // |
370 // |
372 void CalenAgendaView::launchDayView() |
371 void CalenAgendaView::launchDayView() |
373 { |
372 { |
374 OstTraceFunctionEntry0( CALENAGENDAVIEW_LAUNCHDAYVIEW_ENTRY ); |
373 OstTraceFunctionEntry0( CALENAGENDAVIEW_LAUNCHDAYVIEW_ENTRY ); |
375 mDayViewActivated = true; |
374 |
376 // Issue the command to launch the day view |
375 // Issue the command to launch the day view |
377 mServices.IssueCommandL(ECalenDayView); |
376 mServices.IssueCommandL(ECalenDayView); |
378 |
377 |
379 OstTraceFunctionExit0( CALENAGENDAVIEW_LAUNCHDAYVIEW_EXIT ); |
378 OstTraceFunctionExit0( CALENAGENDAVIEW_LAUNCHDAYVIEW_EXIT ); |
380 } |
379 } |
384 // ---------------------------------------------------------------------------- |
383 // ---------------------------------------------------------------------------- |
385 // |
384 // |
386 void CalenAgendaView::clearListModel() |
385 void CalenAgendaView::clearListModel() |
387 { |
386 { |
388 OstTraceFunctionEntry0( CALENAGENDAVIEW_CLEARLISTMODEL_ENTRY ); |
387 OstTraceFunctionEntry0( CALENAGENDAVIEW_CLEARLISTMODEL_ENTRY ); |
389 // do not disconnect if day view is open |
388 |
390 // save the agenda view as an activity |
|
391 if(!mDayViewActivated){ |
|
392 // day view is removed from the list disconnect for aboutToQuit events |
389 // day view is removed from the list disconnect for aboutToQuit events |
393 disconnectAboutToQuitEvent(); |
390 disconnectAboutToQuitEvent(); |
394 } |
|
395 mAgendaViewWidget->clearListModel(); |
391 mAgendaViewWidget->clearListModel(); |
396 |
392 |
397 OstTraceFunctionExit0( CALENAGENDAVIEW_CLEARLISTMODEL_EXIT ); |
393 OstTraceFunctionExit0( CALENAGENDAVIEW_CLEARLISTMODEL_EXIT ); |
398 } |
394 } |
399 |
395 |