LLInventoryPanel Class Reference

#include <llinventoryview.h>

Inheritance diagram for LLInventoryPanel:

Inheritance graph
[legend]
Collaboration diagram for LLInventoryPanel:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 LLInventoryPanel (const LLString &name, const LLString &sort_order_setting, const LLRect &rect, LLInventoryModel *inventory, LLFolderSearchFunction search, BOOL allow_multi_select, LLView *parent_view=NULL)
 ~LLInventoryPanel ()
LLInventoryModelgetModel ()
BOOL postBuild ()
virtual LLXMLNodePtr getXML (bool save_children=true) const
BOOL handleHover (S32 x, S32 y, MASK mask)
BOOL handleDragAndDrop (S32 x, S32 y, MASK mask, BOOL drop, EDragAndDropType cargo_type, void *cargo_data, EAcceptance *accept, LLString &tooltip_msg)
void openAllFolders ()
void closeAllFolders ()
void openDefaultFolderForType (LLAssetType::EType)
void setSelection (const LLUUID &obj_id, BOOL take_keyboard_focus)
void setSelectCallback (LLFolderView::SelectCallback callback, void *user_data)
void clearSelection ()
LLInventoryFiltergetFilter ()
void setFilterTypes (U32 filter)
U32 getFilterTypes () const
void setFilterPermMask (PermissionMask filter_perm_mask)
U32 getFilterPermMask () const
void setFilterSubString (const LLString &string)
const LLString getFilterSubString ()
void setSortOrder (U32 order)
U32 getSortOrder ()
void setSinceLogoff (BOOL sl)
void setHoursAgo (U32 hours)
BOOL getSinceLogoff ()
void setShowFolderState (LLInventoryFilter::EFolderShow show)
LLInventoryFilter::EFolderShow getShowFolderState ()
void setAllowMultiSelect (BOOL allow)
void modelChanged (U32 mask)
LLFolderViewgetRootFolder ()
LLScrollableContainerViewgetScrollableContainer ()
void openSelected ()
void unSelectAll ()
void createNewItem (const char *name, const LLUUID &parent_id, LLAssetType::EType asset_type, LLInventoryType::EType inv_type, U32 next_owner_perm=0)

Static Public Member Functions

static LLViewfromXML (LLXMLNodePtr node, LLView *parent, LLUICtrlFactory *factory)
static void dumpSelectionInformation (void *user_data)

Static Public Attributes

static const LLString DEFAULT_SORT_ORDER = LLString("InventorySortOrder")
static const LLString RECENTITEMS_SORT_ORDER = LLString("RecentItemsSortOrder")
static const LLString INHERIT_SORT_ORDER = LLString("")

Protected Member Functions

void rebuildViewsFor (const LLUUID &id, U32 mask)
void buildNewViews (const LLUUID &id)

Protected Attributes

LLInventoryModelmInventory
LLInventoryObservermInventoryObserver
LLFolderViewmFolders
LLScrollableContainerViewmScroller
BOOL mAllowMultiSelect
const LLString mSortOrderSetting
LLFolderSearchFunction mSearchFunction


Detailed Description

Definition at line 66 of file llinventoryview.h.


Constructor & Destructor Documentation

LLInventoryPanel::LLInventoryPanel ( const LLString name,
const LLString sort_order_setting,
const LLRect rect,
LLInventoryModel inventory,
LLFolderSearchFunction  search,
BOOL  allow_multi_select,
LLView parent_view = NULL 
)

Definition at line 1216 of file llinventoryview.cpp.

References gColors, LLControlGroup::getColor(), LLPanel::setBackgroundColor(), LLPanel::setBackgroundOpaque(), LLPanel::setBackgroundVisible(), and TRUE.

Referenced by fromXML().

Here is the call graph for this function:

Here is the caller graph for this function:

LLInventoryPanel::~LLInventoryPanel (  ) 


Member Function Documentation

LLInventoryModel* LLInventoryPanel::getModel (  )  [inline]

BOOL LLInventoryPanel::postBuild ( void   )  [virtual]

LLXMLNodePtr LLInventoryPanel::getXML ( bool  save_children = true  )  const [virtual]

Reimplemented from LLPanel.

Definition at line 1298 of file llinventoryview.cpp.

References LLFolderView::getAllowMultiSelect(), LLPanel::getXML(), mFolders, and TRUE.

Here is the call graph for this function:

LLView * LLInventoryPanel::fromXML ( LLXMLNodePtr  node,
LLView parent,
LLUICtrlFactory factory 
) [static]

Reimplemented from LLPanel.

Definition at line 1307 of file llinventoryview.cpp.

References LLView::createRect(), gInventory, LLInventoryView::incrementalFind(), INHERIT_SORT_ORDER, LLUICtrl::initFromXML(), LLInventoryPanel(), postBuild(), and TRUE.

Here is the call graph for this function:

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

BOOL LLInventoryPanel::handleDragAndDrop ( S32  x,
S32  y,
MASK  mask,
BOOL  drop,
EDragAndDropType  cargo_type,
void *  cargo_data,
EAcceptance accept,
LLString tooltip_msg 
)

Definition at line 1665 of file llinventoryview.cpp.

References LLView::handleDragAndDrop(), mFolders, and LLFolderView::setDragAndDropThisFrame().

Here is the call graph for this function:

void LLInventoryPanel::openAllFolders (  ) 

Definition at line 1683 of file llinventoryview.cpp.

References LLFolderView::arrangeAll(), mFolders, LLFolderViewFolder::RECURSE_DOWN, LLFolderView::setOpenArrangeRecursively(), and TRUE.

Here is the call graph for this function:

void LLInventoryPanel::closeAllFolders (  ) 

Definition at line 1689 of file llinventoryview.cpp.

References LLFolderView::arrangeAll(), FALSE, mFolders, LLFolderViewFolder::RECURSE_DOWN, and LLFolderView::setOpenArrangeRecursively().

Referenced by LLCloseAllFoldersFloater::handleEvent(), and LLCloseAllFolders::handleEvent().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLInventoryPanel::openDefaultFolderForType ( LLAssetType::EType  type  ) 

Definition at line 1695 of file llinventoryview.cpp.

References LLFolderViewFolder::applyFunctorRecursively(), LLInventoryModel::findCategoryUUIDForType(), mFolders, and mInventory.

Referenced by LLFloaterLandmark::LLFloaterLandmark(), and LLFloaterAvatarPicker::postBuild().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLInventoryPanel::setSelection ( const LLUUID obj_id,
BOOL  take_keyboard_focus 
)

void LLInventoryPanel::setSelectCallback ( LLFolderView::SelectCallback  callback,
void *  user_data 
) [inline]

Definition at line 102 of file llinventoryview.h.

References mFolders, and LLFolderView::setSelectCallback().

Referenced by LLInventoryView::init(), LLFloaterLandmark::LLFloaterLandmark(), LLFloaterTexturePicker::LLFloaterTexturePicker(), and LLFloaterAvatarPicker::postBuild().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLInventoryPanel::clearSelection (  ) 

Definition at line 1713 of file llinventoryview.cpp.

References LLFolderView::clearSelection(), and mFolders.

Referenced by LLFloaterTexturePicker::setImageID().

Here is the call graph for this function:

Here is the caller graph for this function:

LLInventoryFilter* LLInventoryPanel::getFilter (  )  [inline]

Definition at line 104 of file llinventoryview.h.

References LLFolderView::getFilter(), and mFolders.

Referenced by LLResetFilter::handleEvent(), LLInventoryView::init(), LLInventoryView::setFilterTextFromFilter(), and LLInventoryView::~LLInventoryView().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLInventoryPanel::setFilterTypes ( U32  filter  ) 

U32 LLInventoryPanel::getFilterTypes (  )  const [inline]

Definition at line 106 of file llinventoryview.h.

References LLFolderView::getFilterTypes(), and mFolders.

Referenced by LLNewWindow::handleEvent().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLInventoryPanel::setFilterPermMask ( PermissionMask  filter_perm_mask  ) 

Definition at line 1339 of file llinventoryview.cpp.

References LLFolderView::getFilter(), mFolders, and LLInventoryFilter::setFilterPermissions().

Referenced by LLFloaterTexturePicker::LLFloaterTexturePicker().

Here is the call graph for this function:

Here is the caller graph for this function:

U32 LLInventoryPanel::getFilterPermMask (  )  const [inline]

Definition at line 108 of file llinventoryview.h.

References LLFolderView::getFilterPermissions(), and mFolders.

Here is the call graph for this function:

void LLInventoryPanel::setFilterSubString ( const LLString string  ) 

Definition at line 1344 of file llinventoryview.cpp.

References LLFolderView::getFilter(), mFolders, and LLInventoryFilter::setFilterSubString().

Referenced by LLNewWindow::handleEvent(), LLFloaterTexturePicker::onSearchEdit(), LLFloaterLandmark::onSearchEdit(), and LLInventoryView::setFilterSubString().

Here is the call graph for this function:

Here is the caller graph for this function:

const LLString LLInventoryPanel::getFilterSubString (  )  [inline]

Definition at line 110 of file llinventoryview.h.

References LLFolderView::getFilterSubString(), and mFolders.

Referenced by LLFloaterTexturePicker::draw(), LLInventoryView::draw(), LLInventoryView::getFilterSubString(), LLNewWindow::handleEvent(), LLFloaterTexturePicker::onSearchEdit(), and LLFloaterLandmark::onSearchEdit().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLInventoryPanel::setSortOrder ( U32  order  ) 

Definition at line 1349 of file llinventoryview.cpp.

References LLFolderView::getFilter(), LLInventoryFilter::isModified(), mFolders, LLFolderView::scrollToShowSelection(), LLFolderView::setSortOrder(), and LLInventoryFilter::setSortOrder().

Referenced by LLSetSortBy::handleEvent(), LLInventoryView::init(), and postBuild().

Here is the call graph for this function:

Here is the caller graph for this function:

U32 LLInventoryPanel::getSortOrder (  )  [inline]

Definition at line 112 of file llinventoryview.h.

References LLFolderView::getSortOrder(), and mFolders.

Referenced by LLSetSortBy::handleEvent().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLInventoryPanel::setSinceLogoff ( BOOL  sl  ) 

Definition at line 1360 of file llinventoryview.cpp.

References LLFolderView::getFilter(), mFolders, and LLInventoryFilter::setDateRangeLastLogoff().

Referenced by LLInventoryViewFinder::draw(), and LLInventoryView::init().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLInventoryPanel::setHoursAgo ( U32  hours  ) 

Definition at line 1365 of file llinventoryview.cpp.

References LLFolderView::getFilter(), mFolders, and LLInventoryFilter::setHoursAgo().

Referenced by LLInventoryViewFinder::draw().

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL LLInventoryPanel::getSinceLogoff (  )  [inline]

Definition at line 115 of file llinventoryview.h.

References LLFolderView::getFilter(), LLInventoryFilter::isSinceLogoff(), and mFolders.

Here is the call graph for this function:

void LLInventoryPanel::setShowFolderState ( LLInventoryFilter::EFolderShow  show  ) 

LLInventoryFilter::EFolderShow LLInventoryPanel::getShowFolderState (  ) 

Definition at line 1375 of file llinventoryview.cpp.

References LLFolderView::getFilter(), LLInventoryFilter::getShowFolderState(), and mFolders.

Here is the call graph for this function:

void LLInventoryPanel::setAllowMultiSelect ( BOOL  allow  )  [inline]

Definition at line 119 of file llinventoryview.h.

References mFolders, and LLFolderView::setAllowMultiSelect().

Referenced by LLFloaterLandmark::LLFloaterLandmark(), LLFloaterTexturePicker::LLFloaterTexturePicker(), and LLFloaterAvatarPicker::setAllowMultiple().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLInventoryPanel::modelChanged ( U32  mask  ) 

LLFolderView* LLInventoryPanel::getRootFolder (  )  [inline]

LLScrollableContainerView* LLInventoryPanel::getScrollableContainer (  )  [inline]

Definition at line 123 of file llinventoryview.h.

References mScroller.

Referenced by LLInventoryView::handleDragAndDrop().

Here is the caller graph for this function:

void LLInventoryPanel::dumpSelectionInformation ( void *  user_data  )  [static]

Definition at line 1747 of file llinventoryview.cpp.

References LLFolderView::dumpSelectionInformation(), and mFolders.

Here is the call graph for this function:

void LLInventoryPanel::openSelected (  ) 

Definition at line 1637 of file llinventoryview.cpp.

References LLFolderView::getCurSelectedItem(), LLFolderViewItem::getListener(), mFolders, and LLInvFVBridge::openItem().

Referenced by handle_grab_texture(), and LLNewAgentInventoryResponder::uploadComplete().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLInventoryPanel::unSelectAll (  )  [inline]

Definition at line 130 of file llinventoryview.h.

References FALSE, mFolders, NULL, and LLFolderView::setSelection().

Referenced by LLFolderBridge::dragItemIntoFolder().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLInventoryPanel::rebuildViewsFor ( const LLUUID id,
U32  mask 
) [protected]

Definition at line 1493 of file llinventoryview.cpp.

References buildNewViews(), LLFolderViewItem::destroyView(), LLFolderView::getItemByID(), mFolders, and NULL.

Referenced by postBuild().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLInventoryPanel::buildNewViews ( const LLUUID id  )  [protected]

void LLInventoryPanel::createNewItem ( const char *  name,
const LLUUID parent_id,
LLAssetType::EType  asset_type,
LLInventoryType::EType  inv_type,
U32  next_owner_perm = 0 
)

Definition at line 1718 of file llinventoryview.cpp.

References create_inventory_item(), gAgent, LLAssetType::generateDescriptionFor(), LLAgent::getID(), LLAgent::getSessionID(), LLInventoryType::IT_GESTURE, NOT_WEARABLE, NULL, PERM_MOVE, PERM_TRANSFER, and LLTransactionID::tnull.

Referenced by do_create().

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

const LLString LLInventoryPanel::DEFAULT_SORT_ORDER = LLString("InventorySortOrder") [static]

Definition at line 69 of file llinventoryview.h.

Referenced by postBuild().

const LLString LLInventoryPanel::RECENTITEMS_SORT_ORDER = LLString("RecentItemsSortOrder") [static]

Definition at line 70 of file llinventoryview.h.

Definition at line 71 of file llinventoryview.h.

Referenced by fromXML(), postBuild(), and ~LLInventoryPanel().

Definition at line 150 of file llinventoryview.h.

Referenced by postBuild(), and ~LLInventoryPanel().

Definition at line 152 of file llinventoryview.h.

Referenced by getScrollableContainer(), postBuild(), and ~LLInventoryPanel().

Definition at line 153 of file llinventoryview.h.

Referenced by postBuild().

Definition at line 154 of file llinventoryview.h.

Referenced by postBuild(), and ~LLInventoryPanel().

Definition at line 155 of file llinventoryview.h.


The documentation for this class was generated from the following files:

Generated on Fri May 16 08:50:31 2008 for SecondLife by  doxygen 1.5.5