LLObjectBridge Class Reference

#include <llinventorybridge.h>

Inheritance diagram for LLObjectBridge:

Inheritance graph
[legend]
Collaboration diagram for LLObjectBridge:

Collaboration graph
[legend]
List of all members.

Public Member Functions

virtual const LLStringgetPrefix ()
virtual LLViewerImagegetIcon () const
virtual void performAction (LLFolderView *folder, LLInventoryModel *model, LLString action)
virtual void openItem ()
virtual LLFontGL::StyleFlags getLabelStyle () const
virtual LLString getLabelSuffix () const
virtual void buildContextMenu (LLMenuGL &menu, U32 flags)
virtual BOOL isItemRemovable ()
virtual BOOL renameItem (const LLString &new_name)

Protected Member Functions

 LLObjectBridge (LLInventoryPanel *inventory, const LLUUID &uuid, LLInventoryType::EType type, U32 flags)

Protected Attributes

LLInventoryType::EType mInvType
U32 mAttachPt
BOOL mIsMultiObject

Static Protected Attributes

static LLString sPrefix
static LLUUID sContextMenuItemID

Friends

class LLInvFVBridge

Detailed Description

Definition at line 515 of file llinventorybridge.h.


Constructor & Destructor Documentation

LLObjectBridge::LLObjectBridge ( LLInventoryPanel inventory,
const LLUUID uuid,
LLInventoryType::EType  type,
U32  flags 
) [inline, protected]

Definition at line 531 of file llinventorybridge.h.

References FALSE, LLInventoryItem::II_FLAGS_OBJECT_HAS_MULTIPLE_ITEMS, mAttachPt, mIsMultiObject, and TRUE.


Member Function Documentation

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

Reimplemented from LLInvFVBridge.

Definition at line 3279 of file llinventorybridge.cpp.

References LLObservable::addListener(), LLMenuGL::append(), attach_label(), gAgent, LLAgent::getAvatarObject(), LLView::getChildCount(), LLMenuGL::getChildMenuByName(), LLInvFVBridge::getClipboardEntries(), LLItemBridge::getItem(), LLView::getListenerByName(), hideContextEntries(), LLInvFVBridge::isInTrash(), isItemRemovable(), LLVOAvatar::isWearingAttachment(), LLVOAvatar::mAttachmentPoints, LLInvFVBridge::mInventoryPanel, LLInvFVBridge::mUUID, NULL, sContextMenuItemID, and TRUE.

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

Reimplemented from LLItemBridge.

Definition at line 3137 of file llinventorybridge.cpp.

References LLAssetType::AT_OBJECT, get_item_icon(), mAttachPt, mInvType, and mIsMultiObject.

LLFontGL::StyleFlags LLObjectBridge::getLabelStyle (  )  const [virtual]

Reimplemented from LLInvFVBridge.

Definition at line 3205 of file llinventorybridge.cpp.

References LLFontGL::BOLD, gAgent, LLAgent::getAvatarObject(), LLVOAvatar::isWearingAttachment(), LLInvFVBridge::mUUID, and LLFontGL::NORMAL.

LLString LLObjectBridge::getLabelSuffix (  )  const [virtual]

Reimplemented from LLItemBridge.

Definition at line 3218 of file llinventorybridge.cpp.

References gAgent, LLVOAvatar::getAttachedPointName(), LLAgent::getAvatarObject(), LLItemBridge::getLabelSuffix(), LLVOAvatar::isWearingAttachment(), LLInvFVBridge::mUUID, and LLStringBase< char >::toLower().

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

Reimplemented from LLInvFVBridge.

Definition at line 519 of file llinventorybridge.h.

References sPrefix.

Referenced by renameItem().

BOOL LLObjectBridge::isItemRemovable (  )  [virtual]

Reimplemented from LLInvFVBridge.

Definition at line 3129 of file llinventorybridge.cpp.

References FALSE, gAgent, LLAgent::getAvatarObject(), LLInvFVBridge::isItemRemovable(), LLVOAvatar::isWearingAttachment(), and LLInvFVBridge::mUUID.

Referenced by buildContextMenu().

void LLObjectBridge::openItem (  )  [virtual]

Reimplemented from LLInvFVBridge.

Definition at line 3197 of file llinventorybridge.cpp.

References LLInvFVBridge::mUUID, and LLShowProps::showProperties().

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

Reimplemented from LLItemBridge.

Definition at line 3145 of file llinventorybridge.cpp.

References _PREHASH_AgentID, _PREHASH_DetachAttachmentIntoInv, _PREHASH_ItemID, _PREHASH_ObjectData, LLMessageSystem::addUUIDFast(), copy_inventory_item(), LLViewerObjectList::findObject(), gAgent, LLViewerRegion::getHost(), LLAgent::getID(), LLAgent::getInventoryRootID(), LLInventoryModel::getItem(), LLPermissions::getOwner(), LLInventoryItem::getPermissions(), LLAgent::getRegion(), LLInventoryObject::getUUID(), gFocusMgr, gInventory, gMessageSystem, gObjectList, gSelectMgr, LLViewerInventoryItem::isComplete(), LLInventoryModel::isObjectDescendentOf(), llendl, llwarns, LLInvFVBridge::mUUID, LLMessageSystem::newMessageFast(), LLMessageSystem::nextBlockFast(), LLUUID::null, NULL, LLItemBridge::performAction(), LLSelectMgr::remove(), rez_attachment(), LLMessageSystem::sendReliable(), and LLFocusMgr::setKeyboardFocus().

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

Reimplemented from LLItemBridge.

Definition at line 3361 of file llinventorybridge.cpp.

References LLSelectMgr::addAsIndividual(), LLItemBridge::buildDisplayName(), LLSelectMgr::deselectAll(), FALSE, gAgent, LLAgent::getAvatarObject(), LLItemBridge::getItem(), LLInventoryPanel::getModel(), LLInventoryObject::getName(), getPrefix(), LLInventoryObject::getUUID(), LLVOAvatar::getWornAttachment(), gSelectMgr, LLItemBridge::isItemRenameable(), LLItemBridge::mDisplayName, LLInvFVBridge::mInventoryPanel, LLInvFVBridge::mUUID, LLInventoryModel::notifyObservers(), LLPreview::rename(), SELECT_ALL_TES, LLSelectMgr::selectionSetObjectName(), and LLInventoryModel::updateItem().


Friends And Related Function Documentation

friend class LLInvFVBridge [friend]

Definition at line 517 of file llinventorybridge.h.


Member Data Documentation

U32 LLObjectBridge::mAttachPt [protected]

Definition at line 543 of file llinventorybridge.h.

Referenced by getIcon(), and LLObjectBridge().

LLInventoryType::EType LLObjectBridge::mInvType [protected]

Reimplemented from LLInvFVBridge.

Definition at line 542 of file llinventorybridge.h.

Referenced by getIcon().

BOOL LLObjectBridge::mIsMultiObject [protected]

Definition at line 544 of file llinventorybridge.h.

Referenced by getIcon(), and LLObjectBridge().

LLUUID LLObjectBridge::sContextMenuItemID [static, protected]

Definition at line 541 of file llinventorybridge.h.

Referenced by buildContextMenu().

LLString LLObjectBridge::sPrefix [static, protected]

Definition at line 540 of file llinventorybridge.h.

Referenced by getPrefix().


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