LLInventoryView Class Reference

#include <llinventoryview.h>

Inheritance diagram for LLInventoryView:

Inheritance graph
[legend]
Collaboration diagram for LLInventoryView:

Collaboration graph
[legend]
List of all members.

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 called_from_parent)
BOOL handleDragAndDrop (S32 x, S32 y, MASK mask, BOOL drop, EDragAndDropType cargo_type, void *cargo_data, EAcceptance *accept, LLString &tooltip_msg)
LLInventoryPanelgetPanel ()
LLInventoryPanelgetActivePanel ()
const LLString getFilterSubString ()
void setFilterSubString (const LLString &string)
void toggleFindOptions ()
LLInventoryViewFindergetFinder ()

Static Public Member Functions

static LLInventoryViewshowAgentInventory (BOOL take_keyboard_focus=FALSE)
static LLInventoryViewgetActiveInventory ()
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

LLSearchEditormSearchEditor
LLTabContainermFilterTabs
LLViewHandle mFinderHandle
LLInventoryPanelmActivePanel
LLSaveFolderStatemSavedFolderState
LLString mFilterText

Static Protected Attributes

static LLDynamicArray< LLInventoryView * > sActiveViews

Friends

class LLInventoryViewFinder

Detailed Description

Definition at line 188 of file llinventoryview.h.


Constructor & Destructor Documentation

LLInventoryView::LLInventoryView ( const LLString name,
const LLString rect,
LLInventoryModel inventory 
)

Definition at line 450 of file llinventoryview.cpp.

References LLPanel::init().

Referenced by showAgentInventory().

LLInventoryView::LLInventoryView ( const LLString name,
const LLRect rect,
LLInventoryModel inventory 
)

Definition at line 461 of file llinventoryview.cpp.

References LLPanel::init(), and LLView::setRect().

LLInventoryView::~LLInventoryView (  ) 

Definition at line 564 of file llinventoryview.cpp.

References gDirUtilp, LLPanel::getCtrlByNameAndType(), 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(), LLSDSerialize::toPrettyXML(), and WIDGET_TYPE_INVENTORY_PANEL.


Member Function Documentation

void LLInventoryView::changed ( U32  mask  )  [virtual]

Implements LLInventoryObserver.

Definition at line 757 of file llinventoryview.cpp.

References LLInventoryModel::backgroundFetchActive(), LLResMgr::getIntegerString(), LLInventoryModel::getItemCount(), gInventory, gResMgr, mFilterText, LLFloater::setTitle(), and LLLocale::USER_LOCALE.

static BOOL LLInventoryView::checkFoldersByName ( void user_data  )  [static]

void LLInventoryView::cleanup (  )  [static]

Definition at line 872 of file llinventoryview.cpp.

References LLDynamicArray< Type, BlockSize >::count(), count, LLFloater::destroy(), LLDynamicArray< Type, BlockSize >::get(), i, S32, and sActiveViews.

Referenced by disconnect_viewer().

void LLInventoryView::draw (  )  [virtual]

Reimplemented from LLFloater.

Definition at line 601 of file llinventoryview.cpp.

References LLFloater::draw(), LLInventoryPanel::getFilterSubString(), LLResMgr::getIntegerString(), LLInventoryModel::getItemCount(), gInventory, gResMgr, LLInventoryModel::isEverythingFetched(), mActivePanel, mFilterText, mSearchEditor, LLSearchEditor::setText(), LLFloater::setTitle(), and LLLocale::USER_LOCALE.

BOOL LLInventoryView::filtersVisible ( void user_data  )  [static]

Definition at line 907 of file llinventoryview.cpp.

References FALSE, and NULL.

LLInventoryView * LLInventoryView::getActiveInventory (  )  [static]

Definition at line 816 of file llinventoryview.cpp.

References LLDynamicArray< Type, BlockSize >::count(), 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().

LLInventoryPanel* LLInventoryView::getActivePanel (  )  [inline]

Definition at line 239 of file llinventoryview.h.

References mActivePanel.

Referenced by LLResetFilter::handleEvent(), and LLNewWindow::handleEvent().

const LLString LLInventoryView::getFilterSubString (  )  [inline]

Definition at line 251 of file llinventoryview.h.

References LLInventoryPanel::getFilterSubString(), and mActivePanel.

LLInventoryViewFinder* LLInventoryView::getFinder (  )  [inline]

Definition at line 261 of file llinventoryview.h.

References LLFloater::getFloaterByHandle(), and mFinderHandle.

Referenced by LLResetFilter::handleEvent(), and toggleFindOptions().

LLInventoryPanel* LLInventoryView::getPanel (  )  [inline]

Definition at line 238 of file llinventoryview.h.

References mActivePanel.

Referenced by LLFloaterOpenObject::callbackMoveInventory(), container_inventory_arrived(), LLFolderBridge::dragItemIntoFolder(), handle_grab_texture(), LLDoCreateFloater::handleEvent(), LLEmptyTrashFloater::handleEvent(), LLAgent::makeNewOutfitDone(), open_offer(), LLInventoryModel::processUpdateInventoryFolder(), and LLNewAgentInventoryResponder::uploadComplete().

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 1057 of file llinventoryview.cpp.

References LLInventoryPanel::getScrollableContainer(), LLView::handleDragAndDrop(), mFilterTabs, LLScrollableContainerView::needsToScroll(), LLTabContainerCommon::setDragAndDropDelayTimer(), and LLScrollableContainerView::VERTICAL.

BOOL LLInventoryView::handleKeyHere ( KEY  key,
MASK  mask,
BOOL  called_from_parent 
) [virtual]

Reimplemented from LLPanel.

Definition at line 730 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::incrementalFind ( LLFolderViewItem first_item,
const char *  find_text,
BOOL  backward 
) [static]

Definition at line 981 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().

void LLInventoryView::init ( LLInventoryModel inventory  )  [protected]

Definition at line 474 of file llinventoryview.cpp.

References LLView::addBoolControl(), LLInventoryModel::addObserver(), LLFolderViewFolder::applyFunctorRecursively(), LLUICtrlFactory::buildFloater(), FALSE, LLInventoryFilter::fromLLSD(), LLSDSerialize::fromXML(), gDirUtilp, LLPanel::getCtrlByNameAndType(), LLDir::getExpandedFilename(), LLInventoryPanel::getFilter(), LLInventoryFilter::getName(), LLInventoryPanel::getRootFolder(), LLUICtrlFactory::getTabContainerByName(), LLControlGroup::getU32(), gInventory, gSavedSettings, gUICtrlFactory, 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, TRUE, WIDGET_TYPE_INVENTORY_PANEL, and WIDGET_TYPE_SEARCH_EDITOR.

void LLInventoryView::onClearSearch ( void user_data  )  [static]

Definition at line 916 of file llinventoryview.cpp.

References LLInventoryViewFinder::selectAllTypes(), and TRUE.

Referenced by onSearchEdit().

void LLInventoryView::onClose ( bool  app_quitting  )  [virtual]

Reimplemented from LLFloater.

Definition at line 703 of file llinventoryview.cpp.

References LLFolderViewFolder::applyFunctorRecursively(), LLDynamicArray< Type, BlockSize >::count(), count, LLFloater::destroy(), FALSE, LLInventoryPanel::getRootFolder(), gSavedSettings, LLFolderView::isFilterModified(), mActivePanel, mSavedFolderState, S32, sActiveViews, LLSaveFolderState::setApply(), LLControlGroup::setBOOL(), and LLFloater::setVisible().

void LLInventoryView::onFilterSelected ( void userdata,
bool  from_click 
) [static]

Definition at line 1016 of file llinventoryview.cpp.

References LLInventoryViewFinder::changeFilter(), gInventory, LLInventoryFilter::isActive(), and LLInventoryModel::startBackgroundFetch().

Referenced by postBuild().

static void LLInventoryView::onFoldersByName ( void user_data  )  [static]

void LLInventoryView::onSearchEdit ( const LLString search_string,
void user_data 
) [static]

Definition at line 945 of file llinventoryview.cpp.

References FALSE, gInventory, onClearSearch(), LLInventoryModel::startBackgroundFetch(), and LLStringBase< char >::toUpper().

Referenced by init().

void LLInventoryView::onSelectionChange ( const std::deque< LLFolderViewItem * > &  items,
BOOL  user_action,
void data 
) [static]

Definition at line 1043 of file llinventoryview.cpp.

References FALSE, LLInventoryPanel::getRootFolder(), LLFolderView::needsAutoRename(), LLFolderView::setNeedsAutoRename(), and LLFolderView::startRenamingSelectedItem().

Referenced by init().

BOOL LLInventoryView::postBuild (  )  [virtual]

Reimplemented from LLPanel.

Definition at line 555 of file llinventoryview.cpp.

References LLPanel::childSetTabChangeCallback(), onFilterSelected(), and TRUE.

void LLInventoryView::setFilterSubString ( const LLString string  )  [inline]

Definition at line 252 of file llinventoryview.h.

References mActivePanel, and LLInventoryPanel::setFilterSubString().

void LLInventoryView::setFilterTextFromFilter (  )  [inline]

Definition at line 206 of file llinventoryview.h.

References LLInventoryPanel::getFilter(), LLInventoryFilter::getFilterText(), mActivePanel, and mFilterText.

Referenced by LLInventoryViewFinder::draw(), and LLResetFilter::handleEvent().

void LLInventoryView::setVisible ( BOOL  visible  )  [virtual]

Reimplemented from LLFloater.

Definition at line 696 of file llinventoryview.cpp.

References gSavedSettings, LLControlGroup::setBOOL(), and LLFloater::setVisible().

LLInventoryView * LLInventoryView::showAgentInventory ( BOOL  take_keyboard_focus = FALSE  )  [static]

Definition at line 774 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().

void LLInventoryView::startSearch (  ) 

Definition at line 686 of file llinventoryview.cpp.

References LLUICtrl::focusFirstItem(), mSearchEditor, and TRUE.

Referenced by handleKeyHere().

void LLInventoryView::toggleFindOptions (  ) 

Definition at line 881 of file llinventoryview.cpp.

References LLFloater::addDependentFloater(), LLFloater::close(), FALSE, getFinder(), LLPanel::getHandle(), gInventory, INV_FINDER_HEIGHT, INV_FINDER_WIDTH, LLInventoryViewFinder, mFinderHandle, LLView::mFloaterControls, LLRectBase< Type >::mLeft, LLView::mRect, LLRectBase< Type >::mTop, LLFloater::open(), LLInventoryModel::startBackgroundFetch(), and TRUE.

static void LLInventoryView::toggleVisibility ( void  )  [inline, static]

Definition at line 220 of file llinventoryview.h.

References toggleVisibility().

void LLInventoryView::toggleVisibility (  )  [static]

Definition at line 841 of file llinventoryview.cpp.

References LLFloater::close(), LLDynamicArray< Type, BlockSize >::count(), 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().


Friends And Related Function Documentation

friend class LLInventoryViewFinder [friend]

Definition at line 190 of file llinventoryview.h.

Referenced by toggleFindOptions().


Member Data Documentation

LLInventoryPanel* LLInventoryView::mActivePanel [protected]

Definition at line 271 of file llinventoryview.h.

Referenced by draw(), LLInventoryViewFinder::draw(), getActivePanel(), getFilterSubString(), getPanel(), handleKeyHere(), incrementalFind(), init(), onClose(), setFilterSubString(), and setFilterTextFromFilter().

LLTabContainer* LLInventoryView::mFilterTabs [protected]

Definition at line 269 of file llinventoryview.h.

Referenced by handleDragAndDrop(), and init().

LLString LLInventoryView::mFilterText [protected]

Definition at line 274 of file llinventoryview.h.

Referenced by changed(), draw(), and setFilterTextFromFilter().

LLViewHandle LLInventoryView::mFinderHandle [protected]

Definition at line 270 of file llinventoryview.h.

Referenced by getFinder(), and toggleFindOptions().

LLSaveFolderState* LLInventoryView::mSavedFolderState [protected]

Definition at line 272 of file llinventoryview.h.

Referenced by init(), onClose(), and ~LLInventoryView().

LLSearchEditor* LLInventoryView::mSearchEditor [protected]

Definition at line 268 of file llinventoryview.h.

Referenced by draw(), handleKeyHere(), init(), and startSearch().

LLDynamicArray< LLInventoryView * > LLInventoryView::sActiveViews [static, protected]

Definition at line 279 of file llinventoryview.h.

Referenced by cleanup(), getActiveInventory(), incrementalFind(), init(), onClose(), showAgentInventory(), toggleVisibility(), and ~LLInventoryView().

BOOL LLInventoryView::sWearNewClothing = FALSE [static]

Definition at line 256 of file llinventoryview.h.

Referenced by LLFloaterBuyContents::onClickBuy(), and LLInventoryModel::processBulkUpdateInventory().

LLUUID LLInventoryView::sWearNewClothingTransactionID [static]

Definition at line 257 of file llinventoryview.h.

Referenced by LLInventoryModel::processBulkUpdateInventory().


The documentation for this class was generated from the following files:
Generated on Thu Jul 1 06:11:26 2010 for Second Life Viewer by  doxygen 1.4.7