textinput/peninputfingerhwrar/inc/peninputfingerhwrarnumsymboltable.h
branchRCL_3
changeset 56 8152b1f1763a
parent 44 ecbabf52600f
equal deleted inserted replaced
50:5a1685599b76 56:8152b1f1763a
    98     
    98     
    99 	/**
    99 	/**
   100 	 * sizechanged
   100 	 * sizechanged
   101 	 *
   101 	 *
   102 	 */
   102 	 */
   103 	void SizeChanged(const TRect& aVirtualKeypadRect);
   103 	void SizeChanged(const TRect aVirtualKeypadRect, const RArray<TRect> aBtnRects,
       
   104                      const TInt aKeypadRow, const TInt aKeypadCol, TBool aIsLandscape = ETrue);
   104     
   105     
   105 	/**
   106 	/**
   106 	 * Load VKB image
   107 	 * Load VKB image
   107 	 *
   108 	 *
   108 	 */
   109 	 */
   117 	/**
   118 	/**
   118 	 * Return keypad control
   119 	 * Return keypad control
   119 	 *
   120 	 *
   120 	 */
   121 	 */
   121 	inline CVirtualKeyboard* KeyPad(){return iNumKeypad;}
   122 	inline CVirtualKeyboard* KeyPad(){return iNumKeypad;}
       
   123     
       
   124 	/**
       
   125 	 * Navigate page
       
   126 	 *
       
   127 	 */
       
   128 	void UpdateNumSymbolTable(TInt aNumSctType = ENumSCTLatin);
   122     
   129     
   123 	/**
   130 	/**
   124 	 * Construct from resource
   131 	 * Construct from resource
   125 	 * This funciton will be called when the resource has changed for example skin was changed
   132 	 * This funciton will be called when the resource has changed for example skin was changed
   126 	 */
   133 	 */
   131      * 
   138      * 
   132      * @since S60 v5.0
   139      * @since S60 v5.0
   133      * @param aNumMapping a string contains numbers and related char. max length is 16.
   140      * @param aNumMapping a string contains numbers and related char. max length is 16.
   134      * @return none
   141      * @return none
   135      */
   142      */
   136     void UpdateTableSymbol( const TDesC& aNumMapping );
   143     void SetNumericMapping( const TDesC& aNumMapping );
   137     
   144     
   138     /*
   145     /*
   139      * set arabic number mode.
   146      * set arabic number mode.
   140      * @since s60 v5.2
   147      * @since s60 v5.2
   141      * @param aIsNativeNumMode a flag to indicate whether it is native number mode.
   148      * @param aIsNativeNumMode a flag to indicate whether it is native number mode.
   142      * @return none.
   149      * @return none.
   143      */
   150      */
   144     void SetNativeNumMode(const TBool aIsNativeNumMode);
   151     void SetNativeNumMode(const TBool aIsNativeNumMode);
   145 
       
   146     /**
       
   147      * Update the virtual keys rect.
       
   148      * @since s60 5.2.
       
   149      * @param aCellRects keypad cell rects.
       
   150      * @return None.
       
   151      */
       
   152     void UpdateAllVirtualKeysRect(const RArray<TRect> & aCellRects);
       
   153 protected: //virtuals from CControlGroup (CFepUiBaseCtrl)
   152 protected: //virtuals from CControlGroup (CFepUiBaseCtrl)
   154 
   153 
   155     /**
   154     /**
   156      * From CControlGroup
   155      * From CControlGroup
   157      * Handle pointer down event
   156      * Handle pointer down event
   206      * @since Symbian TB9.2
   205      * @since Symbian TB9.2
   207      * @return None
   206      * @return None
   208      */
   207      */
   209 	void CreateVirtualKeypadL();
   208 	void CreateVirtualKeypadL();
   210 	
   209 	
       
   210 	/** 
       
   211 	 * create a new virtual key
       
   212 	 *
       
   213 	 */
       
   214 	CVirtualKey* CreateVkbKeyL(TResourceReader& aReader, const TRect aKeyRect);
       
   215 	
       
   216 	/**
       
   217 	 * update the virtal key
       
   218 	 *
       
   219 	 */
       
   220 	void UpdateVkbKeyL( CVirtualKey* aVirtualKey, TResourceReader& aReader, 
       
   221 	                    const TRect aKeyRect );
       
   222     void OnActivate();
       
   223 	
   211 	/**
   224 	/**
   212 	 * Update the virtual key feedback
   225 	 * Update the virtual key feedback
   213 	 *
   226 	 *
   214 	 */
   227 	 */
   215 	void UpdateAllVirtualKeysFeedback();
   228 	void UpdateAllVirtualKeysFeedback();
   216 	
   229 	
   217 	/**
   230 	/**
   218 	 * Draw group control
   231 	 * Draw group control
   219 	 */
   232 	 */
   220 	void Draw();
   233 	void Draw();
   221 
   234 	
   222 private:
       
   223 	/**
       
   224 	 * Refresh the symbol table
       
   225 	 *
       
   226 	 */
       
   227 	void RefreshNumSymbolTable();
       
   228 		
       
   229 	/**
   235 	/**
   230 	 * Load background from resource
   236 	 * Load background from resource
   231 	 *
   237 	 *
   232 	 */
   238 	 */
   233 	void LoadBackgroundFromResourceL(const TInt aResId);
   239 	void LoadBackgroundFromResourceL(const TInt aResId);
   234     
   240     
   235 	/*
   241 	/*
   236 	 * map latin number to arabic number.
   242 	 * map latin number to arabic number.
   237 	 */
   243 	 */
   238 	TInt16 MapLatinNumAccordingToNumMode(TInt16 aUnicode);
   244 	TInt16 MapLatinNumAccordingToNumMode(TInt16 aUnicode);
   239 	
       
   240 	/**
       
   241 	 * Generate the char talbe according to the aNumMapping
       
   242 	 *
       
   243 	 */
       
   244 	HBufC* GenerateCharTable(const TDesC& aNumMapping);
       
   245 	
       
   246 private:
   245 private:
   247     /**
   246     /**
   248 	 * multipage viritual keyboard
   247 	 * multipage viritual keyboard
   249 	 * not own.
   248 	 * not own.
   250 	 */
   249 	 */
   253     /**
   252     /**
   254      * visibility of popup list.
   253      * visibility of popup list.
   255      */
   254      */
   256     TBool iPopupVisible;
   255     TBool iPopupVisible;
   257 	
   256 	
       
   257 	/**
       
   258 	 * store the layout mode
       
   259 	 */
       
   260 	TBool iIsLandscape;
       
   261 	
       
   262     TInt iCurrentNumSCTType;	
   258     /*
   263     /*
   259      * Default number mode.
   264      * Default number mode.
   260      */
   265      */
   261     TBool iIsNativeNumMode;
   266     TBool iIsNativeNumMode;
   262     };
   267     };