textinput/peninputfingerhwrar/inc/peninputfingerhwrarlafmanager.h
branchRCL_3
changeset 10 6defe5d1bd39
parent 8 6ceef9a83b1a
child 19 5e18d8c489d6
equal deleted inserted replaced
8:6ceef9a83b1a 10:6defe5d1bd39
     1 /*
     1 /*
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
     2 * Copyright (c) 2009-2010 Nokia Corporation and/or its subsidiary(-ies).
     3 * All rights reserved.
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
     4 * This component and the accompanying materials are made available
     5 * under the terms of "Eclipse Public License v1.0"
     5 * under the terms of "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
   188      * @return cell size of virtual sctpad.
   188      * @return cell size of virtual sctpad.
   189      */     
   189      */     
   190     TRect VirtualSctpadCellSize();
   190     TRect VirtualSctpadCellSize();
   191     
   191     
   192     /**
   192     /**
   193      * Get cell size of Space and Enter
       
   194      * 
       
   195      * @since Symbian TB9.2
       
   196      * @return cell size of virtual sctpad.
       
   197      */     
       
   198     TRect FixVirtualSctpadCellSize();
       
   199     
       
   200     /**
       
   201      * get cell rect of virtual sctpad.
   193      * get cell rect of virtual sctpad.
   202      * 
   194      * 
   203      * @since Symbian TB9.2
   195      * @since Symbian TB9.2
   204      * @param aArrayRects a TRect array to receive cell rect.
   196      * @param aArrayRects a TRect array to receive cell rect.
   205      * @return none.
   197      * @return none.
   213      * @return a TAknTextLineLayout object to layout cell text.
   205      * @return a TAknTextLineLayout object to layout cell text.
   214      */    
   206      */    
   215     TAknTextLineLayout SctpadKeyTxtLayout();
   207     TAknTextLineLayout SctpadKeyTxtLayout();
   216     
   208     
   217     /**
   209     /**
   218      * Get text layout about Space and Enter
       
   219      * 
       
   220      * @since Symbian TB9.2
       
   221      * @return a TAknTextLineLayout object to layout cell text.
       
   222      */    
       
   223     TAknTextLineLayout FixSctpadKeyTxtLayout();
       
   224     
       
   225     /**
       
   226      * get preview bubble rect.
   210      * get preview bubble rect.
   227      * 
   211      * 
   228      * @since Symbian TB9.2
   212      * @since Symbian TB9.2
   229      * @return a TRect object to preview bubble rect.
   213      * @return a TRect object to preview bubble rect.
   230      */    
   214      */    
   269      * 
   253      * 
   270      * @since Symbian TB9.2
   254      * @since Symbian TB9.2
   271      * @return height unit of candidate list.
   255      * @return height unit of candidate list.
   272      */ 
   256      */ 
   273     TInt CandidateUnitHeight();  
   257     TInt CandidateUnitHeight();  
   274     
       
   275 
   258 
   276     /**
   259     /**
   277      * get horizontal margin of candidate list.
   260      * get horizontal margin of candidate list.
   278      * 
   261      * 
   279      * @since Symbian TB9.2
   262      * @since Symbian TB9.2
   310      * 
   293      * 
   311      * @since Symbian TB9.2
   294      * @since Symbian TB9.2
   312      * @return font of candidate list.
   295      * @return font of candidate list.
   313      */     
   296      */     
   314     const CFont* CandidateFont();
   297     const CFont* CandidateFont();
       
   298 	
       
   299 	/**
       
   300 	 * Get indicator rect
       
   301 	 */
   315     TRect GetIndicatorRect();
   302     TRect GetIndicatorRect();
       
   303 	
       
   304 	/**
       
   305 	 * Get arrow padding size
       
   306 	 */
   316 	TSize GetArrowPaddingSize();
   307 	TSize GetArrowPaddingSize();
   317 public: //sct paging buttons
   308 public: //sct paging buttons
   318     /**
   309     /**
   319      * get text layout of sct paging button.
   310      * get text layout of sct paging button.
   320      * 
   311      * 
   321      * @since Symbian TB9.2
   312      * @since Symbian TB9.2
   322      * @return a TAknTextLineLayout object to layout text.
   313      * @return a TAknTextLineLayout object to layout text.
   323      */    
   314      */    
   324     TAknTextLineLayout SctPageBtnTxtLayout();
   315     TAknTextLineLayout SctPageBtnTxtLayout();
   325 	TSize SymbolGroupButtonSize();
   316 	
       
   317 	/**
       
   318 	 * Get buttons rects for symbol table
       
   319 	 */
       
   320 	RArray<TRect>& GetSymBtnArray();
       
   321 	
       
   322 	/**
       
   323 	 * Get virtual key pad rect
       
   324 	 */
       
   325 	TRect GetVirtualKeyRect(); 
   326 private:
   326 private:
   327     
   327     
   328     /**
   328     /**
   329      * C++ constructor
   329      * C++ constructor
   330      *
   330      *
   338      *
   338      *
   339      * @since Symbian TB9.2
   339      * @since Symbian TB9.2
   340      * @return None
   340      * @return None
   341      */    
   341      */    
   342     void ConstructL();    
   342     void ConstructL();    
   343     
   343 
       
   344 private:
       
   345     /**
       
   346 	 * Retrieve layout data
       
   347 	 */
       
   348 	void RetrieveLayoutData();
       
   349 	
       
   350     /**
       
   351 	 * Retrieve the laf data for ICF editor
       
   352 	 */
       
   353 	void RetrieveLafDataForICF();
       
   354 	
       
   355 	/**
       
   356 	 * Retrieve the laf data for function button: 
       
   357 	 * Close, optons, symbol, delete, and arrows buttons.
       
   358 	 */
       
   359 	void RetrieveLafDataForFunctionalButton();
       
   360     
       
   361 	/**
       
   362 	 * Retrieve the laf data for candidate list
       
   363 	 */
       
   364 	void RetrieveLafDataForCandidateList();
       
   365 	
       
   366     /**
       
   367 	 * Retrieve the laf data for symbol table
       
   368 	 */
       
   369     void RetrieveLafDataForSymbolTable();
       
   370 	
       
   371 	/**
       
   372 	 * Retrieve the landscape laf data for symbol table
       
   373 	 */
       
   374 	void RetrieveLandscapeLafDataForSymbolTable();
       
   375 	
       
   376 	/**
       
   377 	 * Retrieve the portrait laf data for symbol table
       
   378 	 */
       
   379 	void RetrievePortraitLafDataForSymbolTable();
       
   380 
       
   381     /**
       
   382 	 * Retrieve the laf data for HWR writing box
       
   383 	 */
       
   384     void RetrieveLafDataForHwrBox();	 
       
   385     
       
   386 	 /**
       
   387 	 * Retrieve the laf data for Candidate Preview bubble
       
   388 	 */
       
   389     void RetrieveLafDataForPreviewBubble();
       
   390 	
   344 private: //datas
   391 private: //datas
   345     
   392     
   346     TBool iIsLandscape;
   393     TBool iIsLandscape;
   347     
   394     TRect iLayoutRect;
   348     // constrols position
   395     TPoint iLayoutOffset;
       
   396 	TSize iScreenSize;
       
   397     /**
       
   398 	 * control rects
       
   399 	 *
       
   400 	 */
   349     TRect iRectIcf;
   401     TRect iRectIcf;
   350     TRect iRectWritingBox;
   402     TRect iRectWritingBox;
   351     TRect iRectNumpad;
   403     TRect iRectNumpad;
   352     TRect iRectSctpad;
   404     TRect iRectSctpad;
   353     TRect iRectSpase;
   405     TRect iRectSpase;
   354     TRect iRectEnter;
   406     TRect iRectEnter;
   355         
   407     TRect iIndicatorRect;
       
   408 	
       
   409     /**
       
   410      * Functinal button laf
       
   411      */	 
   356     TRect iRectBtnClose;
   412     TRect iRectBtnClose;
   357     TRect iRectBtnRangeChn;
       
   358     TRect iRectBtnRangeEng;
       
   359     TRect iRectBtnRangeNum;
       
   360     TRect iRectBtnRangeSmb;
   413     TRect iRectBtnRangeSmb;
   361     TRect iRectBtnBackspace;
   414     TRect iRectBtnBackspace;
   362     TRect iRectBtnArrowLeft;
   415     TRect iRectBtnArrowLeft;
   363     TRect iRectBtnArrowRight;
   416     TRect iRectBtnArrowRight;
   364     TRect iRectBtnArrowUp;
   417     TRect iRectBtnArrowUp;
   365     TRect iRectBtnArrowDown;
   418     TRect iRectBtnArrowDown;
   366     TRect iRectBtnOption;
   419     TRect iRectBtnOption;
   367     TRect iRectBtnImeSwitch;
       
   368     TRect iRectBtnSctPage;
   420     TRect iRectBtnSctPage;
   369     
   421     TSize iArrowPaddingSize;
   370     TSize iSizeBtnPadding;
   422     TSize iSizeBtnPadding;
   371     TSize iSizeNumpadCell;
   423 
   372     
   424 	/**
   373     TInt iSctpadRowCount;
   425 	 * ICF laf
   374     TInt iSctpadColCount;
   426 	 */
   375     TSize iSizeSctpadCell;
   427 	TInt iIcfTextLeftMargin;
   376 
   428 	TInt iIcfTextRightMargin;
   377     TRect iLayoutRect;
   429 	TInt iIcfTextTopMargin;
   378     TPoint iLayoutOffset;
   430 	TInt iIcfTextBottomMargin;
   379     
   431 	TInt iIcfTextLineSpaceMargin;
   380 	TInt iIcfTextLeftMarginCn;
   432 	TInt iIcfTextHeight;
   381 	TInt iIcfTextRightMarginCn;
       
   382 	TInt iIcfTextTopMarginCn;
       
   383 	TInt iIcfTextBottomMarginCn;
       
   384 	TInt iIcfTextLineSpaceMarginCn;
       
   385 	TInt iIcfTextHeightCn;
       
   386     TInt iIcfTextAlignment;
   433     TInt iIcfTextAlignment;
   387     CFont* iIcfFont;
   434     CFont* iIcfFont;
   388     
   435     
       
   436 	/**
       
   437 	 * Candidate laf
       
   438 	 */
   389     TInt iCandsHorizontalMargin;
   439     TInt iCandsHorizontalMargin;
   390     TInt iCandsVerticalMargin;
   440     TInt iCandsVerticalMargin;
   391     TInt iCandsUnitWidth;
   441     TInt iCandsUnitWidth;
   392     TInt iCandsUnitHeight;
   442     TInt iCandsUnitHeight;
   393     TInt iCandsNaviHeight;
       
   394     TPoint iCandidateLTPos;
   443     TPoint iCandidateLTPos;
   395     TPoint iPredictiveLTPos;
       
   396     CFont* iCandsFont;
   444     CFont* iCandsFont;
   397     TInt iCandsTextMargin;
   445     TInt iCandsTextMargin;
   398     
   446     
   399     TSize iScreenSize;
   447 	/**
   400     
   448 	 * Symbol table laf data
       
   449 	 */
       
   450 	TRect iRectOfSymbolTable;
       
   451 	TInt iSctpadRowCount;
       
   452     TInt iSctpadColCount;
       
   453     TSize iSizeSctpadCell;
       
   454 	RArray<TRect> iSymBtnRectArray;
       
   455 	
       
   456 	/**
       
   457 	 * virtual key rects array
       
   458 	 */
   401     RArray<TRect> iSCTrectArray;
   459     RArray<TRect> iSCTrectArray;
   402     
   460     
   403     // preview bubble
   461     /**
       
   462 	 * Preview bubble
       
   463 	 */
   404     TRect iPreviewWndRect;
   464     TRect iPreviewWndRect;
   405     TRect iPreviewWndInnerRect;
   465     TRect iPreviewWndInnerRect;
   406     const CFont* iBubbleFont;
   466     const CFont* iBubbleFont;
   407 	TAknTextLineLayout iPreviewWndText;
   467 	TAknTextLineLayout iPreviewWndText;
   408 	TSize iSymButtonSize;
       
   409 	TRect iRectOfSymbolTable;
       
   410 	TRect iIndicatorRect;
       
   411 	TSize iArrowPaddingSize;
       
   412     };
   468     };
   413 
   469 
   414 #endif // C_PENINPUTFINGERHWRARLAFMANAGER_H
   470 #endif // C_PENINPUTFINGERHWRARLAFMANAGER_H
   415 
   471 
   416 // End Of File
   472 // End Of File