textinput/peninputfingerhwrar/src/peninputfingerhwrarlafmanager.cpp
branchRCL_3
changeset 16 857bebeecec0
parent 12 5e18d8c489d6
child 19 ac7e4d1d9209
equal deleted inserted replaced
15:6c2c2d3ab788 16:857bebeecec0
   297 	iRectBtnSpace =  buttonRect[i++];
   297 	iRectBtnSpace =  buttonRect[i++];
   298 	iRectBtnEnter = buttonRect[i++];
   298 	iRectBtnEnter = buttonRect[i++];
   299 	buttonRect.Close();
   299 	buttonRect.Close();
   300 	
   300 	
   301 	// padding size of Btn
   301 	// padding size of Btn
   302 	TInt xpad = iRectBtnOption.iTl.iX - iRectBtnClose.iBr.iX;
   302 	TInt xpad = (iRectBtnOption.iTl.iX - iRectBtnClose.iBr.iX)/2;
   303 	TInt ypad = iRectBtnArrowLeft.iTl.iY - iRectBtnClose.iBr.iY;
   303 	TInt ypad = (iRectBtnArrowLeft.iTl.iY - iRectBtnClose.iBr.iY)/2;
   304 	
   304 	
   305 	iSizeBtnPadding = TSize(xpad, ypad);
   305 	iSizeBtnPadding = TSize(xpad, ypad);
   306 	
   306 	
   307 	// padding size of arrow button
   307 	// padding size of arrow button
   308 	if(iIsLandscape)
   308 	if(iIsLandscape)
   624 // ---------------------------------------------------------------------------
   624 // ---------------------------------------------------------------------------
   625 //  
   625 //  
   626 void CPeninputFingerHwrArLafManager::RetrievePortraitLafDataForNumSymbolTable()
   626 void CPeninputFingerHwrArLafManager::RetrievePortraitLafDataForNumSymbolTable()
   627     {
   627     {
   628     
   628     
   629     // get the functional buttons laf data for number symbol table
       
   630     // candidate list
       
   631     TAknWindowLineLayout candlistpane = AknLayoutScalable_Avkon::fshwr2_func_candi_pane(1).LayoutLine();        
       
   632     
       
   633     TAknLayoutRect candpaneRect;
       
   634     candpaneRect.LayoutRect( iLayoutRect, candlistpane );
       
   635     TRect rect = candpaneRect.Rect();
       
   636     
       
   637     // get candidate row2 pane
       
   638     TAknWindowLineLayout candRow2Pane = AknLayoutScalable_Avkon::fshwr2_func_candi_row_pane(0, 0, 1).
       
   639                                         LayoutLine();
       
   640     TAknLayoutRect candrow2paneRect;
       
   641     candrow2paneRect.LayoutRect( rect, candRow2Pane );
       
   642     iRectOfNumSymbolTable.iTl = candrow2paneRect.Rect().iTl;
       
   643 
       
   644     // get the virtual key rects
   629     // get the virtual key rects
   645     TAknWindowLineLayout writingBoxPane;
   630     TAknWindowLineLayout writingBoxPane;
   646     TAknLayoutRect boxRect;
   631     TAknLayoutRect boxRect;
   647     writingBoxPane = AknLayoutScalable_Avkon::fshwr2_hwr_syb_pane(0).LayoutLine();
   632     writingBoxPane = AknLayoutScalable_Avkon::fshwr2_hwr_syb_pane(2).LayoutLine();
   648     boxRect.LayoutRect(iLayoutRect, writingBoxPane);
   633     boxRect.LayoutRect(iLayoutRect, writingBoxPane);
   649     iRectNumpad = boxRect.Rect();
   634     iRectNumpad = boxRect.Rect();
   650     
   635     iRectOfNumSymbolTable.iTl = iRectNumpad.iTl;
       
   636 
       
   637 
   651     TAknWindowLineLayout keypane, keybgpane;
   638     TAknWindowLineLayout keypane, keybgpane;
   652     TAknLayoutRect keyRect, keybgRect;
   639     TAknLayoutRect keyRect, keybgRect;
   653   
   640   
   654     TAknLayoutScalableParameterLimits sctPaneVariety =
   641     TAknLayoutScalableParameterLimits sctPaneVariety =
   655         AknLayoutScalable_Avkon::cell_fshwr2_syb_pane_ParamLimits(0);
   642         AknLayoutScalable_Avkon::cell_fshwr2_syb_pane_ParamLimits(0);
   660     iNumSCTrectArray.Reset();
   647     iNumSCTrectArray.Reset();
   661     for(TInt i = 0; i < iNumSctpadRowCount; i++)
   648     for(TInt i = 0; i < iNumSctpadRowCount; i++)
   662         {
   649         {
   663         for ( TInt j = 0; j < iNumSctpadColCount; j++ )
   650         for ( TInt j = 0; j < iNumSctpadColCount; j++ )
   664             {
   651             {
   665             keypane = AknLayoutScalable_Avkon::cell_fshwr2_syb_pane(0, j, i).LayoutLine();
   652             keypane = AknLayoutScalable_Avkon::cell_fshwr2_syb_pane(1, j, i).LayoutLine();
   666             keyRect.LayoutRect(iRectNumpad, keypane);
   653             keyRect.LayoutRect(iRectNumpad, keypane);
   667             keybgpane = AknLayoutScalable_Avkon::cell_fshwr2_syb_bg_pane(0).LayoutLine();
   654             keybgpane = AknLayoutScalable_Avkon::cell_fshwr2_syb_bg_pane(1).LayoutLine();
   668             keybgRect.LayoutRect(keyRect.Rect(), keybgpane);
   655             keybgRect.LayoutRect(keyRect.Rect(), keybgpane);
   669             iNumSCTrectArray.Append( keybgRect.Rect());
   656             TRect rect = keybgRect.Rect();
       
   657             iNumSCTrectArray.Append( rect);
   670             }
   658             }
   671         }
   659         }
   672     iSizeNumSctpadCell = keybgRect.Rect().Size();
   660     iSizeNumSctpadCell = keybgRect.Rect().Size();
   673 
   661 
   674     // calculate the symbol table rect   
   662     // calculate the symbol table rect   
  1148 TRect CPeninputFingerHwrArLafManager::VirtualSctpadCellSize()
  1136 TRect CPeninputFingerHwrArLafManager::VirtualSctpadCellSize()
  1149     {
  1137     {
  1150     return iSizeSctpadCell;
  1138     return iSizeSctpadCell;
  1151     }
  1139     }
  1152     
  1140     
       
  1141 // ---------------------------------------------------------------------------
       
  1142 // get cell size of virtual numpad.
       
  1143 // ---------------------------------------------------------------------------
       
  1144 //
       
  1145 TRect CPeninputFingerHwrArLafManager::VirtualNumpadCellSize()
       
  1146     {
       
  1147     return iSizeNumSctpadCell;
       
  1148     }
  1153     
  1149     
  1154 // ---------------------------------------------------------------------------
  1150 // ---------------------------------------------------------------------------
  1155 // get preview bubble rect.
  1151 // get preview bubble rect.
  1156 // ---------------------------------------------------------------------------
  1152 // ---------------------------------------------------------------------------
  1157 //
  1153 //
  1252                 fshwr2_func_candi_cell_pane_t1(6).LayoutLine();
  1248                 fshwr2_func_candi_cell_pane_t1(6).LayoutLine();
  1253         }
  1249         }
  1254     else
  1250     else
  1255         {
  1251         {
  1256         layout = AknLayoutScalable_Avkon::
  1252         layout = AknLayoutScalable_Avkon::
  1257             cell_fshwr2_syb_bg_pane_t1(0).LayoutLine();
  1253             cell_fshwr2_syb_bg_pane_t1(1).LayoutLine();
  1258         }
  1254         }
  1259     return layout;
  1255     return layout;
  1260     }
  1256     }
  1261 
  1257 
  1262 // ---------------------------------------------------------------------------
  1258 // ---------------------------------------------------------------------------