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 */ |