phonebookui/Phonebook2/UIControls/src/cpbk2contactviewcustomlistboxitemdrawer.cpp
equal
deleted
inserted
replaced
47 //Start of Code Added for PhoneBook2 |
47 //Start of Code Added for PhoneBook2 |
48 //Added for PhoneBook2 |
48 //Added for PhoneBook2 |
49 #include "cpbk2contactviewcustomlistboxdata.h" |
49 #include "cpbk2contactviewcustomlistboxdata.h" |
50 #include "cpbk2contactviewcustomlistboxitemdrawer.h" |
50 #include "cpbk2contactviewcustomlistboxitemdrawer.h" |
51 //End of Code Added for PhoneBook2 |
51 //End of Code Added for PhoneBook2 |
|
52 |
|
53 //Note: |
|
54 //**** |
|
55 //PBK2_AVKON_TOUCH_MARKINGMODE_CHANGES |
|
56 //Define this Flag once Pbk2 decides to implement the MarkingMode changes that has been implemented for Avkon Lists |
52 |
57 |
53 // |
58 // |
54 // Class CPbk2ContactViewCustomListBoxItemDrawer |
59 // Class CPbk2ContactViewCustomListBoxItemDrawer |
55 // |
60 // |
56 |
61 |
141 // Data needs the cell size to create/reconfigure highlight animations |
146 // Data needs the cell size to create/reconfigure highlight animations |
142 CPbk2ContactViewCustomListBoxData* data = ColumnData(); |
147 CPbk2ContactViewCustomListBoxData* data = ColumnData(); |
143 data->SetItemCellSize( iItemCellSize ); |
148 data->SetItemCellSize( iItemCellSize ); |
144 } |
149 } |
145 |
150 |
|
151 #ifndef RD_TOUCH2 |
146 void CPbk2ContactViewCustomListBoxItemDrawer::DrawCurrentItemRect(const TRect& aRect) const |
152 void CPbk2ContactViewCustomListBoxItemDrawer::DrawCurrentItemRect(const TRect& aRect) const |
147 // |
153 // |
148 // Draw the item background |
154 // Draw the item background |
149 // |
155 // |
150 { |
156 { |
152 iGc->SetBrushStyle(CGraphicsContext::ENullBrush); |
158 iGc->SetBrushStyle(CGraphicsContext::ENullBrush); |
153 iGc->SetPenColor(iHighlightedBackColor); // KDefaultLbxHighlightRectColor |
159 iGc->SetPenColor(iHighlightedBackColor); // KDefaultLbxHighlightRectColor |
154 iGc->DrawRect(aRect); |
160 iGc->DrawRect(aRect); |
155 iGc->CancelClippingRect(); |
161 iGc->CancelClippingRect(); |
156 } |
162 } |
|
163 #endif // !RD_TOUCH2 |
157 |
164 |
158 /** |
165 /** |
159 * Returns a pointer to the column data. Does not imply transfer of ownership. |
166 * Returns a pointer to the column data. Does not imply transfer of ownership. |
160 * |
167 * |
161 * @since ER5U |
168 * @since ER5U |
201 // SERIES60 ITEM MARKS! SAPLAF (the same code is in eikfrlb.cpp and eikclb.cpp) |
208 // SERIES60 ITEM MARKS! SAPLAF (the same code is in eikfrlb.cpp and eikclb.cpp) |
202 TPtrC repl; |
209 TPtrC repl; |
203 TInt pos = -1; |
210 TInt pos = -1; |
204 |
211 |
205 TBool removeicon = (!aItemIsSelected && !ItemMarkReverse()) || (aItemIsSelected && ItemMarkReverse()); |
212 TBool removeicon = (!aItemIsSelected && !ItemMarkReverse()) || (aItemIsSelected && ItemMarkReverse()); |
|
213 #ifdef PBK2_AVKON_TOUCH_MARKINGMODE_CHANGES |
|
214 |
|
215 if ( Flags() & CListItemDrawer::EMarkingModeEnabled ) |
|
216 { |
|
217 removeicon = EFalse; |
|
218 } |
|
219 #endif // PBK2_AVKON_TOUCH_MARKINGMODE_CHANGES |
206 if ( Flags() & EDrawMarkSelection && ItemMarkPosition() != -1 && removeicon) |
220 if ( Flags() & EDrawMarkSelection && ItemMarkPosition() != -1 && removeicon) |
207 { |
221 { |
208 repl.Set( ItemMarkReplacement() ); |
222 repl.Set( ItemMarkReplacement() ); |
209 pos = ItemMarkPosition(); |
223 pos = ItemMarkPosition(); |
210 } |
224 } |