textinput/peninputgenericitut/src/peninputgenericitutdatamgr.cpp
branchRCL_3
changeset 50 5a1685599b76
parent 46 bd83ceabce89
child 56 8152b1f1763a
equal deleted inserted replaced
46:bd83ceabce89 50:5a1685599b76
   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();
   351 				}			
   357 				}			
   352 			
   358 			
   353 			}
   359 			}
   354 		} 
   360 		} 
   355 	 
   361 	 
   561 	TAknWindowLineLayout spellIndiIcon;
   567 	TAknWindowLineLayout spellIndiIcon;
   562 	TAknLayoutRect spellIndiIconRect;
   568 	TAknLayoutRect spellIndiIconRect;
   563 	spellIndiIcon = AknLayoutScalable_Avkon::icf_edit_indi_pane_g2(0).LayoutLine();
   569 	spellIndiIcon = AknLayoutScalable_Avkon::icf_edit_indi_pane_g2(0).LayoutLine();
   564 	spellIndiIconRect.LayoutRect( icfSpellIndiPaneRect.Rect(), spellIndiIcon );
   570 	spellIndiIconRect.LayoutRect( icfSpellIndiPaneRect.Rect(), spellIndiIcon );
   565 	iSpellIndiIconWithoutTextForPrtWest = spellIndiIconRect.Rect();
   571 	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;
   566 	}
   583 	}
   567 
   584 
   568 void CGenericItutDataMgr::ReadLafInfo()
   585 void CGenericItutDataMgr::ReadLafInfo()
   569     {
   586     {
   570     // Screen
   587     // Screen
   728             					cell_vitu2_itu_pane_g1( keypadvariety ).LayoutLine();
   745             					cell_vitu2_itu_pane_g1( keypadvariety ).LayoutLine();
   729             	TAknLayoutRect shiftIconRect;
   746             	TAknLayoutRect shiftIconRect;
   730             	shiftIconRect.LayoutRect( cellrect, shiftIcon );				
   747             	shiftIconRect.LayoutRect( cellrect, shiftIcon );				
   731             	iShiftIconRect = shiftIconRect.Rect();			
   748             	iShiftIconRect = shiftIconRect.Rect();			
   732             	}
   749             	}
       
   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             
   733             itucellrect.LayoutRect(iKeypadRectCn, itucell);
   761             itucellrect.LayoutRect(iKeypadRectCn, itucell);
   734             cellrect = itucellrect.Rect();
   762             cellrect = itucellrect.Rect();
   735             cellrect.Move(-iKeypadRectCn.iTl.iX, -iKeypadRectCn.iTl.iY);
   763             cellrect.Move(-iKeypadRectCn.iTl.iX, -iKeypadRectCn.iTl.iY);
   736             iKeypadCellRectsCn.Append(cellrect);
   764             iKeypadCellRectsCn.Append(cellrect);
   737            
   765            
  1376             else
  1404             else
  1377                 {
  1405                 {
  1378                 return &iKeypadCellRectsForPrtWest;
  1406                 return &iKeypadCellRectsForPrtWest;
  1379                 }
  1407                 }
  1380             }
  1408             }
       
  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         	}
  1381         case EKeypadLeftTextLine:
  1438         case EKeypadLeftTextLine:
  1382             {
  1439             {
  1383             if ( IsChineseSpellMode())
  1440             if ( IsChineseSpellMode())
  1384                 {
  1441                 {
  1385                 return &iVkNumText;
  1442                 return &iVkNumText;
  1818        	        }
  1875        	        }
  1819        	    else
  1876        	    else
  1820        	        {
  1877        	        {
  1821        	        return &iImIndiOuterRect;
  1878        	        return &iImIndiOuterRect;
  1822        	        }
  1879        	        }
       
  1880         case EStarIconRect:
       
  1881         	{
       
  1882 			return &iStarIconRect;
       
  1883         	}
       
  1884         case EShiftIconRect:
       
  1885         	{
       
  1886 			return &iShiftIconRect;
       
  1887         	}
  1823         case EKeypadRect:
  1888         case EKeypadRect:
  1824         	return IsChinese() ? &iKeypadRectCn : &iKeypadRect;	        	
  1889         	return IsChinese() ? &iKeypadRectCn : &iKeypadRect;	        	
  1825         case EKeypadCellRects:
  1890         case EKeypadCellRects:
  1826         	return IsChinese() ? &iKeypadCellRectsCn : &iKeypadCellRects;	
  1891         	return IsChinese() ? &iKeypadCellRectsCn : &iKeypadCellRects;	
  1827         case EKeypadLeftTextLine:
  1892         case EKeypadLeftTextLine: