#include <llinventorybridge.h>


Public Member Functions | |
| virtual | ~LLInvFVBridge () |
| virtual const LLUUID & | getUUID () const |
| virtual const LLString & | getPrefix () |
| virtual void | restoreItem () |
| virtual const LLString & | getName () const |
| virtual const LLString & | getDisplayName () 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) const |
| 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 LLInvFVBridge * | createBridge (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) | |
| LLInventoryObject * | getInventoryObject () 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 | |
| LLInventoryPanel * | mInventoryPanel |
| LLUUID | mUUID |
| LLInventoryType::EType | mInvType |
Definition at line 146 of file llinventorybridge.h.
| 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.
| LLInvFVBridge * LLInvFVBridge::createBridge | ( | LLAssetType::EType | asset_type, | |
| LLInventoryType::EType | inv_type, | |||
| LLInventoryPanel * | inventory, | |||
| const LLUUID & | uuid, | |||
| U32 | flags = 0x00 | |||
| ) | [static] |
Definition at line 610 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 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(), removeBatch(), and removeBatchNoCheck().

| 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 void LLInvFVBridge::restoreItem | ( | ) | [inline, virtual] |
Reimplemented in LLItemBridge, and LLFolderBridge.
Definition at line 161 of file llinventorybridge.h.
| const LLString & LLInvFVBridge::getName | ( | void | ) | const [virtual] |
Implements LLFolderViewEventListener.
Definition at line 160 of file llinventorybridge.cpp.
References getInventoryObject(), LLInventoryObject::getName(), and LLStringBase< char >::null.
Referenced by getDisplayName(), and LLSoundBridge::openSoundPreview().


| const LLString & LLInvFVBridge::getDisplayName | ( | ) | const [virtual] |
Implements LLFolderViewEventListener.
Reimplemented in LLItemBridge.
Definition at line 170 of file llinventorybridge.cpp.
References getName().
Referenced by LLInventoryPanel::buildNewViews().


| PermissionMask LLInvFVBridge::getPermissionMask | ( | ) | const [virtual] |
Implements LLFolderViewEventListener.
Reimplemented in LLItemBridge.
Definition at line 176 of file llinventorybridge.cpp.
References PERM_ALL.
| U32 LLInvFVBridge::getCreationDate | ( | ) | const [virtual] |
Implements LLFolderViewEventListener.
Reimplemented in LLItemBridge.
Definition at line 183 of file llinventorybridge.cpp.
Referenced by LLInventoryPanel::buildNewViews().

| 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.
| 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::previewItem | ( | void | ) | [inline, virtual] |
Implements LLFolderViewEventListener.
Reimplemented in LLSoundBridge.
Definition at line 174 of file llinventorybridge.h.
References openItem().

| void LLInvFVBridge::showProperties | ( | void | ) | [virtual] |
Implements LLFolderViewEventListener.
Definition at line 207 of file llinventorybridge.cpp.
References mUUID, and LLShowProps::showProperties().
Referenced by LLFolderBridge::performAction(), and LLItemBridge::performAction().


| 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().

| BOOL LLInvFVBridge::isItemRemovable | ( | void | ) | [virtual] |
Implements LLFolderViewEventListener.
Reimplemented in LLFolderBridge, LLObjectBridge, and LLWearableBridge.
Definition at line 189 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(), removeBatch(), removeBatchNoCheck(), and LLItemBridge::removeItem().


| BOOL LLInvFVBridge::isItemMovable | ( | void | ) | [virtual] |
Implements LLFolderViewEventListener.
Reimplemented in LLFolderBridge.
Definition at line 201 of file llinventorybridge.cpp.
References TRUE.
| void LLInvFVBridge::removeBatch | ( | LLDynamicArray< LLFolderViewEventListener * > & | batch | ) | [virtual] |
Implements LLFolderViewEventListener.
Definition at line 212 of file llinventorybridge.cpp.
References LLAssetType::AT_GESTURE, LLInventoryModel::collectDescendents(), LLDynamicArray< Type, BlockSize >::count(), LLGestureManager::deactivateGesture(), FALSE, LLDynamicArray< Type, BlockSize >::get(), LLInventoryModel::getCategory(), LLInventoryModel::getItem(), LLInventoryPanel::getModel(), LLInventoryObject::getType(), LLInventoryObject::getUUID(), getUUID(), gGestureManager, gInventory, i, isItemRemovable(), j, mInventoryPanel, NULL, removeBatchNoCheck(), and S32.

| virtual void LLInvFVBridge::move | ( | LLFolderViewEventListener * | new_parent_bridge | ) | [inline, virtual] |
| 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().

| virtual BOOL LLInvFVBridge::copyToClipboard | ( | ) | const [inline, virtual] |
Implements LLFolderViewEventListener.
Reimplemented in LLItemBridge.
Definition at line 184 of file llinventorybridge.h.
References FALSE.
| virtual void LLInvFVBridge::cutToClipboard | ( | ) | [inline, virtual] |
| BOOL LLInvFVBridge::isClipboardPasteable | ( | ) | const [virtual] |
Implements LLFolderViewEventListener.
Reimplemented in LLFolderBridge.
Definition at line 366 of file llinventorybridge.cpp.
References FALSE, gAgent, LLAgent::getInventoryRootID(), LLInventoryPanel::getModel(), LLInventoryClipboard::hasContents(), LLInventoryClipboard::instance(), LLInventoryModel::isObjectDescendentOf(), mInventoryPanel, mUUID, and TRUE.
Referenced by getClipboardEntries().


| virtual void LLInvFVBridge::pasteFromClipboard | ( | ) | [inline, virtual] |
Implements LLFolderViewEventListener.
Reimplemented in LLFolderBridge.
Definition at line 187 of file llinventorybridge.h.
| void LLInvFVBridge::getClipboardEntries | ( | bool | show_asset_id, | |
| std::vector< LLString > & | items, | |||
| std::vector< LLString > & | disabled_items, | |||
| U32 | flags | |||
| ) |
Definition at line 425 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().


Implements LLFolderViewEventListener.
Reimplemented in LLFolderBridge, LLSoundBridge, LLLandmarkBridge, LLCallingCardBridge, LLGestureBridge, LLAnimationBridge, LLObjectBridge, and LLWearableBridge.
Definition at line 467 of file llinventorybridge.cpp.
References getClipboardEntries(), hideContextEntries(), isInTrash(), isItemRemovable(), lldebugs, and llendl.

| BOOL LLInvFVBridge::startDrag | ( | EDragAndDropType * | type, | |
| LLUUID * | id | |||
| ) | const [virtual] |
Implements LLFolderViewEventListener.
Definition at line 492 of file llinventorybridge.cpp.
References DAD_CATEGORY, DAD_NONE, FALSE, getInventoryObject(), LLInventoryObject::getType(), LLInventoryObject::getUUID(), gInventory, LLAssetType::lookupDragAndDropType(), LLInventoryModel::startBackgroundFetch(), and TRUE.

| 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.
| 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 void LLInvFVBridge::clearDisplayName | ( | ) | [inline, virtual] |
Reimplemented in LLItemBridge.
Definition at line 198 of file llinventorybridge.h.
Referenced by LLInventoryPanel::modelChanged().

| LLInventoryObject * LLInvFVBridge::getInventoryObject | ( | ) | const [protected] |
Definition at line 520 of file llinventorybridge.cpp.
References LLInventoryPanel::getModel(), LLInventoryModel::getObject(), mInventoryPanel, mUUID, and NULL.
Referenced by getName(), LLFolderBridge::isItemMovable(), and startDrag().


| BOOL LLInvFVBridge::isInTrash | ( | ) | const [protected] |
Definition at line 531 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().


| BOOL LLInvFVBridge::isAgentInventory | ( | ) | const [protected] |
Definition at line 539 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::isItemPermissive | ( | ) | const [protected, virtual] |
Reimplemented in LLItemBridge.
Definition at line 547 of file llinventorybridge.cpp.
References FALSE.
Referenced by getClipboardEntries().

| void LLInvFVBridge::changeItemParent | ( | LLInventoryModel * | model, | |
| LLViewerInventoryItem * | item, | |||
| const LLUUID & | new_parent, | |||
| BOOL | restamp | |||
| ) | [static, protected] |
Definition at line 553 of file llinventorybridge.cpp.
References LLInventoryModel::accountForUpdate(), LLInventoryObject::getParentUUID(), gInventory, LLInventoryModel::notifyObservers(), indra::base::config::update(), and LLInventoryModel::updateItem().
Referenced by LLFolderBridge::dragItemIntoFolder(), LLItemBridge::removeItem(), and LLItemBridge::restoreItem().


| void LLInvFVBridge::changeCategoryParent | ( | LLInventoryModel * | model, | |
| LLViewerInventoryCategory * | item, | |||
| const LLUUID & | new_parent, | |||
| BOOL | restamp | |||
| ) | [static, protected] |
Definition at line 576 of file llinventorybridge.cpp.
References LLInventoryModel::accountForUpdate(), LLInventoryObject::getParentUUID(), gInventory, LLInventoryModel::notifyObservers(), indra::base::config::update(), and LLInventoryModel::updateCategory().
Referenced by LLFolderBridge::dragCategoryIntoFolder(), LLFolderBridge::removeItem(), and LLFolderBridge::restoreItem().


| void LLInvFVBridge::removeBatchNoCheck | ( | LLDynamicArray< LLFolderViewEventListener * > & | batch | ) | [protected] |
Definition at line 256 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(), 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(), TRUE, and indra::base::config::update().
Referenced by removeBatch().


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(), removeBatch(), removeBatchNoCheck(), LLFolderBridge::removeItem(), LLItemBridge::removeItem(), LLObjectBridge::renameItem(), LLFolderBridge::renameItem(), LLItemBridge::renameItem(), LLFolderBridge::restoreItem(), and LLItemBridge::restoreItem().
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().
LLInventoryType::EType LLInvFVBridge::mInvType [protected] |
Reimplemented in LLTextureBridge, LLObjectBridge, and LLWearableBridge.
Definition at line 223 of file llinventorybridge.h.
Referenced by createBridge(), and getInventoryType().
1.5.5