equal
deleted
inserted
replaced
214 { |
214 { |
215 return; |
215 return; |
216 } |
216 } |
217 |
217 |
218 //in case skin or resolution has changed |
218 //in case skin or resolution has changed |
|
219 #ifdef RD_JAVA_S60_RELEASE_9_2 |
|
220 TBool highlighted = EFalse; |
|
221 if (iItem) |
|
222 { |
|
223 highlighted = iItem->IsHighlighted(); |
|
224 } |
|
225 #endif // RD_JAVA_S60_RELEASE_9_2 |
|
226 |
219 iModel->ReConstructSelectionIconsL(); |
227 iModel->ReConstructSelectionIconsL(); |
|
228 |
|
229 #ifdef RD_JAVA_S60_RELEASE_9_2 |
|
230 iModel->UpdateIconArrayL(highlighted); |
|
231 #else |
220 iModel->UpdateIconArrayL(); |
232 iModel->UpdateIconArrayL(); |
|
233 #endif // RD_JAVA_S60_RELEASE_9_2 |
221 |
234 |
222 iListBox = CreateListBoxL(aParent); |
235 iListBox = CreateListBoxL(aParent); |
223 |
236 |
224 // Disable transition effects for iListBox, this is needed to get |
237 // Disable transition effects for iListBox, this is needed to get |
225 // rid of artifacts caused by transition effects when list box controls |
238 // rid of artifacts caused by transition effects when list box controls |
627 } |
640 } |
628 } |
641 } |
629 } |
642 } |
630 } |
643 } |
631 |
644 |
|
645 #ifdef RD_JAVA_S60_RELEASE_9_2 |
|
646 TBool CMIDChoiceGroupControl::IsControlOnFormHighlighted() |
|
647 { |
|
648 if (iItem) |
|
649 { |
|
650 return iItem->IsHighlighted(); |
|
651 } |
|
652 else |
|
653 { |
|
654 return EFalse; |
|
655 } |
|
656 } |
|
657 #endif // RD_JAVA_S60_RELEASE_9_2 |
632 |
658 |
633 // --- from MEikListBoxObserver --- |
659 // --- from MEikListBoxObserver --- |
634 // Handles choice listbox events (as in selection) |
660 // Handles choice listbox events (as in selection) |
635 void CMIDChoiceGroupControl::HandleListBoxEventL(CEikListBox* aControl, TListBoxEvent aEventType) |
661 void CMIDChoiceGroupControl::HandleListBoxEventL(CEikListBox* aControl, TListBoxEvent aEventType) |
636 { |
662 { |
1197 { |
1223 { |
1198 // Get color from skin |
1224 // Get color from skin |
1199 TRgb rgb = AKN_LAF_COLOR(215); |
1225 TRgb rgb = AKN_LAF_COLOR(215); |
1200 TInt textColor; |
1226 TInt textColor; |
1201 |
1227 |
|
1228 // Set color for text according to item highlight |
|
1229 // (logical color constants are defined in lcdui.h) |
1202 if (iItem && iItem->IsHighlighted()) |
1230 if (iItem && iItem->IsHighlighted()) |
1203 { |
1231 { |
1204 textColor = EAknsCIQsnTextColorsCG8; |
1232 textColor = KHighlightedItemTextColor; |
1205 } |
1233 } |
1206 else |
1234 else |
1207 { |
1235 { |
1208 textColor = EAknsCIQsnTextColorsCG6; |
1236 textColor = KNonHighlightedItemTextColor; |
1209 } |
1237 } |
1210 |
1238 |
1211 AknsUtils::GetCachedColor(AknsUtils::SkinInstance(), |
1239 AknsUtils::GetCachedColor(AknsUtils::SkinInstance(), |
1212 rgb, KAknsIIDQsnTextColors, textColor); |
1240 rgb, KAknsIIDQsnTextColors, textColor); |
1213 iPopupTextLayout.DrawText(SystemGc(), aText, ETrue, rgb); |
1241 iPopupTextLayout.DrawText(SystemGc(), aText, ETrue, rgb); |
1388 // pop goes the weasel |
1416 // pop goes the weasel |
1389 void CMIDChoiceGroupControl::DoPopupL() |
1417 void CMIDChoiceGroupControl::DoPopupL() |
1390 { |
1418 { |
1391 //in case skin or resolution has changed |
1419 //in case skin or resolution has changed |
1392 iModel->ReConstructSelectionIconsL(); |
1420 iModel->ReConstructSelectionIconsL(); |
|
1421 |
|
1422 #ifdef RD_JAVA_S60_RELEASE_9_2 |
|
1423 iModel->UpdateIconArrayL(EFalse); |
|
1424 #else |
1393 iModel->UpdateIconArrayL(); |
1425 iModel->UpdateIconArrayL(); |
|
1426 #endif |
1394 |
1427 |
1395 // In order for the listbox to have popup as parent, it |
1428 // In order for the listbox to have popup as parent, it |
1396 // needs to be allocated and constructed separately |
1429 // needs to be allocated and constructed separately |
1397 CMIDChoiceGroupListBox* pListBox = AllocateListBoxL(); |
1430 CMIDChoiceGroupListBox* pListBox = AllocateListBoxL(); |
1398 CleanupStack::PushL(pListBox); |
1431 CleanupStack::PushL(pListBox); |
1886 #ifdef RD_JAVA_S60_RELEASE_9_2 |
1919 #ifdef RD_JAVA_S60_RELEASE_9_2 |
1887 CMIDForm* CMIDChoiceGroupControl::Form() const |
1920 CMIDForm* CMIDChoiceGroupControl::Form() const |
1888 { |
1921 { |
1889 return iItem->Form(); |
1922 return iItem->Form(); |
1890 } |
1923 } |
|
1924 |
|
1925 CMIDControlItem* CMIDChoiceGroupControl::ControlItem() const |
|
1926 { |
|
1927 return iItem; |
|
1928 } |
|
1929 |
|
1930 CMIDChoiceGroupListBox* CMIDChoiceGroupControl::InnerListBoxControl() const |
|
1931 { |
|
1932 return iListBox; |
|
1933 } |
|
1934 |
|
1935 CMIDChoiceGroupModel* CMIDChoiceGroupControl::InnerListBoxModel() const |
|
1936 { |
|
1937 return iModel; |
|
1938 } |
1891 #endif // RD_JAVA_S60_RELEASE_9_2 |
1939 #endif // RD_JAVA_S60_RELEASE_9_2 |