textinput/peninputvkbcn/ctrlsrc/peninputvkbclientarea.cpp
branchRCL_3
changeset 56 8152b1f1763a
parent 46 bd83ceabce89
equal deleted inserted replaced
50:5a1685599b76 56:8152b1f1763a
   950         }
   950         }
   951     TRect optionRect;
   951     TRect optionRect;
   952     TRect compositionRect;
   952     TRect compositionRect;
   953     TRect innerRect;
   953     TRect innerRect;
   954     
   954     
   955 	// Get composition area rect from laf
   955     // Get composition area rect from laf
   956 	TRect compositionAreaFromLaf = iLafMgr->compositionLayoutData();
   956 	TRect compositionAreaFromLaf = iLafMgr->compositionLayoutData();
   957 	TInt GapValue = compositionAreaFromLaf.iTl.iX;
   957 	TInt GapValue = compositionAreaFromLaf.iTl.iX;
   958 	
   958     
   959     if (range == ERangeNative)
   959     if (range == ERangeNative)
   960         {
   960         {
   961         if ( layoutType == EAknFepVkbImCnZhuyin )
   961         if ( layoutType == EAknFepVkbImCnZhuyin )
   962             {
   962             {
   963             // Option Btn
   963             // Option Btn
  1009             
  1009             
  1010             compositionRect.iTl = TPoint(optionRect.iBr.iX, optionRect.iTl.iY);
  1010             compositionRect.iTl = TPoint(optionRect.iBr.iX, optionRect.iTl.iY);
  1011             compositionRect.SetSize(TSize(btnWidth * 3 + iCellAidGap - GapValue, 
  1011             compositionRect.SetSize(TSize(btnWidth * 3 + iCellAidGap - GapValue, 
  1012             		candidateHeight));
  1012             		candidateHeight));
  1013             }
  1013             }
  1014 		else
  1014 	    else
  1015 			{	
  1015 	        {
  1016 			compositionRect.iTl = Rect().iTl;
  1016 	        compositionRect.iTl = Rect().iTl;
  1017 			// move the composition area rect with gap
  1017 	        // move the composition area rect with gap
  1018 			compositionRect.iTl.iX += GapValue;
  1018 			compositionRect.iTl.iX += GapValue;
  1019 			compositionRect.SetSize( 
  1019 			compositionRect.SetSize( 
  1020 					TSize( btnWidth * 3 + iCellAidGap - GapValue * 2, candidateHeight ));
  1020 					TSize( btnWidth * 3 + iCellAidGap - GapValue * 2, candidateHeight ));
  1021 			}
  1021 	        }
  1022         iCompositionField->SetReady(ETrue);
  1022         iCompositionField->SetReady(ETrue);
  1023         iCompositionField->Hide(EFalse);
  1023         iCompositionField->Hide(EFalse);
  1024         iCompositionField->SizeChanged(compositionRect);    
  1024         iCompositionField->SizeChanged(compositionRect);    
  1025         
  1025         
  1026         TRect candidateRect;
  1026         TRect candidateRect;
  1055             {
  1055             {
  1056             iVkbBoardLeftTop = TPoint(optionRect.iTl.iX, optionRect.iBr.iY);
  1056             iVkbBoardLeftTop = TPoint(optionRect.iTl.iX, optionRect.iBr.iY);
  1057             }
  1057             }
  1058         else
  1058         else
  1059             {
  1059             {
  1060             // move the gap
  1060              // move the gap
  1061 			compositionRect.iTl.iX -= GapValue;
  1061 			compositionRect.iTl.iX -= GapValue;
  1062             iVkbBoardLeftTop = TPoint(compositionRect.iTl.iX, compositionRect.iBr.iY);
  1062             iVkbBoardLeftTop = TPoint(compositionRect.iTl.iX, compositionRect.iBr.iY);
  1063             }
  1063             }
  1064         }
  1064         }
  1065     //TPoint vkbLeftTop = iVkbBoardLeftTop;
  1065     //TPoint vkbLeftTop = iVkbBoardLeftTop;
  1078     vkbCtrl->SetFont( iLafMgr->KeyTextFont() );
  1078     vkbCtrl->SetFont( iLafMgr->KeyTextFont() );
  1079 	vkbCtrl->SetTextLineLayout( iLafMgr->KeyTextLayout() );
  1079 	vkbCtrl->SetTextLineLayout( iLafMgr->KeyTextLayout() );
  1080     vkbCtrl->SetTextFormat( iLafMgr->KeyTextLayout() );  //Read laf 
  1080     vkbCtrl->SetTextFormat( iLafMgr->KeyTextLayout() );  //Read laf 
  1081     
  1081     
  1082     TInt tempHeightForFSQ = btnHeight;
  1082     TInt tempHeightForFSQ = btnHeight;
  1083     // Modify begin
       
  1084     //if (UiLayout()->PenInputType() == EPluginInputModeFSQ )
  1083     //if (UiLayout()->PenInputType() == EPluginInputModeFSQ )
  1085     //	{
  1084     //	{
  1086     //    tempHeightForFSQ = btnHeight + 3;	
  1085     //    tempHeightForFSQ = btnHeight + 3;	
  1087     //	}
  1086     //	}
  1088     
  1087     
  1089     TPoint rangeBarRefPoint = TPoint(vkbRect.iTl.iX, vkbRect.iBr.iY);
  1088     TPoint rangeBarRefPoint = TPoint(vkbRect.iTl.iX, vkbRect.iBr.iY);
  1090     // Modify begin
       
  1091     //rangeBarRefPoint.iY += yAxisOffset;
  1089     //rangeBarRefPoint.iY += yAxisOffset;
  1092     
  1090     
  1093     if (range != ERangeNative)
  1091     if (range != ERangeNative)
  1094         {
  1092         {
  1095         TRect shiftRect;
  1093         TRect shiftRect;
  1096         shiftRect.iTl = TPoint(Rect().iTl.iX, vkbRect.iBr.iY);
  1094         shiftRect.iTl = TPoint(Rect().iTl.iX, vkbRect.iBr.iY);
  1097         // Modify begin
       
  1098         //shiftRect.iTl.iY += yAxisOffset; 
  1095         //shiftRect.iTl.iY += yAxisOffset; 
  1099         shiftRect.SetSize(TSize(btnWidth, tempHeightForFSQ)); 
  1096         shiftRect.SetSize(TSize(btnWidth, tempHeightForFSQ)); 
  1100         AknPenImageUtils::CalculateGraphicRect( shiftRect, innerRect );       
  1097         AknPenImageUtils::CalculateGraphicRect( shiftRect, innerRect );       
  1101         ControlById( EAknFepVkbCtrlIdShiftBtn)->SetReady(ETrue);    
  1098         ControlById( EAknFepVkbCtrlIdShiftBtn)->SetReady(ETrue);    
  1102         static_cast<CAknFepCtrlMultiModeButton*>(ControlById( EAknFepVkbCtrlIdShiftBtn))->
  1099         static_cast<CAknFepCtrlMultiModeButton*>(ControlById( EAknFepVkbCtrlIdShiftBtn))->