#include <llinventorybridge.h>


Public Member Functions | |
| virtual LLUIImagePtr | getIcon () 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 |
Definition at line 567 of file llinventorybridge.h.
| LLWearableBridge::LLWearableBridge | ( | LLInventoryPanel * | inventory, | |
| const LLUUID & | uuid, | |||
| LLAssetType::EType | asset_type, | |||
| LLInventoryType::EType | inv_type, | |||
| EWearableType | wearable_type | |||
| ) | [inline, protected] |
Definition at line 594 of file llinventorybridge.h.
| LLUIImagePtr LLWearableBridge::getIcon | ( | ) | const [virtual] |
Reimplemented from LLItemBridge.
Definition at line 4245 of file llinventorybridge.cpp.
References FALSE, get_item_icon(), mAssetType, mInvType, and mWearableType.

| void LLWearableBridge::performAction | ( | LLFolderView * | folder, | |
| LLInventoryModel * | model, | |||
| LLString | action | |||
| ) | [virtual] |
Reimplemented from LLItemBridge.
Definition at line 4251 of file llinventorybridge.cpp.
References editOnAvatar(), gAgent, LLWearableList::getAsset(), LLInventoryItem::getAssetUUID(), LLItemBridge::getItem(), LLInventoryObject::getName(), LLInventoryObject::getType(), gWearableList, LLAgent::isWearingItem(), LLInvFVBridge::mUUID, onRemoveFromAvatarArrived(), LLItemBridge::performAction(), and wearOnAvatar().

| void LLWearableBridge::openItem | ( | void | ) | [virtual] |
Reimplemented from LLInvFVBridge.
Definition at line 4280 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().

Reimplemented from LLInvFVBridge.
Definition at line 4318 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.

| LLFontGL::StyleFlags LLWearableBridge::getLabelStyle | ( | ) | const [virtual] |
Reimplemented from LLInvFVBridge.
Definition at line 4220 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 4233 of file llinventorybridge.cpp.
References gAgent, LLItemBridge::getLabelSuffix(), LLAgent::isWearingItem(), and LLInvFVBridge::mUUID.

| BOOL LLWearableBridge::isItemRemovable | ( | void | ) | [virtual] |
Reimplemented from LLInvFVBridge.
Definition at line 4214 of file llinventorybridge.cpp.
References FALSE, gAgent, LLInvFVBridge::isItemRemovable(), LLAgent::isWearingItem(), and LLInvFVBridge::mUUID.
Referenced by buildContextMenu().


Reimplemented from LLItemBridge.
Definition at line 4205 of file llinventorybridge.cpp.
References gAgent, LLAgent::isWearingItem(), LLInvFVBridge::mUUID, LLItemBridge::renameItem(), and LLAgent::setWearableName().

| void LLWearableBridge::onWearOnAvatar | ( | void * | userdata | ) | [static] |
Definition at line 4401 of file llinventorybridge.cpp.
| BOOL LLWearableBridge::canWearOnAvatar | ( | void * | userdata | ) | [static] |
Definition at line 4387 of file llinventorybridge.cpp.
References FALSE, gAgent, LLViewerInventoryItem::isComplete(), and LLAgent::isWearingItem().

| void LLWearableBridge::onWearOnAvatarArrived | ( | LLWearable * | wearable, | |
| void * | userdata | |||
| ) | [static] |
Definition at line 4440 of file llinventorybridge.cpp.
References gAgent, LLInventoryItem::getAssetUUID(), LLWearable::getID(), LLInventoryModel::getItem(), gInventory, llendl, llinfos, LLInventoryModel::notifyObservers(), NULL, and LLAgent::setWearable().
Referenced by wear_inventory_item_on_avatar().


| void LLWearableBridge::wearOnAvatar | ( | ) |
Definition at line 4408 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().


| BOOL LLWearableBridge::canEditOnAvatar | ( | void * | userdata | ) | [static] |
Definition at line 4480 of file llinventorybridge.cpp.
References FALSE, gAgent, and LLAgent::isWearingItem().

| void LLWearableBridge::onEditOnAvatar | ( | void * | userdata | ) | [static] |
Definition at line 4489 of file llinventorybridge.cpp.
| void LLWearableBridge::editOnAvatar | ( | ) |
Definition at line 4498 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().


| BOOL LLWearableBridge::canRemoveFromAvatar | ( | void * | userdata | ) | [static] |
Definition at line 4515 of file llinventorybridge.cpp.
References LLAssetType::AT_BODYPART, FALSE, gAgent, and LLAgent::isWearingItem().

| void LLWearableBridge::onRemoveFromAvatar | ( | void * | userdata | ) | [static] |
Definition at line 4526 of file llinventorybridge.cpp.
References gAgent, LLWearableList::getAsset(), LLInventoryItem::getAssetUUID(), LLInventoryObject::getName(), LLInventoryObject::getType(), gWearableList, LLAgent::isWearingItem(), and onRemoveFromAvatarArrived().

| void LLWearableBridge::onRemoveFromAvatarArrived | ( | LLWearable * | wearable, | |
| void * | userdata | |||
| ) | [static] |
((!gAgent.isTeen()) && ( type==WT_UNDERPANTS || type==WT_UNDERSHIRT )) )
Definition at line 4545 of file llinventorybridge.cpp.
References gAgent, LLWearable::getType(), LLAgent::isWearingItem(), LLAgent::removeWearable(), WT_HAIR, WT_SHAPE, and WT_SKIN.
Referenced by onRemoveFromAvatar(), performAction(), and remove_inventory_category_from_avatar_step2().


friend class LLInvFVBridge [friend] |
Definition at line 569 of file llinventorybridge.h.
LLAssetType::EType LLWearableBridge::mAssetType [protected] |
LLInventoryType::EType LLWearableBridge::mInvType [protected] |
Reimplemented from LLInvFVBridge.
Definition at line 603 of file llinventorybridge.h.
Referenced by getIcon().
EWearableType LLWearableBridge::mWearableType [protected] |
1.5.5