textinput/peninputgenericitut/src/peninputgenericitutdatamgr.cpp
branchRCL_3
changeset 56 8152b1f1763a
parent 50 5a1685599b76
equal deleted inserted replaced
50:5a1685599b76 56:8152b1f1763a
   345 				{
   345 				{
   346 				TAknWindowLineLayout starIcon =  AknLayoutScalable_Avkon::
   346 				TAknWindowLineLayout starIcon =  AknLayoutScalable_Avkon::
   347 								cell_ituss_key_pane_g2( 0 ).LayoutLine();
   347 								cell_ituss_key_pane_g2( 0 ).LayoutLine();
   348 				TAknLayoutRect starIconRect;
   348 				TAknLayoutRect starIconRect;
   349 				starIconRect.LayoutRect( keyrect, starIcon );                
   349 				starIconRect.LayoutRect( keyrect, starIcon );                
   350 				iStarIconRectForPrtWest = starIconRect.Rect();
   350 				iStarIconRectForPrtWest = starIconRect.Rect();          
   351 				
       
   352 				// Get the star icon rect under number mode
       
   353 				starIcon = AknLayoutScalable_Avkon::
       
   354 						cell_ituss_key_pane_g2(4).LayoutLine();
       
   355 				starIconRect.LayoutRect( keyrect, starIcon );
       
   356 				iStarIconRectInNumModeForPrtWest = starIconRect.Rect();
       
   357 				}			
   351 				}			
   358 			
   352 			
   359 			}
   353 			}
   360 		} 
   354 		} 
   361 	 
   355 	 
   567 	TAknWindowLineLayout spellIndiIcon;
   561 	TAknWindowLineLayout spellIndiIcon;
   568 	TAknLayoutRect spellIndiIconRect;
   562 	TAknLayoutRect spellIndiIconRect;
   569 	spellIndiIcon = AknLayoutScalable_Avkon::icf_edit_indi_pane_g2(0).LayoutLine();
   563 	spellIndiIcon = AknLayoutScalable_Avkon::icf_edit_indi_pane_g2(0).LayoutLine();
   570 	spellIndiIconRect.LayoutRect( icfSpellIndiPaneRect.Rect(), spellIndiIcon );
   564 	spellIndiIconRect.LayoutRect( icfSpellIndiPaneRect.Rect(), spellIndiIcon );
   571 	iSpellIndiIconWithoutTextForPrtWest = spellIndiIconRect.Rect();
   565 	iSpellIndiIconWithoutTextForPrtWest = spellIndiIconRect.Rect();
   572 	}
       
   573 
       
   574 // ---------------------------------------------------------------------------
       
   575 // Get the size of the screen
       
   576 // ---------------------------------------------------------------------------
       
   577 //
       
   578 TRect CGenericItutDataMgr::screenSize()
       
   579 	{
       
   580 	TRect rect;
       
   581 	AknLayoutUtils::LayoutMetricsRect( AknLayoutUtils::EScreen, rect );
       
   582 	return rect;
       
   583 	}
   566 	}
   584 
   567 
   585 void CGenericItutDataMgr::ReadLafInfo()
   568 void CGenericItutDataMgr::ReadLafInfo()
   586     {
   569     {
   587     // Screen
   570     // Screen
   745             					cell_vitu2_itu_pane_g1( keypadvariety ).LayoutLine();
   728             					cell_vitu2_itu_pane_g1( keypadvariety ).LayoutLine();
   746             	TAknLayoutRect shiftIconRect;
   729             	TAknLayoutRect shiftIconRect;
   747             	shiftIconRect.LayoutRect( cellrect, shiftIcon );				
   730             	shiftIconRect.LayoutRect( cellrect, shiftIcon );				
   748             	iShiftIconRect = shiftIconRect.Rect();			
   731             	iShiftIconRect = shiftIconRect.Rect();			
   749             	}
   732             	}
   750             
       
   751             // read star icon rect
       
   752             if ( i == 3 &&  j == 0 )
       
   753             	{
       
   754             	TAknWindowLineLayout starIcon =  AknLayoutScalable_Apps::
       
   755             					cell_vitu2_itu_pane_g1( keypadvariety ).LayoutLine();
       
   756             	TAknLayoutRect starIconRect;
       
   757             	starIconRect.LayoutRect( cellrect, starIcon );				
       
   758             	iStarIconRect = starIconRect.Rect();			
       
   759             	}
       
   760             
       
   761             itucellrect.LayoutRect(iKeypadRectCn, itucell);
   733             itucellrect.LayoutRect(iKeypadRectCn, itucell);
   762             cellrect = itucellrect.Rect();
   734             cellrect = itucellrect.Rect();
   763             cellrect.Move(-iKeypadRectCn.iTl.iX, -iKeypadRectCn.iTl.iY);
   735             cellrect.Move(-iKeypadRectCn.iTl.iX, -iKeypadRectCn.iTl.iY);
   764             iKeypadCellRectsCn.Append(cellrect);
   736             iKeypadCellRectsCn.Append(cellrect);
   765            
   737            
  1404             else
  1376             else
  1405                 {
  1377                 {
  1406                 return &iKeypadCellRectsForPrtWest;
  1378                 return &iKeypadCellRectsForPrtWest;
  1407                 }
  1379                 }
  1408             }
  1380             }
  1409         case EStarIconRect:
       
  1410         	{
       
  1411         	if ( IsChineseSpellMode())
       
  1412         		{
       
  1413 				return &iStarIconRect;
       
  1414         		}
       
  1415         	else
       
  1416         		{
       
  1417 				if ( iInputMode == ENumber || iInputMode == ENativeNumber )
       
  1418 					{
       
  1419 					return &iStarIconRectInNumModeForPrtWest;
       
  1420 					}
       
  1421 				else
       
  1422 					{
       
  1423 					return &iStarIconRectForPrtWest;
       
  1424 					}
       
  1425         		}
       
  1426         	}
       
  1427         case EShiftIconRect:
       
  1428         	{
       
  1429         	if ( IsChineseSpellMode())
       
  1430         		{
       
  1431 				return &iShiftIconRect;
       
  1432         		}
       
  1433         	else
       
  1434         		{
       
  1435 				return &iShiftIconRectForPrtWest;
       
  1436         		}
       
  1437         	}
       
  1438         case EKeypadLeftTextLine:
  1381         case EKeypadLeftTextLine:
  1439             {
  1382             {
  1440             if ( IsChineseSpellMode())
  1383             if ( IsChineseSpellMode())
  1441                 {
  1384                 {
  1442                 return &iVkNumText;
  1385                 return &iVkNumText;
  1875        	        }
  1818        	        }
  1876        	    else
  1819        	    else
  1877        	        {
  1820        	        {
  1878        	        return &iImIndiOuterRect;
  1821        	        return &iImIndiOuterRect;
  1879        	        }
  1822        	        }
  1880         case EStarIconRect:
       
  1881         	{
       
  1882 			return &iStarIconRect;
       
  1883         	}
       
  1884         case EShiftIconRect:
       
  1885         	{
       
  1886 			return &iShiftIconRect;
       
  1887         	}
       
  1888         case EKeypadRect:
  1823         case EKeypadRect:
  1889         	return IsChinese() ? &iKeypadRectCn : &iKeypadRect;	        	
  1824         	return IsChinese() ? &iKeypadRectCn : &iKeypadRect;	        	
  1890         case EKeypadCellRects:
  1825         case EKeypadCellRects:
  1891         	return IsChinese() ? &iKeypadCellRectsCn : &iKeypadCellRects;	
  1826         	return IsChinese() ? &iKeypadCellRectsCn : &iKeypadCellRects;	
  1892         case EKeypadLeftTextLine:
  1827         case EKeypadLeftTextLine: