LLFolderViewFolder Class Reference

#include <llfolderview.h>

Inheritance diagram for LLFolderViewFolder:

Inheritance graph
[legend]
Collaboration diagram for LLFolderViewFolder:

Collaboration graph
[legend]
List of all members.

Public Types

typedef enum LLFolderViewFolder::e_trash ETrash
typedef enum LLFolderViewFolder::e_recurse_type ERecurseType
 UNKNOWN
 TRASH
 NOT_TRASH
 RECURSE_NO
 RECURSE_UP
 RECURSE_DOWN
 RECURSE_UP_DOWN
enum  e_trash { UNKNOWN, TRASH, NOT_TRASH }
enum  e_recurse_type { RECURSE_NO, RECURSE_UP, RECURSE_DOWN, RECURSE_UP_DOWN }

Public Member Functions

 LLFolderViewFolder (const LLString &name, LLViewerImage *icon, LLFolderView *root, LLFolderViewEventListener *listener)
virtual ~LLFolderViewFolder (void)
virtual EWidgetType getWidgetType () const
virtual LLString getWidgetTag () const
virtual BOOL potentiallyVisible ()
LLFolderViewItemgetNextFromChild (LLFolderViewItem *, BOOL include_children=TRUE)
LLFolderViewItemgetPreviousFromChild (LLFolderViewItem *, BOOL include_children=TRUE)
virtual BOOL addToFolder (LLFolderViewFolder *folder, LLFolderView *root)
virtual S32 arrange (S32 *width, S32 *height, S32 filter_generation)
BOOL needsArrange ()
virtual EInventorySortGroup getSortGroup ()
virtual void setCompletedFilterGeneration (S32 generation, BOOL recurse_up)
virtual S32 getCompletedFilterGeneration ()
BOOL hasFilteredDescendants (S32 filter_generation)
BOOL hasFilteredDescendants ()
virtual void filter (LLInventoryFilter &filter)
virtual void setFiltered (BOOL filtered, S32 filter_generation)
virtual void dirtyFilter ()
virtual BOOL setSelection (LLFolderViewItem *selection, BOOL open, BOOL take_keyboard_focus)
virtual BOOL changeSelection (LLFolderViewItem *selection, BOOL selected)
virtual S32 extendSelection (LLFolderViewItem *selection, LLFolderViewItem *last_selected, LLDynamicArray< LLFolderViewItem * > &items)
virtual void recursiveDeselect (BOOL deselect_self)
virtual BOOL isRemovable ()
virtual BOOL isMovable ()
virtual void destroyView ()
BOOL removeItem (LLFolderViewItem *item)
void removeView (LLFolderViewItem *item)
void extractItem (LLFolderViewItem *item)
void resort (LLFolderViewItem *item)
void setItemSortOrder (U32 ordering)
void sortBy (U32)
void setAutoOpenCountdown (F32 countdown)
virtual void toggleOpen ()
virtual void setOpen (BOOL open=TRUE)
virtual void requestArrange (BOOL include_descendants=FALSE)
virtual void setOpenArrangeRecursively (BOOL open, ERecurseType recurse=RECURSE_NO)
virtual BOOL isOpen ()
BOOL handleDragAndDropFromChild (MASK mask, BOOL drop, EDragAndDropType cargo_type, void *cargo_data, EAcceptance *accept, LLString &tooltip_msg)
void applyFunctorRecursively (LLFolderViewFunctor &functor)
virtual void applyListenerFunctorRecursively (LLFolderViewListenerFunctor &functor)
virtual void open (void)
virtual BOOL addItem (LLFolderViewItem *item)
virtual BOOL addFolder (LLFolderViewFolder *folder)
virtual BOOL handleHover (S32 x, S32 y, MASK mask)
virtual BOOL handleRightMouseDown (S32 x, S32 y, MASK mask)
virtual BOOL handleMouseDown (S32 x, S32 y, MASK mask)
virtual BOOL handleDoubleClick (S32 x, S32 y, MASK mask)
virtual BOOL handleDragAndDrop (S32 x, S32 y, MASK mask, BOOL drop, EDragAndDropType cargo_type, void *cargo_data, EAcceptance *accept, LLString &tooltip_msg)
virtual void draw ()
U32 getCreationDate () const
bool isTrash ()
LLInventorySortgetSortFunction ()

Protected Types

typedef std::vector< LLFolderViewItem * > items_t
typedef std::vector< LLFolderViewFolder * > folders_t

Protected Attributes

items_t mItems
folders_t mFolders
LLInventorySort mSortFunction
BOOL mIsOpen
BOOL mExpanderHighlighted
F32 mCurHeight
F32 mTargetHeight
F32 mAutoOpenCountdown
U32 mSubtreeCreationDate
ETrash mAmTrash
S32 mLastArrangeGeneration
S32 mLastCalculatedWidth
S32 mCompletedFilterGeneration
S32 mMostFilteredDescendantGeneration

Detailed Description

Definition at line 543 of file llfolderview.h.


Member Typedef Documentation

typedef enum LLFolderViewFolder::e_recurse_type LLFolderViewFolder::ERecurseType

typedef enum LLFolderViewFolder::e_trash LLFolderViewFolder::ETrash

typedef std::vector<LLFolderViewFolder*> LLFolderViewFolder::folders_t [protected]

Definition at line 553 of file llfolderview.h.

typedef std::vector<LLFolderViewItem*> LLFolderViewFolder::items_t [protected]

Definition at line 552 of file llfolderview.h.


Member Enumeration Documentation

enum LLFolderViewFolder::e_recurse_type

Enumerator:
RECURSE_NO 
RECURSE_UP 
RECURSE_DOWN 
RECURSE_UP_DOWN 

Definition at line 570 of file llfolderview.h.

enum LLFolderViewFolder::e_trash

Enumerator:
UNKNOWN 
TRASH 
NOT_TRASH 

Definition at line 546 of file llfolderview.h.


Constructor & Destructor Documentation

LLFolderViewFolder::LLFolderViewFolder ( const LLString name,
LLViewerImage icon,
LLFolderView root,
LLFolderViewEventListener listener 
)

---------------------------------------------------------------------------- Class LLFolderViewFolder ----------------------------------------------------------------------------

Definition at line 982 of file llfolderview.cpp.

References LLFolderViewItem::mType.

LLFolderViewFolder::~LLFolderViewFolder ( void   )  [virtual]

Definition at line 1005 of file llfolderview.cpp.

References gFocusMgr, and LLFocusMgr::releaseFocusIfNeeded().


Member Function Documentation

BOOL LLFolderViewFolder::addFolder ( LLFolderViewFolder folder  )  [virtual]

Reimplemented from LLFolderViewItem.

Reimplemented in LLFolderView.

Definition at line 1904 of file llfolderview.cpp.

References LLView::addChild(), dirtyFilter(), FALSE, LLRectBase< Type >::getWidth(), mFolders, LLView::mRect, mSortFunction, requestArrange(), LLView::reshape(), LLView::setOrigin(), LLView::setVisible(), and TRUE.

Referenced by addToFolder().

BOOL LLFolderViewFolder::addItem ( LLFolderViewItem item  )  [virtual]

Reimplemented from LLFolderViewItem.

Definition at line 1886 of file llfolderview.cpp.

References LLView::addChild(), LLFolderViewItem::dirtyFilter(), FALSE, LLRectBase< Type >::getWidth(), mItems, LLView::mRect, mSortFunction, requestArrange(), LLView::setRect(), LLView::setVisible(), and TRUE.

Referenced by LLFolderViewItem::addToFolder().

BOOL LLFolderViewFolder::addToFolder ( LLFolderViewFolder folder,
LLFolderView root 
) [virtual]

Reimplemented from LLFolderViewItem.

Definition at line 1027 of file llfolderview.cpp.

References addFolder(), LLFolderView::addItemID(), FALSE, LLFolderViewItem::getListener(), and LLFolderViewItem::mParentFolder.

Referenced by LLFloaterNetwork2080::addNode(), and LLPanelInventory::createFolderViews().

void LLFolderViewFolder::applyFunctorRecursively ( LLFolderViewFunctor functor  ) 

Definition at line 2013 of file llfolderview.cpp.

References LLFolderViewFunctor::doFolder(), LLFolderViewFunctor::doItem(), mFolders, and mItems.

Referenced by LLFolderView::doIdle(), LLInventoryView::init(), LLInventoryView::onClose(), LLFloaterTexturePicker::onSearchEdit(), LLFloaterLandmark::onSearchEdit(), and LLInventoryPanel::openDefaultFolderForType().

void LLFolderViewFolder::applyListenerFunctorRecursively ( LLFolderViewListenerFunctor functor  )  [virtual]

Reimplemented from LLFolderViewItem.

Definition at line 2031 of file llfolderview.cpp.

References mFolders, mItems, and LLFolderViewItem::mListener.

S32 LLFolderViewFolder::arrange ( S32 width,
S32 height,
S32  filter_generation 
) [virtual]

Reimplemented from LLFolderViewItem.

Reimplemented in LLFolderView.

Definition at line 1040 of file llfolderview.cpp.

References LLFolderViewItem::arrange(), f, FALSE, FOLDER_CLOSE_TIME_CONSTANT, FOLDER_OPEN_TIME_CONSTANT, LLFolderView::getArrangeGeneration(), LLRectBase< Type >::getHeight(), LLCriticalDamp::getInterpolant(), LLFolderViewItem::getItemHeight(), LLFolderViewItem::getRoot(), LLFolderView::getShowFolderState(), LLRectBase< Type >::getWidth(), hasFilteredDescendants(), lerp(), llabs(), llmax(), llround(), MAX_FOLDER_ITEM_OVERLAP, mCurHeight, mFolders, LLFolderViewItem::mHasVisibleChildren, mIsOpen, mItems, mLastArrangeGeneration, mLastCalculatedWidth, LLView::mRect, LLFolderViewItem::mRoot, mTargetHeight, needsArrange(), requestArrange(), LLView::reshape(), S32, LLInventoryFilter::SHOW_ALL_FOLDERS, and TRUE.

Referenced by LLFolderView::arrange().

BOOL LLFolderViewFolder::changeSelection ( LLFolderViewItem selection,
BOOL  selected 
) [virtual]

Reimplemented from LLFolderViewItem.

Reimplemented in LLFolderView.

Definition at line 1426 of file llfolderview.cpp.

References FALSE, mFolders, LLFolderViewItem::mIsSelected, mItems, LLFolderViewItem::mListener, LLFolderViewItem::mNumDescendantsSelected, LLFolderViewEventListener::selectItem(), and TRUE.

Referenced by LLFolderView::changeSelection().

void LLFolderViewFolder::destroyView (  )  [virtual]

Reimplemented from LLFolderViewItem.

Definition at line 1640 of file llfolderview.cpp.

References LLView::deleteAllChildren(), LLFolderViewItem::getListener(), LLFolderViewItem::getRoot(), LLFolderViewEventListener::getUUID(), mFolders, mItems, LLFolderViewItem::mParentFolder, LLFolderView::removeItemID(), and removeView().

void LLFolderViewFolder::dirtyFilter (  )  [virtual]

Reimplemented from LLFolderViewItem.

Definition at line 1360 of file llfolderview.cpp.

References LLFolderViewItem::dirtyFilter(), FALSE, and setCompletedFilterGeneration().

Referenced by LLFolderView::addFolder(), addFolder(), and extractItem().

void LLFolderViewFolder::draw (  )  [virtual]

Reimplemented from LLFolderViewItem.

Reimplemented in LLFolderView.

Definition at line 2185 of file llfolderview.cpp.

References LLView::draw(), LLFolderViewItem::draw(), f, FALSE, LLCriticalDamp::getInterpolant(), LLFolderViewItem::getRoot(), lerp(), mAutoOpenCountdown, LLFolderViewItem::mControlLabelRotation, mCurHeight, mExpanderHighlighted, mIsOpen, and mTargetHeight.

Referenced by LLFolderView::draw().

S32 LLFolderViewFolder::extendSelection ( LLFolderViewItem selection,
LLFolderViewItem last_selected,
LLDynamicArray< LLFolderViewItem * > &  items 
) [virtual]

Reimplemented from LLFolderViewItem.

Reimplemented in LLFolderView.

Definition at line 1477 of file llfolderview.cpp.

References LLFolderViewItem::changeSelection(), FALSE, LLDynamicArray< Type, BlockSize >::getLength(), LLFolderViewItem::isSelected(), mFolders, mItems, LLFolderViewItem::mNumDescendantsSelected, LLDynamicArray< Type, BlockSize >::put(), S32, and TRUE.

Referenced by LLFolderView::extendSelection().

void LLFolderViewFolder::extractItem ( LLFolderViewItem item  ) 

Definition at line 1699 of file llfolderview.cpp.

References dirtyFilter(), f, LLFolderViewItem::getListener(), LLFolderViewItem::getRoot(), LLFolderViewEventListener::getUUID(), mFolders, mItems, LLView::removeChild(), LLFolderView::removeItemID(), and requestArrange().

Referenced by LLInventoryPanel::modelChanged(), and removeView().

void LLFolderViewFolder::filter ( LLInventoryFilter filter  )  [virtual]

Reimplemented from LLFolderViewItem.

Reimplemented in LLFolderView.

Definition at line 1200 of file llfolderview.cpp.

References FALSE, LLFolderViewItem::filter(), getCompletedFilterGeneration(), LLFolderViewItem::getFiltered(), LLFolderViewItem::getLastFilterGeneration(), LLFolderViewItem::getRoot(), LLFolderViewEventListener::getUUID(), gInventory, hasFilteredDescendants(), LLInventoryModel::isCategoryComplete(), llformat(), mCompletedFilterGeneration, LLFolderViewItem::mFiltered, mFolders, mItems, LLFolderViewItem::mLastFilterGeneration, LLFolderViewItem::mListener, mMostFilteredDescendantGeneration, LLFolderViewItem::mRoot, LLFolderViewItem::mStatusText, LLFolderView::needsAutoSelect(), S32, setCompletedFilterGeneration(), LLInventoryModel::startBackgroundFetch(), and TRUE.

Referenced by LLFolderView::filter().

virtual S32 LLFolderViewFolder::getCompletedFilterGeneration (  )  [inline, virtual]

Definition at line 604 of file llfolderview.h.

References mCompletedFilterGeneration.

Referenced by LLFolderView::doIdle(), LLFolderView::filter(), filter(), potentiallyVisible(), and setCompletedFilterGeneration().

U32 LLFolderViewFolder::getCreationDate (  )  const [virtual]

Reimplemented from LLFolderViewItem.

Definition at line 2211 of file llfolderview.cpp.

References LLFolderViewItem::mCreationDate, and mSubtreeCreationDate.

LLFolderViewItem * LLFolderViewFolder::getNextFromChild ( LLFolderViewItem ,
BOOL  include_children = TRUE 
)

Definition at line 2228 of file llfolderview.cpp.

References FALSE, getNextFromChild(), llassert, mFolders, mItems, LLFolderViewItem::mParentFolder, NULL, and TRUE.

Referenced by getNextFromChild(), LLFolderViewItem::getNextOpenNode(), LLPanelInventory::handleDragAndDrop(), and LLFolderView::search().

LLFolderViewItem * LLFolderViewFolder::getPreviousFromChild ( LLFolderViewItem ,
BOOL  include_children = TRUE 
)

Definition at line 2333 of file llfolderview.cpp.

References FALSE, llassert, mFolders, mItems, NULL, and TRUE.

Referenced by LLFolderViewItem::getPreviousOpenNode(), and LLFolderView::search().

LLInventorySort* LLFolderViewFolder::getSortFunction (  )  [inline]

Definition at line 716 of file llfolderview.h.

References mSortFunction.

Referenced by LLFloaterNetwork2080::addNode(), and LLFloaterNetwork2080::LLFloaterNetwork2080().

EInventorySortGroup LLFolderViewFolder::getSortGroup (  )  [virtual]

Reimplemented from LLFolderViewItem.

Definition at line 1801 of file llfolderview.cpp.

References LLFolderViewEventListener::isItemMovable(), isTrash(), LLFolderViewItem::mListener, SG_NORMAL_FOLDER, SG_SYSTEM_FOLDER, and SG_TRASH_FOLDER.

LLString LLFolderViewFolder::getWidgetTag (  )  const [virtual]

Reimplemented from LLFolderViewItem.

Reimplemented in LLFolderView.

Definition at line 1021 of file llfolderview.cpp.

References LL_FOLDER_VIEW_FOLDER_TAG.

EWidgetType LLFolderViewFolder::getWidgetType (  )  const [virtual]

Reimplemented from LLFolderViewItem.

Reimplemented in LLFolderView.

Definition at line 1016 of file llfolderview.cpp.

References WIDGET_TYPE_FOLDER.

BOOL LLFolderViewFolder::handleDoubleClick ( S32  x,
S32  y,
MASK  mask 
) [virtual]

Reimplemented from LLFolderViewItem.

Reimplemented in LLFolderView.

Definition at line 2156 of file llfolderview.cpp.

References LLView::childrenHandleDoubleClick(), FALSE, LLView::getVisible(), LEFT_PAD, LLFolderViewItem::mIndentation, mIsOpen, NULL, LLFolderViewItem::setSelectionFromRoot(), toggleOpen(), and TRUE.

BOOL LLFolderViewFolder::handleDragAndDrop ( S32  x,
S32  y,
MASK  mask,
BOOL  drop,
EDragAndDropType  cargo_type,
void cargo_data,
EAcceptance accept,
LLString tooltip_msg 
) [virtual]

Reimplemented from LLFolderViewItem.

Reimplemented in LLFolderView.

Definition at line 2049 of file llfolderview.cpp.

References ACCEPT_NO, ACCEPT_YES_MULTI, LLFolderView::autoOpenTest(), LLView::childrenHandleDragAndDrop(), LLFolderViewEventListener::dragOrDrop(), FALSE, LLFolderViewItem::getRoot(), lldebugst, llendl, LLFolderViewItem::mDragAndDropTarget, mIsOpen, LLFolderViewItem::mListener, NULL, and TRUE.

BOOL LLFolderViewFolder::handleDragAndDropFromChild ( MASK  mask,
BOOL  drop,
EDragAndDropType  cargo_type,
void cargo_data,
EAcceptance accept,
LLString tooltip_msg 
)

Definition at line 1984 of file llfolderview.cpp.

References ACCEPT_NO, ACCEPT_YES_MULTI, LLFolderView::autoOpenTest(), LLFolderViewEventListener::dragOrDrop(), LLFolderViewItem::getRoot(), LLFolderViewItem::mDragAndDropTarget, LLFolderViewItem::mListener, NULL, and TRUE.

Referenced by LLFolderViewItem::handleDragAndDrop().

BOOL LLFolderViewFolder::handleHover ( S32  x,
S32  y,
MASK  mask 
) [virtual]

Reimplemented from LLFolderViewItem.

Reimplemented in LLFolderView.

Definition at line 2113 of file llfolderview.cpp.

References LLFolderViewItem::handleHover(), and LLView::handleHover().

BOOL LLFolderViewFolder::handleMouseDown ( S32  x,
S32  y,
MASK  mask 
) [virtual]

Reimplemented from LLFolderViewItem.

Reimplemented in LLFolderView.

Definition at line 2132 of file llfolderview.cpp.

References LLView::childrenHandleMouseDown(), FALSE, LLFolderViewItem::handleMouseDown(), LEFT_PAD, LLFolderViewItem::mIndentation, mIsOpen, NULL, toggleOpen(), and TRUE.

BOOL LLFolderViewFolder::handleRightMouseDown ( S32  x,
S32  y,
MASK  mask 
) [virtual]

Reimplemented from LLFolderViewItem.

Reimplemented in LLFolderView.

Definition at line 2091 of file llfolderview.cpp.

References LLView::childrenHandleRightMouseDown(), FALSE, LLInventoryModel::fetchDescendentsOf(), LLFolderViewEventListener::getUUID(), LLView::getVisible(), gInventory, LLFolderViewItem::handleRightMouseDown(), mIsOpen, LLFolderViewItem::mListener, and NULL.

BOOL LLFolderViewFolder::hasFilteredDescendants (  ) 

Definition at line 1367 of file llfolderview.cpp.

References LLInventoryFilter::getCurrentGeneration(), LLFolderView::getFilter(), mMostFilteredDescendantGeneration, and LLFolderViewItem::mRoot.

Referenced by LLFolderView::arrange(), arrange(), filter(), and potentiallyVisible().

BOOL LLFolderViewFolder::hasFilteredDescendants ( S32  filter_generation  )  [inline]

Definition at line 606 of file llfolderview.h.

References mMostFilteredDescendantGeneration.

Referenced by LLFolderView::arrange(), and LLOpenFilteredFolders::doFolder().

BOOL LLFolderViewFolder::isMovable (  )  [virtual]

Reimplemented from LLFolderViewItem.

Definition at line 1820 of file llfolderview.cpp.

References FALSE, LLFolderViewEventListener::isItemMovable(), mFolders, mItems, LLFolderViewItem::mListener, and TRUE.

virtual BOOL LLFolderViewFolder::isOpen ( void   )  [inline, virtual]

Reimplemented from LLFolderViewItem.

Definition at line 684 of file llfolderview.h.

References mIsOpen.

Referenced by LLFolderView::autoOpenTest(), LLSaveFolderState::doFolder(), and LLFolderView::sanitizeSelection().

BOOL LLFolderViewFolder::isRemovable (  )  [virtual]

Reimplemented from LLFolderViewItem.

Definition at line 1853 of file llfolderview.cpp.

References FALSE, LLFolderViewEventListener::isItemRemovable(), mFolders, mItems, LLFolderViewItem::mListener, and TRUE.

bool LLFolderViewFolder::isTrash (  ) 

Definition at line 1735 of file llfolderview.cpp.

References LLAssetType::AT_TRASH, LLInventoryModel::findCategoryUUIDForType(), LLFolderViewEventListener::getUUID(), gInventory, mAmTrash, LLFolderViewItem::mListener, NOT_TRASH, TRASH, and UNKNOWN.

Referenced by getSortGroup().

BOOL LLFolderViewFolder::needsArrange (  ) 

Definition at line 1184 of file llfolderview.cpp.

References LLFolderView::getArrangeGeneration(), mLastArrangeGeneration, and LLFolderViewItem::mRoot.

Referenced by arrange(), and LLFolderView::doIdle().

void LLFolderViewFolder::open ( void   )  [virtual]

Reimplemented from LLFolderViewItem.

Definition at line 2008 of file llfolderview.cpp.

References toggleOpen().

BOOL LLFolderViewFolder::potentiallyVisible (  )  [virtual]

Reimplemented from LLFolderViewItem.

Definition at line 2217 of file llfolderview.cpp.

References getCompletedFilterGeneration(), LLFolderView::getFilter(), LLInventoryFilter::getMinRequiredGeneration(), LLFolderViewItem::getRoot(), hasFilteredDescendants(), LLFolderViewItem::mRoot, and LLFolderViewItem::potentiallyVisible().

Referenced by LLFolderView::sanitizeSelection().

void LLFolderViewFolder::recursiveDeselect ( BOOL  deselect_self  )  [virtual]

Reimplemented from LLFolderViewItem.

Definition at line 1599 of file llfolderview.cpp.

References FALSE, LLFolderViewItem::getParentFolder(), llassert, mFolders, LLFolderViewItem::mIsSelected, mItems, LLFolderViewItem::mNumDescendantsSelected, recursiveDeselect(), LLFolderViewItem::recursiveDeselect(), and TRUE.

Referenced by LLFolderView::clearSelection(), and recursiveDeselect().

BOOL LLFolderViewFolder::removeItem ( LLFolderViewItem item  ) 

Definition at line 1671 of file llfolderview.cpp.

References FALSE, LLFolderViewItem::remove(), and TRUE.

Referenced by LLFolderView::removeSelectedItems().

void LLFolderViewFolder::removeView ( LLFolderViewItem item  ) 

Definition at line 1684 of file llfolderview.cpp.

References extractItem(), LLFolderViewItem::getParentFolder(), LLFolderViewItem::getRoot(), LLFolderViewItem::recursiveDeselect(), LLFolderView::removeFromSelectionList(), and TRUE.

Referenced by destroyView(), and LLFolderViewItem::destroyView().

void LLFolderViewFolder::requestArrange ( BOOL  include_descendants = FALSE  )  [virtual]

Definition at line 1922 of file llfolderview.cpp.

References mFolders, mLastArrangeGeneration, LLFolderViewItem::mParentFolder, requestArrange(), and TRUE.

Referenced by LLFolderView::addFolder(), addFolder(), addItem(), arrange(), LLFolderViewEventListener::arrangeAndSet(), LLFolderView::autoOpenItem(), extractItem(), LLFolderViewItem::refresh(), requestArrange(), setOpenArrangeRecursively(), and LLFolderView::setSelection().

void LLFolderViewFolder::resort ( LLFolderViewItem item  ) 

Definition at line 1729 of file llfolderview.cpp.

References mFolders, mItems, and mSortFunction.

Referenced by LLFloaterNetwork2080::addNode(), and LLFolderViewItem::rename().

void LLFolderViewFolder::setAutoOpenCountdown ( F32  countdown  )  [inline]

Definition at line 664 of file llfolderview.h.

References mAutoOpenCountdown.

Referenced by LLFolderView::autoOpenTest(), and LLFolderView::closeAutoOpenedFolders().

void LLFolderViewFolder::setCompletedFilterGeneration ( S32  generation,
BOOL  recurse_up 
) [virtual]

Definition at line 1189 of file llfolderview.cpp.

References getCompletedFilterGeneration(), llmin(), mCompletedFilterGeneration, mMostFilteredDescendantGeneration, LLFolderViewItem::mParentFolder, setCompletedFilterGeneration(), and TRUE.

Referenced by dirtyFilter(), LLFolderViewItem::dirtyFilter(), filter(), and setCompletedFilterGeneration().

void LLFolderViewFolder::setFiltered ( BOOL  filtered,
S32  filter_generation 
) [virtual]

Reimplemented from LLFolderViewItem.

Definition at line 1346 of file llfolderview.cpp.

References mCurHeight, LLFolderViewItem::mFiltered, and LLFolderViewItem::setFiltered().

void LLFolderViewFolder::setItemSortOrder ( U32  ordering  ) 

Definition at line 1785 of file llfolderview.cpp.

References mFolders, mItems, mSortFunction, and LLInventorySort::updateSort().

Referenced by LLInventoryPanel::buildNewViews(), and LLSetItemSortFunction::doFolder().

void LLFolderViewFolder::setOpen ( BOOL  open = TRUE  )  [virtual]

Reimplemented from LLFolderViewItem.

Definition at line 1948 of file llfolderview.cpp.

References setOpenArrangeRecursively().

Referenced by LLFloaterNetwork2080::addNode(), LLFolderView::autoOpenItem(), LLFolderView::closeAutoOpenedFolders(), LLSaveFolderState::doFolder(), and toggleOpen().

void LLFolderViewFolder::setOpenArrangeRecursively ( BOOL  open,
ERecurseType  recurse = RECURSE_NO 
) [virtual]

Definition at line 1953 of file llfolderview.cpp.

References mFolders, mIsOpen, LLFolderViewItem::mListener, LLFolderViewItem::mParentFolder, RECURSE_DOWN, RECURSE_UP, RECURSE_UP_DOWN, requestArrange(), and setOpenArrangeRecursively().

Referenced by LLFolderView::autoOpenItem(), LLOpenFolderByID::doFolder(), LLOpenFoldersWithSelection::doFolder(), LLSelectFirstFilteredItem::doFolder(), LLOpenFilteredFolders::doFolder(), LLCloseAllFoldersFunctor::doFolder(), LLOpenFoldersWithSelection::doItem(), LLSelectFirstFilteredItem::doItem(), LLOpenFilteredFolders::doItem(), setOpen(), LLFolderView::setOpenArrangeRecursively(), setOpenArrangeRecursively(), and setSelection().

BOOL LLFolderViewFolder::setSelection ( LLFolderViewItem selection,
BOOL  open,
BOOL  take_keyboard_focus 
) [virtual]

Reimplemented from LLFolderViewItem.

Reimplemented in LLFolderView.

Definition at line 1374 of file llfolderview.cpp.

References FALSE, mFolders, LLFolderViewItem::mIsSelected, mItems, LLFolderViewItem::mListener, LLFolderViewItem::mNumDescendantsSelected, LLFolderViewEventListener::selectItem(), setOpenArrangeRecursively(), and TRUE.

Referenced by LLFolderView::setSelection().

void LLFolderViewFolder::sortBy ( U32   ) 

Definition at line 1744 of file llfolderview.cpp.

References mFolders, mItems, mSortFunction, mSubtreeCreationDate, LLInventoryFilter::SO_DATE, and LLInventorySort::updateSort().

Referenced by LLFloaterNetwork2080::addNode().

void LLFolderViewFolder::toggleOpen (  )  [virtual]

Reimplemented in LLFolderView.

Definition at line 1942 of file llfolderview.cpp.

References mIsOpen, and setOpen().

Referenced by LLPanelInventory::createFolderViews(), handleDoubleClick(), handleMouseDown(), and open().


Member Data Documentation

ETrash LLFolderViewFolder::mAmTrash [protected]

Definition at line 564 of file llfolderview.h.

Referenced by isTrash().

F32 LLFolderViewFolder::mAutoOpenCountdown [protected]

Definition at line 562 of file llfolderview.h.

Referenced by draw(), and setAutoOpenCountdown().

S32 LLFolderViewFolder::mCompletedFilterGeneration [protected]

Definition at line 567 of file llfolderview.h.

Referenced by LLFolderView::doIdle(), LLFolderView::draw(), filter(), getCompletedFilterGeneration(), and setCompletedFilterGeneration().

F32 LLFolderViewFolder::mCurHeight [protected]

Definition at line 560 of file llfolderview.h.

Referenced by arrange(), draw(), and setFiltered().

BOOL LLFolderViewFolder::mExpanderHighlighted [protected]

Definition at line 559 of file llfolderview.h.

Referenced by draw().

folders_t LLFolderViewFolder::mFolders [protected]

Definition at line 555 of file llfolderview.h.

Referenced by LLFolderView::addFolder(), addFolder(), applyFunctorRecursively(), applyListenerFunctorRecursively(), LLFolderView::arrange(), arrange(), changeSelection(), destroyView(), extendSelection(), extractItem(), filter(), getNextFromChild(), getPreviousFromChild(), isMovable(), isRemovable(), recursiveDeselect(), requestArrange(), resort(), setItemSortOrder(), setOpenArrangeRecursively(), setSelection(), LLFolderView::setSortOrder(), sortBy(), and LLFolderView::~LLFolderView().

BOOL LLFolderViewFolder::mIsOpen [protected]

Definition at line 558 of file llfolderview.h.

Referenced by arrange(), draw(), handleDoubleClick(), handleDragAndDrop(), handleMouseDown(), handleRightMouseDown(), isOpen(), LLFolderView::LLFolderView(), LLFolderView::setOpenArrangeRecursively(), setOpenArrangeRecursively(), and toggleOpen().

items_t LLFolderViewFolder::mItems [protected]

Definition at line 554 of file llfolderview.h.

Referenced by addItem(), applyFunctorRecursively(), applyListenerFunctorRecursively(), LLFolderView::arrange(), arrange(), changeSelection(), destroyView(), extendSelection(), extractItem(), filter(), getNextFromChild(), getPreviousFromChild(), isMovable(), isRemovable(), recursiveDeselect(), resort(), setItemSortOrder(), setSelection(), sortBy(), and LLFolderView::~LLFolderView().

S32 LLFolderViewFolder::mLastArrangeGeneration [protected]

Definition at line 565 of file llfolderview.h.

Referenced by LLFolderView::arrange(), arrange(), needsArrange(), and requestArrange().

S32 LLFolderViewFolder::mLastCalculatedWidth [protected]

Definition at line 566 of file llfolderview.h.

Referenced by arrange().

S32 LLFolderViewFolder::mMostFilteredDescendantGeneration [protected]

Definition at line 568 of file llfolderview.h.

Referenced by filter(), hasFilteredDescendants(), and setCompletedFilterGeneration().

LLInventorySort LLFolderViewFolder::mSortFunction [protected]

Definition at line 556 of file llfolderview.h.

Referenced by addFolder(), addItem(), getSortFunction(), resort(), setItemSortOrder(), and sortBy().

U32 LLFolderViewFolder::mSubtreeCreationDate [protected]

Definition at line 563 of file llfolderview.h.

Referenced by getCreationDate(), and sortBy().

F32 LLFolderViewFolder::mTargetHeight [protected]

Definition at line 561 of file llfolderview.h.

Referenced by LLFolderView::arrange(), arrange(), and draw().


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