Skip to content
Snippets Groups Projects
  • Paul Guslisty's avatar
    5285a7fa
    EXT-7565 FIXED Would be nice to preserve selection while switching between folder/list view modes · 5285a7fa
    Paul Guslisty authored
    - Created callback called 'SaveSelecton' (which preserves selection while switching between folder/list view modes) for folder/list view modes buttons in LLPanelOutfitEdit.
    
    - Added 'scrollToShowFirstSelectedItem' method in the LLFlatListView which scrools and shows the first selected item in case multiselection.
    
    - It's possible to set selection for flat list view items before list is build. The result is that any items will be selected. To get rid of it:
       1. Overrided LLFlatListView::selectItemByValue method in LLInventoryItemsList so that if list is not created yet, items ids are saved to the vector.
       2. Added 'LLInventoryItemsList::updateSelection()' method which selects items with ids from that vector when list is created.
    
    - A little refactoring: moved funcionality of updating WearablesPanel's verb buttons to the separate method called LLPanelOutfitEdit::updateWearablesPanelVerbButtons() to made code more readable and self-explanatory
    
    Reviewed by Vadim Savchuk and Neal Orman at https://codereview.productengine.com/secondlife/r/579/
    
    --HG--
    branch : product-engine
    5285a7fa
    History
    EXT-7565 FIXED Would be nice to preserve selection while switching between folder/list view modes
    Paul Guslisty authored
    - Created callback called 'SaveSelecton' (which preserves selection while switching between folder/list view modes) for folder/list view modes buttons in LLPanelOutfitEdit.
    
    - Added 'scrollToShowFirstSelectedItem' method in the LLFlatListView which scrools and shows the first selected item in case multiselection.
    
    - It's possible to set selection for flat list view items before list is build. The result is that any items will be selected. To get rid of it:
       1. Overrided LLFlatListView::selectItemByValue method in LLInventoryItemsList so that if list is not created yet, items ids are saved to the vector.
       2. Added 'LLInventoryItemsList::updateSelection()' method which selects items with ids from that vector when list is created.
    
    - A little refactoring: moved funcionality of updating WearablesPanel's verb buttons to the separate method called LLPanelOutfitEdit::updateWearablesPanelVerbButtons() to made code more readable and self-explanatory
    
    Reviewed by Vadim Savchuk and Neal Orman at https://codereview.productengine.com/secondlife/r/579/
    
    --HG--
    branch : product-engine
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
llflatlistview.cpp 33.29 KiB