textinput/peninputfingerhwrar/inc/peninputfingerhwrarsymboltable.h
branchRCL_3
changeset 7 a47de9135b21
parent 3 f5a1e66df979
child 10 6defe5d1bd39
equal deleted inserted replaced
3:f5a1e66df979 7: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".
    27 #include <peninputlayoutctrlgroup.h>
    27 #include <peninputlayoutctrlgroup.h>
    28 
    28 
    29 // FORWARD DECLARATIONS
    29 // FORWARD DECLARATIONS
    30 class CAknFepCtrlEventButton;
    30 class CAknFepCtrlEventButton;
    31 class CMultiPageVirtualKeyboard;
    31 class CMultiPageVirtualKeyboard;
    32 class CPeninputSyncBitmapRotator;
       
    33 
    32 
    34 // CLASS DECLARATION
    33 // CLASS DECLARATION
    35 
    34 
    36 /**
    35 /**
    37  *  class CPeninputArabicFingerHwrSymbolTable.
    36  *  class CPeninputArabicFingerHwrSymbolTable.
    38  *
    37  *
    39  *  The symbol table control for arabic input 
    38  *  The symbol table control for arabic input 
    40  *
    39  *
    41  *  @lib peninputfingerhwr.lib
    40  *  @lib peninputfingerhwrar.lib
    42  *  @since S60 v5.0
    41  *  @since Symbian TB9.2
    43  */
    42  */
    44 class CPeninputArabicFingerHwrSymbolTable : public CControlGroup
    43 class CPeninputArabicFingerHwrSymbolTable : public CControlGroup
    45     {
    44     {
    46 public:
    45 public:
    47     /**
    46     /**
    48      * Symbian constructor
    47      * Symbian constructor
    49      * 
    48      * 
    50      * @since S60 v5.0
    49      * @since Symbian TB9.2
    51      * @param aUiLayout The layout
    50      * @param aUiLayout The layout
    52      * @param aId The control id
    51      * @param aId The control id
    53      * @return pointer of created object.
    52      * @return pointer of created object.
    54      */
    53      */
    55     static CPeninputArabicFingerHwrSymbolTable* NewL( CFepUiLayout* aUiLayout, TInt aId );
    54     static CPeninputArabicFingerHwrSymbolTable* NewL( CFepUiLayout* aUiLayout, TInt aId );
    56 
    55 
    57     /**
    56     /**
    58      * Symbian constructor
    57      * Symbian constructor
    59      * 
    58      * 
    60      * @since S60 v5.0
    59      * @since Symbian TB9.2
    61      * @param aUiLayout The layout
    60      * @param aUiLayout The layout
    62      * @param aId The control id
    61      * @param aId The control id
    63      * @return pointer of created object.
    62      * @return pointer of created object.
    64      */    
    63      */    
    65     static CPeninputArabicFingerHwrSymbolTable* NewLC( CFepUiLayout* aUiLayout, TInt aId );
    64     static CPeninputArabicFingerHwrSymbolTable* NewLC( CFepUiLayout* aUiLayout, TInt aId );
    66 
    65 
    67     /**
    66     /**
    68      * standard c++ destructor.
    67      * standard c++ destructor.
    69      *
    68      *
    70      * @since S60 v5.0
    69      * @since Symbian TB9.2
    71      */    
    70      */    
    72     ~CPeninputArabicFingerHwrSymbolTable();
    71     ~CPeninputArabicFingerHwrSymbolTable();
    73     
    72     
    74 public:
    73 public:
    75 	/**
    74 	/**
    76 	 * open the symbol table.
    75 	 * open the symbol table.
    77 	 * 
    76 	 * 
    78 	 * @since S60 v5.0
    77 	 * @since Symbian TB9.2
    79 	 *
    78 	 *
    80 	 * @return None
    79 	 * @return None
    81 	 */
    80 	 */
    82 	void OpenSymbolTable();
    81 	void OpenSymbolTable();
    83     
    82     
    84     /**
    83     /**
    85      * cancel the popup.
    84      * cancel the popup.
    86      * 
    85      * 
    87      * @since S60 v5.0
    86      * @since Symbian TB9.2
    88      * @return None
    87      * @return None
    89      * 
    88      * 
    90      */
    89      */
    91     void CloseSymbolTable();
    90     void CloseSymbolTable();
    92     
    91     
    93     /**
    92     /**
    94      * get visibility of popup.
    93      * get visibility of popup.
    95      * @since S60 v5.0
    94      * @since Symbian TB9.2
    96      * @return ETrue if the popup is visible
    95      * @return ETrue if the popup is visible
    97      */
    96      */
    98     TBool IsPopup();
    97     TBool IsPopup();
    99     
    98     
   100 	/**
    99 	/**
   112     
   111     
   113 	void NavigatePage(TInt aPageNo, TInt aPos);
   112 	void NavigatePage(TInt aPageNo, TInt aPos);
   114 	
   113 	
   115 	void UpdatePageButtonsUi();
   114 	void UpdatePageButtonsUi();
   116 	
   115 	
   117 	void UpdateAllVirtualKeysFeedback(TInt aType);
   116 	void UpdateAllVirtualKeysFeedback();
   118 
   117 
   119 protected: //virtuals from CControlGroup (CFepUiBaseCtrl)
   118 protected: //virtuals from CControlGroup (CFepUiBaseCtrl)
   120 
   119 
   121     /**
   120     /**
   122      * From CControlGroup
   121      * From CControlGroup
   123      * Handle pointer down event
   122      * Handle pointer down event
   124      *
   123      *
   125      * @since S60 V5.0
   124      * @since Symbian TB9.2
   126      * @param aPoint The point position relative the layout
   125      * @param aPoint The point position relative the layout
   127      * @return The control which handles the event.     
   126      * @return The control which handles the event.     
   128      */   
   127      */   
   129     CFepUiBaseCtrl* HandlePointerDownEventL(const TPoint& aPoint);
   128     CFepUiBaseCtrl* HandlePointerDownEventL(const TPoint& aPoint);
   130     
   129     
   131     /**
   130     /**
   132      * From CControlGroup
   131      * From CControlGroup
   133      * Handle pointer up event
   132      * Handle pointer up event
   134      *
   133      *
   135      * @since S60 V5.0
   134      * @since Symbian TB9.2
   136      * @param aPoint The point position relative the layout
   135      * @param aPoint The point position relative the layout
   137      * @return The control which handles the event.     
   136      * @return The control which handles the event.     
   138      */           
   137      */           
   139     CFepUiBaseCtrl* HandlePointerUpEventL(const TPoint& aPoint);
   138     CFepUiBaseCtrl* HandlePointerUpEventL(const TPoint& aPoint);
   140     
   139     
   147      * @return The control which handles the event.     
   146      * @return The control which handles the event.     
   148      */      
   147      */      
   149     CFepUiBaseCtrl* HandlePointerMoveEventL(const TPoint& aPoint);
   148     CFepUiBaseCtrl* HandlePointerMoveEventL(const TPoint& aPoint);
   150     
   149     
   151     /**
   150     /**
   152      * Handle pointer levae event. 
       
   153      * This will be called only when it's got pointer down event before and 
       
   154      * now pointer leaves without pointer up event
       
   155      *
       
   156      * @since S60 V4.0
       
   157      * @param aPoint current pointer position
       
   158      */
       
   159     void HandlePointerLeave(const TPoint& aPoint);
       
   160     
       
   161     /**
       
   162      * C++ constructor
   151      * C++ constructor
   163      * 
   152      * 
   164      * @since S60 v5.0
   153      * @since Symbian TB9.2
   165      * @param aFepUiLayout A Ui Layout environment (CFepUiLayout)
   154      * @param aFepUiLayout A Ui Layout environment (CFepUiLayout)
   166      * @param aControlId Control id
   155      * @param aControlId Control id
   167      * @return none.
   156      * @return none.
   168      */
   157      */
   169     CPeninputArabicFingerHwrSymbolTable(CFepUiLayout* aFepUiLayout, TInt aControlId);
   158     CPeninputArabicFingerHwrSymbolTable(CFepUiLayout* aFepUiLayout, TInt aControlId);
   170     
   159     
   171     /**
   160     /**
   172      * Symbian second-phase constructor
   161      * Symbian second-phase constructor
   173      *
   162      *
   174      * @since S60 v5.0
   163      * @since Symbian TB9.2
   175      * @return None
   164      * @return None
   176      */    
   165      */    
   177     void ConstructL();
   166     void ConstructL();
   178     
   167     
   179 	/**
   168 	/**
   180      * create a multipate virtual keypad
   169      * create a multipate virtual keypad
   181      *
   170      *
   182      * @since S60 v5.0
   171      * @since Symbian TB9.2
   183      * @return None
   172      * @return None
   184      */
   173      */
   185 	void CreateVirtualKeypadL();
   174 	void CreateVirtualKeypadL();
   186 	
   175 	
   187 	/**
   176 	/**
   191 	void CreateButtonGroupL();
   180 	void CreateButtonGroupL();
   192 	
   181 	
   193     /**
   182     /**
   194      * EventButton creation helper.
   183      * EventButton creation helper.
   195      * 
   184      * 
   196      * @since S60 v5.0
   185      * @since Symbian TB9.2
   197      * @param aCtrlId button control id.
   186      * @param aCtrlId button control id.
   198      * @param aResId resource id.
   187      * @param aResId resource id.
   199      * @param aEvent event id;
   188      * @param aEvent event id;
   200      * @param aUnicode a unicode value to be sent
   189      * @param aUnicode a unicode value to be sent
   201      * @return pointer to created CAknFepCtrlEventButton obj.
   190      * @return pointer to created CAknFepCtrlEventButton obj.
   204             TInt aEvent = 0xFFFF,TInt aUnicode=0 );
   193             TInt aEvent = 0xFFFF,TInt aUnicode=0 );
   205         
   194         
   206     /**
   195     /**
   207      * EventButton layout helper. Move button to specified rect.
   196      * EventButton layout helper. Move button to specified rect.
   208      * 
   197      * 
   209      * @since S60 v5.0
   198      * @since Symbian TB9.2
   210      * @param aButton the button to move
   199      * @param aButton the button to move
   211      * @param aRect new rect of button
   200      * @param aRect new rect of button
   212      * @param aXPadding horz padding of button icon.
   201      * @param aXPadding horz padding of button icon.
   213      * @param aYPadding vert padding of button icon.
   202      * @param aYPadding vert padding of button icon.
   214      * @param aReloadImages Specifies whether the images is to be reloaded.
   203      * @param aReloadImages Specifies whether the images is to be reloaded.
   228 	 *
   217 	 *
   229 	 */
   218 	 */
   230 	void UpdateVkbKeyL( CVirtualKey* aVirtualKey, TResourceReader& aReader, 
   219 	void UpdateVkbKeyL( CVirtualKey* aVirtualKey, TResourceReader& aReader, 
   231 	                    const TRect aKeyRect );
   220 	                    const TRect aKeyRect );
   232     void OnActivate();
   221     void OnActivate();
       
   222 	
   233 private:
   223 private:
   234     /**
   224     /**
   235 	 * multipage viritual keyboard
   225 	 * multipage viritual keyboard
   236 	 * not own.
   226 	 * not own.
   237 	 */
   227 	 */