textinput/peninputsplititut/src/peninputsplititutdatamgr.cpp
branchRCL_3
changeset 11 c8fb4cf7b3ae
parent 9 e6a39382bb9c
equal deleted inserted replaced
9:e6a39382bb9c 11:c8fb4cf7b3ae
   314 
   314 
   315     spellwnd = AknLayoutScalable_Avkon::popup_fep_ituss_window(1).LayoutLine();
   315     spellwnd = AknLayoutScalable_Avkon::popup_fep_ituss_window(1).LayoutLine();
   316     spellwndtrect.LayoutRect(rect, spellwnd);    
   316     spellwndtrect.LayoutRect(rect, spellwnd);    
   317     
   317     
   318     // icf in spell mode
   318     // icf in spell mode
   319     TAknWindowLineLayout icfpane, querypane, focuspane, 
   319     TAknWindowLineLayout icfpane, focuspane, 
   320 		bottomInnerBtn, middleInnerBtn, middleBtn;
   320 		bottomInnerBtn, middleInnerBtn, middleBtn;
   321     TAknLayoutRect icfpaneRect, querypaneRect, focuspaneRect, 
   321     TAknLayoutRect icfpaneRect, focuspaneRect, 
   322 		bottomButton, bottomInnerRect, middleBtnRect, okBtnRect, cancelBtnRect;
   322 		bottomButton, bottomInnerRect, middleBtnRect, okBtnRect, cancelBtnRect;
   323     
   323     
   324     icfpane = AknLayoutScalable_Avkon::popup_fep_vtchi_icf_pane(1).LayoutLine();
   324     icfpane = AknLayoutScalable_Avkon::popup_fep_vtchi_icf_pane(1).LayoutLine();
   325     icfpaneRect.LayoutRect(rect, icfpane);
   325     icfpaneRect.LayoutRect(rect, icfpane);
   326     
   326     
   327     querypane = AknLayoutScalable_Avkon::vtchi_query_pane().LayoutLine();
       
   328     querypaneRect.LayoutRect(icfpaneRect.Rect(), querypane);
       
   329         
       
   330     focuspane = AknLayoutScalable_Avkon::vtchi_query_pane(0).LayoutLine();
   327     focuspane = AknLayoutScalable_Avkon::vtchi_query_pane(0).LayoutLine();
   331     focuspaneRect.LayoutRect(querypaneRect.Rect(), focuspane);
   328     focuspaneRect.LayoutRect(icfpaneRect.Rect(), focuspane);
   332     iSpellICFRect = focuspaneRect.Rect();
   329     iSpellICFRect = focuspaneRect.Rect();
   333     
   330     
   334     // Middle pane
   331     // Middle pane
   335 	TRect middleButtonPaneRect = spellwndtrect.Rect();
   332 	TRect middleButtonPaneRect = spellwndtrect.Rect();
   336 	middleButtonPaneRect.Move( 5, 2 );
   333 	TInt leftMargin = itucellrect.Rect().iTl.iX;
       
   334 	middleButtonPaneRect.Move( leftMargin, 0 );
   337 	
   335 	
   338 	middleBtn = AknLayoutScalable_Avkon::cell_ituss_key_pane(3).LayoutLine();
   336 	middleBtn = AknLayoutScalable_Avkon::cell_ituss_key_pane(3).LayoutLine();
   339 	middleBtnRect.LayoutRect( splitpanerect.Rect(), middleBtn );
   337 	middleBtnRect.LayoutRect( splitpanerect.Rect(), middleBtn );
   340 	middleInnerBtn = AknLayoutScalable_Avkon::bg_cell_ituss_key_g1(5).LayoutLine();
   338 	middleInnerBtn = AknLayoutScalable_Avkon::bg_cell_ituss_key_g1(5).LayoutLine();
   341 	
   339 	
   359     
   357     
   360     // Bottom pane
   358     // Bottom pane
   361 	TRect cellSpellRect;
   359 	TRect cellSpellRect;
   362 	cellSpellRect.iTl.iX = middleButtonPaneRect.iTl.iX;
   360 	cellSpellRect.iTl.iX = middleButtonPaneRect.iTl.iX;
   363 	cellSpellRect.iTl.iY = middleButtonPaneRect.iTl.iY + 
   361 	cellSpellRect.iTl.iY = middleButtonPaneRect.iTl.iY + 
   364 			itucellrect.Rect().Height() * 5 + 10;
   362 			itucellrect.Rect().Height() * 5 + 7;
   365 	cellSpellRect.SetHeight( itucellrect.Rect().Height());
   363 	cellSpellRect.SetHeight( itucellrect.Rect().Height());
   366 	cellSpellRect.SetWidth( itucellrect.Rect().Width());
   364 	cellSpellRect.SetWidth( itucellrect.Rect().Width());
   367 
   365 
   368 	// Left
   366 	// Left
   369 	bottomButton.LayoutRect( cellSpellRect, ituinnercell );
   367 	bottomButton.LayoutRect( cellSpellRect, ituinnercell );
   388 	
   386 	
   389 	bottomInnerRect.LayoutRect( bottomButton.Rect(), bottomInnerBtn );
   387 	bottomInnerRect.LayoutRect( bottomButton.Rect(), bottomInnerBtn );
   390 	iSpellBackSpcaceInner = bottomInnerRect.Rect();
   388 	iSpellBackSpcaceInner = bottomInnerRect.Rect();
   391     
   389     
   392 	// icf indicator
   390 	// icf indicator
   393 	TAknWindowLineLayout icfIndiPaneWithoutText, indiIcon, indiText;
   391 	TAknWindowLineLayout icfIndiPaneWithoutText;
   394 	TAknLayoutRect icfIndiPaneRectWithoutText, indiIconRect, indiTextRect;
   392 	TAknLayoutRect icfIndiPaneRectWithoutText;
   395 	TAknTextLineLayout indiTextLayout;
   393 	TAknTextLineLayout indiTextLayout;
   396 	
   394 	
   397 	icfIndiPaneWithoutText = AknLayoutScalable_Avkon::icf_edit_indi_pane(0).LayoutLine();
   395 	icfIndiPaneWithoutText = AknLayoutScalable_Avkon::icf_edit_indi_pane(0).LayoutLine();
   398 	icfIndiPaneRectWithoutText.LayoutRect(icfpaneRect.Rect(), icfIndiPaneWithoutText);
   396 	icfIndiPaneRectWithoutText.LayoutRect( focuspaneRect.Rect(), icfIndiPaneWithoutText );
   399 	iIndiPaneRectWithoutTextForPrtWest = icfIndiPaneRectWithoutText.Rect();
   397 	iIndiPaneRectWithoutTextForPrtWest = icfIndiPaneRectWithoutText.Rect();
   400 	
   398 	
   401 	iIndiIconRectWithoutTextForPrtWest = TRect( 0, 0, 60, 20 );
   399 	TAknWindowLineLayout spellIndiIcon;
       
   400 	TAknLayoutRect spellIndiIconRect;
       
   401 	spellIndiIcon = AknLayoutScalable_Avkon::icf_edit_indi_pane_g2(0).LayoutLine();
       
   402 	spellIndiIconRect.LayoutRect( icfIndiPaneRectWithoutText.Rect(), spellIndiIcon );
       
   403 	iIndiIconRectWithoutTextForPrtWest = spellIndiIconRect.Rect();
   402 	
   404 	
   403 	indiTextLayout = AknLayoutScalable_Avkon::icf_edit_indi_pane_t1(0).LayoutLine();
   405 	indiTextLayout = AknLayoutScalable_Avkon::icf_edit_indi_pane_t1(0).LayoutLine();
   404 	iIndiTextForPrtWest = indiTextLayout;  
   406 	iIndiTextForPrtWest = indiTextLayout;  
   405     
   407     
   406 	// ICF text line info
   408 	// ICF text line info