textinput/peninputgenericitut/src/peninputgenericitutdatamgr.cpp
branchRCL_3
changeset 18 c8fb4cf7b3ae
parent 14 e6a39382bb9c
child 38 b1ea1642412e
equal deleted inserted replaced
14:e6a39382bb9c 18:c8fb4cf7b3ae
   214 	
   214 	
   215 	iIcfRectForPrtWest = icfRect.Rect();
   215 	iIcfRectForPrtWest = icfRect.Rect();
   216 	
   216 	
   217 	// icf indicator
   217 	// icf indicator
   218 	TAknWindowLineLayout icfIndiPaneWithText, icfIndiPaneWithoutText, 
   218 	TAknWindowLineLayout icfIndiPaneWithText, icfIndiPaneWithoutText, 
   219         indiIcon, indiText;
   219 		indiIconWithText, indiIconWithoutText;
   220 	TAknLayoutRect icfIndiPaneRectWithText, icfIndiPaneRectWithoutText, indiIconRect, indiTextRect;
   220 	TAknLayoutRect icfIndiPaneRectWithText, icfIndiPaneRectWithoutText, 
       
   221 		indiIconRectWithText, indiIconRectWithoutText;
   221 	TAknTextLineLayout indiTextLayout;
   222 	TAknTextLineLayout indiTextLayout;
   222 	
   223 	
   223 	icfIndiPaneWithText = AknLayoutScalable_Avkon::icf_edit_indi_pane(1).LayoutLine();
   224 	icfIndiPaneWithText = AknLayoutScalable_Avkon::icf_edit_indi_pane(1).LayoutLine();
   224 	icfIndiPaneRectWithText.LayoutRect(icfRect.Rect(), icfIndiPaneWithText);
   225 	icfIndiPaneRectWithText.LayoutRect(icfRect.Rect(), icfIndiPaneWithText);
   225 	iIndiPaneRectWithTextForPrtWest = icfIndiPaneRectWithText.Rect();
   226 	iIndiPaneRectWithTextForPrtWest = icfIndiPaneRectWithText.Rect();
   226 	
   227 	
   227 	icfIndiPaneWithoutText = AknLayoutScalable_Avkon::icf_edit_indi_pane(0).LayoutLine();
   228 	icfIndiPaneWithoutText = AknLayoutScalable_Avkon::icf_edit_indi_pane(0).LayoutLine();
   228 	icfIndiPaneRectWithoutText.LayoutRect(icfRect.Rect(), icfIndiPaneWithoutText);
   229 	icfIndiPaneRectWithoutText.LayoutRect(icfRect.Rect(), icfIndiPaneWithoutText);
   229 	iIndiPaneRectWithoutTextForPrtWest = icfIndiPaneRectWithoutText.Rect();
   230 	iIndiPaneRectWithoutTextForPrtWest = icfIndiPaneRectWithoutText.Rect();
   230 	
   231 	
   231 	iIndiIconRectWithTextForPrtWest = TRect( 0, 0, 60, 20 );
   232 	indiIconWithText = AknLayoutScalable_Avkon::icf_edit_indi_pane_g2(1).LayoutLine();
   232 	iIndiIconRectWithoutTextForPrtWest = TRect( 0, 0, 60, 20 );
   233 	indiIconRectWithText.LayoutRect( icfIndiPaneRectWithText.Rect(), indiIconWithText );
       
   234 	iIndiIconRectWithTextForPrtWest = indiIconRectWithText.Rect();
       
   235 	
       
   236 	indiIconWithoutText = AknLayoutScalable_Avkon::icf_edit_indi_pane_g2(0).LayoutLine();
       
   237 	indiIconRectWithoutText.LayoutRect( 
       
   238 			icfIndiPaneRectWithoutText.Rect(), indiIconWithoutText );
       
   239 	iIndiIconRectWithoutTextForPrtWest = indiIconRectWithoutText.Rect();
   233 	
   240 	
   234 	indiTextLayout = AknLayoutScalable_Avkon::icf_edit_indi_pane_t1(0).LayoutLine();
   241 	indiTextLayout = AknLayoutScalable_Avkon::icf_edit_indi_pane_t1(0).LayoutLine();
   235 	iIndiTextForPrtWest = indiTextLayout;
   242 	iIndiTextForPrtWest = indiTextLayout;
   236 	
   243 	
   237 	// icf text
   244 	// icf text
   418 	queryICFPaneRect.LayoutRect( queryTopPaneRect.Rect(), queryICFPane );
   425 	queryICFPaneRect.LayoutRect( queryTopPaneRect.Rect(), queryICFPane );
   419 	iSpellICFRectForPrtWest = queryICFPaneRect.Rect();
   426 	iSpellICFRectForPrtWest = queryICFPaneRect.Rect();
   420 	
   427 	
   421 	// Middle pane
   428 	// Middle pane
   422 	TRect middleButtonPaneRect = spellwndtrect.Rect();
   429 	TRect middleButtonPaneRect = spellwndtrect.Rect();
   423 	middleButtonPaneRect.Move( 5, 2 );
   430 	TInt leftMargin = itucellrect.Rect().iTl.iX;
       
   431 	middleButtonPaneRect.Move( leftMargin, 0 );
   424 	
   432 	
   425 	middleBtn = AknLayoutScalable_Avkon::cell_ituss_key_pane(3).LayoutLine();
   433 	middleBtn = AknLayoutScalable_Avkon::cell_ituss_key_pane(3).LayoutLine();
   426 	middleBtnRect.LayoutRect( bottompanerect.Rect(), middleBtn );
   434 	middleBtnRect.LayoutRect( bottompanerect.Rect(), middleBtn );
   427 	middleInnerBtn = AknLayoutScalable_Avkon::bg_cell_ituss_key_g1(5).LayoutLine();
   435 	middleInnerBtn = AknLayoutScalable_Avkon::bg_cell_ituss_key_g1(5).LayoutLine();
   428 	
   436 	
   451 	
   459 	
   452 	// Bottom pane
   460 	// Bottom pane
   453 	TRect cellSpellRect;
   461 	TRect cellSpellRect;
   454 	cellSpellRect.iTl.iX = middleButtonPaneRect.iTl.iX;
   462 	cellSpellRect.iTl.iX = middleButtonPaneRect.iTl.iX;
   455 	cellSpellRect.iTl.iY = middleButtonPaneRect.iTl.iY + 
   463 	cellSpellRect.iTl.iY = middleButtonPaneRect.iTl.iY + 
   456 			itucellrect.Rect().Height() * 5 + 10;
   464 			itucellrect.Rect().Height() * 5 + 7;
   457 	cellSpellRect.SetHeight( itucellrect.Rect().Height());
   465 	cellSpellRect.SetHeight( itucellrect.Rect().Height());
   458 	cellSpellRect.SetWidth( itucellrect.Rect().Width());
   466 	cellSpellRect.SetWidth( itucellrect.Rect().Width());
   459 		
   467 		
   460 	// Left
   468 	// Left
   461 	bottomButton.LayoutRect( cellSpellRect, ituinnercell );
   469 	bottomButton.LayoutRect( cellSpellRect, ituinnercell );
   514 	        * maxSpellRow - iSpellIcfTextTopMarginForPrtWest;
   522 	        * maxSpellRow - iSpellIcfTextTopMarginForPrtWest;
   515 	
   523 	
   516 	icfSpellIndiPane = AknLayoutScalable_Avkon::icf_edit_indi_pane(0).LayoutLine();
   524 	icfSpellIndiPane = AknLayoutScalable_Avkon::icf_edit_indi_pane(0).LayoutLine();
   517 	icfSpellIndiPaneRect.LayoutRect(queryICFPaneRect.Rect(), icfSpellIndiPane);
   525 	icfSpellIndiPaneRect.LayoutRect(queryICFPaneRect.Rect(), icfSpellIndiPane);
   518 	iSpellIndiPaneWithoutTextForPrtWest = icfSpellIndiPaneRect.Rect();
   526 	iSpellIndiPaneWithoutTextForPrtWest = icfSpellIndiPaneRect.Rect();
   519 	iSpellIndiIconWithoutTextForPrtWest = TRect( 0, 0, 50, 17 );
   527 	
       
   528 	TAknWindowLineLayout spellIndiIcon;
       
   529 	TAknLayoutRect spellIndiIconRect;
       
   530 	spellIndiIcon = AknLayoutScalable_Avkon::icf_edit_indi_pane_g2(0).LayoutLine();
       
   531 	spellIndiIconRect.LayoutRect( icfSpellIndiPaneRect.Rect(), spellIndiIcon );
       
   532 	iSpellIndiIconWithoutTextForPrtWest = spellIndiIconRect.Rect();
   520 	}
   533 	}
   521 
   534 
   522 void CGenericItutDataMgr::ReadLafInfo()
   535 void CGenericItutDataMgr::ReadLafInfo()
   523     {
   536     {
   524     // Screen
   537     // Screen
  1062     iCancelRect = btnCancleRect.Rect();
  1075     iCancelRect = btnCancleRect.Rect();
  1063     iSpellICFRect = ICFAreaRect.Rect();
  1076     iSpellICFRect = ICFAreaRect.Rect();
  1064     iSpellClrRect = btnClrRect.Rect();
  1077     iSpellClrRect = btnClrRect.Rect();
  1065     iSpellClrInnerRect = btnClrInnerRect.Rect();  
  1078     iSpellClrInnerRect = btnClrInnerRect.Rect();  
  1066     
  1079     
  1067     iBtnTextFormat  = iVkAlphaText1;//btnOKText;
  1080     //iBtnTextFormat  = iVkAlphaText1;//btnOKText;
  1068 	iBtnTextFormat1 = iVkAlphaText1;//btnCancleText;
  1081 	//iBtnTextFormat1 = iVkAlphaText1;//btnCancleText;
  1069 #ifdef LAF_MODIFY	
  1082     iBtnTextFormat = AknLayoutScalable_Apps::popup_vitu2_query_button_pane_t1(0).LayoutLine();
  1070 // manully ajust.	
  1083     iBtnTextFormat1 = AknLayoutScalable_Apps::popup_vitu2_query_button_pane_t1(0).LayoutLine();
  1071     iBtnTextFormat.iFont = btnOKText.iFont;
  1084 	
  1072     iBtnTextFormat.il = iBtnTextFormat.il - 30 > 0? iBtnTextFormat.il - 30 : 0;
       
  1073     iBtnTextFormat.iB = 10;
       
  1074 	iBtnTextFormat1.iFont = btnCancleText.iFont;
       
  1075     iBtnTextFormat1.il = iBtnTextFormat1.il - 30 > 0? iBtnTextFormat1.il - 30 : 0;
       
  1076 	iBtnTextFormat1.iB = 10;
       
  1077 	
       
  1078 //	TInt offsetY = 50;
       
  1079 //    iSpellICFRect.Move(0,-offsetY);
       
  1080 //    iSpellClrRect.Move(0,-offsetY);
       
  1081 //    iSpellClrInnerRect.Move( 0, -offsetY );
       
  1082 #endif //LAF_MODIFY
       
  1083 	
  1085 	
  1084     // just test if there is size change of added ctrls
  1086     // just test if there is size change of added ctrls
  1085     iSendRect = iArrowLeftRect;
  1087     iSendRect = iArrowLeftRect;
  1086     iDisconnRect = iArrowRightRect;
  1088     iDisconnRect = iArrowRightRect;
  1087     // end test    
  1089     // end test