|
1 /* |
|
2 * Copyright (c) 2009 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: CPeninputArabicFingerHwrIndicator |
|
15 * |
|
16 */ |
|
17 #ifndef C_PENINPUTARABICFINGERHWRINDICATOR_H |
|
18 #define C_PENINPUTARABICFINGERHWRINDICATOR_H |
|
19 |
|
20 #include <peninputlayoutbasecontrol.h> |
|
21 /** |
|
22 * CPeninputArabicFingerHwrIndicator |
|
23 * |
|
24 * Label control. This class could be used directly by user. |
|
25 * |
|
26 * @lib peninputfingerhwrar.lib |
|
27 * @since S60 V5.0 |
|
28 */ |
|
29 class CPeninputArabicFingerHwrIndicator: public CFepUiBaseCtrl |
|
30 { |
|
31 |
|
32 public: |
|
33 //constructor and destructor |
|
34 /** |
|
35 * Destructor. |
|
36 * |
|
37 * @since S60 V4.0 |
|
38 */ |
|
39 virtual ~CPeninputArabicFingerHwrIndicator(); |
|
40 |
|
41 /** |
|
42 * Factory function. |
|
43 * |
|
44 * @since S60 V4.0 |
|
45 * @param aRect The rectangle area for this control |
|
46 * @param aUiLayout Ui layout who contains this control.Ownership not transferred |
|
47 * @param aControlId control Id |
|
48 * @return An instance of CButtonBase class |
|
49 */ |
|
50 static CPeninputArabicFingerHwrIndicator* NewL(CFepUiLayout* aUiLayout,TInt aControlId); |
|
51 |
|
52 void ConstructFromResourceL( TInt aResID ); |
|
53 |
|
54 /** |
|
55 * Set bitmap for given status . |
|
56 * |
|
57 * @since S60 V4.0 |
|
58 * @param aBmp The bitmap. Ownership transferred to button |
|
59 * @param aType The bitmap type used for |
|
60 */ |
|
61 void SetBitmapL(CFbsBitmap* aBmp); |
|
62 |
|
63 /** |
|
64 * Set mask bitmap for given status. |
|
65 * |
|
66 * @since S60 V4.0 |
|
67 * @param aBmp The bitmap. Ownership transferred to button |
|
68 * @param aType The bitmap type used for |
|
69 */ |
|
70 void SetMaskBitmapL(CFbsBitmap* aBmp); |
|
71 |
|
72 //from base class CFepUiBaseCtrl |
|
73 /** |
|
74 * From CFepUiBaseCtrl |
|
75 * Draw control |
|
76 * |
|
77 * @since S60 V4.0 |
|
78 */ |
|
79 virtual void Draw(); |
|
80 |
|
81 /** |
|
82 * Label size changed |
|
83 * |
|
84 * @since S60 v3.2 |
|
85 * @param aNewRect New rect for label |
|
86 * @param aIsReloadImages resize image |
|
87 * @return None |
|
88 */ |
|
89 virtual void SizeChanged(TRect aNewRect, TBool aIsReloadImages); |
|
90 |
|
91 protected: |
|
92 |
|
93 /** |
|
94 * Constructor |
|
95 * |
|
96 * @since S60 V4.0 |
|
97 * @param aRect The rectangle area for this control |
|
98 * @param aUiLayout Ui layout who contains this control.Ownership not transferred |
|
99 * @param aControlId control Id |
|
100 */ |
|
101 CPeninputArabicFingerHwrIndicator(CFepUiLayout* aUiLayout,TInt aControlId); |
|
102 |
|
103 /** |
|
104 * Bitmaps size changed |
|
105 * |
|
106 * @since S60 v3.2 |
|
107 * @param aSize New size for bitmaps |
|
108 * @return None |
|
109 */ |
|
110 void ResizeBitmaps(TSize aSize); |
|
111 |
|
112 private: |
|
113 |
|
114 /** |
|
115 * bitmap for dimmed state |
|
116 * Own. |
|
117 */ |
|
118 CFbsBitmap* iBmp; |
|
119 |
|
120 /** |
|
121 * mask bitmap for dim stute |
|
122 * Own. |
|
123 */ |
|
124 CFbsBitmap* iMaskBmp; |
|
125 }; |
|
126 |
|
127 #endif // C_CAKNFEPCTRLLABEL_H |