32 class CBrowserBookmarksGotoPane; |
32 class CBrowserBookmarksGotoPane; |
33 class CAknsListBoxBackgroundControlContext; |
33 class CAknsListBoxBackgroundControlContext; |
34 class CAknsFrameBackgroundControlContext; |
34 class CAknsFrameBackgroundControlContext; |
35 class CBrowserFavouritesView; |
35 class CBrowserFavouritesView; |
36 |
36 |
|
37 |
|
38 // DEFINES |
|
39 #ifndef GOTOPANE_POPUPLIST_DISABLE |
|
40 #define GOTOPANE_POPUPLIST_DISABLE EFalse |
|
41 #endif |
|
42 |
|
43 #ifndef GOTOPANE_POPUPLIST_ENABLE |
|
44 #define GOTOPANE_POPUPLIST_ENABLE ETrue |
|
45 #endif |
|
46 |
|
47 |
37 // class CBrowserAdaptiveListPopup; |
48 // class CBrowserAdaptiveListPopup; |
38 // CLASS DECLARATION |
49 // CLASS DECLARATION |
39 |
50 |
40 /** |
51 /** |
41 * Mixin class for handling Bookmark Goto Pane events. |
52 * Mixin class for handling Bookmark Goto Pane events. |
75 { |
86 { |
76 public: // Construct / destruct |
87 public: // Construct / destruct |
77 |
88 |
78 /** |
89 /** |
79 * Two-phased constructor. Leaves on failure. |
90 * Two-phased constructor. Leaves on failure. |
|
91 * @param aView Pointer to Favourites View |
80 * @param aParent Parent control. |
92 * @param aParent Parent control. |
81 * @param aIcon Icon to display. If NULL, a default is used. |
93 * @param aBitmapfile Icon File Path |
82 * @param aTextLimit Maximum length of text. |
94 * @param aIconBitmapId Icon to display. |
83 * @return The constructed Goto Pane control. |
95 * @param aIconMaskId Icon Mask |
|
96 * @param aPopupListStatus True if the pane uses popuplist, |
|
97 * otherwise false. |
|
98 * @param aSearchPaneMode Set true if the pane is a Search pane. |
|
99 * @return The constructed Goto Pane control |
84 */ |
100 */ |
85 static CBrowserBookmarksGotoPane* NewL |
101 static CBrowserBookmarksGotoPane* NewL |
86 ( const CCoeControl& aParent, CBrowserFavouritesView* aView ); |
102 ( |
87 |
103 const CCoeControl& aParent, |
|
104 CBrowserFavouritesView* aView, |
|
105 const TDesC& aBitmapfile, |
|
106 TInt aIconBitmapId , |
|
107 TInt aIconMaskId , |
|
108 TBool aPopupListStatus = GOTOPANE_POPUPLIST_ENABLE, |
|
109 TBool aSearchPaneMode = EFalse |
|
110 ); |
|
111 |
|
112 |
88 /** |
113 /** |
89 * Destructor. |
114 * Destructor. |
90 */ |
115 */ |
91 virtual ~CBrowserBookmarksGotoPane(); |
116 virtual ~CBrowserBookmarksGotoPane(); |
92 |
117 |
124 * @param aClipToFit If ETrue, text is clipped "..." if doesn't fit. |
149 * @param aClipToFit If ETrue, text is clipped "..." if doesn't fit. |
125 * @param aCancelEditing If EFalse, editing is not cancelled |
150 * @param aCancelEditing If EFalse, editing is not cancelled |
126 */ |
151 */ |
127 void SetTextL( const TDesC& aText, TBool aClipToFit = ETrue, TBool aCancelEditing = ETrue ); |
152 void SetTextL( const TDesC& aText, TBool aClipToFit = ETrue, TBool aCancelEditing = ETrue ); |
128 |
153 |
|
154 /** |
|
155 * Set Editor Font Posture to Italic. |
|
156 */ |
|
157 void SetTextModeItalicL( ); |
|
158 |
129 /** |
159 /** |
130 * Get text; ownership passed. The returned buffer is zero-terminated. |
160 * Get text; ownership passed. The returned buffer is zero-terminated. |
131 * @since 1.2 |
161 * @since 1.2 |
132 * @return Text in a buffer or NULL. Owner is the caller. |
162 * @return Text in a buffer or NULL. Owner is the caller. |
133 */ |
163 */ |
215 * HandlePointerEventL |
245 * HandlePointerEventL |
216 * From CCoeControl |
246 * From CCoeControl |
217 * |
247 * |
218 */ |
248 */ |
219 void HandlePointerEventL(const TPointerEvent& /*aPointerEvent*/); |
249 void HandlePointerEventL(const TPointerEvent& /*aPointerEvent*/); |
|
250 |
|
251 /** |
|
252 * Sets/Unsets Virtual Keyboard Flag. |
|
253 * @param aVKBFlag - ETrue sets the flag, Unsets the flag if EFalse. |
|
254 */ |
|
255 void SetVKBFlag( TBool aVKBFlag ); |
220 |
256 |
221 protected: // Construct / destruct |
257 protected: // Construct / destruct |
222 |
258 |
223 /** |
259 /** |
224 * Constructor. |
260 * Constructor. |
225 */ |
261 */ |
226 CBrowserBookmarksGotoPane(CBrowserFavouritesView* aView); |
262 CBrowserBookmarksGotoPane(CBrowserFavouritesView* aView, TBool aSearchPaneMode ); |
227 |
263 |
228 /** |
264 /** |
229 * Second-phase constructor. Leaves on failure. |
265 * Second-phase constructor. Leaves on failure. |
230 * @param aParent Parent control. |
266 * @param aParent Parent control. |
231 */ |
267 */ |
232 void ConstructL |
268 void ConstructL( const CCoeControl& aParent, const TDesC& aBitmapfile, TInt aIconBitmapId, |
233 ( const CCoeControl& aParent ); |
269 TInt aIconMaskId, TBool aPopupListStatus ); |
234 |
270 |
235 protected: // from CCoeControl |
271 protected: // from CCoeControl |
236 |
272 |
237 /** |
273 /** |
238 * Handle size change, lay out components. |
274 * Handle size change, lay out components. |
266 TBool iEverFocused; |
305 TBool iEverFocused; |
267 /// adaptive popuplist |
306 /// adaptive popuplist |
268 CBrowserAdaptiveListPopup* iBAdaptiveListPopup; |
307 CBrowserAdaptiveListPopup* iBAdaptiveListPopup; |
269 CAknsListBoxBackgroundControlContext* iSkinContext; |
308 CAknsListBoxBackgroundControlContext* iSkinContext; |
270 CAknsFrameBackgroundControlContext* iInputContext; |
309 CAknsFrameBackgroundControlContext* iInputContext; |
|
310 // If the control is in Search Pane Mode. |
|
311 TBool iSearchPaneMode; |
|
312 // Default text in search editor. Owned |
|
313 HBufC* iDefaultSearchText; |
271 }; |
314 }; |
272 |
315 |
273 #include "BrowserBookmarksGotoPane.inl" |
316 #include "BrowserBookmarksGotoPane.inl" |
274 |
317 |
275 #endif |
318 #endif |