LLWearableBridge Class Reference

#include <llinventorybridge.h>

Inheritance diagram for LLWearableBridge:

Inheritance graph
[legend]
Collaboration diagram for LLWearableBridge:

Collaboration graph
[legend]
List of all members.

Public Member Functions

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

Static Public Member Functions

static void onWearOnAvatar (void *userdata)
static BOOL canWearOnAvatar (void *userdata)
static void onWearOnAvatarArrived (LLWearable *wearable, void *userdata)
static BOOL canEditOnAvatar (void *userdata)
static void onEditOnAvatar (void *userdata)
static BOOL canRemoveFromAvatar (void *userdata)
static void onRemoveFromAvatar (void *userdata)
static void onRemoveFromAvatarArrived (LLWearable *wearable, void *userdata)

Protected Member Functions

 LLWearableBridge (LLInventoryPanel *inventory, const LLUUID &uuid, LLAssetType::EType asset_type, LLInventoryType::EType inv_type, EWearableType wearable_type)

Protected Attributes

LLAssetType::EType mAssetType
LLInventoryType::EType mInvType
EWearableType mWearableType

Friends

class LLInvFVBridge

Detailed Description

Definition at line 566 of file llinventorybridge.h.


Constructor & Destructor Documentation

LLWearableBridge::LLWearableBridge ( LLInventoryPanel inventory,
const LLUUID uuid,
LLAssetType::EType  asset_type,
LLInventoryType::EType  inv_type,
EWearableType  wearable_type 
) [inline, protected]

Definition at line 593 of file llinventorybridge.h.


Member Function Documentation

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

Reimplemented from LLInvFVBridge.

Definition at line 4262 of file llinventorybridge.cpp.

References LLAssetType::AT_BODYPART, LLAssetType::AT_CLOTHING, FIRST_SELECTED_ITEM, LLInvFVBridge::getClipboardEntries(), LLItemBridge::getItem(), LLInventoryObject::getType(), hideContextEntries(), LLInvFVBridge::isInTrash(), isItemRemovable(), lldebugs, llendl, and SUPPRESS_OPEN_ITEM.

BOOL LLWearableBridge::canEditOnAvatar ( void userdata  )  [static]

Definition at line 4421 of file llinventorybridge.cpp.

References FALSE, gAgent, and LLAgent::isWearingItem().

BOOL LLWearableBridge::canRemoveFromAvatar ( void userdata  )  [static]

Definition at line 4456 of file llinventorybridge.cpp.

References LLAssetType::AT_BODYPART, FALSE, gAgent, and LLAgent::isWearingItem().

BOOL LLWearableBridge::canWearOnAvatar ( void userdata  )  [static]

Definition at line 4328 of file llinventorybridge.cpp.

References FALSE, gAgent, and LLAgent::isWearingItem().

void LLWearableBridge::editOnAvatar (  ) 

Definition at line 4439 of file llinventorybridge.cpp.

References CAMERA_MODE_CUSTOMIZE_AVATAR, LLAgent::changeCameraToCustomizeAvatar(), gAgent, LLAgent::getCameraMode(), LLWearable::getType(), LLAgent::getWearableFromWearableItem(), LLInvFVBridge::mUUID, and LLFloaterCustomize::setCurrentWearableType().

Referenced by performAction().

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

Reimplemented from LLItemBridge.

Definition at line 4189 of file llinventorybridge.cpp.

References FALSE, get_item_icon(), mAssetType, mInvType, and mWearableType.

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

Reimplemented from LLInvFVBridge.

Definition at line 4164 of file llinventorybridge.cpp.

References LLFontGL::BOLD, gAgent, LLAgent::isWearingItem(), LLInvFVBridge::mUUID, and LLFontGL::NORMAL.

LLString LLWearableBridge::getLabelSuffix (  )  const [virtual]

Reimplemented from LLItemBridge.

Definition at line 4177 of file llinventorybridge.cpp.

References gAgent, LLItemBridge::getLabelSuffix(), LLAgent::isWearingItem(), and LLInvFVBridge::mUUID.

BOOL LLWearableBridge::isItemRemovable (  )  [virtual]

Reimplemented from LLInvFVBridge.

Definition at line 4158 of file llinventorybridge.cpp.

References FALSE, gAgent, LLInvFVBridge::isItemRemovable(), LLAgent::isWearingItem(), and LLInvFVBridge::mUUID.

Referenced by buildContextMenu().

void LLWearableBridge::onEditOnAvatar ( void userdata  )  [static]

Definition at line 4430 of file llinventorybridge.cpp.

void LLWearableBridge::onRemoveFromAvatar ( void userdata  )  [static]

Definition at line 4467 of file llinventorybridge.cpp.

References gAgent, LLWearableList::getAsset(), gWearableList, LLAgent::isWearingItem(), and onRemoveFromAvatarArrived().

void LLWearableBridge::onRemoveFromAvatarArrived ( LLWearable wearable,
void userdata 
) [static]

Definition at line 4486 of file llinventorybridge.cpp.

References gAgent, LLAgent::isWearingItem(), LLAgent::removeWearable(), type, WT_HAIR, WT_SHAPE, and WT_SKIN.

Referenced by onRemoveFromAvatar(), performAction(), and remove_inventory_category_from_avatar_step2().

void LLWearableBridge::onWearOnAvatar ( void userdata  )  [static]

Definition at line 4342 of file llinventorybridge.cpp.

void LLWearableBridge::onWearOnAvatarArrived ( LLWearable wearable,
void userdata 
) [static]

Definition at line 4381 of file llinventorybridge.cpp.

References gAgent, LLInventoryItem::getAssetUUID(), LLInventoryModel::getItem(), gInventory, llendl, llinfos, LLInventoryModel::notifyObservers(), NULL, and LLAgent::setWearable().

Referenced by wear_inventory_item_on_avatar().

void LLWearableBridge::openItem (  )  [virtual]

Reimplemented from LLInvFVBridge.

Definition at line 4224 of file llinventorybridge.cpp.

References LLViewerWindow::alertXml(), copy_inventory_item(), gAgent, LLAgent::getID(), LLItemBridge::getItem(), LLPermissions::getOwner(), LLInventoryItem::getPermissions(), LLInventoryObject::getUUID(), gViewerWindow, LLInvFVBridge::isAgentInventory(), LLViewerInventoryItem::isComplete(), LLInvFVBridge::isInTrash(), LLAgent::isWearingItem(), LLInvFVBridge::mUUID, LLUUID::null, and wearOnAvatar().

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

Reimplemented from LLItemBridge.

Definition at line 4195 of file llinventorybridge.cpp.

References editOnAvatar(), gAgent, LLWearableList::getAsset(), LLItemBridge::getItem(), gWearableList, LLAgent::isWearingItem(), LLInvFVBridge::mUUID, onRemoveFromAvatarArrived(), LLItemBridge::performAction(), and wearOnAvatar().

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

Reimplemented from LLItemBridge.

Definition at line 4149 of file llinventorybridge.cpp.

References gAgent, LLAgent::isWearingItem(), LLInvFVBridge::mUUID, LLItemBridge::renameItem(), and LLAgent::setWearableName().

void LLWearableBridge::wearOnAvatar (  ) 

Definition at line 4349 of file llinventorybridge.cpp.

References LLViewerWindow::alertXml(), LLAgent::areWearablesLoaded(), copy_inventory_item(), gAgent, LLAgent::getID(), LLItemBridge::getItem(), LLPermissions::getOwner(), LLInventoryItem::getPermissions(), LLInventoryObject::getUUID(), gViewerWindow, LLInvFVBridge::isAgentInventory(), LLUUID::null, and wear_inventory_item_on_avatar().

Referenced by openItem(), and performAction().


Friends And Related Function Documentation

friend class LLInvFVBridge [friend]

Definition at line 568 of file llinventorybridge.h.


Member Data Documentation

LLAssetType::EType LLWearableBridge::mAssetType [protected]

Definition at line 601 of file llinventorybridge.h.

Referenced by getIcon().

LLInventoryType::EType LLWearableBridge::mInvType [protected]

Reimplemented from LLInvFVBridge.

Definition at line 602 of file llinventorybridge.h.

Referenced by getIcon().

EWearableType LLWearableBridge::mWearableType [protected]

Definition at line 603 of file llinventorybridge.h.

Referenced by getIcon().


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