textinput/peninputfingerhwrar/inc/peninputfingerhwrarlafmanager.h
branchRCL_3
changeset 5 a47de9135b21
parent 3 f5a1e66df979
child 6 6ceef9a83b1a
equal deleted inserted replaced
3:f5a1e66df979 5:a47de9135b21
     1 /*
     1 /*
     2 * Copyright (c) 2005-2008 Nokia Corporation and/or its subsidiary(-ies).
     2 * Copyright (c) 2009 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".
    23 * Class  PeninputFingerHwrArLafManager
    23 * Class  PeninputFingerHwrArLafManager
    24 *  
    24 *  
    25 * Wrapper of L&F data.
    25 * Wrapper of L&F data.
    26 *
    26 *
    27 * @lib peninputfingerhwrar.lib
    27 * @lib peninputfingerhwrar.lib
    28 * @since S60 v5.0
    28 * @since Symbian TB9.2
    29 */
    29 */
    30 class CPeninputFingerHwrArLafManager : public CBase 
    30 class CPeninputFingerHwrArLafManager : public CBase 
    31     {
    31     {
    32 public:
    32 public:
    33     /**
    33     /**
    34      * Symbian constructor.
    34      * Symbian constructor.
    35      *
    35      *
    36      * @since S60 v5.0
    36      * @since Symbian TB9.2
    37      * @return Pointer to created object.
    37      * @return Pointer to created object.
    38      */    
    38      */    
    39     static CPeninputFingerHwrArLafManager* NewL();
    39     static CPeninputFingerHwrArLafManager* NewL();
    40     
    40     
    41     /**
    41     /**
    42      * Symbian constructor.
    42      * Symbian constructor.
    43      *
    43      *
    44      * @since S60 v5.0
    44      * @since Symbian TB9.2
    45      * @return Pointer to created object.
    45      * @return Pointer to created object.
    46      */  
    46      */  
    47     static CPeninputFingerHwrArLafManager* NewLC();
    47     static CPeninputFingerHwrArLafManager* NewLC();
    48     
    48     
    49     /**
    49     /**
    50      * standard c++ destructor.
    50      * standard c++ destructor.
    51      *
    51      *
    52      * @since S60 v5.0
    52      * @since Symbian TB9.2
    53      * @return None
    53      * @return None
    54      */    
    54      */    
    55     ~CPeninputFingerHwrArLafManager();
    55     ~CPeninputFingerHwrArLafManager();
    56    
    56    
    57 public:
    57 public:
    58     /**
    58     /**
    59      * read laf data.
    59      * read laf data.
    60      *
    60      *
    61      * @since S60 v5.0
    61      * @since Symbian TB9.2
    62      * @return None
    62      * @return None
    63      */    
    63      */    
    64     void ReadLafInfo();
    64     void ReadLafInfo();
    65     
    65     
    66     /**
    66     /**
    67      * get screen orientation.
    67      * get screen orientation.
    68      * 
    68      * 
    69      * @since S60 v5.0
    69      * @since Symbian TB9.2
    70      * @return ETrue if is landscape.
    70      * @return ETrue if is landscape.
    71      */
    71      */
    72     TBool IsLandscape();
    72     TBool IsLandscape();
    73 
    73 
    74     /**
    74     /**
    75      * get rect of layout.
    75      * get rect of layout.
    76      * 
    76      * 
    77      * @since S60 v5.0
    77      * @since Symbian TB9.2
    78      * @return rect of layout.
    78      * @return rect of layout.
    79      */    
    79      */    
    80     TRect LayoutRect();
    80     TRect LayoutRect();
    81     
    81     
    82     /**
    82     /**
    83      * get rect of specified control.
    83      * get rect of specified control.
    84      * 
    84      * 
    85      * @since S60 v5.0
    85      * @since Symbian TB9.2
    86      * @param aCtrlId specifies control id.
    86      * @param aCtrlId specifies control id.
    87      * @return rect of specified control.
    87      * @return rect of specified control.
    88      */
    88      */
    89     TRect CtrlRect( TInt aCtrlId );
    89     TRect CtrlRect( TInt aCtrlId );
    90     
    90     
    91 public: // icf
    91 public: // icf
    92     /**
    92     /**
    93      * get rect of ICF control.
    93      * get rect of ICF control.
    94      * 
    94      * 
    95      * @since S60 v5.0
    95      * @since Symbian TB9.2
    96      * @return rect of icf.
    96      * @return rect of icf.
    97      */      
    97      */      
    98     TRect IcfRect();
    98     TRect IcfRect();
    99     
    99     
   100     /**
   100     /**
   101      * get left margin of icf.
   101      * get left margin of icf.
   102      * 
   102      * 
   103      * @since S60 v5.0
   103      * @since Symbian TB9.2
   104      * @return left margin of icf.
   104      * @return left margin of icf.
   105      */
   105      */
   106     TInt IcfLeftMargin();
   106     TInt IcfLeftMargin();
   107     
   107     
   108     /**
   108     /**
   109      * get Right margin of icf.
   109      * get Right margin of icf.
   110      * 
   110      * 
   111      * @since S60 v5.0
   111      * @since Symbian TB9.2
   112      * @return Right margin of icf.
   112      * @return Right margin of icf.
   113      */    
   113      */    
   114     TInt IcfRightMargin();
   114     TInt IcfRightMargin();
   115     
   115     
   116     /**
   116     /**
   117      * get top margin of icf.
   117      * get top margin of icf.
   118      * 
   118      * 
   119      * @since S60 v5.0
   119      * @since Symbian TB9.2
   120      * @return top margin of icf.
   120      * @return top margin of icf.
   121      */    
   121      */    
   122     TInt IcfTopMargin();
   122     TInt IcfTopMargin();
   123     
   123     
   124     /**
   124     /**
   125      * get bottom margin of icf.
   125      * get bottom margin of icf.
   126      * 
   126      * 
   127      * @since S60 v5.0
   127      * @since Symbian TB9.2
   128      * @return bottom margin of icf.
   128      * @return bottom margin of icf.
   129      */    
   129      */    
   130     TInt IcfBottomMargin();
   130     TInt IcfBottomMargin();
   131     
   131     
   132     /**
   132     /**
   133      * get line spacing of icf.
   133      * get line spacing of icf.
   134      * 
   134      * 
   135      * @since S60 v5.0
   135      * @since Symbian TB9.2
   136      * @return line spacing of icf.
   136      * @return line spacing of icf.
   137      */      
   137      */      
   138     TInt IcfLineSpaceMargin();
   138     TInt IcfLineSpaceMargin();
   139   
   139   
   140     /**
   140     /**
   141      * get font of icf.
   141      * get font of icf.
   142      * 
   142      * 
   143      * @since S60 v5.0
   143      * @since Symbian TB9.2
   144      * @return font of icf.
   144      * @return font of icf.
   145      */       
   145      */       
   146     CFont* IcfFont();
   146     CFont* IcfFont();
   147     
   147     
   148     /**
   148     /**
   149      * get text height of icf.
   149      * get text height of icf.
   150      * 
   150      * 
   151      * @since S60 v5.0
   151      * @since Symbian TB9.2
   152      * @return text height of icf.
   152      * @return text height of icf.
   153      */       
   153      */       
   154     TInt IcfTextHeight();
   154     TInt IcfTextHeight();
   155     
   155     
   156 public: //buttons
   156 public: //buttons
   157     
   157     
   158     /**
   158     /**
   159      * get inner padding of buttons.
   159      * get inner padding of buttons.
   160      * 
   160      * 
   161      * @since S60 v5.0
   161      * @since Symbian TB9.2
   162      * @return inner padding of buttons.
   162      * @return inner padding of buttons.
   163      */      
   163      */      
   164     TSize ButtonInnerPadding();
   164     TSize ButtonInnerPadding();
   165     
   165     
   166 public: //num pad
   166 public: //symbol table
   167     /**
       
   168      * get cell size of virtual numpad.
       
   169      * 
       
   170      * @since S60 v5.0
       
   171      * @return cell size of virtual numpad.
       
   172      */    
       
   173     TRect VirtualNumpadCellSize();
       
   174         
       
   175     /**
       
   176      * get text layout of virtual numpad.
       
   177      * 
       
   178      * @since S60 v5.0
       
   179      * @return a TAknTextLineLayout object to layout cell text.
       
   180      */
       
   181     TAknTextLineLayout NumpadKeyTxtLayout();
       
   182     
       
   183 public: //sct pad
       
   184   
   167   
   185     /**
   168     /**
   186      * get row count of virtual sctpad.
   169      * get row count of virtual sctpad.
   187      * 
   170      * 
   188      * @since S60 v5.0
   171      * @since Symbian TB9.2
   189      * @return row count of virtual sctpad.
   172      * @return row count of virtual sctpad.
   190      */      
   173      */      
   191     TInt VirtualSctpadRowCount();
   174     TInt VirtualSctpadRowCount();
   192     
   175     
   193     /**
   176     /**
   194      * get column count of virtual sctpad.
   177      * get column count of virtual sctpad.
   195      * 
   178      * 
   196      * @since S60 v5.0
   179      * @since Symbian TB9.2
   197      * @return column count of virtual sctpad.
   180      * @return column count of virtual sctpad.
   198      */        
   181      */        
   199     TInt VirtualSctpadColCount();
   182     TInt VirtualSctpadColCount();
   200     
   183     
   201     /**
   184     /**
   202      * get cell size of virtual sctpad.
   185      * get cell size of virtual sctpad.
   203      * 
   186      * 
   204      * @since S60 v5.0
   187      * @since Symbian TB9.2
   205      * @return cell size of virtual sctpad.
   188      * @return cell size of virtual sctpad.
   206      */     
   189      */     
   207     TRect VirtualSctpadCellSize();
   190     TRect VirtualSctpadCellSize();
   208     
   191     
   209     /**
   192     /**
   210      * Get cell size of Space and Enter
   193      * Get cell size of Space and Enter
   211      * 
   194      * 
   212      * @since S60 v5.0
   195      * @since Symbian TB9.2
   213      * @return cell size of virtual sctpad.
   196      * @return cell size of virtual sctpad.
   214      */     
   197      */     
   215     TRect FixVirtualSctpadCellSize();
   198     TRect FixVirtualSctpadCellSize();
   216     
   199     
   217     /**
   200     /**
   218      * get cell rect of virtual sctpad.
   201      * get cell rect of virtual sctpad.
   219      * 
   202      * 
   220      * @since S60 v5.0
   203      * @since Symbian TB9.2
   221      * @param aArrayRects a TRect array to receive cell rect.
   204      * @param aArrayRects a TRect array to receive cell rect.
   222      * @return none.
   205      * @return none.
   223      */     
   206      */     
   224     void GetVirtualKeyRects( RArray<TRect>& aArrayRects );
   207     void GetVirtualKeyRects( RArray<TRect>& aArrayRects );
   225     
   208     
   226     /**
   209     /**
   227      * get cell rect of Space and Enter.
       
   228      * 
       
   229      * @since S60 v5.0
       
   230      * @param aArrayRects a TRect array to receive cell rect.
       
   231      * @return none.
       
   232      */     
       
   233     void GetFixVirtualKeyRects( RArray<TRect>& aArrayRects );
       
   234     
       
   235     
       
   236     /**
       
   237      * get text layout of virtual sctpad.
   210      * get text layout of virtual sctpad.
   238      * 
   211      * 
   239      * @since S60 v5.0
   212      * @since Symbian TB9.2
   240      * @return a TAknTextLineLayout object to layout cell text.
   213      * @return a TAknTextLineLayout object to layout cell text.
   241      */    
   214      */    
   242     TAknTextLineLayout SctpadKeyTxtLayout();
   215     TAknTextLineLayout SctpadKeyTxtLayout();
   243     
   216     
   244     /**
   217     /**
   245      * Get text layout about Space and Enter
   218      * Get text layout about Space and Enter
   246      * 
   219      * 
   247      * @since S60 v5.0
   220      * @since Symbian TB9.2
   248      * @return a TAknTextLineLayout object to layout cell text.
   221      * @return a TAknTextLineLayout object to layout cell text.
   249      */    
   222      */    
   250     TAknTextLineLayout FixSctpadKeyTxtLayout();
   223     TAknTextLineLayout FixSctpadKeyTxtLayout();
   251     
   224     
   252     /**
   225     /**
   253      * get preview bubble rect.
   226      * get preview bubble rect.
   254      * 
   227      * 
   255      * @since S60 v5.0
   228      * @since Symbian TB9.2
   256      * @return a TRect object to preview bubble rect.
   229      * @return a TRect object to preview bubble rect.
   257      */    
   230      */    
   258     TRect PreviewBubbleRect();
   231     TRect PreviewBubbleRect();
   259     
   232     
   260     /**
   233     /**
   261      * get preview bubble inner rect.
   234      * get preview bubble inner rect.
   262      * 
   235      * 
   263      * @since S60 v5.0
   236      * @since Symbian TB9.2
   264      * @return a TRect object to preview bubble inner rect.
   237      * @return a TRect object to preview bubble inner rect.
   265      */    
   238      */    
   266     TRect PreviewBubbleInnerRect();
   239     TRect PreviewBubbleInnerRect();
   267     
   240     
   268     /**
   241     /**
   269      * get preview bubble font.
   242      * get preview bubble font.
   270      * 
   243      * 
   271      * @since S60 v5.0
   244      * @since Symbian TB9.2
   272      * @return a CFont pointer to preview bubble font.
   245      * @return a CFont pointer to preview bubble font.
   273      */    
   246      */    
   274     const CFont* PreviewBubbleFont();
   247     const CFont* PreviewBubbleFont();
   275     
   248     
   276     /**
   249     /**
   277      * get preview bubble text layout.
   250      * get preview bubble text layout.
   278      * 
   251      * 
   279      * @since S60 v5.0
   252      * @since Symbian TB9.2
   280      * @return a TAknTextLineLayout object to preview bubble text layout.
   253      * @return a TAknTextLineLayout object to preview bubble text layout.
   281      */    
   254      */    
   282     TAknTextLineLayout PreviewBubbleTextLayout();
   255     TAknTextLineLayout PreviewBubbleTextLayout();
   283     
   256     
   284 public: // candidate list
   257 public: // candidate list
   285     
   258     
   286     /**
   259     /**
   287      * get width unit of candidate list.
   260      * get width unit of candidate list.
   288      * 
   261      * 
   289      * @since S60 v5.0
   262      * @since Symbian TB9.2
   290      * @return width unit of candidate list.
   263      * @return width unit of candidate list.
   291      */      
   264      */      
   292     TInt CandidateUnitWidth();
   265     TInt CandidateUnitWidth();
   293     
   266     
   294     /**
   267     /**
   295      * get height unit of candidate list.
   268      * get height unit of candidate list.
   296      * 
   269      * 
   297      * @since S60 v5.0
   270      * @since Symbian TB9.2
   298      * @return height unit of candidate list.
   271      * @return height unit of candidate list.
   299      */ 
   272      */ 
   300     TInt CandidateUnitHeight();  
   273     TInt CandidateUnitHeight();  
   301     
   274     
   302 
   275 
   303     /**
   276     /**
   304      * get horizontal margin of candidate list.
   277      * get horizontal margin of candidate list.
   305      * 
   278      * 
   306      * @since S60 v5.0
   279      * @since Symbian TB9.2
   307      * @return horizontal margin of candidate list.
   280      * @return horizontal margin of candidate list.
   308      */    
   281      */    
   309     TInt CandidateHorizontalMargin();
   282     TInt CandidateHorizontalMargin();
   310 
   283 
   311     /**
   284     /**
   312      * get vertical margin of candidate list.
   285      * get vertical margin of candidate list.
   313      * 
   286      * 
   314      * @since S60 v5.0
   287      * @since Symbian TB9.2
   315      * @return vertical margin of candidate list.
   288      * @return vertical margin of candidate list.
   316      */      
   289      */      
   317     TInt CandidateVerticalMargin();
   290     TInt CandidateVerticalMargin();
   318 
   291 
   319     /**
   292     /**
   320      * get top-left position of candidate list.
   293      * get top-left position of candidate list.
   321      * 
   294      * 
   322      * @since S60 v5.0
   295      * @since Symbian TB9.2
   323      * @return top-left position of candidate list.
   296      * @return top-left position of candidate list.
   324      */     
   297      */     
   325     TPoint CandidateLTPos();
   298     TPoint CandidateLTPos();
   326 
   299 
   327     /**
   300     /**
   328      * get top-left position of predictive list.
   301      * get top-left position of predictive list.
   329      * 
   302      * 
   330      * @since S60 v5.0
   303      * @since Symbian TB9.2
   331      * @return top-left position of predictive list.
   304      * @return top-left position of predictive list.
   332      */     
   305      */     
   333     TPoint PredictiveLTPos();
   306     TPoint PredictiveLTPos();
   334     
   307     
   335     /**
   308     /**
   336      * get font of candidate list.
   309      * get font of candidate list.
   337      * 
   310      * 
   338      * @since S60 v5.0
   311      * @since Symbian TB9.2
   339      * @return font of candidate list.
   312      * @return font of candidate list.
   340      */     
   313      */     
   341     const CFont* CandidateFont();
   314     const CFont* CandidateFont();
   342     
   315     
   343 public: //sct paging buttons
   316 public: //sct paging buttons
   344     /**
   317     /**
   345      * get text layout of sct paging button.
   318      * get text layout of sct paging button.
   346      * 
   319      * 
   347      * @since S60 v5.0
   320      * @since Symbian TB9.2
   348      * @return a TAknTextLineLayout object to layout text.
   321      * @return a TAknTextLineLayout object to layout text.
   349      */    
   322      */    
   350     TAknTextLineLayout SctPageBtnTxtLayout();
   323     TAknTextLineLayout SctPageBtnTxtLayout();
   351 	TSize SymbolGroupButtonSize();
   324 	TSize SymbolGroupButtonSize();
   352 private:
   325 private:
   353     
   326     
   354     /**
   327     /**
   355      * C++ constructor
   328      * C++ constructor
   356      *
   329      *
   357      * @since S60 v5.0
   330      * @since Symbian TB9.2
   358      * @return None
   331      * @return None
   359      */    
   332      */    
   360     CPeninputFingerHwrArLafManager();
   333     CPeninputFingerHwrArLafManager();
   361     
   334     
   362     /**
   335     /**
   363      * Symbian second-phase constructor
   336      * Symbian second-phase constructor
   364      *
   337      *
   365      * @since S60 v5.0
   338      * @since Symbian TB9.2
   366      * @return None
   339      * @return None
   367      */    
   340      */    
   368     void ConstructL();    
   341     void ConstructL();    
   369     
   342     
   370 private: //datas
   343 private: //datas
   374     // constrols position
   347     // constrols position
   375     TRect iRectIcf;
   348     TRect iRectIcf;
   376     TRect iRectWritingBox;
   349     TRect iRectWritingBox;
   377     TRect iRectNumpad;
   350     TRect iRectNumpad;
   378     TRect iRectSctpad;
   351     TRect iRectSctpad;
   379     TRect iRectFixSctpad;
       
   380     TRect iRectSpase;
   352     TRect iRectSpase;
   381     TRect iRectEnter;
   353     TRect iRectEnter;
   382         
   354         
   383     TRect iRectBtnClose;
   355     TRect iRectBtnClose;
   384     TRect iRectBtnRangeChn;
   356     TRect iRectBtnRangeChn;
   398     TSize iSizeNumpadCell;
   370     TSize iSizeNumpadCell;
   399     
   371     
   400     TInt iSctpadRowCount;
   372     TInt iSctpadRowCount;
   401     TInt iSctpadColCount;
   373     TInt iSctpadColCount;
   402     TSize iSizeSctpadCell;
   374     TSize iSizeSctpadCell;
   403     TSize iSizeFixSctpadCell;
       
   404 
   375 
   405     TRect iLayoutRect;
   376     TRect iLayoutRect;
   406     TPoint iLayoutOffset;
   377     TPoint iLayoutOffset;
   407     
   378     
   408 	TInt iIcfTextLeftMarginCn;
   379 	TInt iIcfTextLeftMarginCn;