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