LLFolderViewItem Class Reference

#include <llfolderview.h>

Inheritance diagram for LLFolderViewItem:

Inheritance graph
[legend]
Collaboration diagram for LLFolderViewItem:

Collaboration graph
[legend]
List of all members.

Public Types

 ARRANGE = TRUE
 DO_NOT_ARRANGE = FALSE
enum  { ARRANGE = TRUE, DO_NOT_ARRANGE = FALSE }

Public Member Functions

void arrangeFromRoot ()
void filterFromRoot (void)
 LLFolderViewItem (const LLString &name, LLViewerImage *icon, S32 creation_date, LLFolderView *root, LLFolderViewEventListener *listener)
virtual ~LLFolderViewItem (void)
virtual EWidgetType getWidgetType () const
virtual LLString getWidgetTag () const
virtual BOOL addToFolder (LLFolderViewFolder *folder, LLFolderView *root)
virtual EInventorySortGroup getSortGroup ()
virtual S32 arrange (S32 *width, S32 *height, S32 filter_generation)
virtual S32 getItemHeight ()
virtual void filter (LLInventoryFilter &filter)
S32 getLastFilterGeneration ()
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 getSelectionList (std::set< LLUUID > &selection)
virtual BOOL isRemovable ()
virtual BOOL isMovable ()
virtual void destroyView ()
S32 getNumSelectedDescendants ()
BOOL isSelected ()
void setIsCurSelection (BOOL select)
BOOL getIsCurSelection ()
BOOL hasVisibleChildren ()
BOOL remove ()
void buildContextMenu (LLMenuGL &menu, U32 flags)
const LLStringgetName (void) const
const LLStringgetSearchableLabel (void) const
const char * getLabel () const
virtual U32 getCreationDate () const
LLFolderViewFoldergetParentFolder (void)
LLFolderViewItemgetNextOpenNode (BOOL include_children=TRUE)
LLFolderViewItemgetPreviousOpenNode (BOOL include_children=TRUE)
LLFolderViewEventListenergetListener (void)
void rename (const LLString &new_name)
virtual void open (void)
virtual void preview (void)
virtual void setOpen (BOOL open=TRUE)
virtual BOOL isOpen ()
LLFolderViewgetRoot ()
BOOL isDescendantOf (const LLFolderViewFolder *potential_ancestor)
S32 getIndentation ()
virtual BOOL potentiallyVisible ()
virtual BOOL getFiltered ()
virtual BOOL getFiltered (S32 filter_generation)
virtual void setFiltered (BOOL filtered, S32 filter_generation)
void setIcon (LLViewerImage *icon)
virtual void refresh ()
virtual void applyListenerFunctorRecursively (LLFolderViewListenerFunctor &functor)
virtual BOOL handleRightMouseDown (S32 x, S32 y, MASK mask)
virtual BOOL handleMouseDown (S32 x, S32 y, MASK mask)
virtual BOOL handleHover (S32 x, S32 y, MASK mask)
virtual BOOL handleMouseUp (S32 x, S32 y, MASK mask)
virtual BOOL handleDoubleClick (S32 x, S32 y, MASK mask)
virtual BOOL handleScrollWheel (S32 x, S32 y, S32 clicks)
virtual void draw ()
virtual BOOL handleDragAndDrop (S32 x, S32 y, MASK mask, BOOL drop, EDragAndDropType cargo_type, void *cargo_data, EAcceptance *accept, LLString &tooltip_msg)

Protected Member Functions

void setSelectionFromRoot (LLFolderViewItem *selection, BOOL open, BOOL take_keyboard_focus=TRUE)
void changeSelectionFromRoot (LLFolderViewItem *selection, BOOL selected)
void extendSelectionFromRoot (LLFolderViewItem *selection)
virtual BOOL addItem (LLFolderViewItem *)
virtual BOOL addFolder (LLFolderViewFolder *)

Protected Attributes

LLString mLabel
LLString mSearchableLabel
LLString mType
S32 mLabelWidth
U32 mCreationDate
LLFolderViewFoldermParentFolder
LLFolderViewEventListenermListener
BOOL mIsSelected
BOOL mIsCurSelection
BOOL mSelectPending
LLFontGL::StyleFlags mLabelStyle
LLString mLabelSuffix
LLPointer< LLViewerImagemIcon
LLString mStatusText
BOOL mHasVisibleChildren
S32 mIndentation
S32 mNumDescendantsSelected
BOOL mFiltered
S32 mLastFilterGeneration
std::string::size_type mStringMatchOffset
F32 mControlLabelRotation
LLFolderViewmRoot
BOOL mDragAndDropTarget
LLPointer< LLViewerImagemArrowImage
LLPointer< LLViewerImagemBoxImage

Static Protected Attributes

static const LLFontGLsFont = NULL
static const LLFontGLsSmallFont = NULL
static LLColor4 sFgColor
static LLColor4 sHighlightBgColor
static LLColor4 sHighlightFgColor
static LLColor4 sFilterBGColor
static LLColor4 sFilterTextColor

Friends

class LLFolderViewEventListener

Detailed Description

Definition at line 326 of file llfolderview.h.


Member Enumeration Documentation

anonymous enum

Enumerator:
ARRANGE 
DO_NOT_ARRANGE 

Definition at line 398 of file llfolderview.h.


Constructor & Destructor Documentation

LLFolderViewItem::LLFolderViewItem ( const LLString name,
LLViewerImage icon,
S32  creation_date,
LLFolderView root,
LLFolderViewEventListener listener 
)

Definition at line 113 of file llfolderview.cpp.

References FALSE, gColors, LLControlGroup::getColor(), LLViewerImageList::getImage(), LLResMgr::getRes(), LLControlGroup::getString(), gImageList, gResMgr, gViewerArt, LLFONT_SANSSERIF_SMALL, LLFONT_SMALL, mArrowImage, mBoxImage, MIPMAP_FALSE, refresh(), setIcon(), LLUICtrl::setTabStop(), sFgColor, sFilterBGColor, sFilterTextColor, sFont, sHighlightBgColor, sHighlightFgColor, sSmallFont, and TRUE.

LLFolderViewItem::~LLFolderViewItem ( void   )  [virtual]

Definition at line 163 of file llfolderview.cpp.

References mArrowImage, mBoxImage, mListener, and NULL.


Member Function Documentation

virtual BOOL LLFolderViewItem::addFolder ( LLFolderViewFolder  )  [inline, protected, virtual]

Reimplemented in LLFolderViewFolder, and LLFolderView.

Definition at line 381 of file llfolderview.h.

References FALSE.

virtual BOOL LLFolderViewItem::addItem ( LLFolderViewItem  )  [inline, protected, virtual]

Reimplemented in LLFolderViewFolder.

Definition at line 380 of file llfolderview.h.

References FALSE.

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

Reimplemented in LLFolderViewFolder.

Definition at line 379 of file llfolderview.cpp.

References LLFolderViewFolder::addItem(), LLFolderView::addItemID(), FALSE, getListener(), and mParentFolder.

Referenced by LLInventoryPanel::buildNewViews(), LLPanelInventory::createViewsForCategory(), and LLInventoryPanel::modelChanged().

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

Reimplemented in LLFolderViewFolder.

Definition at line 312 of file llfolderview.cpp.

References mListener.

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

Reimplemented in LLFolderViewFolder, and LLFolderView.

Definition at line 393 of file llfolderview.cpp.

References getIndentation(), getItemHeight(), LEFT_INDENTATION, llmax(), mIndentation, mLabelWidth, and mParentFolder.

Referenced by LLFolderView::arrange(), LLFolderViewFolder::arrange(), and arrangeFromRoot().

void LLFolderViewItem::arrangeFromRoot (  ) 

Definition at line 330 of file llfolderview.cpp.

References arrange(), getRoot(), height, S32, and width.

Referenced by LLFolderView::doIdle(), LLFloaterNetwork2080::doIdle(), and LLPanelInventory::updateInventory().

void LLFolderViewItem::buildContextMenu ( LLMenuGL menu,
U32  flags 
)

Definition at line 545 of file llfolderview.cpp.

References LLFolderViewEventListener::buildContextMenu(), and mListener.

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

Reimplemented in LLFolderViewFolder, and LLFolderView.

Definition at line 464 of file llfolderview.cpp.

References FALSE, mIsSelected, mListener, LLFolderViewEventListener::selectItem(), and TRUE.

Referenced by LLFolderViewFolder::extendSelection().

void LLFolderViewItem::changeSelectionFromRoot ( LLFolderViewItem selection,
BOOL  selected 
) [protected]

Definition at line 351 of file llfolderview.cpp.

References LLFolderView::changeSelection(), and getRoot().

Referenced by LLFolderView::handleKeyHere(), handleMouseDown(), and handleMouseUp().

void LLFolderViewItem::destroyView (  )  [virtual]

Reimplemented in LLFolderViewFolder.

Definition at line 519 of file llfolderview.cpp.

References mParentFolder, and LLFolderViewFolder::removeView().

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

void LLFolderViewItem::dirtyFilter (  )  [virtual]

Reimplemented in LLFolderViewFolder.

Definition at line 432 of file llfolderview.cpp.

References getParentFolder(), mLastFilterGeneration, LLFolderViewFolder::setCompletedFilterGeneration(), and TRUE.

Referenced by LLFolderViewFolder::addItem(), LLFolderViewFolder::dirtyFilter(), and refresh().

void LLFolderViewItem::draw (  )  [virtual]

Reimplemented from LLView.

Reimplemented in LLFolderViewFolder, and LLFolderView.

Definition at line 803 of file llfolderview.cpp.

References ARROW_SIZE, LLViewerImage::bindTexture(), bottom, LLFontGL::BOTTOM, clamp_rescale(), LLView::drawDebugRect(), f, FALSE, LLInventoryFilter::getCurrentGeneration(), LLFolderView::getDebugFilters(), LLFolderView::getFilter(), getFiltered(), LLFolderView::getFilterSubString(), LLRectBase< Type >::getHeight(), LLFocusMgr::getKeyboardFocus(), LLFontGL::getLineHeight(), getRoot(), LLFolderView::getSelectionFadeElapsedTime(), LLFolderView::getShowSelectionContext(), LLFontGL::getWidth(), LLRectBase< Type >::getWidth(), LLFontGL::getWidthF32(), gFocusMgr, gl_draw_image(), gl_draw_scaled_rotated_image(), gl_rect_2d(), gl_segmented_rect_2d_tex(), glColor4fv, LLFolderViewEventListener::hasChildren(), hasVisibleChildren(), ICON_PAD, ICON_WIDTH, LLFolderViewEventListener::isUpToDate(), left, LLFontGL::LEFT, llfloor(), llround(), mArrowImage, mBoxImage, mControlLabelRotation, mDragAndDropTarget, mIcon, mIndentation, mIsCurSelection, mIsSelected, mLabel, mLabelStyle, mLabelSuffix, mLastFilterGeneration, mListener, LLView::mRect, mRoot, mStatusText, mStringMatchOffset, LLColor4::mV, LLFontGL::NORMAL, LLPointer< Type >::notNull(), LLFontGL::renderUTF8(), right, S32, S32_MAX, LLView::sDebugRects, sFgColor, sFilterBGColor, sFilterTextColor, sFont, sHighlightBgColor, sHighlightFgColor, sSmallFont, TEXT_PAD, top, TRUE, VALPHA, and y.

Referenced by LLFolderViewFolder::draw().

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

Reimplemented in LLFolderViewFolder, and LLFolderView.

Definition at line 428 of file llfolderview.h.

References FALSE.

void LLFolderViewItem::extendSelectionFromRoot ( LLFolderViewItem selection  )  [protected]

Definition at line 356 of file llfolderview.cpp.

References LLFolderView::extendSelection(), getRoot(), and NULL.

Referenced by handleMouseDown(), and handleMouseUp().

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

Reimplemented in LLFolderViewFolder, and LLFolderView.

Definition at line 408 of file llfolderview.cpp.

References getRoot(), LLView::getVisible(), llformat(), mLastFilterGeneration, mListener, mParentFolder, mStatusText, mStringMatchOffset, and setFiltered().

Referenced by LLFolderViewFolder::filter(), and filterFromRoot().

void LLFolderViewItem::filterFromRoot ( void   ) 

Definition at line 320 of file llfolderview.cpp.

References filter(), and getRoot().

Referenced by LLFolderView::doIdle().

virtual U32 LLFolderViewItem::getCreationDate (  )  const [inline, virtual]

Reimplemented in LLFolderViewFolder.

Definition at line 475 of file llfolderview.h.

References mCreationDate.

BOOL LLFolderViewItem::getFiltered ( S32  filter_generation  )  [virtual]

Definition at line 250 of file llfolderview.cpp.

References mFiltered, and mLastFilterGeneration.

BOOL LLFolderViewItem::getFiltered (  )  [virtual]

Definition at line 245 of file llfolderview.cpp.

References LLFolderView::getFilter(), LLInventoryFilter::getMinRequiredGeneration(), mFiltered, mLastFilterGeneration, and mRoot.

Referenced by LLFolderView::arrange(), LLSelectFirstFilteredItem::doFolder(), LLOpenFilteredFolders::doFolder(), LLFolderView::doIdle(), LLSelectFirstFilteredItem::doItem(), LLOpenFilteredFolders::doItem(), draw(), LLFolderViewFolder::filter(), and potentiallyVisible().

S32 LLFolderViewItem::getIndentation (  )  [inline]

Definition at line 497 of file llfolderview.h.

References mIndentation.

Referenced by arrange(), LLFolderView::scrollToShowItem(), and LLFolderView::startRenamingSelectedItem().

BOOL LLFolderViewItem::getIsCurSelection (  )  [inline]

Definition at line 451 of file llfolderview.h.

References mIsCurSelection.

S32 LLFolderViewItem::getItemHeight (  )  [virtual]

Definition at line 401 of file llfolderview.cpp.

References LLFontGL::getLineHeight(), ICON_PAD, llmax(), llround(), mIcon, S32, and sFont.

Referenced by LLFolderViewFolder::arrange(), and arrange().

const char* LLFolderViewItem::getLabel ( void   )  const [inline]

Definition at line 472 of file llfolderview.h.

References mLabel.

Referenced by LLInventoryPanel::buildNewViews().

S32 LLFolderViewItem::getLastFilterGeneration (  )  [inline]

Definition at line 412 of file llfolderview.h.

References mLastFilterGeneration.

Referenced by LLFolderViewFolder::filter(), and potentiallyVisible().

LLFolderViewEventListener * LLFolderViewItem::getListener ( void   ) 

Definition at line 605 of file llfolderview.cpp.

References mListener.

Referenced by LLFolderView::addFolder(), LLFloaterNetwork2080::addNode(), LLFolderViewFolder::addToFolder(), addToFolder(), LLInventoryFilter::check(), LLFolderViewFolder::destroyView(), LLOpenFolderByID::doFolder(), LLSaveFolderState::doFolder(), doToSelected(), LLFolderViewFolder::extractItem(), LLBeginIMSession::handleEvent(), LLInventoryPanel::modelChanged(), LLInventoryPanel::openSelected(), LLItemBridge::performAction(), LLFolderView::removeSelectedItems(), LLFloaterNetwork2080::requestChildren(), LLFloaterNetwork2080::selectionCallback(), LLInventoryPanel::setSelection(), and LLFolderView::startRenamingSelectedItem().

const LLString & LLFolderViewItem::getName ( void   )  const [virtual]

Reimplemented from LLView.

Definition at line 591 of file llfolderview.cpp.

References LLFolderViewEventListener::getName(), mLabel, and mListener.

Referenced by LLFloaterNetwork2080::addNode(), LLFolderView::removeSelectedItems(), and LLFolderView::startRenamingSelectedItem().

LLFolderViewItem * LLFolderViewItem::getNextOpenNode ( BOOL  include_children = TRUE  ) 

Definition at line 191 of file llfolderview.cpp.

References LLFolderViewFolder::getNextFromChild(), LLView::getVisible(), mParentFolder, and NULL.

Referenced by LLFolderView::handleKeyHere(), LLFolderView::removeSelectedItems(), and LLFolderView::search().

S32 LLFolderViewItem::getNumSelectedDescendants (  )  [inline]

Definition at line 445 of file llfolderview.h.

References mNumDescendantsSelected.

Referenced by LLPanelInventory::updateInventory().

LLFolderViewFolder * LLFolderViewItem::getParentFolder ( void   ) 

Definition at line 600 of file llfolderview.cpp.

References mParentFolder.

Referenced by LLFolderViewEventListener::arrangeAndSet(), LLFolderView::autoOpenItem(), dirtyFilter(), LLOpenFoldersWithSelection::doFolder(), LLSelectFirstFilteredItem::doFolder(), LLOpenFilteredFolders::doFolder(), LLOpenFoldersWithSelection::doItem(), LLSelectFirstFilteredItem::doItem(), LLOpenFilteredFolders::doItem(), LLFolderView::handleKeyHere(), LLInventoryPanel::modelChanged(), LLFolderViewFolder::recursiveDeselect(), recursiveDeselect(), LLFolderView::removeSelectedItems(), LLFolderViewFolder::removeView(), LLFolderView::sanitizeSelection(), and LLFolderView::setSelection().

LLFolderViewItem * LLFolderViewItem::getPreviousOpenNode ( BOOL  include_children = TRUE  ) 

Definition at line 213 of file llfolderview.cpp.

References LLFolderViewFolder::getPreviousFromChild(), LLView::getVisible(), mParentFolder, and NULL.

Referenced by LLFolderView::handleKeyHere(), LLFolderView::removeSelectedItems(), and LLFolderView::search().

LLFolderView * LLFolderViewItem::getRoot (  ) 

Definition at line 171 of file llfolderview.cpp.

References mRoot.

Referenced by LLFolderView::arrange(), LLFolderViewFolder::arrange(), LLFolderViewEventListener::arrangeAndSet(), arrangeFromRoot(), changeSelectionFromRoot(), LLFolderViewFolder::destroyView(), LLSelectFirstFilteredItem::doFolder(), LLSelectFirstFilteredItem::doItem(), LLFolderViewFolder::draw(), draw(), extendSelectionFromRoot(), LLFolderViewFolder::extractItem(), LLFolderViewFolder::filter(), filter(), filterFromRoot(), LLFolderViewFolder::handleDragAndDrop(), LLFolderViewFolder::handleDragAndDropFromChild(), handleHover(), LLFolderView::handleKeyHere(), handleMouseUp(), LLFolderView::handleUnicodeCharHere(), LLInventoryPanel::modelChanged(), LLFolderViewFolder::potentiallyVisible(), potentiallyVisible(), LLFolderViewFolder::removeView(), LLFolderView::sanitizeSelection(), and setSelectionFromRoot().

const LLString & LLFolderViewItem::getSearchableLabel ( void   )  const

Definition at line 586 of file llfolderview.cpp.

References mSearchableLabel.

Referenced by LLInventoryFilter::check(), and LLFolderView::search().

virtual BOOL LLFolderViewItem::getSelectionList ( std::set< LLUUID > &  selection  )  [inline, virtual]

Reimplemented in LLFolderView.

Definition at line 434 of file llfolderview.h.

References TRUE.

EInventorySortGroup LLFolderViewItem::getSortGroup (  )  [virtual]

Reimplemented in LLFolderViewFolder.

Definition at line 373 of file llfolderview.cpp.

References SG_ITEM.

LLString LLFolderViewItem::getWidgetTag (  )  const [virtual]

Implements LLView.

Reimplemented in LLFolderViewFolder, and LLFolderView.

Definition at line 368 of file llfolderview.cpp.

References LL_FOLDER_VIEW_ITEM_TAG.

EWidgetType LLFolderViewItem::getWidgetType (  )  const [virtual]

Implements LLView.

Reimplemented in LLFolderViewFolder, and LLFolderView.

Definition at line 363 of file llfolderview.cpp.

References WIDGET_TYPE_FOLDER_ITEM.

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

Reimplemented from LLView.

Reimplemented in LLFolderViewFolder, and LLFolderView.

Definition at line 723 of file llfolderview.cpp.

References preview(), and TRUE.

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

Reimplemented from LLView.

Reimplemented in LLFolderViewFolder, and LLFolderView.

Definition at line 768 of file llfolderview.cpp.

References ACCEPT_NO, ACCEPT_YES_MULTI, LLFolderViewEventListener::dragOrDrop(), FALSE, LLFolderViewFolder::handleDragAndDropFromChild(), lldebugst, llendl, mDragAndDropTarget, mListener, mParentFolder, and TRUE.

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

Reimplemented from LLView.

Reimplemented in LLFolderViewFolder, and LLFolderView.

Definition at line 658 of file llfolderview.cpp.

References FALSE, gAgent, LLAgent::getInventoryRootID(), getRoot(), LLFolderViewEventListener::getUUID(), gInventory, gInventoryLibraryRoot, gToolDragAndDrop, gViewerWindow, LLToolDragAndDrop::handleHover(), LLView::hasMouseCapture(), isMovable(), LLInventoryModel::isObjectDescendentOf(), LLToolDragAndDrop::isOverThreshold(), LLView::localPointToScreen(), mListener, NULL, S32, LLViewerWindow::setCursor(), LLViewerWindow::setKeyboardFocus(), LLFolderView::setShowSelectionContext(), LLToolDragAndDrop::SOURCE_AGENT, LLToolDragAndDrop::SOURCE_LIBRARY, LLToolDragAndDrop::SOURCE_WORLD, TRUE, UI_CURSOR_ARROW, and UI_CURSOR_NOLOCKED.

Referenced by LLFolderViewFolder::handleHover().

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

Reimplemented from LLView.

Reimplemented in LLFolderViewFolder, and LLFolderView.

Definition at line 621 of file llfolderview.cpp.

References changeSelectionFromRoot(), extendSelectionFromRoot(), FALSE, gToolDragAndDrop, gViewerWindow, isMovable(), LLView::localPointToScreen(), make_ui_sound(), MASK_CONTROL, MASK_SHIFT, mIsSelected, mSelectPending, S32, LLToolDragAndDrop::setDragStart(), LLViewerWindow::setMouseCapture(), setSelectionFromRoot(), and TRUE.

Referenced by LLFolderViewFolder::handleMouseDown().

BOOL LLFolderViewItem::handleMouseUp ( S32  x,
S32  y,
MASK  mask 
) [virtual]

Reimplemented from LLView.

Definition at line 738 of file llfolderview.cpp.

References changeSelectionFromRoot(), extendSelectionFromRoot(), FALSE, getRoot(), gViewerWindow, LLView::hasMouseCapture(), MASK_CONTROL, MASK_SHIFT, mIsSelected, mSelectPending, NULL, LLView::pointInView(), LLViewerWindow::setMouseCapture(), setSelectionFromRoot(), LLFolderView::setShowSelectionContext(), and TRUE.

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

Reimplemented from LLView.

Reimplemented in LLFolderViewFolder, and LLFolderView.

Definition at line 611 of file llfolderview.cpp.

References FALSE, make_ui_sound(), mIsSelected, setSelectionFromRoot(), and TRUE.

Referenced by LLFolderViewFolder::handleRightMouseDown().

BOOL LLFolderViewItem::handleScrollWheel ( S32  x,
S32  y,
S32  clicks 
) [virtual]

Reimplemented from LLView.

Reimplemented in LLFolderView.

Definition at line 729 of file llfolderview.cpp.

References FALSE, LLView::getParent(), and LLView::handleScrollWheel().

BOOL LLFolderViewItem::hasVisibleChildren (  )  [inline]

Definition at line 453 of file llfolderview.h.

References mHasVisibleChildren.

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

BOOL LLFolderViewItem::isDescendantOf ( const LLFolderViewFolder potential_ancestor  ) 

Definition at line 177 of file llfolderview.cpp.

References FALSE, mParentFolder, and TRUE.

BOOL LLFolderViewItem::isMovable (  )  [virtual]

Reimplemented in LLFolderViewFolder.

Definition at line 495 of file llfolderview.cpp.

References LLFolderViewEventListener::isItemMovable(), mListener, and TRUE.

Referenced by handleHover(), and handleMouseDown().

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

Reimplemented in LLFolderViewFolder.

Definition at line 493 of file llfolderview.h.

References FALSE.

Referenced by LLFolderView::removeSelectedItems().

BOOL LLFolderViewItem::isRemovable (  )  [virtual]

Reimplemented in LLFolderViewFolder.

Definition at line 507 of file llfolderview.cpp.

References LLFolderViewEventListener::isItemRemovable(), mListener, and TRUE.

Referenced by remove(), and LLFolderView::removeSelectedItems().

BOOL LLFolderViewItem::isSelected (  )  [inline]

Definition at line 447 of file llfolderview.h.

References mIsSelected.

Referenced by LLFolderView::addToSelectionList(), LLOpenFoldersWithSelection::doFolder(), LLSaveFolderState::doFolder(), LLOpenFoldersWithSelection::doItem(), LLFolderViewFolder::extendSelection(), LLFolderView::handleKeyHere(), and LLFolderView::removeSelectedItems().

void LLFolderViewItem::open ( void   )  [virtual]

Reimplemented in LLFolderViewFolder.

Definition at line 553 of file llfolderview.cpp.

References mListener, and LLFolderViewEventListener::openItem().

BOOL LLFolderViewItem::potentiallyVisible (  )  [virtual]

Reimplemented in LLFolderViewFolder.

Definition at line 238 of file llfolderview.cpp.

References LLFolderView::getFilter(), getFiltered(), getLastFilterGeneration(), LLInventoryFilter::getMinRequiredGeneration(), and getRoot().

Referenced by LLFolderViewFolder::potentiallyVisible().

void LLFolderViewItem::preview ( void   )  [virtual]

Definition at line 561 of file llfolderview.cpp.

References mListener, and LLFolderViewEventListener::previewItem().

Referenced by handleDoubleClick().

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

Reimplemented in LLFolderViewFolder.

Definition at line 478 of file llfolderview.cpp.

References FALSE, getParentFolder(), mIsSelected, and mNumDescendantsSelected.

Referenced by LLFolderViewFolder::recursiveDeselect(), and LLFolderViewFolder::removeView().

void LLFolderViewItem::refresh (  )  [virtual]

Definition at line 271 of file llfolderview.cpp.

References ARROW_SIZE, dirtyFilter(), LLFolderViewEventListener::getCreationDate(), LLFolderViewEventListener::getDisplayName(), LLFolderViewEventListener::getIcon(), LLFolderViewEventListener::getLabelStyle(), LLFolderViewEventListener::getLabelSuffix(), LLFontGL::getWidth(), ICON_PAD, ICON_WIDTH, mCreationDate, mLabel, mLabelStyle, mLabelSuffix, mLabelWidth, mListener, mParentFolder, mSearchableLabel, LLFolderViewFolder::requestArrange(), S32, setIcon(), sFont, TEXT_PAD, and LLStringBase< char >::toUpper().

Referenced by LLFolderViewItem(), LLInventoryPanel::modelChanged(), and LLCallingCardBridge::refreshFolderViewItem().

BOOL LLFolderViewItem::remove (  ) 

Definition at line 531 of file llfolderview.cpp.

References FALSE, isRemovable(), mListener, LLFolderViewEventListener::removeItem(), and TRUE.

Referenced by LLFolderViewFolder::removeItem().

void LLFolderViewItem::rename ( const LLString new_name  ) 

Definition at line 569 of file llfolderview.cpp.

References mLabel, mListener, mParentFolder, LLFolderViewEventListener::renameItem(), and LLFolderViewFolder::resort().

Referenced by LLFolderView::finishRenamingItem().

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

Reimplemented in LLFolderViewFolder.

Definition at line 255 of file llfolderview.cpp.

References mFiltered, and mLastFilterGeneration.

Referenced by filter(), and LLFolderViewFolder::setFiltered().

void LLFolderViewItem::setIcon ( LLViewerImage icon  ) 

Definition at line 261 of file llfolderview.cpp.

References LLViewerImage::BOOST_UI, and mIcon.

Referenced by LLFolderViewItem(), and refresh().

void LLFolderViewItem::setIsCurSelection ( BOOL  select  )  [inline]

Definition at line 449 of file llfolderview.h.

References mIsCurSelection.

Referenced by LLFolderView::addToSelectionList().

virtual void LLFolderViewItem::setOpen ( BOOL  open = TRUE  )  [inline, virtual]

Reimplemented in LLFolderViewFolder.

Definition at line 491 of file llfolderview.h.

Referenced by LLFolderView::handleKeyHere().

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

Reimplemented in LLFolderViewFolder, and LLFolderView.

Definition at line 447 of file llfolderview.cpp.

References FALSE, mIsSelected, mListener, LLFolderViewEventListener::selectItem(), and TRUE.

void LLFolderViewItem::setSelectionFromRoot ( LLFolderViewItem selection,
BOOL  open,
BOOL  take_keyboard_focus = TRUE 
) [protected]

Definition at line 343 of file llfolderview.cpp.

References getRoot(), and LLFolderView::setSelection().

Referenced by LLFolderViewEventListener::arrangeAndSet(), LLFolderView::finishRenamingItem(), LLFolderViewFolder::handleDoubleClick(), handleMouseDown(), handleMouseUp(), handleRightMouseDown(), LLFolderView::removeSelectedItems(), and LLFolderView::revertRenamingItem().


Friends And Related Function Documentation

friend class LLFolderViewEventListener [friend]

Definition at line 329 of file llfolderview.h.


Member Data Documentation

LLPointer<LLViewerImage> LLFolderViewItem::mArrowImage [protected]

Definition at line 362 of file llfolderview.h.

Referenced by draw(), LLFolderViewItem(), and ~LLFolderViewItem().

LLPointer<LLViewerImage> LLFolderViewItem::mBoxImage [protected]

Definition at line 363 of file llfolderview.h.

Referenced by draw(), LLFolderViewItem(), and ~LLFolderViewItem().

F32 LLFolderViewItem::mControlLabelRotation [protected]

Definition at line 359 of file llfolderview.h.

Referenced by LLFolderViewFolder::draw(), and draw().

U32 LLFolderViewItem::mCreationDate [protected]

Definition at line 343 of file llfolderview.h.

Referenced by getCreationDate(), LLFolderViewFolder::getCreationDate(), and refresh().

BOOL LLFolderViewItem::mDragAndDropTarget [protected]

Definition at line 361 of file llfolderview.h.

Referenced by draw(), LLFolderViewFolder::handleDragAndDrop(), handleDragAndDrop(), and LLFolderViewFolder::handleDragAndDropFromChild().

BOOL LLFolderViewItem::mFiltered [protected]

Definition at line 356 of file llfolderview.h.

Referenced by LLFolderView::filter(), LLFolderViewFolder::filter(), getFiltered(), LLFolderViewFolder::setFiltered(), and setFiltered().

BOOL LLFolderViewItem::mHasVisibleChildren [protected]

Definition at line 353 of file llfolderview.h.

Referenced by LLFolderView::arrange(), LLFolderViewFolder::arrange(), and hasVisibleChildren().

LLPointer<LLViewerImage> LLFolderViewItem::mIcon [protected]

Definition at line 351 of file llfolderview.h.

Referenced by draw(), getItemHeight(), LLFolderView::scrollToShowItem(), and setIcon().

S32 LLFolderViewItem::mIndentation [protected]

Definition at line 354 of file llfolderview.h.

Referenced by arrange(), draw(), getIndentation(), LLFolderViewFolder::handleDoubleClick(), LLFolderViewFolder::handleMouseDown(), and LLFolderView::LLFolderView().

BOOL LLFolderViewItem::mIsCurSelection [protected]

Definition at line 347 of file llfolderview.h.

Referenced by draw(), getIsCurSelection(), and setIsCurSelection().

BOOL LLFolderViewItem::mIsSelected [protected]

Definition at line 346 of file llfolderview.h.

Referenced by LLFolderViewFolder::changeSelection(), changeSelection(), draw(), handleMouseDown(), handleMouseUp(), handleRightMouseDown(), isSelected(), LLFolderViewFolder::recursiveDeselect(), recursiveDeselect(), LLFolderViewFolder::setSelection(), and setSelection().

LLString LLFolderViewItem::mLabel [protected]

Definition at line 339 of file llfolderview.h.

Referenced by draw(), getLabel(), getName(), LLFolderView::LLFolderView(), refresh(), and rename().

LLFontGL::StyleFlags LLFolderViewItem::mLabelStyle [protected]

Definition at line 349 of file llfolderview.h.

Referenced by draw(), and refresh().

LLString LLFolderViewItem::mLabelSuffix [protected]

Definition at line 350 of file llfolderview.h.

Referenced by draw(), and refresh().

S32 LLFolderViewItem::mLabelWidth [protected]

Definition at line 342 of file llfolderview.h.

Referenced by arrange(), and refresh().

S32 LLFolderViewItem::mLastFilterGeneration [protected]

Definition at line 357 of file llfolderview.h.

Referenced by dirtyFilter(), draw(), LLFolderViewFolder::filter(), filter(), getFiltered(), getLastFilterGeneration(), and setFiltered().

LLFolderViewEventListener* LLFolderViewItem::mListener [protected]

Definition at line 345 of file llfolderview.h.

Referenced by LLFolderViewFolder::applyListenerFunctorRecursively(), applyListenerFunctorRecursively(), buildContextMenu(), LLFolderViewFolder::changeSelection(), changeSelection(), draw(), LLFolderViewFolder::filter(), filter(), getListener(), getName(), LLFolderViewFolder::getSortGroup(), LLFolderViewFolder::handleDragAndDrop(), handleDragAndDrop(), LLFolderViewFolder::handleDragAndDropFromChild(), handleHover(), LLFolderViewFolder::handleRightMouseDown(), LLFolderViewFolder::isMovable(), isMovable(), LLFolderViewFolder::isRemovable(), isRemovable(), LLFolderViewFolder::isTrash(), open(), preview(), refresh(), remove(), rename(), LLFolderViewFolder::setOpenArrangeRecursively(), LLFolderViewFolder::setSelection(), setSelection(), and ~LLFolderViewItem().

S32 LLFolderViewItem::mNumDescendantsSelected [protected]

Definition at line 355 of file llfolderview.h.

Referenced by LLFolderViewFolder::changeSelection(), LLFolderViewFolder::extendSelection(), getNumSelectedDescendants(), LLFolderViewFolder::recursiveDeselect(), recursiveDeselect(), and LLFolderViewFolder::setSelection().

LLFolderViewFolder* LLFolderViewItem::mParentFolder [protected]

Definition at line 344 of file llfolderview.h.

Referenced by LLFolderViewFolder::addToFolder(), addToFolder(), arrange(), LLFolderViewFolder::destroyView(), destroyView(), filter(), LLFolderViewFolder::getNextFromChild(), getNextOpenNode(), getParentFolder(), getPreviousOpenNode(), handleDragAndDrop(), isDescendantOf(), refresh(), rename(), LLFolderViewFolder::requestArrange(), LLFolderViewFolder::setCompletedFilterGeneration(), and LLFolderViewFolder::setOpenArrangeRecursively().

LLFolderView* LLFolderViewItem::mRoot [protected]

Definition at line 360 of file llfolderview.h.

Referenced by LLFolderView::arrange(), LLFolderViewFolder::arrange(), draw(), LLFolderViewFolder::filter(), getFiltered(), getRoot(), LLFolderViewFolder::hasFilteredDescendants(), LLFolderViewFolder::needsArrange(), and LLFolderViewFolder::potentiallyVisible().

LLString LLFolderViewItem::mSearchableLabel [protected]

Definition at line 340 of file llfolderview.h.

Referenced by getSearchableLabel(), and refresh().

BOOL LLFolderViewItem::mSelectPending [protected]

Definition at line 348 of file llfolderview.h.

Referenced by handleMouseDown(), and handleMouseUp().

LLString LLFolderViewItem::mStatusText [protected]

Definition at line 352 of file llfolderview.h.

Referenced by LLFolderView::draw(), draw(), LLFolderViewFolder::filter(), and filter().

std::string::size_type LLFolderViewItem::mStringMatchOffset [protected]

Definition at line 358 of file llfolderview.h.

Referenced by draw(), and filter().

LLString LLFolderViewItem::mType [protected]

Definition at line 341 of file llfolderview.h.

Referenced by LLFolderViewFolder::LLFolderViewFolder().

LLColor4 LLFolderViewItem::sFgColor [static, protected]

Definition at line 333 of file llfolderview.h.

Referenced by draw(), and LLFolderViewItem().

LLColor4 LLFolderViewItem::sFilterBGColor [static, protected]

Definition at line 336 of file llfolderview.h.

Referenced by draw(), and LLFolderViewItem().

LLColor4 LLFolderViewItem::sFilterTextColor [static, protected]

Definition at line 337 of file llfolderview.h.

Referenced by draw(), and LLFolderViewItem().

const LLFontGL * LLFolderViewItem::sFont = NULL [static, protected]

---------------------------------------------------------------------------- Class LLFolderViewItem ----------------------------------------------------------------------------

Definition at line 331 of file llfolderview.h.

Referenced by LLFolderView::draw(), draw(), getItemHeight(), LLFolderView::LLFolderView(), LLFolderViewItem(), refresh(), LLFolderView::scrollToShowItem(), and LLFolderView::startRenamingSelectedItem().

LLColor4 LLFolderViewItem::sHighlightBgColor [static, protected]

Definition at line 334 of file llfolderview.h.

Referenced by draw(), and LLFolderViewItem().

LLColor4 LLFolderViewItem::sHighlightFgColor [static, protected]

Definition at line 335 of file llfolderview.h.

Referenced by draw(), and LLFolderViewItem().

const LLFontGL * LLFolderViewItem::sSmallFont = NULL [static, protected]

Definition at line 332 of file llfolderview.h.

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


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