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