equal
deleted
inserted
replaced
175 * @param CWindowGc. |
175 * @param CWindowGc. |
176 * @param TRect. |
176 * @param TRect. |
177 */ |
177 */ |
178 void HandlePopupCharacter( CWindowGc* aGc, |
178 void HandlePopupCharacter( CWindowGc* aGc, |
179 const TRect& aRectOfListBoxItem ) const; |
179 const TRect& aRectOfListBoxItem ) const; |
180 |
|
181 /** |
|
182 * Set the state of the Marking mode |
|
183 */ |
|
184 inline void SetMarkingModeState( TBool aActived ) |
|
185 { |
|
186 iMarkingModeOn = aActived; |
|
187 } |
|
188 |
|
189 /** |
|
190 * Reset the value of iShowPopupChar, i.e. set its value to EFalse. |
|
191 * As for iShowPopupChar, ETrue indicates showing the scrollbar popup char; |
|
192 * EFalse indicates the opposite. |
|
193 */ |
|
194 inline void ResetShowPopupChar() |
|
195 { |
|
196 iShowPopupChar = EFalse; |
|
197 } |
|
198 |
180 |
199 public: // From MPbk2ClipListBoxText |
181 public: // From MPbk2ClipListBoxText |
200 TBool ClipFromBeginning( |
182 TBool ClipFromBeginning( |
201 TDes& aBuffer, |
183 TDes& aBuffer, |
202 TInt aItemIndex, |
184 TInt aItemIndex, |
241 const CPbk2IconArray& aIconArray, |
223 const CPbk2IconArray& aIconArray, |
242 TPbk2IconId aEmptyIconId, |
224 TPbk2IconId aEmptyIconId, |
243 TPbk2IconId aDefaultIconId ); |
225 TPbk2IconId aDefaultIconId ); |
244 |
226 |
245 TBool IsContact( TInt aIndex ) const; |
227 TBool IsContact( TInt aIndex ) const; |
246 |
|
247 private: |
|
248 void RecalcWidthInMarkingMode( TInt& aWidth, const CFont& aFont, TChar aChar ); |
|
249 |
228 |
250 private: // Data structures |
229 private: // Data structures |
251 /// Data loaded from resources |
230 /// Data loaded from resources |
252 struct TResourceData |
231 struct TResourceData |
253 { |
232 { |
285 CPbk2ContactViewCustomListBoxData* iColumnData; |
264 CPbk2ContactViewCustomListBoxData* iColumnData; |
286 ///Ref : Search Pane Filter |
265 ///Ref : Search Pane Filter |
287 CPbk2PredictiveSearchFilter &iSearchFilter; |
266 CPbk2PredictiveSearchFilter &iSearchFilter; |
288 // ref: used fro checking command item count |
267 // ref: used fro checking command item count |
289 CCoeControl& iContainer; |
268 CCoeControl& iContainer; |
290 // Flag to indicate whether Marking mode is active |
|
291 TBool iMarkingModeOn; |
|
292 |
269 |
293 }; |
270 }; |
294 |
271 |
295 #endif // CPBK2CONTACTVIEWLISTBOX_H |
272 #endif // CPBK2CONTACTVIEWLISTBOX_H |
296 |
273 |