#include <llinventoryview.h>
Public Member Functions | |
LLInventoryView (const LLString &name, const LLString &rect, LLInventoryModel *inventory) | |
LLInventoryView (const LLString &name, const LLRect &rect, LLInventoryModel *inventory) | |
~LLInventoryView () | |
void | changed (U32 mask) |
BOOL | postBuild () |
void | setFilterTextFromFilter () |
void | startSearch () |
virtual void | onClose (bool app_quitting) |
virtual void | setVisible (BOOL visible) |
virtual void | draw () |
virtual BOOL | handleKeyHere (KEY key, MASK mask) |
BOOL | handleDragAndDrop (S32 x, S32 y, MASK mask, BOOL drop, EDragAndDropType cargo_type, void *cargo_data, EAcceptance *accept, LLString &tooltip_msg) |
LLInventoryPanel * | getPanel () |
LLInventoryPanel * | getActivePanel () |
const LLString | getFilterSubString () |
void | setFilterSubString (const LLString &string) |
void | toggleFindOptions () |
LLInventoryViewFinder * | getFinder () |
Static Public Member Functions | |
static LLInventoryView * | showAgentInventory (BOOL take_keyboard_focus=FALSE) |
static LLInventoryView * | getActiveInventory () |
static void | toggleVisibility () |
static void | toggleVisibility (void *) |
static void | cleanup () |
static BOOL | filtersVisible (void *user_data) |
static void | onClearSearch (void *user_data) |
static void | onFoldersByName (void *user_data) |
static BOOL | checkFoldersByName (void *user_data) |
static void | onSearchEdit (const LLString &search_string, void *user_data) |
static void | onFilterSelected (void *userdata, bool from_click) |
static void | onSelectionChange (const std::deque< LLFolderViewItem * > &items, BOOL user_action, void *data) |
static BOOL | incrementalFind (LLFolderViewItem *first_item, const char *find_text, BOOL backward) |
Static Public Attributes | |
static BOOL | sWearNewClothing = FALSE |
static LLUUID | sWearNewClothingTransactionID |
Protected Member Functions | |
void | init (LLInventoryModel *inventory) |
Protected Attributes | |
LLSearchEditor * | mSearchEditor |
LLTabContainer * | mFilterTabs |
LLHandle< LLFloater > | mFinderHandle |
LLInventoryPanel * | mActivePanel |
LLSaveFolderState * | mSavedFolderState |
LLString | mFilterText |
Static Protected Attributes | |
static LLDynamicArray < LLInventoryView * > | sActiveViews |
Friends | |
class | LLInventoryViewFinder |
Definition at line 186 of file llinventoryview.h.
LLInventoryView::LLInventoryView | ( | const LLString & | name, | |
const LLString & | rect, | |||
LLInventoryModel * | inventory | |||
) |
Definition at line 452 of file llinventoryview.cpp.
References LLPanel::init().
Referenced by showAgentInventory().
LLInventoryView::LLInventoryView | ( | const LLString & | name, | |
const LLRect & | rect, | |||
LLInventoryModel * | inventory | |||
) |
Definition at line 463 of file llinventoryview.cpp.
References LLPanel::init(), and LLView::setRect().
LLInventoryView::~LLInventoryView | ( | void | ) |
Definition at line 566 of file llinventoryview.cpp.
References gDirUtilp, LLDir::getExpandedFilename(), LLInventoryPanel::getFilter(), LLInventoryFilter::getName(), gInventory, LL_PATH_PER_SL_ACCOUNT, llendl, llofstream, llwarns, mSavedFolderState, LLDynamicArray< Type, BlockSize >::removeObj(), LLInventoryModel::removeObserver(), sActiveViews, LLInventoryFilter::toLLSD(), and LLSDSerialize::toPrettyXML().
void LLInventoryView::changed | ( | U32 | mask | ) | [virtual] |
Implements LLInventoryObserver.
Definition at line 760 of file llinventoryview.cpp.
References LLInventoryModel::backgroundFetchActive(), LLSingleton< LLResMgr >::getInstance(), LLResMgr::getIntegerString(), LLInventoryModel::getItemCount(), gInventory, mFilterText, LLFloater::setTitle(), and LLLocale::USER_LOCALE.
BOOL LLInventoryView::postBuild | ( | void | ) | [virtual] |
Reimplemented from LLPanel.
Definition at line 557 of file llinventoryview.cpp.
References LLPanel::childSetTabChangeCallback(), onFilterSelected(), and TRUE.
void LLInventoryView::setFilterTextFromFilter | ( | ) | [inline] |
Definition at line 204 of file llinventoryview.h.
References LLInventoryPanel::getFilter(), LLInventoryFilter::getFilterText(), mActivePanel, and mFilterText.
Referenced by LLInventoryViewFinder::draw(), and LLResetFilter::handleEvent().
void LLInventoryView::startSearch | ( | ) |
Definition at line 688 of file llinventoryview.cpp.
References LLUICtrl::focusFirstItem(), mSearchEditor, and TRUE.
Referenced by handleKeyHere().
LLInventoryView * LLInventoryView::showAgentInventory | ( | BOOL | take_keyboard_focus = FALSE |
) | [static] |
Definition at line 778 of file llinventoryview.cpp.
References LLFloaterView::adjustToFitScreen(), LLAgent::cameraMouselook(), LLDynamicArray< Type, BlockSize >::count(), FALSE, gAgent, gDisconnected, getActiveInventory(), gFloaterView, gInventory, gNoRender, gSavedSettings, LLInventoryView(), NULL, LLFloater::open(), sActiveViews, LLControlGroup::setBOOL(), LLFloater::setTitle(), and TRUE.
Referenced by LLFloaterOpenObject::callbackMoveInventory(), LLToolBar::handleDragAndDrop(), idle_startup(), LLFloaterGesture::onClickInventory(), and toggleVisibility().
LLInventoryView * LLInventoryView::getActiveInventory | ( | ) | [static] |
Definition at line 820 of file llinventoryview.cpp.
References LLDynamicArray< Type, BlockSize >::count(), LLDynamicArray< Type, BlockSize >::get(), LLFloaterView::getZOrder(), gFloaterView, i, NULL, S32, and sActiveViews.
Referenced by LLFloaterOpenObject::callbackMoveInventory(), container_inventory_arrived(), LLFolderBridge::dragItemIntoFolder(), handle_grab_texture(), LLToolBar::handleDragAndDrop(), LLAgent::makeNewOutfitDone(), open_offer(), LLInventoryModel::processUpdateInventoryFolder(), showAgentInventory(), and LLNewAgentInventoryResponder::uploadComplete().
void LLInventoryView::toggleVisibility | ( | ) | [static] |
Definition at line 845 of file llinventoryview.cpp.
References LLFloater::close(), LLDynamicArray< Type, BlockSize >::count(), FALSE, LLDynamicArray< Type, BlockSize >::get(), LLView::getVisible(), gSavedSettings, S32, sActiveViews, LLControlGroup::setBOOL(), showAgentInventory(), and TRUE.
Referenced by handle_inventory(), LLShowFloater::handleEvent(), idle_startup(), and toggleVisibility().
static void LLInventoryView::toggleVisibility | ( | void * | ) | [inline, static] |
Definition at line 218 of file llinventoryview.h.
References toggleVisibility().
void LLInventoryView::cleanup | ( | ) | [static] |
Definition at line 876 of file llinventoryview.cpp.
References LLDynamicArray< Type, BlockSize >::count(), LLFloater::destroy(), LLDynamicArray< Type, BlockSize >::get(), i, S32, and sActiveViews.
Referenced by LLAppViewer::disconnectViewer().
void LLInventoryView::onClose | ( | bool | app_quitting | ) | [virtual] |
Reimplemented from LLFloater.
Definition at line 705 of file llinventoryview.cpp.
References LLFolderViewFolder::applyFunctorRecursively(), LLDynamicArray< Type, BlockSize >::count(), LLFloater::destroy(), FALSE, LLInventoryPanel::getRootFolder(), gSavedSettings, LLFolderView::isFilterModified(), mActivePanel, mSavedFolderState, S32, sActiveViews, LLSaveFolderState::setApply(), LLControlGroup::setBOOL(), and LLFloater::setVisible().
void LLInventoryView::setVisible | ( | BOOL | visible | ) | [virtual] |
Reimplemented from LLFloater.
Definition at line 698 of file llinventoryview.cpp.
References gSavedSettings, LLControlGroup::setBOOL(), and LLFloater::setVisible().
void LLInventoryView::draw | ( | void | ) | [virtual] |
Reimplemented from LLFloater.
Definition at line 603 of file llinventoryview.cpp.
References LLFloater::draw(), LLInventoryPanel::getFilterSubString(), LLSingleton< LLResMgr >::getInstance(), LLResMgr::getIntegerString(), LLInventoryModel::getItemCount(), gInventory, LLInventoryModel::isEverythingFetched(), mActivePanel, mFilterText, mSearchEditor, LLSearchEditor::setText(), LLFloater::setTitle(), and LLLocale::USER_LOCALE.
Reimplemented from LLPanel.
Definition at line 732 of file llinventoryview.cpp.
References LLInventoryPanel::getRootFolder(), LLPanel::handleKeyHere(), LLUICtrl::hasFocus(), KEY_DOWN, KEY_RETURN, KEY_UP, mActivePanel, MASK_NONE, mSearchEditor, NULL, LLFolderView::scrollToShowSelection(), LLFolderView::setFocus(), startSearch(), and TRUE.
BOOL LLInventoryView::handleDragAndDrop | ( | S32 | x, | |
S32 | y, | |||
MASK | mask, | |||
BOOL | drop, | |||
EDragAndDropType | cargo_type, | |||
void * | cargo_data, | |||
EAcceptance * | accept, | |||
LLString & | tooltip_msg | |||
) | [virtual] |
Reimplemented from LLView.
Definition at line 1061 of file llinventoryview.cpp.
References getActivePanel(), LLInventoryPanel::getScrollableContainer(), LLView::handleDragAndDrop(), mFilterTabs, LLScrollableContainerView::needsToScroll(), LLTabContainer::startDragAndDropDelayTimer(), and LLScrollableContainerView::VERTICAL.
LLInventoryPanel* LLInventoryView::getPanel | ( | ) | [inline] |
Definition at line 236 of file llinventoryview.h.
References mActivePanel.
Referenced by LLFloaterOpenObject::callbackMoveInventory(), container_inventory_arrived(), LLFolderBridge::dragItemIntoFolder(), handle_grab_texture(), LLDoCreateFloater::handleEvent(), LLEmptyTrashFloater::handleEvent(), LLCloseAllFoldersFloater::handleEvent(), LLDoToSelectedFloater::handleEvent(), LLAgent::makeNewOutfitDone(), LLFloaterGesture::onClickInventory(), open_offer(), LLInventoryModel::processUpdateInventoryFolder(), and LLNewAgentInventoryResponder::uploadComplete().
LLInventoryPanel* LLInventoryView::getActivePanel | ( | ) | [inline] |
Definition at line 237 of file llinventoryview.h.
References mActivePanel.
Referenced by handleDragAndDrop(), LLSetSortBy::handleEvent(), LLResetFilter::handleEvent(), and LLNewWindow::handleEvent().
BOOL LLInventoryView::filtersVisible | ( | void * | user_data | ) | [static] |
void LLInventoryView::onClearSearch | ( | void * | user_data | ) | [static] |
Definition at line 920 of file llinventoryview.cpp.
References LLInventoryViewFinder::selectAllTypes(), and TRUE.
Referenced by onSearchEdit().
static void LLInventoryView::onFoldersByName | ( | void * | user_data | ) | [static] |
static BOOL LLInventoryView::checkFoldersByName | ( | void * | user_data | ) | [static] |
void LLInventoryView::onSearchEdit | ( | const LLString & | search_string, | |
void * | user_data | |||
) | [static] |
Definition at line 949 of file llinventoryview.cpp.
References FALSE, gInventory, onClearSearch(), LLInventoryModel::startBackgroundFetch(), and LLStringBase< char >::toUpper().
Referenced by init().
void LLInventoryView::onFilterSelected | ( | void * | userdata, | |
bool | from_click | |||
) | [static] |
Definition at line 1020 of file llinventoryview.cpp.
References LLInventoryViewFinder::changeFilter(), gInventory, LLInventoryFilter::isActive(), and LLInventoryModel::startBackgroundFetch().
Referenced by postBuild().
void LLInventoryView::onSelectionChange | ( | const std::deque< LLFolderViewItem * > & | items, | |
BOOL | user_action, | |||
void * | data | |||
) | [static] |
Definition at line 1047 of file llinventoryview.cpp.
References FALSE, LLInventoryPanel::getRootFolder(), LLFolderView::needsAutoRename(), LLFolderView::setNeedsAutoRename(), and LLFolderView::startRenamingSelectedItem().
Referenced by init().
BOOL LLInventoryView::incrementalFind | ( | LLFolderViewItem * | first_item, | |
const char * | find_text, | |||
BOOL | backward | |||
) | [static] |
Definition at line 985 of file llinventoryview.cpp.
References LLFocusMgr::childHasKeyboardFocus(), LLDynamicArray< Type, BlockSize >::count(), FALSE, LLInventoryPanel::getRootFolder(), gFocusMgr, i, mActivePanel, NULL, S32, sActiveViews, LLFolderView::search(), and TRUE.
Referenced by LLInventoryPanel::fromXML().
const LLString LLInventoryView::getFilterSubString | ( | ) | [inline] |
Definition at line 249 of file llinventoryview.h.
References LLInventoryPanel::getFilterSubString(), and mActivePanel.
void LLInventoryView::setFilterSubString | ( | const LLString & | string | ) | [inline] |
Definition at line 250 of file llinventoryview.h.
References mActivePanel, and LLInventoryPanel::setFilterSubString().
void LLInventoryView::toggleFindOptions | ( | ) |
Definition at line 885 of file llinventoryview.cpp.
References LLFloater::addDependentFloater(), LLFloater::close(), FALSE, getFinder(), LLFloater::getHandle(), LLView::getRect(), gInventory, INV_FINDER_HEIGHT, INV_FINDER_WIDTH, LLInventoryViewFinder, mFinderHandle, LLView::mFloaterControls, LLFloater::open(), LLInventoryModel::startBackgroundFetch(), and TRUE.
Referenced by LLShowFilters::handleEvent().
LLInventoryViewFinder* LLInventoryView::getFinder | ( | ) | [inline] |
Definition at line 259 of file llinventoryview.h.
References LLHandle< T >::get(), and mFinderHandle.
Referenced by LLResetFilter::handleEvent(), and toggleFindOptions().
void LLInventoryView::init | ( | LLInventoryModel * | inventory | ) | [protected] |
Definition at line 476 of file llinventoryview.cpp.
References LLView::addBoolControl(), LLInventoryModel::addObserver(), LLFolderViewFolder::applyFunctorRecursively(), LLUICtrlFactory::buildFloater(), FALSE, LLInventoryFilter::fromLLSD(), LLSDSerialize::fromXML(), gDirUtilp, LLDir::getExpandedFilename(), LLInventoryPanel::getFilter(), LLSingleton< LLUICtrlFactory >::getInstance(), LLInventoryFilter::getName(), LLInventoryPanel::getRootFolder(), LLControlGroup::getU32(), gInventory, gSavedSettings, init_inventory_actions(), LL_PATH_PER_SL_ACCOUNT, llendl, llifstream, llinfos, mActivePanel, LLInventoryFilter::markDefault(), mFilterTabs, mSavedFolderState, mSearchEditor, NULL, onSearchEdit(), onSelectionChange(), LLDynamicArray< Type, BlockSize >::put(), sActiveViews, LLSaveFolderState::setApply(), LLSearchEditor::setSearchCallback(), LLInventoryPanel::setSelectCallback(), LLInventoryPanel::setShowFolderState(), LLInventoryPanel::setSinceLogoff(), LLInventoryPanel::setSortOrder(), LLInventoryFilter::SHOW_NON_EMPTY_FOLDERS, LLInventoryFilter::SO_DATE, LLInventoryFilter::SO_FOLDERS_BY_NAME, LLInventoryFilter::SO_SYSTEM_FOLDERS_TO_TOP, and TRUE.
friend class LLInventoryViewFinder [friend] |
BOOL LLInventoryView::sWearNewClothing = FALSE [static] |
Definition at line 254 of file llinventoryview.h.
Referenced by LLFloaterBuyContents::onClickBuy(), and LLInventoryModel::processBulkUpdateInventory().
Definition at line 255 of file llinventoryview.h.
Referenced by LLInventoryModel::processBulkUpdateInventory().
LLSearchEditor* LLInventoryView::mSearchEditor [protected] |
Definition at line 266 of file llinventoryview.h.
Referenced by draw(), handleKeyHere(), init(), and startSearch().
LLTabContainer* LLInventoryView::mFilterTabs [protected] |
LLHandle<LLFloater> LLInventoryView::mFinderHandle [protected] |
Definition at line 268 of file llinventoryview.h.
Referenced by getFinder(), and toggleFindOptions().
LLInventoryPanel* LLInventoryView::mActivePanel [protected] |
Definition at line 269 of file llinventoryview.h.
Referenced by draw(), LLInventoryViewFinder::draw(), getActivePanel(), getFilterSubString(), getPanel(), handleKeyHere(), incrementalFind(), init(), onClose(), setFilterSubString(), and setFilterTextFromFilter().
LLSaveFolderState* LLInventoryView::mSavedFolderState [protected] |
Definition at line 270 of file llinventoryview.h.
Referenced by init(), onClose(), and ~LLInventoryView().
LLString LLInventoryView::mFilterText [protected] |
Definition at line 272 of file llinventoryview.h.
Referenced by changed(), draw(), and setFilterTextFromFilter().
LLDynamicArray< LLInventoryView * > LLInventoryView::sActiveViews [static, protected] |
Definition at line 277 of file llinventoryview.h.
Referenced by cleanup(), getActiveInventory(), incrementalFind(), init(), onClose(), showAgentInventory(), toggleVisibility(), and ~LLInventoryView().