equal
deleted
inserted
replaced
17 |
17 |
18 #ifndef C_CFEPLAYOUTPOPUPWND_H |
18 #ifndef C_CFEPLAYOUTPOPUPWND_H |
19 #define C_CFEPLAYOUTPOPUPWND_H |
19 #define C_CFEPLAYOUTPOPUPWND_H |
20 |
20 |
21 #include <peninputlayoutctrlgroup.h> |
21 #include <peninputlayoutctrlgroup.h> |
22 #include <gdi.h> |
|
23 /** |
22 /** |
24 * CButtonBase |
23 * CButtonBase |
25 * |
24 * |
26 * Button base control. This class could be used directly by user. |
25 * Button base control. This class could be used directly by user. |
27 * |
26 * |
28 * @lib feplayoutcontrol.lib |
27 * @lib feplayoutcontrol.lib |
29 * @since S60 V4.0 |
28 * @since S60 V4.0 |
30 */ |
29 */ |
31 class CFepLayoutPopupWnd : public CControlGroup |
30 class CFepLayoutPopupWnd : public CControlGroup |
32 { |
31 { |
33 private: |
|
34 class CPopupWndExt : public CBase |
|
35 { |
|
36 public: |
|
37 CFbsBitmap* BackupBitmap(){ return iBitmap;} |
|
38 CFbsBitGc* BackupGc() { return iGc;} |
|
39 CFbsBitmapDevice* BackupDevice() { return iBitmapDevice;} |
|
40 void SetRect(const TRect& aRect); |
|
41 TRect Rect() { return iRect;} |
|
42 |
|
43 static CPopupWndExt* NewL(); |
|
44 void ContructBkDeviceL(const TSize& aSize,const TDisplayMode& aMode); |
|
45 |
|
46 ~CPopupWndExt() |
|
47 { |
|
48 delete iBitmapDevice; |
|
49 delete iGc; |
|
50 delete iBitmap; |
|
51 } |
|
52 private: |
|
53 void ResizeBackupDeviceL(const TSize& s); |
|
54 private: |
|
55 CFbsBitmap* iBitmap; |
|
56 CFbsBitGc* iGc; |
|
57 CFbsBitmapDevice* iBitmapDevice; |
|
58 TRect iRect; |
|
59 |
|
60 }; |
|
61 public: |
32 public: |
62 enum TDisplayPosition |
33 enum TDisplayPosition |
63 { |
34 { |
64 EDispAutomatic, |
35 EDispAutomatic, |
65 EDispBottomRight, |
36 EDispBottomRight, |
123 * @since S60 V4.0 |
94 * @since S60 V4.0 |
124 */ |
95 */ |
125 IMPORT_C virtual void OnDeActivate(); |
96 IMPORT_C virtual void OnDeActivate(); |
126 |
97 |
127 IMPORT_C void ReDrawRect(const TRect& aRect); |
98 IMPORT_C void ReDrawRect(const TRect& aRect); |
128 IMPORT_C void HandleResourceChange(TInt aType); |
|
129 protected: |
99 protected: |
130 |
100 |
131 /** |
101 /** |
132 * constructor. |
102 * constructor. |
133 * |
103 * |
158 * It's called internally before displaying. |
128 * It's called internally before displaying. |
159 * |
129 * |
160 * @since S60 V4.0 |
130 * @since S60 V4.0 |
161 */ |
131 */ |
162 IMPORT_C virtual void OnDisplay(); |
132 IMPORT_C virtual void OnDisplay(); |
163 void DisableDrawingInGroup(); |
|
164 void EnableDrawingInGroup(); |
|
165 private: |
133 private: |
166 /* |
134 /* |
167 * Flag tells whether the pop up window is shown |
135 * Flag tells whether the pop up window is shown |
168 */ |
136 */ |
169 TBool iIsShowing; |
137 TBool iIsShowing; |
194 TInt iReserved1; |
162 TInt iReserved1; |
195 |
163 |
196 /** |
164 /** |
197 * Reserved item2 |
165 * Reserved item2 |
198 */ |
166 */ |
199 CPopupWndExt* iExt; |
167 TInt iReserved2; |
200 }; |
168 }; |
201 |
169 |
202 #endif //C_CFEPLAYOUTPOPUPWND_H |
170 #endif //C_CFEPLAYOUTPOPUPWND_H |