fep/aknfep/src/AknFepUiInputStatePredictiveInputQwertyChinesePhrase.cpp
branchRCL_3
changeset 56 8152b1f1763a
parent 50 5a1685599b76
equal deleted inserted replaced
50:5a1685599b76 56:8152b1f1763a
    47     MAknFepUICtrlContainerChinese* uiContainer = UIContainer();
    47     MAknFepUICtrlContainerChinese* uiContainer = UIContainer();
    48     // set container window position to follow cursor
    48     // set container window position to follow cursor
    49     TPoint baseLine = TPoint(0,0);
    49     TPoint baseLine = TPoint(0,0);
    50     TInt height = 0;
    50     TInt height = 0;
    51     TInt ascent = 0;
    51     TInt ascent = 0;
    52 
       
    53     uiContainer->FocusCandidatePane(ETrue);
       
    54     uiContainer->SetLayout(MAknFepUICtrlContainerChinese::ELayoutCandidate);
       
    55     
       
    56     TRAPD(ret,iOwner->FepMan()->GetScreenCoordinatesL(baseLine,height,ascent));
    52     TRAPD(ret,iOwner->FepMan()->GetScreenCoordinatesL(baseLine,height,ascent));
    57     if (ret == KErrNone)
    53     if (ret == KErrNone)
    58         {
    54         {
    59         uiContainer->SetContainerPosition(baseLine, height);    
    55         uiContainer->SetContainerPosition(baseLine, height);    
    60         }
    56         }
       
    57 
       
    58     uiContainer->FocusCandidatePane(ETrue);
       
    59     uiContainer->SetLayout(MAknFepUICtrlContainerChinese::ELayoutCandidate);
    61 
    60 
    62     CPtiEngine* ptiengine = iOwner->PtiEngine();
    61     CPtiEngine* ptiengine = iOwner->PtiEngine();
    63     MAknFepUICtrlCandidatePane* candidatePane = uiContainer->CandidatePane();
    62     MAknFepUICtrlCandidatePane* candidatePane = uiContainer->CandidatePane();
    64     
    63     
    65     // for some reason needs to feed back to ptiengine current Chinese phrase just before get the prediction
    64     // for some reason needs to feed back to ptiengine current Chinese phrase just before get the prediction