LLInvFVBridge Class Reference

#include <llinventorybridge.h>

Inheritance diagram for LLInvFVBridge:

Inheritance graph
[legend]
Collaboration diagram for LLInvFVBridge:

Collaboration graph
[legend]
List of all members.

Public Member Functions

virtual ~LLInvFVBridge ()
virtual const LLUUIDgetUUID () const
virtual const LLStringgetPrefix ()
virtual void restoreItem ()
virtual const LLStringgetName () const
virtual const LLStringgetDisplayName () const
virtual PermissionMask getPermissionMask () const
virtual U32 getCreationDate () const
virtual LLFontGL::StyleFlags getLabelStyle () const
virtual LLString getLabelSuffix () const
virtual void openItem ()
virtual void previewItem ()
virtual void showProperties ()
virtual BOOL isItemRenameable () const
virtual BOOL isItemRemovable ()
virtual BOOL isItemMovable ()
virtual void removeBatch (LLDynamicArray< LLFolderViewEventListener * > &batch)
virtual void move (LLFolderViewEventListener *new_parent_bridge)
virtual BOOL isItemCopyable () const
virtual BOOL copyToClipboard () const
virtual void cutToClipboard ()
virtual BOOL isClipboardPasteable () const
virtual void pasteFromClipboard ()
void getClipboardEntries (bool show_asset_id, std::vector< LLString > &items, std::vector< LLString > &disabled_items, U32 flags)
virtual void buildContextMenu (LLMenuGL &menu, U32 flags)
virtual BOOL startDrag (EDragAndDropType *type, LLUUID *id)
virtual BOOL dragOrDrop (MASK mask, BOOL drop, EDragAndDropType cargo_type, void *cargo_data)
virtual LLInventoryType::EType getInventoryType () const
virtual void clearDisplayName ()

Static Public Member Functions

static LLInvFVBridgecreateBridge (LLAssetType::EType asset_type, LLInventoryType::EType inv_type, LLInventoryPanel *inventory, const LLUUID &uuid, U32 flags=0x00)

Protected Member Functions

 LLInvFVBridge (LLInventoryPanel *inventory, const LLUUID &uuid)
LLInventoryObjectgetInventoryObject () const
BOOL isInTrash () const
BOOL isAgentInventory () const
virtual BOOL isItemPermissive () const
void removeBatchNoCheck (LLDynamicArray< LLFolderViewEventListener * > &batch)

Static Protected Member Functions

static void changeItemParent (LLInventoryModel *model, LLViewerInventoryItem *item, const LLUUID &new_parent, BOOL restamp)
static void changeCategoryParent (LLInventoryModel *model, LLViewerInventoryCategory *item, const LLUUID &new_parent, BOOL restamp)

Protected Attributes

LLInventoryPanelmInventoryPanel
LLUUID mUUID
LLInventoryType::EType mInvType

Detailed Description

Definition at line 146 of file llinventorybridge.h.


Constructor & Destructor Documentation

virtual LLInvFVBridge::~LLInvFVBridge (  )  [inline, virtual]

Definition at line 156 of file llinventorybridge.h.

LLInvFVBridge::LLInvFVBridge ( LLInventoryPanel inventory,
const LLUUID uuid 
) [inline, protected]

Definition at line 201 of file llinventorybridge.h.


Member Function Documentation

void LLInvFVBridge::buildContextMenu ( LLMenuGL menu,
U32  flags 
) [virtual]

Implements LLFolderViewEventListener.

Reimplemented in LLFolderBridge, LLSoundBridge, LLLandmarkBridge, LLCallingCardBridge, LLGestureBridge, LLAnimationBridge, LLObjectBridge, and LLWearableBridge.

Definition at line 428 of file llinventorybridge.cpp.

References getClipboardEntries(), hideContextEntries(), isInTrash(), isItemRemovable(), lldebugs, and llendl.

void LLInvFVBridge::changeCategoryParent ( LLInventoryModel model,
LLViewerInventoryCategory item,
const LLUUID new_parent,
BOOL  restamp 
) [static, protected]

Definition at line 537 of file llinventorybridge.cpp.

References LLInventoryModel::accountForUpdate(), LLInventoryObject::getParentUUID(), gInventory, LLInventoryModel::notifyObservers(), and LLInventoryModel::updateCategory().

Referenced by LLFolderBridge::dragCategoryIntoFolder(), LLFolderBridge::removeItem(), and LLFolderBridge::restoreItem().

void LLInvFVBridge::changeItemParent ( LLInventoryModel model,
LLViewerInventoryItem item,
const LLUUID new_parent,
BOOL  restamp 
) [static, protected]

Definition at line 514 of file llinventorybridge.cpp.

References LLInventoryModel::accountForUpdate(), LLInventoryObject::getParentUUID(), gInventory, LLInventoryModel::notifyObservers(), and LLInventoryModel::updateItem().

Referenced by LLFolderBridge::dragItemIntoFolder(), LLItemBridge::removeItem(), and LLItemBridge::restoreItem().

virtual void LLInvFVBridge::clearDisplayName (  )  [inline, virtual]

Reimplemented in LLItemBridge.

Definition at line 198 of file llinventorybridge.h.

Referenced by LLInventoryPanel::modelChanged().

virtual BOOL LLInvFVBridge::copyToClipboard (  )  const [inline, virtual]

Implements LLFolderViewEventListener.

Reimplemented in LLItemBridge.

Definition at line 184 of file llinventorybridge.h.

References FALSE.

LLInvFVBridge * LLInvFVBridge::createBridge ( LLAssetType::EType  asset_type,
LLInventoryType::EType  inv_type,
LLInventoryPanel inventory,
const LLUUID uuid,
U32  flags = 0x00 
) [static]

Definition at line 571 of file llinventorybridge.cpp.

References LLAssetType::AT_ANIMATION, LLAssetType::AT_BODYPART, LLAssetType::AT_CALLINGCARD, LLAssetType::AT_CATEGORY, LLAssetType::AT_CLOTHING, LLAssetType::AT_GESTURE, LLAssetType::AT_LANDMARK, LLAssetType::AT_LSL_TEXT, LLAssetType::AT_NOTECARD, LLAssetType::AT_OBJECT, LLAssetType::AT_ROOT_CATEGORY, LLAssetType::AT_SCRIPT, LLAssetType::AT_SOUND, LLAssetType::AT_TEXTURE, LLInventoryType::IT_ANIMATION, LLInventoryType::IT_ATTACHMENT, LLInventoryType::IT_CALLINGCARD, LLInventoryType::IT_GESTURE, LLInventoryType::IT_LANDMARK, LLInventoryType::IT_LSL, LLInventoryType::IT_NOTECARD, LLInventoryType::IT_OBJECT, LLInventoryType::IT_SNAPSHOT, LLInventoryType::IT_SOUND, LLInventoryType::IT_TEXTURE, LLInventoryType::IT_WEARABLE, llendl, llinfos, llwarns, LLAssetType::lookup(), mInvType, NULL, S32, and safe_inv_type_lookup().

Referenced by LLInventoryPanel::buildNewViews().

virtual void LLInvFVBridge::cutToClipboard (  )  [inline, virtual]

Implements LLFolderViewEventListener.

Definition at line 185 of file llinventorybridge.h.

virtual BOOL LLInvFVBridge::dragOrDrop ( MASK  mask,
BOOL  drop,
EDragAndDropType  cargo_type,
void cargo_data 
) [inline, virtual]

Implements LLFolderViewEventListener.

Reimplemented in LLFolderBridge, and LLCallingCardBridge.

Definition at line 192 of file llinventorybridge.h.

References FALSE.

void LLInvFVBridge::getClipboardEntries ( bool  show_asset_id,
std::vector< LLString > &  items,
std::vector< LLString > &  disabled_items,
U32  flags 
)

Definition at line 386 of file llinventorybridge.cpp.

References FIRST_SELECTED_ITEM, gAgent, isClipboardPasteable(), LLAgent::isGodlike(), isItemCopyable(), isItemPermissive(), isItemRemovable(), and isItemRenameable().

Referenced by LLWearableBridge::buildContextMenu(), LLObjectBridge::buildContextMenu(), LLAnimationBridge::buildContextMenu(), LLGestureBridge::buildContextMenu(), LLCallingCardBridge::buildContextMenu(), LLLandmarkBridge::buildContextMenu(), LLSoundBridge::buildContextMenu(), LLFolderBridge::buildContextMenu(), and buildContextMenu().

U32 LLInvFVBridge::getCreationDate (  )  const [virtual]

Implements LLFolderViewEventListener.

Reimplemented in LLItemBridge.

Definition at line 184 of file llinventorybridge.cpp.

Referenced by LLInventoryPanel::buildNewViews().

const LLString & LLInvFVBridge::getDisplayName (  )  const [virtual]

Implements LLFolderViewEventListener.

Reimplemented in LLItemBridge.

Definition at line 171 of file llinventorybridge.cpp.

References getName().

Referenced by LLInventoryPanel::buildNewViews().

LLInventoryObject * LLInvFVBridge::getInventoryObject (  )  const [protected]

Definition at line 481 of file llinventorybridge.cpp.

References LLInventoryPanel::getModel(), LLInventoryModel::getObject(), mInventoryPanel, mUUID, and NULL.

Referenced by getName(), LLFolderBridge::isItemMovable(), and startDrag().

virtual LLInventoryType::EType LLInvFVBridge::getInventoryType (  )  const [inline, virtual]

Implements LLFolderViewEventListener.

Definition at line 195 of file llinventorybridge.h.

References mInvType.

Referenced by LLBeginIMSession::handleEvent().

virtual LLFontGL::StyleFlags LLInvFVBridge::getLabelStyle (  )  const [inline, virtual]

Implements LLFolderViewEventListener.

Reimplemented in LLGestureBridge, LLObjectBridge, and LLWearableBridge.

Definition at line 168 of file llinventorybridge.h.

References LLFontGL::NORMAL.

virtual LLString LLInvFVBridge::getLabelSuffix (  )  const [inline, virtual]

Implements LLFolderViewEventListener.

Reimplemented in LLItemBridge, LLCallingCardBridge, LLGestureBridge, LLObjectBridge, and LLWearableBridge.

Definition at line 172 of file llinventorybridge.h.

References LLStringBase< char >::null.

const LLString & LLInvFVBridge::getName (  )  const [virtual]

Implements LLFolderViewEventListener.

Definition at line 161 of file llinventorybridge.cpp.

References getInventoryObject(), LLInventoryObject::getName(), and LLStringBase< char >::null.

Referenced by getDisplayName(), and LLSoundBridge::openSoundPreview().

PermissionMask LLInvFVBridge::getPermissionMask (  )  const [virtual]

Implements LLFolderViewEventListener.

Reimplemented in LLItemBridge.

Definition at line 177 of file llinventorybridge.cpp.

References PERM_ALL.

virtual const LLString& LLInvFVBridge::getPrefix (  )  [inline, virtual]

Reimplemented in LLTextureBridge, LLSoundBridge, LLLandmarkBridge, LLCallingCardBridge, LLNotecardBridge, LLGestureBridge, LLAnimationBridge, LLObjectBridge, and LLLSLTextBridge.

Definition at line 160 of file llinventorybridge.h.

References LLStringBase< char >::null.

Referenced by LLItemBridge::renameItem().

virtual const LLUUID& LLInvFVBridge::getUUID (  )  const [inline, virtual]

Implements LLFolderViewEventListener.

Definition at line 158 of file llinventorybridge.h.

References mUUID.

Referenced by LLFolderBridge::createNewCategory(), LLFolderBridge::createWearable(), LLSaveFolderState::doFolder(), LLBeginIMSession::handleEvent(), and removeBatchNoCheck().

BOOL LLInvFVBridge::isAgentInventory (  )  const [protected]

Definition at line 500 of file llinventorybridge.cpp.

References FALSE, gAgent, LLAgent::getInventoryRootID(), LLInventoryPanel::getModel(), LLInventoryModel::isObjectDescendentOf(), mInventoryPanel, mUUID, and TRUE.

Referenced by LLFolderBridge::buildContextMenu(), LLFolderBridge::dragCategoryIntoFolder(), LLFolderBridge::dragItemIntoFolder(), LLFolderBridge::isClipboardPasteable(), LLWearableBridge::openItem(), and LLWearableBridge::wearOnAvatar().

BOOL LLInvFVBridge::isClipboardPasteable (  )  const [virtual]

Implements LLFolderViewEventListener.

Reimplemented in LLFolderBridge.

Definition at line 328 of file llinventorybridge.cpp.

References FALSE, gAgent, LLAgent::getInventoryRootID(), LLInventoryPanel::getModel(), LLInventoryClipboard::instance(), LLInventoryModel::isObjectDescendentOf(), mInventoryPanel, mUUID, and TRUE.

Referenced by getClipboardEntries().

BOOL LLInvFVBridge::isInTrash (  )  const [protected]

Definition at line 492 of file llinventorybridge.cpp.

References LLAssetType::AT_TRASH, FALSE, LLInventoryModel::findCategoryUUIDForType(), LLInventoryPanel::getModel(), LLInventoryModel::isObjectDescendentOf(), mInventoryPanel, and mUUID.

Referenced by LLWearableBridge::buildContextMenu(), LLObjectBridge::buildContextMenu(), LLAnimationBridge::buildContextMenu(), LLGestureBridge::buildContextMenu(), LLCallingCardBridge::buildContextMenu(), LLLandmarkBridge::buildContextMenu(), LLSoundBridge::buildContextMenu(), buildContextMenu(), and LLWearableBridge::openItem().

virtual BOOL LLInvFVBridge::isItemCopyable (  )  const [inline, virtual]

Implements LLFolderViewEventListener.

Reimplemented in LLItemBridge.

Definition at line 183 of file llinventorybridge.h.

References FALSE.

Referenced by getClipboardEntries().

BOOL LLInvFVBridge::isItemMovable (  )  [virtual]

Implements LLFolderViewEventListener.

Reimplemented in LLFolderBridge.

Definition at line 202 of file llinventorybridge.cpp.

References TRUE.

BOOL LLInvFVBridge::isItemPermissive (  )  const [protected, virtual]

Reimplemented in LLItemBridge.

Definition at line 508 of file llinventorybridge.cpp.

References FALSE.

Referenced by getClipboardEntries().

BOOL LLInvFVBridge::isItemRemovable (  )  [virtual]

Implements LLFolderViewEventListener.

Reimplemented in LLFolderBridge, LLObjectBridge, and LLWearableBridge.

Definition at line 190 of file llinventorybridge.cpp.

References FALSE, gAgent, LLAgent::getInventoryRootID(), LLInventoryPanel::getModel(), LLInventoryModel::isObjectDescendentOf(), mInventoryPanel, mUUID, and TRUE.

Referenced by LLAnimationBridge::buildContextMenu(), LLGestureBridge::buildContextMenu(), LLCallingCardBridge::buildContextMenu(), LLLandmarkBridge::buildContextMenu(), LLSoundBridge::buildContextMenu(), buildContextMenu(), getClipboardEntries(), LLWearableBridge::isItemRemovable(), LLObjectBridge::isItemRemovable(), removeBatchNoCheck(), and LLItemBridge::removeItem().

virtual BOOL LLInvFVBridge::isItemRenameable (  )  const [inline, virtual]

Implements LLFolderViewEventListener.

Reimplemented in LLItemBridge, and LLFolderBridge.

Definition at line 176 of file llinventorybridge.h.

References TRUE.

Referenced by getClipboardEntries().

virtual void LLInvFVBridge::move ( LLFolderViewEventListener new_parent_bridge  )  [inline, virtual]

Implements LLFolderViewEventListener.

Definition at line 182 of file llinventorybridge.h.

virtual void LLInvFVBridge::openItem ( void   )  [inline, virtual]

Implements LLFolderViewEventListener.

Reimplemented in LLFolderBridge, LLTextureBridge, LLSoundBridge, LLLandmarkBridge, LLCallingCardBridge, LLNotecardBridge, LLGestureBridge, LLAnimationBridge, LLObjectBridge, LLLSLTextBridge, and LLWearableBridge.

Definition at line 173 of file llinventorybridge.h.

Referenced by LLInventoryPanel::openSelected(), LLItemBridge::performAction(), and previewItem().

virtual void LLInvFVBridge::pasteFromClipboard (  )  [inline, virtual]

Implements LLFolderViewEventListener.

Reimplemented in LLFolderBridge.

Definition at line 187 of file llinventorybridge.h.

virtual void LLInvFVBridge::previewItem ( void   )  [inline, virtual]

Implements LLFolderViewEventListener.

Reimplemented in LLSoundBridge.

Definition at line 174 of file llinventorybridge.h.

References openItem().

void LLInvFVBridge::removeBatch ( LLDynamicArray< LLFolderViewEventListener * > &  batch  )  [virtual]

Implements LLFolderViewEventListener.

Definition at line 213 of file llinventorybridge.cpp.

References removeBatchNoCheck().

void LLInvFVBridge::removeBatchNoCheck ( LLDynamicArray< LLFolderViewEventListener * > &  batch  )  [protected]

Definition at line 218 of file llinventorybridge.cpp.

References _PREHASH_AgentData, _PREHASH_AgentID, _PREHASH_FolderID, _PREHASH_InventoryData, _PREHASH_ItemID, _PREHASH_MoveInventoryFolder, _PREHASH_MoveInventoryItem, _PREHASH_ParentID, _PREHASH_SessionID, _PREHASH_Stamp, LLInventoryModel::accountForUpdate(), LLMessageSystem::addBOOL(), LLMessageSystem::addBOOLFast(), LLMessageSystem::addString(), LLMessageSystem::addUUIDFast(), LLAssetType::AT_TRASH, LLDynamicArray< Type, BlockSize >::count(), count, end, LLInventoryModel::findCategoryUUIDForType(), gAgent, LLDynamicArray< Type, BlockSize >::get(), LLInventoryModel::getCategory(), LLAgent::getID(), LLInventoryModel::getItem(), LLInventoryPanel::getModel(), LLInventoryObject::getParentUUID(), LLAgent::getSessionID(), LLInventoryObject::getUUID(), getUUID(), gInventory, gMessageSystem, LLPreview::hide(), i, isItemRemovable(), LLMessageSystem::isSendFullFast(), mInventoryPanel, LLInventoryModel::moveObject(), LLMessageSystem::newMessageFast(), LLMessageSystem::nextBlockFast(), LLInventoryModel::notifyObservers(), NULL, S32, LLAgent::sendReliableMessage(), and TRUE.

Referenced by removeBatch().

virtual void LLInvFVBridge::restoreItem (  )  [inline, virtual]

Reimplemented in LLItemBridge, and LLFolderBridge.

Definition at line 161 of file llinventorybridge.h.

void LLInvFVBridge::showProperties (  )  [virtual]

Implements LLFolderViewEventListener.

Definition at line 208 of file llinventorybridge.cpp.

References mUUID, and LLShowProps::showProperties().

Referenced by LLFolderBridge::performAction(), and LLItemBridge::performAction().

BOOL LLInvFVBridge::startDrag ( EDragAndDropType type,
LLUUID id 
) [virtual]

Implements LLFolderViewEventListener.

Definition at line 453 of file llinventorybridge.cpp.

References DAD_CATEGORY, DAD_NONE, FALSE, getInventoryObject(), LLInventoryObject::getType(), LLInventoryObject::getUUID(), gInventory, LLAssetType::lookupDragAndDropType(), LLInventoryModel::startBackgroundFetch(), and TRUE.


Member Data Documentation

LLInventoryPanel* LLInvFVBridge::mInventoryPanel [protected]

Definition at line 221 of file llinventorybridge.h.

Referenced by LLObjectBridge::buildContextMenu(), LLFolderBridge::buildContextMenu(), LLFolderBridge::createNewCategory(), LLFolderBridge::dragCategoryIntoFolder(), LLFolderBridge::dragItemIntoFolder(), LLFolderBridge::folderOptionsMenu(), LLFolderBridge::getCategory(), getInventoryObject(), LLItemBridge::getItem(), LLFolderBridge::hasChildren(), isAgentInventory(), isClipboardPasteable(), isInTrash(), LLFolderBridge::isItemRemovable(), isItemRemovable(), LLFolderBridge::isUpToDate(), LLFolderBridge::modifyOutfit(), LLFolderBridge::openItem(), LLFolderBridge::pasteFromClipboard(), LLFolderBridge::performAction(), LLCallingCardBridge::refreshFolderViewItem(), removeBatchNoCheck(), LLFolderBridge::removeItem(), LLItemBridge::removeItem(), LLObjectBridge::renameItem(), LLFolderBridge::renameItem(), LLItemBridge::renameItem(), LLFolderBridge::restoreItem(), and LLItemBridge::restoreItem().

LLInventoryType::EType LLInvFVBridge::mInvType [protected]

Reimplemented in LLTextureBridge, LLObjectBridge, and LLWearableBridge.

Definition at line 223 of file llinventorybridge.h.

Referenced by createBridge(), and getInventoryType().

LLUUID LLInvFVBridge::mUUID [protected]

Definition at line 222 of file llinventorybridge.h.

Referenced by LLObjectBridge::buildContextMenu(), LLFolderBridge::buildContextMenu(), LLFolderBridge::checkFolderForContentsOfType(), LLItemBridge::copyToClipboard(), LLFolderBridge::dragCategoryIntoFolder(), LLFolderBridge::dragItemIntoFolder(), LLWearableBridge::editOnAvatar(), LLFolderBridge::folderOptionsMenu(), LLFolderBridge::getCategory(), getInventoryObject(), LLItemBridge::getItem(), LLWearableBridge::getLabelStyle(), LLObjectBridge::getLabelStyle(), LLGestureBridge::getLabelStyle(), LLWearableBridge::getLabelSuffix(), LLObjectBridge::getLabelSuffix(), LLGestureBridge::getLabelSuffix(), getUUID(), LLFolderBridge::hasChildren(), isAgentInventory(), isClipboardPasteable(), isInTrash(), LLWearableBridge::isItemRemovable(), LLObjectBridge::isItemRemovable(), LLFolderBridge::isItemRemovable(), isItemRemovable(), LLFolderBridge::isUpToDate(), LLWearableBridge::openItem(), LLLSLTextBridge::openItem(), LLObjectBridge::openItem(), LLAnimationBridge::openItem(), LLGestureBridge::openItem(), LLTextureBridge::openItem(), LLFolderBridge::openItem(), LLSoundBridge::openSoundPreview(), LLFolderBridge::pasteFromClipboard(), LLWearableBridge::performAction(), LLObjectBridge::performAction(), LLAnimationBridge::performAction(), LLGestureBridge::performAction(), LLFolderBridge::performAction(), LLItemBridge::performAction(), LLCallingCardBridge::refreshFolderViewItem(), LLGestureBridge::removeItem(), LLFolderBridge::removeItem(), LLItemBridge::removeItem(), LLWearableBridge::renameItem(), LLObjectBridge::renameItem(), LLItemBridge::renameItem(), and showProperties().


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