textinput/peninputgenericitut/src/peninputitutwesternuistatespelling.cpp
branchRCL_3
changeset 12 4eb1ae11334f
parent 10 6defe5d1bd39
child 14 e6a39382bb9c
equal deleted inserted replaced
10:6defe5d1bd39 12:4eb1ae11334f
   103         default:
   103         default:
   104             break;                
   104             break;                
   105         }
   105         }
   106     //hide bubble in the first place.
   106     //hide bubble in the first place.
   107     iICF->HideBubble();
   107     iICF->HideBubble();
   108     // Show background of the spell popup window
       
   109     CAknFepCtrlCommonBgCtrl* bgCtrl = static_cast<CAknFepCtrlCommonBgCtrl*>
       
   110                                       (iOwner->LayoutContext()->Control(ECtrlIdBackground) );
       
   111     if(bgCtrl)
       
   112 		{
       
   113 		bgCtrl->ShowSubBgItem( 0, ETrue );	
       
   114 		}
       
   115 
   108 
   116     // update resource id of keypad
   109     // update resource id of keypad
   117     iOwner->DataMgr()->NotifyChangeControlLayout(
   110     iOwner->DataMgr()->NotifyChangeControlLayout(
   118         MItutPropertySubscriber::EItutPropertyKeypadResourceId, keypadResId);
   111         MItutPropertySubscriber::EItutPropertyKeypadResourceId, keypadResId);
   119 
   112 
   195     iICF->SetPromptTextL( KNullDesC );
   188     iICF->SetPromptTextL( KNullDesC );
   196     iOk->Hide(ETrue);
   189     iOk->Hide(ETrue);
   197     iCancel->Hide(ETrue);
   190     iCancel->Hide(ETrue);
   198     iOwner->DataMgr()->SetSpellMode(EFalse);
   191     iOwner->DataMgr()->SetSpellMode(EFalse);
   199     iICF->SetLineSeparatorAfterPrompt(EFalse);
   192     iICF->SetLineSeparatorAfterPrompt(EFalse);
   200     // Hide background of the spell popup window
   193 
   201     CAknFepCtrlCommonBgCtrl* bgCtrl = static_cast<CAknFepCtrlCommonBgCtrl*>
       
   202                                       (iOwner->LayoutContext()->Control(ECtrlIdBackground) );
       
   203     if(bgCtrl)
       
   204 		{
       
   205 		bgCtrl->ShowSubBgItem( 0, EFalse );	
       
   206 		}    
       
   207     iOwner->DataMgr()->SetChineseSpellFlag( EFalse );
   194     iOwner->DataMgr()->SetChineseSpellFlag( EFalse );
   208     }
   195     }
   209 
   196 
   210 CGenericItutUiMgrBase::TUiState CWesternItutUiStateSpelling::StateType()
   197 CGenericItutUiMgrBase::TUiState CWesternItutUiStateSpelling::StateType()
   211     {
   198     {
   286         {
   273         {
   287         icffont = TItutDataConverter::AnyToFont(iOwner->DataMgr()->RequestData(EIcfFont));
   274         icffont = TItutDataConverter::AnyToFont(iOwner->DataMgr()->RequestData(EIcfFont));
   288         }
   275         }
   289     TRect rect = TItutDataConverter::AnyToRect(iOwner->DataMgr()->RequestData(ESpellICFRect) );
   276     TRect rect = TItutDataConverter::AnyToRect(iOwner->DataMgr()->RequestData(ESpellICFRect) );
   290     
   277     
   291     //rect.iTl.iY -= 50;
   278 
   292     iICF->SetTextMargin ( 2,
   279     iICF->SetTextMargin ( 
   293     					  2,
   280     		iOwner->DataMgr()->iSpellIcfTextLeftMarginForPrtWest,
   294     					  2,
   281     		iOwner->DataMgr()->iSpellIcfTextRightMarginForPrtWest,
   295     					  2);
   282     		iOwner->DataMgr()->iSpellIcfTextTopMarginForPrtWest,
       
   283     		iOwner->DataMgr()->iSpellIcfTextBottomMarginForPrtWest );
   296  
   284  
   297     iICF->SetLineSpace( 1 );
   285     iICF->SetLineSpace( iOwner->DataMgr()->iSpellIcfTextLineSpaceMarginForPrtWest );
       
   286 
       
   287     
   298     if ( iOwner->DataMgr()->IsPortraitWest() && 
   288     if ( iOwner->DataMgr()->IsPortraitWest() && 
   299             (!iOwner->DataMgr()->IsChineseSpellMode()))
   289             (!iOwner->DataMgr()->IsChineseSpellMode()))
   300         {
   290         {
   301         iICF->SizeChangedL(rect, 
   291         iICF->SizeChangedL(rect, 
   302                       iOwner->DataMgr()->iSpellIcfTextHeightForPrtWest,
   292                       iOwner->DataMgr()->iSpellIcfTextHeightForPrtWest,