equal
deleted
inserted
replaced
219 if ( iEikonEnv && iContextMenuBar ) |
219 if ( iEikonEnv && iContextMenuBar ) |
220 { |
220 { |
221 iEikonEnv->EikAppUi()->RemoveFromStack( iContextMenuBar ); |
221 iEikonEnv->EikAppUi()->RemoveFromStack( iContextMenuBar ); |
222 delete iContextMenuBar; |
222 delete iContextMenuBar; |
223 } |
223 } |
224 |
224 |
225 // Restore the titlepane text |
225 TRAP_IGNORE ( RestoreStatusPaneL() ); |
226 if (iTitlePane && iStoredTitlePaneText) |
|
227 { |
|
228 iTitlePane->SetTextL(*iStoredTitlePaneText); |
|
229 } |
|
230 |
|
231 // Reset title pane picture |
|
232 if( iTitlePane ) |
|
233 { |
|
234 iTitlePane->SetSmallPicture( NULL, NULL, EFalse ); |
|
235 } |
|
236 |
226 |
237 // Remove empty status pane |
227 // Remove empty status pane |
238 if (iNaviContainer) |
228 if (iNaviContainer) |
239 { |
229 { |
240 iNaviContainer->Pop(); |
230 iNaviContainer->Pop(); |
393 // CPbk2ContactEditorDlgImpl::ExecuteLD |
383 // CPbk2ContactEditorDlgImpl::ExecuteLD |
394 // -------------------------------------------------------------------------- |
384 // -------------------------------------------------------------------------- |
395 // |
385 // |
396 void CPbk2ContactEditorDlgImpl::ExecuteLD() |
386 void CPbk2ContactEditorDlgImpl::ExecuteLD() |
397 { |
387 { |
398 CleanupStack::PushL( this ); |
|
399 |
|
400 // Set status pane layout to the Phonebook 2 one |
|
401 CEikStatusPane* statusPane = iAvkonAppUi->StatusPane(); |
|
402 if (statusPane) |
|
403 { |
|
404 statusPane->SwitchLayoutL(R_AVKON_STATUS_PANE_LAYOUT_USUAL); |
|
405 } |
|
406 |
|
407 CleanupStack::Pop( this ); |
|
408 CAknForm::ExecuteLD(R_PBK2_EDIT_MEMORY_ENTRY_DIALOG); |
388 CAknForm::ExecuteLD(R_PBK2_EDIT_MEMORY_ENTRY_DIALOG); |
409 } |
389 } |
410 |
390 |
411 // -------------------------------------------------------------------------- |
391 // -------------------------------------------------------------------------- |
412 // CPbk2ContactEditorDlgImpl::CreateCustomControlL |
392 // CPbk2ContactEditorDlgImpl::CreateCustomControlL |
519 { |
499 { |
520 // Set status pane layout to the Phonebook 2 one |
500 // Set status pane layout to the Phonebook 2 one |
521 CEikStatusPane* statusPane = iAvkonAppUi->StatusPane(); |
501 CEikStatusPane* statusPane = iAvkonAppUi->StatusPane(); |
522 if ( statusPane ) |
502 if ( statusPane ) |
523 { |
503 { |
524 TRAP_IGNORE( |
504 iCurrentstatuspane = statusPane->CurrentLayoutResId(); |
525 statusPane->SwitchLayoutL( |
505 if( iCurrentstatuspane != R_AVKON_STATUS_PANE_LAYOUT_USUAL ) |
526 R_AVKON_STATUS_PANE_LAYOUT_USUAL |
506 { |
527 ) |
507 TRAP_IGNORE( statusPane->SwitchLayoutL(R_AVKON_STATUS_PANE_LAYOUT_USUAL) ); |
528 ); |
508 } |
529 } |
509 } |
530 } |
510 } |
531 |
511 |
532 CAknForm::HandleResourceChange( aType ); |
512 CAknForm::HandleResourceChange( aType ); |
533 } |
513 } |
799 // This is needed here because previous settings might override extension's |
779 // This is needed here because previous settings might override extension's |
800 // buttons. |
780 // buttons. |
801 iEditorExtension->ModifyButtonGroupContainerL(ButtonGroupContainer()); |
781 iEditorExtension->ModifyButtonGroupContainerL(ButtonGroupContainer()); |
802 |
782 |
803 ConstructNaviPaneL(); |
783 ConstructNaviPaneL(); |
|
784 UpdateTitleL(); |
|
785 UpdateTitlePictureL(); |
804 } |
786 } |
805 |
787 |
806 // -------------------------------------------------------------------------- |
788 // -------------------------------------------------------------------------- |
807 // CPbk2ContactEditorDlgImpl::PostLayoutDynInitL |
789 // CPbk2ContactEditorDlgImpl::PostLayoutDynInitL |
808 // -------------------------------------------------------------------------- |
790 // -------------------------------------------------------------------------- |
809 // |
791 // |
810 void CPbk2ContactEditorDlgImpl::PostLayoutDynInitL() |
792 void CPbk2ContactEditorDlgImpl::PostLayoutDynInitL() |
811 { |
793 { |
812 UpdateTitleL(); |
794 |
813 UpdateTitlePictureL(); |
|
814 if(iParams.iFocusedContactField) |
795 if(iParams.iFocusedContactField) |
815 { |
796 { |
816 const TInt count = iUiFieldArray->Count(); |
797 const TInt count = iUiFieldArray->Count(); |
817 for (TInt i = 0; i < count; ++i) |
798 for (TInt i = 0; i < count; ++i) |
818 { |
799 { |
2574 { |
2555 { |
2575 iTitlePane->SetTextL(iEditorStrategy.DefaultTitle()); |
2556 iTitlePane->SetTextL(iEditorStrategy.DefaultTitle()); |
2576 } |
2557 } |
2577 } |
2558 } |
2578 } |
2559 } |
|
2560 CEikStatusPane* statusPane = iAvkonAppUi->StatusPane(); |
|
2561 |
|
2562 if (statusPane) |
|
2563 { |
|
2564 iCurrentstatuspane = statusPane->CurrentLayoutResId(); |
|
2565 if( iCurrentstatuspane != R_AVKON_STATUS_PANE_LAYOUT_USUAL ) |
|
2566 { |
|
2567 statusPane->SwitchLayoutL(R_AVKON_STATUS_PANE_LAYOUT_USUAL); |
|
2568 } |
|
2569 } |
|
2570 |
2579 } |
2571 } |
2580 |
2572 |
2581 // -------------------------------------------------------------------------- |
2573 // -------------------------------------------------------------------------- |
2582 // CPbk2ContactEditorDlgImpl::UpdateTitlePictureL |
2574 // CPbk2ContactEditorDlgImpl::UpdateTitlePictureL |
2583 // -------------------------------------------------------------------------- |
2575 // -------------------------------------------------------------------------- |
3463 { |
3455 { |
3464 iNaviContainer->PushL(*iPrevNaviDecorator); |
3456 iNaviContainer->PushL(*iPrevNaviDecorator); |
3465 } |
3457 } |
3466 } |
3458 } |
3467 |
3459 |
|
3460 // -------------------------------------------------------------------------- |
|
3461 // CPbk2ContactEditorDlgImpl::RestoreStatusPaneL |
|
3462 // -------------------------------------------------------------------------- |
|
3463 // |
|
3464 void CPbk2ContactEditorDlgImpl::RestoreStatusPaneL() |
|
3465 { |
|
3466 //Restore StatusPane & Title |
|
3467 if ( iCurrentstatuspane ) |
|
3468 { |
|
3469 CEikStatusPane* statusPane = iAvkonAppUi->StatusPane(); |
|
3470 |
|
3471 if (statusPane) |
|
3472 { |
|
3473 statusPane->SwitchLayoutL( iCurrentstatuspane ); |
|
3474 } |
|
3475 } |
|
3476 // Restore the titlepane text |
|
3477 if (iTitlePane && iStoredTitlePaneText) |
|
3478 { |
|
3479 iTitlePane->SetTextL(*iStoredTitlePaneText); |
|
3480 } |
|
3481 |
|
3482 // Reset title pane picture |
|
3483 if( iTitlePane ) |
|
3484 { |
|
3485 iTitlePane->SetSmallPicture( NULL, NULL, EFalse ); |
|
3486 } |
|
3487 } |
|
3488 |
3468 |
3489 |
3469 // End of File |
3490 // End of File |