javauis/eswt_akn/org.eclipse.ercp.swt.s60/native/src/swtsortedlist.cpp
branchRCL_3
changeset 19 71c436fe3ce0
parent 18 9ac0a0a7da70
child 24 6c158198356e
equal deleted inserted replaced
18:9ac0a0a7da70 19:71c436fe3ce0
   501     // Deliver event to list
   501     // Deliver event to list
   502     if (!iFilterGrabsPointerEvents)
   502     if (!iFilterGrabsPointerEvents)
   503     {
   503     {
   504         CSwtListBase::HandlePointerEventL(aPointerEvent);
   504         CSwtListBase::HandlePointerEventL(aPointerEvent);
   505     }
   505     }
       
   506     else
       
   507     {
       
   508         PostMouseEventL(aPointerEvent);
       
   509     }
   506 }
   510 }
   507 #endif //RD_SCALABLE_UI_V2
   511 #endif //RD_SCALABLE_UI_V2
   508 
   512 
   509 // ---------------------------------------------------------------------------
   513 // ---------------------------------------------------------------------------
   510 // CSwtSortedList::PositionChanged
   514 // CSwtSortedList::PositionChanged
   529 void CSwtSortedList::FocusChanged(TDrawNow aDrawNow)
   533 void CSwtSortedList::FocusChanged(TDrawNow aDrawNow)
   530 {
   534 {
   531     TBool isFocused = IsFocused();
   535     TBool isFocused = IsFocused();
   532     if (iList)
   536     if (iList)
   533     {
   537     {
       
   538 #ifdef RD_JAVA_S60_RELEASE_9_2
       
   539         EnableFocusHighlight(isFocused);
       
   540 #endif //RD_JAVA_S60_RELEASE_9_2
   534         iList->SetFocus(isFocused, aDrawNow);
   541         iList->SetFocus(isFocused, aDrawNow);
   535         if (iSearchField)
   542         if (iSearchField)
   536         {
   543         {
   537             iSearchField->Editor().SetFocus(isFocused);
   544             iSearchField->Editor().SetFocus(isFocused);
   538         }
   545         }
   592         }
   599         }
   593     }
   600     }
   594 
   601 
   595     CSwtListBase::ProcessKeyEventL(aKeyEvent, aType);
   602     CSwtListBase::ProcessKeyEventL(aKeyEvent, aType);
   596 }
   603 }
       
   604 
       
   605 #ifdef RD_JAVA_S60_RELEASE_9_2
       
   606 // ---------------------------------------------------------------------------
       
   607 // CSwtSortedList::EnableFocusHighlight
       
   608 // From MSwtControl
       
   609 // ---------------------------------------------------------------------------
       
   610 //
       
   611 void CSwtSortedList::EnableFocusHighlight(TBool aEnable)
       
   612 {
       
   613     ASSERT(iList);
       
   614     ASSERT(iList->View());
       
   615 
       
   616     CSwtListBoxLists::EnableFocusHighlight(iList->View()->ItemDrawer(),
       
   617                                            aEnable);
       
   618 }
       
   619 #endif //RD_JAVA_S60_RELEASE_9_2
   597 
   620 
   598 // ---------------------------------------------------------------------------
   621 // ---------------------------------------------------------------------------
   599 // CSwtSortedList::DoPaint
   622 // CSwtSortedList::DoPaint
   600 // From MSwtControl
   623 // From MSwtControl
   601 // ---------------------------------------------------------------------------
   624 // ---------------------------------------------------------------------------
   922 
   945 
   923         iSearchField->AddAdaptiveSearchTextObserverL(this);
   946         iSearchField->AddAdaptiveSearchTextObserverL(this);
   924         iSearchField->SetComponentsToInheritVisibility(ETrue);
   947         iSearchField->SetComponentsToInheritVisibility(ETrue);
   925 
   948 
   926         // Set search field to use only second column to get
   949         // Set search field to use only second column to get
   927         // item text. Items use \t as column separators, see method 
   950         // item text. Items use \t as column separators, see method
   928         // CSwtListBase::CreateItemTextLC() for details. 
   951         // CSwtListBase::CreateItemTextLC() for details.
   929         const int KItemTextColumnFlag = 2;
   952         const int KItemTextColumnFlag = 2;
   930         iSearchField->SetListColumnFilterFlags(KItemTextColumnFlag);
   953         iSearchField->SetListColumnFilterFlags(KItemTextColumnFlag);
   931 
   954 
   932         CAknFilteredTextListBoxModel* model = STATIC_CAST(
   955         CAknFilteredTextListBoxModel* model = STATIC_CAST(
   933                                                   CAknFilteredTextListBoxModel*, iList->Model());
   956                                                   CAknFilteredTextListBoxModel*, iList->Model());