1002 innerRect, |
1006 innerRect, |
1003 ETrue); |
1007 ETrue); |
1004 } |
1008 } |
1005 |
1009 |
1006 compositionRect.iTl = TPoint(optionRect.iBr.iX, optionRect.iTl.iY); |
1010 compositionRect.iTl = TPoint(optionRect.iBr.iX, optionRect.iTl.iY); |
1007 compositionRect.SetSize(TSize(btnWidth * 3 + iCellAidGap, candidateHeight)); |
1011 compositionRect.SetSize(TSize(btnWidth * 3 + iCellAidGap - GapValue, |
1008 } |
1012 candidateHeight)); |
1009 else |
1013 } |
1010 { |
1014 else |
1011 compositionRect.iTl = Rect().iTl; |
1015 { |
1012 compositionRect.SetSize(TSize(btnWidth * 3 + iCellAidGap, candidateHeight)); |
1016 compositionRect.iTl = Rect().iTl; |
1013 } |
1017 // move the composition area rect with gap |
|
1018 compositionRect.iTl.iX += GapValue; |
|
1019 compositionRect.SetSize( |
|
1020 TSize( btnWidth * 3 + iCellAidGap - GapValue * 2, candidateHeight )); |
|
1021 } |
1014 iCompositionField->SetReady(ETrue); |
1022 iCompositionField->SetReady(ETrue); |
1015 iCompositionField->Hide(EFalse); |
1023 iCompositionField->Hide(EFalse); |
1016 iCompositionField->SizeChanged(compositionRect); |
1024 iCompositionField->SizeChanged(compositionRect); |
1017 |
1025 |
1018 TRect candidateRect; |
1026 TRect candidateRect; |
1047 { |
1055 { |
1048 iVkbBoardLeftTop = TPoint(optionRect.iTl.iX, optionRect.iBr.iY); |
1056 iVkbBoardLeftTop = TPoint(optionRect.iTl.iX, optionRect.iBr.iY); |
1049 } |
1057 } |
1050 else |
1058 else |
1051 { |
1059 { |
|
1060 // move the gap |
|
1061 compositionRect.iTl.iX -= GapValue; |
1052 iVkbBoardLeftTop = TPoint(compositionRect.iTl.iX, compositionRect.iBr.iY); |
1062 iVkbBoardLeftTop = TPoint(compositionRect.iTl.iX, compositionRect.iBr.iY); |
1053 } |
1063 } |
1054 } |
1064 } |
1055 //TPoint vkbLeftTop = iVkbBoardLeftTop; |
1065 //TPoint vkbLeftTop = iVkbBoardLeftTop; |
1056 iVkbBoardLeftTop.iX += UiLayout()->PenInputType() == EPluginInputModeFSQ ? |
1066 iVkbBoardLeftTop.iX += UiLayout()->PenInputType() == EPluginInputModeFSQ ? |
1068 vkbCtrl->SetFont( iLafMgr->KeyTextFont() ); |
1078 vkbCtrl->SetFont( iLafMgr->KeyTextFont() ); |
1069 vkbCtrl->SetTextLineLayout( iLafMgr->KeyTextLayout() ); |
1079 vkbCtrl->SetTextLineLayout( iLafMgr->KeyTextLayout() ); |
1070 vkbCtrl->SetTextFormat( iLafMgr->KeyTextLayout() ); //Read laf |
1080 vkbCtrl->SetTextFormat( iLafMgr->KeyTextLayout() ); //Read laf |
1071 |
1081 |
1072 TInt tempHeightForFSQ = btnHeight; |
1082 TInt tempHeightForFSQ = btnHeight; |
1073 if (UiLayout()->PenInputType() == EPluginInputModeFSQ ) |
1083 // Modify begin |
1074 { |
1084 //if (UiLayout()->PenInputType() == EPluginInputModeFSQ ) |
1075 tempHeightForFSQ = btnHeight + 3; |
1085 // { |
1076 } |
1086 // tempHeightForFSQ = btnHeight + 3; |
|
1087 // } |
1077 |
1088 |
1078 TPoint rangeBarRefPoint = TPoint(vkbRect.iTl.iX, vkbRect.iBr.iY); |
1089 TPoint rangeBarRefPoint = TPoint(vkbRect.iTl.iX, vkbRect.iBr.iY); |
1079 rangeBarRefPoint.iY += yAxisOffset; |
1090 // Modify begin |
|
1091 //rangeBarRefPoint.iY += yAxisOffset; |
1080 |
1092 |
1081 if (range != ERangeNative) |
1093 if (range != ERangeNative) |
1082 { |
1094 { |
1083 TRect shiftRect; |
1095 TRect shiftRect; |
1084 shiftRect.iTl = TPoint(Rect().iTl.iX, vkbRect.iBr.iY); |
1096 shiftRect.iTl = TPoint(Rect().iTl.iX, vkbRect.iBr.iY); |
1085 shiftRect.iTl.iY += yAxisOffset; |
1097 // Modify begin |
|
1098 //shiftRect.iTl.iY += yAxisOffset; |
1086 shiftRect.SetSize(TSize(btnWidth, tempHeightForFSQ)); |
1099 shiftRect.SetSize(TSize(btnWidth, tempHeightForFSQ)); |
1087 AknPenImageUtils::CalculateGraphicRect( shiftRect, innerRect ); |
1100 AknPenImageUtils::CalculateGraphicRect( shiftRect, innerRect ); |
1088 ControlById( EAknFepVkbCtrlIdShiftBtn)->SetReady(ETrue); |
1101 ControlById( EAknFepVkbCtrlIdShiftBtn)->SetReady(ETrue); |
1089 static_cast<CAknFepCtrlMultiModeButton*>(ControlById( EAknFepVkbCtrlIdShiftBtn))-> |
1102 static_cast<CAknFepCtrlMultiModeButton*>(ControlById( EAknFepVkbCtrlIdShiftBtn))-> |
1090 SizeChanged(shiftRect, innerRect, ETrue); |
1103 SizeChanged(shiftRect, innerRect, ETrue); |