LLItemBridge Class Reference

#include <llinventorybridge.h>

Inheritance diagram for LLItemBridge:

Inheritance graph
[legend]
Collaboration diagram for LLItemBridge:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 LLItemBridge (LLInventoryPanel *inventory, const LLUUID &uuid)
virtual void performAction (LLFolderView *folder, LLInventoryModel *model, LLString action)
virtual void selectItem ()
virtual void restoreItem ()
virtual LLViewerImagegetIcon () const
virtual const LLStringgetDisplayName () const
virtual LLString getLabelSuffix () const
virtual PermissionMask getPermissionMask () const
virtual U32 getCreationDate () const
virtual BOOL isItemRenameable () const
virtual BOOL renameItem (const LLString &new_name)
virtual BOOL removeItem ()
virtual BOOL isItemCopyable () const
virtual BOOL copyToClipboard () const
virtual BOOL hasChildren () const
virtual BOOL isUpToDate () const
virtual void clearDisplayName ()
LLViewerInventoryItemgetItem () const

Protected Member Functions

virtual BOOL isItemPermissive () const

Static Protected Member Functions

static void buildDisplayName (LLInventoryItem *item, LLString &name)

Protected Attributes

LLString mDisplayName

Detailed Description

Definition at line 227 of file llinventorybridge.h.


Constructor & Destructor Documentation

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

Definition at line 230 of file llinventorybridge.h.


Member Function Documentation

void LLItemBridge::buildDisplayName ( LLInventoryItem item,
LLString name 
) [static, protected]

Definition at line 806 of file llinventorybridge.cpp.

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

Referenced by getDisplayName(), LLObjectBridge::renameItem(), and renameItem().

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

Reimplemented from LLInvFVBridge.

Definition at line 252 of file llinventorybridge.h.

References mDisplayName.

BOOL LLItemBridge::copyToClipboard (  )  const [virtual]

Reimplemented from LLInvFVBridge.

Definition at line 939 of file llinventorybridge.cpp.

References LLInventoryClipboard::add(), FALSE, LLInventoryClipboard::instance(), isItemCopyable(), LLInvFVBridge::mUUID, and TRUE.

Referenced by performAction().

U32 LLItemBridge::getCreationDate (  )  const [virtual]

Reimplemented from LLInvFVBridge.

Definition at line 859 of file llinventorybridge.cpp.

References LLInventoryItem::getCreationDate(), and getItem().

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

Reimplemented from LLInvFVBridge.

Definition at line 797 of file llinventorybridge.cpp.

References buildDisplayName(), getItem(), and mDisplayName.

LLViewerImage * LLItemBridge::getIcon (  )  const [virtual]

Implements LLFolderViewEventListener.

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

Definition at line 772 of file llinventorybridge.cpp.

References LLViewerImageList::getImage(), LLControlGroup::getString(), gImageList, gViewerArt, ICON_NAME, MIPMAP_FALSE, OBJECT_ICON_NAME, and TRUE.

LLViewerInventoryItem * LLItemBridge::getItem (  )  const

Definition at line 949 of file llinventorybridge.cpp.

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

Referenced by LLWearableBridge::buildContextMenu(), LLObjectBridge::buildContextMenu(), LLCallingCardBridge::buildContextMenu(), LLCallingCardBridge::dragOrDrop(), getCreationDate(), getDisplayName(), LLCallingCardBridge::getIcon(), LLCallingCardBridge::getLabelSuffix(), getLabelSuffix(), getPermissionMask(), isItemCopyable(), isItemPermissive(), isItemRenameable(), LLWearableBridge::openItem(), LLLSLTextBridge::openItem(), LLAnimationBridge::openItem(), LLGestureBridge::openItem(), LLNotecardBridge::openItem(), LLCallingCardBridge::openItem(), LLLandmarkBridge::openItem(), LLSoundBridge::openItem(), LLTextureBridge::openItem(), LLWearableBridge::performAction(), LLAnimationBridge::performAction(), LLCallingCardBridge::performAction(), LLLandmarkBridge::performAction(), LLSoundBridge::previewItem(), removeItem(), LLObjectBridge::renameItem(), renameItem(), restoreItem(), selectItem(), and LLWearableBridge::wearOnAvatar().

LLString LLItemBridge::getLabelSuffix (  )  const [virtual]

Reimplemented from LLInvFVBridge.

Reimplemented in LLCallingCardBridge, LLGestureBridge, LLObjectBridge, and LLWearableBridge.

Definition at line 818 of file llinventorybridge.cpp.

References LLPermissions::allowCopyBy(), LLPermissions::allowModifyBy(), LLPermissions::allowOperationBy(), LLAssetType::AT_CALLINGCARD, gAgent, LLAgent::getID(), getItem(), LLPermissions::getOwner(), LLInventoryItem::getPermissions(), LLInventoryObject::getType(), MAX_STRING, and PERM_TRANSFER.

Referenced by LLWearableBridge::getLabelSuffix(), LLObjectBridge::getLabelSuffix(), LLGestureBridge::getLabelSuffix(), and LLCallingCardBridge::getLabelSuffix().

PermissionMask LLItemBridge::getPermissionMask (  )  const [virtual]

Reimplemented from LLInvFVBridge.

Definition at line 778 of file llinventorybridge.cpp.

References LLPermissions::allowCopyBy(), LLPermissions::allowModifyBy(), LLPermissions::allowOperationBy(), gAgent, LLAgent::getID(), getItem(), LLInventoryItem::getPermissions(), PERM_COPY, PERM_MODIFY, and PERM_TRANSFER.

virtual BOOL LLItemBridge::hasChildren (  )  const [inline, virtual]

Implements LLFolderViewEventListener.

Definition at line 248 of file llinventorybridge.h.

References FALSE.

BOOL LLItemBridge::isItemCopyable (  )  const [virtual]

Reimplemented from LLInvFVBridge.

Definition at line 930 of file llinventorybridge.cpp.

References LLPermissions::allowCopyBy(), FALSE, gAgent, LLAgent::getID(), getItem(), and LLInventoryItem::getPermissions().

Referenced by copyToClipboard().

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

Reimplemented from LLInvFVBridge.

Definition at line 960 of file llinventorybridge.cpp.

References FALSE, getItem(), LLPermissions::getMaskBase(), LLInventoryItem::getPermissions(), mask, PERM_ITEM_UNRESTRICTED, and TRUE.

BOOL LLItemBridge::isItemRenameable (  )  const [virtual]

Reimplemented from LLInvFVBridge.

Definition at line 870 of file llinventorybridge.cpp.

References LLPermissions::allowModifyBy(), FALSE, gAgent, LLAgent::getID(), getItem(), and LLInventoryItem::getPermissions().

Referenced by LLObjectBridge::renameItem(), and renameItem().

virtual BOOL LLItemBridge::isUpToDate (  )  const [inline, virtual]

Implements LLFolderViewEventListener.

Definition at line 249 of file llinventorybridge.h.

References TRUE.

void LLItemBridge::performAction ( LLFolderView folder,
LLInventoryModel model,
LLString  action 
) [virtual]

Reimplemented from LLFolderViewEventListener.

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

Definition at line 692 of file llinventorybridge.cpp.

References LLWindow::copyTextToClipboard(), copyToClipboard(), LLInventoryModel::deleteObject(), LLInventoryItem::getAssetUUID(), LLInventoryModel::getCategory(), LLInventoryModel::getItem(), LLFolderView::getItemByID(), LLFolderViewItem::getListener(), LLInventoryModel::getObject(), LLInventoryObject::getParentUUID(), gViewerWindow, LLPreview::hide(), LLInvFVBridge::mUUID, LLViewerWindow::mWindow, LLInventoryModel::notifyObservers(), LLInvFVBridge::openItem(), LLFolderViewEventListener::pasteFromClipboard(), LLInventoryModel::purgeDescendentsOf(), LLInventoryObject::removeFromServer(), restoreItem(), LLInvFVBridge::showProperties(), LLUUID::toString(), utf8str_to_wstring(), and UUID_STR_LENGTH.

Referenced by LLWearableBridge::performAction(), LLObjectBridge::performAction(), LLAnimationBridge::performAction(), LLGestureBridge::performAction(), LLCallingCardBridge::performAction(), and LLLandmarkBridge::performAction().

BOOL LLItemBridge::removeItem (  )  [virtual]

Implements LLFolderViewEventListener.

Reimplemented in LLGestureBridge.

Definition at line 902 of file llinventorybridge.cpp.

References LLAssetType::AT_TRASH, LLInvFVBridge::changeItemParent(), FALSE, LLInventoryModel::findCategoryUUIDForType(), getItem(), LLInventoryPanel::getModel(), LLPreview::hide(), LLInvFVBridge::isItemRemovable(), LLInventoryModel::isObjectDescendentOf(), LLInvFVBridge::mInventoryPanel, LLInvFVBridge::mUUID, and TRUE.

Referenced by LLGestureBridge::removeItem().

BOOL LLItemBridge::renameItem ( const LLString new_name  )  [virtual]

Implements LLFolderViewEventListener.

Reimplemented in LLObjectBridge, and LLWearableBridge.

Definition at line 880 of file llinventorybridge.cpp.

References buildDisplayName(), FALSE, getItem(), LLInventoryPanel::getModel(), LLInventoryObject::getName(), LLInvFVBridge::getPrefix(), isItemRenameable(), mDisplayName, LLInvFVBridge::mInventoryPanel, LLInvFVBridge::mUUID, LLInventoryModel::notifyObservers(), LLPreview::rename(), and LLInventoryModel::updateItem().

Referenced by LLWearableBridge::renameItem().

void LLItemBridge::restoreItem (  )  [virtual]

Reimplemented from LLInvFVBridge.

Definition at line 760 of file llinventorybridge.cpp.

References LLInvFVBridge::changeItemParent(), FALSE, LLInventoryModel::findCategoryUUIDForType(), getItem(), LLInventoryPanel::getModel(), LLInventoryObject::getType(), and LLInvFVBridge::mInventoryPanel.

Referenced by performAction().

void LLItemBridge::selectItem (  )  [virtual]

Implements LLFolderViewEventListener.

Definition at line 751 of file llinventorybridge.cpp.

References LLViewerInventoryItem::fetchFromServer(), getItem(), and LLViewerInventoryItem::isComplete().


Member Data Documentation

LLString LLItemBridge::mDisplayName [mutable, protected]

Definition at line 259 of file llinventorybridge.h.

Referenced by clearDisplayName(), getDisplayName(), LLObjectBridge::renameItem(), and renameItem().


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