textinput/peninputgenericitut/src/peninputitutwesternuistatenonpredict.cpp
branchRCL_3
changeset 10 6defe5d1bd39
parent 8 6ceef9a83b1a
child 12 4eb1ae11334f
equal deleted inserted replaced
8:6ceef9a83b1a 10:6defe5d1bd39
    76         }
    76         }
    77 
    77 
    78     // update resource id of keypad, candidate drop list
    78     // update resource id of keypad, candidate drop list
    79     iOwner->DataMgr()->NotifyChangeControlLayout(
    79     iOwner->DataMgr()->NotifyChangeControlLayout(
    80         MItutPropertySubscriber::EItutPropertyKeypadResourceId, keypadResId);
    80         MItutPropertySubscriber::EItutPropertyKeypadResourceId, keypadResId);
    81 
    81     // Show ICF, Backspace after position changed to avoid flicker
       
    82     iOwner->LayoutContext()->Control(ECtrlIdBackspace)->Hide(EFalse);
       
    83     iOwner->LayoutContext()->Control(ECtrlIdICF)->Hide( EFalse );
    82     // for secret editor, there is no need to show navigation buttons
    84     // for secret editor, there is no need to show navigation buttons
    83         {
    85         {
    84         if (iOwner->DataMgr()->IsChinese())
    86         if (iOwner->DataMgr()->IsChinese())
    85             {
    87             {
    86             iOwner->LayoutContext()->Control(ECtrlIdSwitch)->Hide(EFalse);
    88             iOwner->LayoutContext()->Control(ECtrlIdSwitch)->Hide(EFalse);
   141         }
   143         }
   142     }
   144     }
   143 
   145 
   144 void CWesternItutUiStateNonPredict::OnExit()
   146 void CWesternItutUiStateNonPredict::OnExit()
   145     {
   147     {
       
   148     // Hide ICF, Backspace, Arrow controls when exit to avoid flick
   146     iOwner->LayoutContext()->ShowArrowBtn(0);
   149     iOwner->LayoutContext()->ShowArrowBtn(0);
       
   150     iOwner->LayoutContext()->Control(ECtrlIdICF)->Hide( ETrue );
       
   151     iOwner->LayoutContext()->Control(ECtrlIdBackspace)->Hide(ETrue);
   147     }
   152     }
   148 
   153 
   149 CGenericItutUiMgrBase::TUiState CWesternItutUiStateNonPredict::StateType()
   154 CGenericItutUiMgrBase::TUiState CWesternItutUiStateNonPredict::StateType()
   150     {
   155     {
   151     return CGenericItutUiMgrBase::EStateWesternStandby;
   156     return CGenericItutUiMgrBase::EStateWesternStandby;