equal
deleted
inserted
replaced
42 #include "ToDo.hrh" |
42 #include "ToDo.hrh" |
43 #include "CalenUid.h" |
43 #include "CalenUid.h" |
44 #include "calendar.hrh" |
44 #include "calendar.hrh" |
45 |
45 |
46 |
46 |
|
47 // Button position of the MSK CBA button |
|
48 const TInt KSK2CBAPosition = 2; |
|
49 |
47 // LOCAL CONSTANTS AND MACROS |
50 // LOCAL CONSTANTS AND MACROS |
48 #define iWeekContainer static_cast<CCalenWeekContainer*>( iContainer ) |
51 #define iWeekContainer static_cast<CCalenWeekContainer*>( iContainer ) |
49 |
52 |
50 // ================= MEMBER FUNCTIONS ======================= |
53 // ================= MEMBER FUNCTIONS ======================= |
51 |
54 |
161 // CCalenWeekView::DoActivateImplL |
164 // CCalenWeekView::DoActivateImplL |
162 // CCalenNativeView::DoActivateL() calls DoActivateImplL() |
165 // CCalenNativeView::DoActivateL() calls DoActivateImplL() |
163 // (other items were commented in a header). |
166 // (other items were commented in a header). |
164 // ---------------------------------------------------------------------------- |
167 // ---------------------------------------------------------------------------- |
165 // |
168 // |
166 void CCalenWeekView::DoActivateImplL( const TVwsViewId& /*aPrevViewId*/, |
169 void CCalenWeekView::DoActivateImplL( const TVwsViewId& aPrevViewId, |
167 TUid /*aCustomMessageId*/, |
170 TUid aCustomMessageId, |
168 const TDesC8& /*aCustomMessage*/ ) |
171 const TDesC8& /*aCustomMessage*/ ) |
169 { |
172 { |
170 TRACE_ENTRY_POINT; |
173 TRACE_ENTRY_POINT; |
171 |
174 if( aPrevViewId.iAppUid == KUidCalendar ) // switch from internal view |
|
175 { |
|
176 iShowBackButtonOnCba = |
|
177 ( aCustomMessageId == KUidCalenShowBackCba ? ETrue : EFalse ); |
|
178 } |
|
179 else |
|
180 { |
|
181 iShowBackButtonOnCba = EFalse; |
|
182 } |
172 iWeekContainer->SetCursorToActiveDayL(); |
183 iWeekContainer->SetCursorToActiveDayL(); |
173 //SetStatusPaneFromActiveContextL(); |
184 //SetStatusPaneFromActiveContextL(); |
174 |
185 |
175 TRACE_EXIT_POINT; |
186 TRACE_EXIT_POINT; |
176 } |
187 } |
365 // set the editoractive for not showing the preview popup or preview pane |
376 // set the editoractive for not showing the preview popup or preview pane |
366 SetEditorActive(ETrue); |
377 SetEditorActive(ETrue); |
367 iServices.IssueCommandL( aCommand ); |
378 iServices.IssueCommandL( aCommand ); |
368 } |
379 } |
369 break; |
380 break; |
370 |
381 case EAknSoftkeyBack: |
|
382 { |
|
383 |
|
384 SetCbaL( R_CALEN_MONTH_AND_WEEK_VIEW_CBA ); |
|
385 |
|
386 iServices.IssueNotificationL(ECalenNotifyWeekViewClosed); |
|
387 } |
|
388 break; |
371 default: |
389 default: |
372 CCalenNativeView::HandleCommandL( aCommand ); |
390 CCalenNativeView::HandleCommandL( aCommand ); |
373 break; |
391 break; |
374 } |
392 } |
375 |
393 |
|
394 TRACE_EXIT_POINT; |
|
395 } |
|
396 // --------------------------------------------------------- |
|
397 // CCalenWeekView::UpdateCbaL |
|
398 // Set context menubar and also CBA button back / exit. |
|
399 // (other items were commented in a header). |
|
400 // --------------------------------------------------------- |
|
401 // |
|
402 void CCalenWeekView::UpdateCbaL() |
|
403 { |
|
404 TRACE_ENTRY_POINT; |
|
405 |
|
406 if( iShowBackButtonOnCba ) |
|
407 { |
|
408 CEikButtonGroupContainer* cba = Cba(); |
|
409 cba->SetCommandL( KSK2CBAPosition, R_CALEN_BACK_CBA_BUTTON); |
|
410 cba->DrawNow(); |
|
411 } |
|
412 else |
|
413 { |
|
414 SetCbaL(R_CALEN_MONTH_AND_WEEK_VIEW_CBA); |
|
415 } |
|
416 |
376 TRACE_EXIT_POINT; |
417 TRACE_EXIT_POINT; |
377 } |
418 } |
378 |
419 |
379 // ---------------------------------------------------------------------------- |
420 // ---------------------------------------------------------------------------- |
380 // CCalenWeekView::Id |
421 // CCalenWeekView::Id |