equal
deleted
inserted
replaced
520 "[CGSParentContainer] HandleListBoxEventL aEventType:%d", |
520 "[CGSParentContainer] HandleListBoxEventL aEventType:%d", |
521 aEventType); |
521 aEventType); |
522 switch (aEventType) |
522 switch (aEventType) |
523 { |
523 { |
524 case EEventEnterKeyPressed: |
524 case EEventEnterKeyPressed: |
525 case EEventItemSingleClicked: |
525 case EEventItemDoubleClicked: |
526 { |
526 { |
527 __GSLOGSTRING1( |
527 __GSLOGSTRING1( |
528 "[CGSParentContainer] Activating view plugin in index[%d]", |
528 "[CGSParentContainer] Activating view plugin in index[%d]", |
529 aListBox->CurrentItemIndex() ); |
529 aListBox->CurrentItemIndex() ); |
530 |
530 |
831 { |
831 { |
832 iListBox->View()->SetListEmptyTextL( aEmpty ); |
832 iListBox->View()->SetListEmptyTextL( aEmpty ); |
833 } |
833 } |
834 } |
834 } |
835 |
835 |
836 // ----------------------------------------------------------------------------- |
|
837 // CGSParentContainer::GetPositionL() |
|
838 // |
|
839 //Get the exact position of listbox. |
|
840 // ----------------------------------------------------------------------------- |
|
841 // |
|
842 void CGSParentContainer::GetPositionL(RArray<TInt>& posArray) |
|
843 { |
|
844 posArray.AppendL(iListBox->CurrentItemIndex()); |
|
845 posArray.AppendL(iListBox->View()->ItemOffsetInPixels()); |
|
846 posArray.AppendL(iListBox->View()->TopItemIndex()); |
|
847 return; |
|
848 } |
|
849 |
|
850 // ----------------------------------------------------------------------------- |
|
851 // CGSParentContainer::GetPositionL() |
|
852 // |
|
853 //Get the exact position of listbox. |
|
854 // ----------------------------------------------------------------------------- |
|
855 // |
|
856 void CGSParentContainer::SetPosition(const RArray<TInt>& pos, TBool aChangeMode) |
|
857 { |
|
858 iListBox->SetCurrentItemIndex(pos.operator[](0)); |
|
859 iListBox->View()->SetItemOffsetInPixels(pos.operator[](1)); |
|
860 if (aChangeMode) |
|
861 { |
|
862 iListBox->View()->VerticalMoveToItemL(pos.operator[](0), CListBoxView::ESingleSelection); |
|
863 } |
|
864 else |
|
865 { |
|
866 iListBox->View()->SetTopItemIndex(pos.operator[](2)); |
|
867 } |
|
868 } |
|
869 //End of File |
836 //End of File |