textinput/peninputsplititut/src/peninputsplititutlayout.cpp
branchRCL_3
changeset 7 a47de9135b21
parent 0 eb1f2e154e89
child 10 6defe5d1bd39
equal deleted inserted replaced
3:f5a1e66df979 7:a47de9135b21
    84     delete iWesternUiMgr;
    84     delete iWesternUiMgr;
    85     delete iWindowMgr;
    85     delete iWindowMgr;
    86     }
    86     }
    87 
    87 
    88 // ---------------------------------------------------------------------------
    88 // ---------------------------------------------------------------------------
       
    89 // CSplitItutUiLayout::OnAppEditorTextComing
       
    90 // (other items were commented in a header)
       
    91 // ---------------------------------------------------------------------------
       
    92 //
       
    93 TInt CSplitItutUiLayout::OnAppEditorTextComing(const TFepInputContextFieldData& aData)
       
    94     {
       
    95 	TInt err = 0;
       
    96 	if ( iDataMgr->IsSpellMode())
       
    97 		{
       
    98 	    // Update the icf text
       
    99 	    err = iWindowMgr->OnAppEditorTextComing( aData );
       
   100 		}
       
   101 
       
   102 	// notify icf has text or not
       
   103     if ( UiMgr()->CurrentState() &&
       
   104          UiMgr()->CurrentState()->StateType() == CSplitItutUiMgrBase::EStateSpelling )
       
   105         {
       
   106         TRAP_IGNORE(UiMgr()->HandleCommandL(EItutCmdCheckIcfEmpty, NULL));
       
   107         }
       
   108  
       
   109      return err;
       
   110     }
       
   111 
       
   112 // ---------------------------------------------------------------------------
    89 // CSplitItutUiLayout::ConstructL
   113 // CSplitItutUiLayout::ConstructL
    90 // (other items were commented in a header)
   114 // (other items were commented in a header)
    91 // ---------------------------------------------------------------------------
   115 // ---------------------------------------------------------------------------
    92 //
   116 //
    93 void CSplitItutUiLayout::ConstructL(const TAny* aInitData)
   117 void CSplitItutUiLayout::ConstructL(const TAny* aInitData)
   182             break;
   206             break;
   183         case ECmdPenInputFingerKeyPress:
   207         case ECmdPenInputFingerKeyPress:
   184         case ECmdPenInputFingerLongKeyPress:
   208         case ECmdPenInputFingerLongKeyPress:
   185         case ECmdPenInputCase:
   209         case ECmdPenInputCase:
   186         case ECmdPenInputFingerMatchSelection:
   210         case ECmdPenInputFingerMatchSelection:
       
   211         case ECmdPenInputFingerSpelling:
   187             {
   212             {
   188             if (UiMgr())
   213             if (UiMgr())
   189                 {
   214                 {
   190                 TInt handled = KErrNone;
   215                 TInt handled = KErrNone;
   191                 TRAP_IGNORE(handled = UiMgr()->HandleCommandL(aCmd, aData));
   216                 TRAP_IGNORE(handled = UiMgr()->HandleCommandL(aCmd, aData));
   205             break;
   230             break;
   206         case ECmdPenInputNoFreeSpace:
   231         case ECmdPenInputNoFreeSpace:
   207         	{
   232         	{
   208             TRAP_IGNORE(ChineseUiManager()->HandleCommandL(ECmdPenInputNoFreeSpace, NULL));
   233             TRAP_IGNORE(ChineseUiManager()->HandleCommandL(ECmdPenInputNoFreeSpace, NULL));
   209         	}        	
   234         	}        	
       
   235         case ECmdPenInputSetPromptText: 
   210         case ECmdPenInputFingerMatchIndicator:
   236         case ECmdPenInputFingerMatchIndicator:
   211         case ECmdPenInputSendEditMenuData:
   237         case ECmdPenInputSendEditMenuData:
   212         case ECmdPenInputEnableSettingBtn:
   238         case ECmdPenInputEnableSettingBtn:
   213         case ECmdPenInputDimArrowKeys:
   239         case ECmdPenInputDimArrowKeys:
   214         case ECmdPenInputRotation:
   240         case ECmdPenInputRotation:
   420     {
   446     {
   421     CFepUiLayout::OnActivate();
   447     CFepUiLayout::OnActivate();
   422 
   448 
   423     SetRect(TItutDataConverter::AnyToRect(iDataMgr->RequestData(ELayoutRect)));
   449     SetRect(TItutDataConverter::AnyToRect(iDataMgr->RequestData(ELayoutRect)));
   424     TPoint offset = TItutDataConverter::AnyToPoint(iDataMgr->RequestData(ELayoutOffset));
   450     TPoint offset = TItutDataConverter::AnyToPoint(iDataMgr->RequestData(ELayoutOffset));
       
   451     
       
   452     if(iDataMgr->IsSpellMode())
       
   453         {
       
   454         offset = TPoint(0,0);
       
   455         }
       
   456     
   425     LayoutOwner()->SetPosition( offset );   
   457     LayoutOwner()->SetPosition( offset );   
   426 
   458 
   427     iWindowMgr->OnActivate();
   459     iWindowMgr->OnActivate();
   428     }
   460     }
   429 
   461 
   467 // ---------------------------------------------------------------------------
   499 // ---------------------------------------------------------------------------
   468 //
   500 //
   469 void CSplitItutUiLayout::ApplyVariantLafDataL(TBool aResolutionChange)
   501 void CSplitItutUiLayout::ApplyVariantLafDataL(TBool aResolutionChange)
   470     {
   502     {
   471     iWindowMgr->ApplyVariantLafDataL(aResolutionChange);
   503     iWindowMgr->ApplyVariantLafDataL(aResolutionChange);
       
   504     }
       
   505 
       
   506 // ---------------------------------------------------------------------------
       
   507 // CSplitItutUiLayout::ApplyVariantLafDataForSpellL
       
   508 // (other items were commented in a header)
       
   509 // ---------------------------------------------------------------------------
       
   510 //
       
   511 void CSplitItutUiLayout::ApplyVariantLafDataForSpellL()
       
   512     {
       
   513     iWindowMgr->ApplyVariantLafDataForSpellL();
   472     }
   514     }
   473     
   515     
   474 // ---------------------------------------------------------------------------
   516 // ---------------------------------------------------------------------------
   475 // CSplitItutUiLayout::UiManager
   517 // CSplitItutUiLayout::UiManager
   476 // (other items were commented in a header)
   518 // (other items were commented in a header)