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> |
22 /** |
23 /** |
23 * CButtonBase |
24 * CButtonBase |
24 * |
25 * |
25 * Button base control. This class could be used directly by user. |
26 * Button base control. This class could be used directly by user. |
26 * |
27 * |
27 * @lib feplayoutcontrol.lib |
28 * @lib feplayoutcontrol.lib |
28 * @since S60 V4.0 |
29 * @since S60 V4.0 |
29 */ |
30 */ |
30 class CFepLayoutPopupWnd : public CControlGroup |
31 class CFepLayoutPopupWnd : public CControlGroup |
31 { |
32 { |
|
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 }; |
32 public: |
61 public: |
33 enum TDisplayPosition |
62 enum TDisplayPosition |
34 { |
63 { |
35 EDispAutomatic, |
64 EDispAutomatic, |
36 EDispBottomRight, |
65 EDispBottomRight, |
94 * @since S60 V4.0 |
123 * @since S60 V4.0 |
95 */ |
124 */ |
96 IMPORT_C virtual void OnDeActivate(); |
125 IMPORT_C virtual void OnDeActivate(); |
97 |
126 |
98 IMPORT_C void ReDrawRect(const TRect& aRect); |
127 IMPORT_C void ReDrawRect(const TRect& aRect); |
|
128 IMPORT_C void HandleResourceChange(TInt aType); |
99 protected: |
129 protected: |
100 |
130 |
101 /** |
131 /** |
102 * constructor. |
132 * constructor. |
103 * |
133 * |
128 * It's called internally before displaying. |
158 * It's called internally before displaying. |
129 * |
159 * |
130 * @since S60 V4.0 |
160 * @since S60 V4.0 |
131 */ |
161 */ |
132 IMPORT_C virtual void OnDisplay(); |
162 IMPORT_C virtual void OnDisplay(); |
|
163 void DisableDrawingInGroup(); |
|
164 void EnableDrawingInGroup(); |
133 private: |
165 private: |
134 /* |
166 /* |
135 * Flag tells whether the pop up window is shown |
167 * Flag tells whether the pop up window is shown |
136 */ |
168 */ |
137 TBool iIsShowing; |
169 TBool iIsShowing; |
162 TInt iReserved1; |
194 TInt iReserved1; |
163 |
195 |
164 /** |
196 /** |
165 * Reserved item2 |
197 * Reserved item2 |
166 */ |
198 */ |
167 TInt iReserved2; |
199 CPopupWndExt* iExt; |
168 }; |
200 }; |
169 |
201 |
170 #endif //C_CFEPLAYOUTPOPUPWND_H |
202 #endif //C_CFEPLAYOUTPOPUPWND_H |