|
1 /* |
|
2 * Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: Implementation of virtual key ctrl utility for arabic hwr. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef C_PENINPUTFINGERHWARVKBUTILITY_H |
|
20 #define C_PENINPUTFINGERHWARVKBUTILITY_H |
|
21 |
|
22 // INCLUDES |
|
23 #include <e32std.h> |
|
24 #include <e32base.h> |
|
25 |
|
26 // FORWARD DECLARATIONS |
|
27 class TResourceReader; |
|
28 class CVirtualKeyboard; |
|
29 class CVirtualKey; |
|
30 |
|
31 // CLASS DECLARATION |
|
32 |
|
33 /** |
|
34 * The virtual key board utility which implement a set of funtions: |
|
35 * 1. create the virutal key |
|
36 * 2. load virutal key image |
|
37 * 3. load the virtual keys |
|
38 * |
|
39 * @lib peninputfingerhwrar.lib |
|
40 * @since S60 v5.0 |
|
41 */ |
|
42 |
|
43 class PeninputFingerHwrArVkbUtility |
|
44 { |
|
45 public: |
|
46 /** |
|
47 * Load VKB image |
|
48 * |
|
49 */ |
|
50 static void LoadVkbKeyImageL(CVirtualKeyboard& aVkbCtrl, TInt aResId, const TSize& aKeySize); |
|
51 |
|
52 /** |
|
53 * Load virutal Key and set key rects. |
|
54 * |
|
55 */ |
|
56 static void LoadVirtualKeypadKeyL(CVirtualKeyboard& aVkbCtrl, const TInt aResId, const RArray<TRect>& aCellRects); |
|
57 |
|
58 /** |
|
59 * create a new virtual key |
|
60 * |
|
61 */ |
|
62 static CVirtualKey* CreateVkbKeyL(TResourceReader& aReader, const TRect& aKeyRect); |
|
63 |
|
64 /** |
|
65 * update the virtal key |
|
66 * |
|
67 */ |
|
68 static void UpdateVkbKeyL( CVirtualKey* aVirtualKey, TResourceReader& aReader, const TRect& aKeyRect ); |
|
69 }; |
|
70 |
|
71 #endif // C_PENINPUTFINGERHWARVKBUTILITY_H |
|
72 |
|
73 // End Of File |