61 */ |
61 */ |
62 |
62 |
63 void SetGotoActiveL(); |
63 void SetGotoActiveL(); |
64 |
64 |
65 /** |
65 /** |
66 * Deactivate Goto Mode |
66 * Activate Search Pane |
|
67 */ |
|
68 void SetSearchActiveL(); |
|
69 /** |
|
70 * Deactivate Goto Pane |
67 */ |
71 */ |
68 |
72 |
69 void SetGotoInactiveL(); |
73 void SetGotoInactiveL(); |
70 |
74 |
|
75 /** |
|
76 * Deactivate Search Pane |
|
77 */ |
|
78 void SetSearchInactiveL(); |
71 public: // access to components |
79 public: // access to components |
72 |
80 |
73 /** |
81 /** |
74 * Get the Goto Pane. |
82 * Get the Goto Pane. |
75 * @return The Goto Pane. |
83 * @return The Goto Pane. |
76 */ |
84 */ |
77 inline CBrowserBookmarksGotoPane* GotoPane() const; |
85 inline CBrowserBookmarksGotoPane* GotoPane() const; |
78 |
86 |
79 |
87 /** |
|
88 * Get the Search Pane. |
|
89 * @return The Search Pane. |
|
90 */ |
|
91 inline CBrowserBookmarksGotoPane* SearchPane() const; |
|
92 |
80 /** |
93 /** |
81 * Check if we are in Goto Mode |
94 * Check if we are in Goto Mode |
82 * @return ETrue if we are in Goto Mode; EFalse otherwise. |
95 * @return ETrue if we are in Goto Mode; EFalse otherwise. |
83 */ |
96 */ |
84 inline TBool GotoPaneActive() const; |
97 inline TBool GotoPaneActive() const; |
|
98 |
|
99 /** |
|
100 * Check if we are in Search Mode |
|
101 * @return ETrue if we are in Search Mode; EFalse otherwise. |
|
102 */ |
|
103 inline TBool SearchPaneActive() const; |
85 |
104 |
86 public: // from CBrowserFavouritesContainer |
105 public: // from CBrowserFavouritesContainer |
87 |
106 |
88 /** |
107 /** |
89 * Count component controls. |
108 * Count component controls. |
170 */ |
200 */ |
171 virtual void ConstructComponentControlsL( |
201 virtual void ConstructComponentControlsL( |
172 const TRect& aRect, |
202 const TRect& aRect, |
173 CBrowserFavouritesView& aView ); |
203 CBrowserFavouritesView& aView ); |
174 |
204 |
|
205 /** |
|
206 * Called by ConstructComponentControlsL. |
|
207 * Leaves on failure. |
|
208 */ |
|
209 virtual void ConstructSearchPaneL(); |
|
210 |
175 protected: // from CBrowserFavouritesContainer |
211 protected: // from CBrowserFavouritesContainer |
176 |
212 |
177 /** |
213 /** |
178 * Create icon handler for the listbox. |
214 * Create icon handler for the listbox. |
179 * @return Icon handler for the listbox. |
215 * @return Icon handler for the listbox. |
194 |
230 |
195 /** |
231 /** |
196 * Goto Pane. |
232 * Goto Pane. |
197 */ |
233 */ |
198 CBrowserBookmarksGotoPane* iGotoPane; |
234 CBrowserBookmarksGotoPane* iGotoPane; |
199 |
235 |
200 |
236 /** |
|
237 * Owned. |
|
238 * Search Pane. |
|
239 */ |
|
240 CBrowserBookmarksGotoPane* iSearchPane; |
|
241 |
201 /** |
242 /** |
202 * ETrue if Goto pane is active, EFalse by default |
243 * ETrue if Goto pane is active, EFalse by default |
203 */ |
244 */ |
204 TBool iGotoPaneActive; |
245 TBool iGotoPaneActive; |
|
246 |
|
247 /** |
|
248 * ETrue if Search pane is active, EFalse by default |
|
249 */ |
|
250 TBool iSearchPaneActive; |
205 |
251 |
206 TBool iSelectionKeyDownPressed; |
252 TBool iSelectionKeyDownPressed; |
207 TBool iSelectionKeyLongPress; |
253 TBool iSelectionKeyLongPress; |
|
254 |
|
255 /** |
|
256 * Default text in search editor |
|
257 */ |
|
258 HBufC* iDefaultSearchText; |
|
259 |
|
260 /** |
|
261 * Saves Search Provider Icon Id, |
|
262 * used for tracking changes to Icon. |
|
263 */ |
|
264 TInt iSearchIconId; |
|
265 |
|
266 /** |
|
267 * Saves Search Icon File Path |
|
268 * used for tracking changes to Icon. |
|
269 */ |
|
270 TFileName iSearchIconFilePath; |
208 }; |
271 }; |
209 |
272 |
210 #include "BrowserBookmarksContainer.inl" |
273 #include "BrowserBookmarksContainer.inl" |
211 |
274 |
212 #endif |
275 #endif |