LLFolderBridge Class Reference

#include <llinventorybridge.h>

Inheritance diagram for LLFolderBridge:

Inheritance graph
[legend]
Collaboration diagram for LLFolderBridge:

Collaboration graph
[legend]

List of all members.

Public Member Functions

BOOL dragItemIntoFolder (LLInventoryItem *inv_item, BOOL drop)
BOOL dragCategoryIntoFolder (LLInventoryCategory *inv_category, BOOL drop)
virtual void performAction (LLFolderView *folder, LLInventoryModel *model, LLString action)
virtual void openItem ()
virtual BOOL isItemRenameable () const
virtual void selectItem ()
virtual void restoreItem ()
virtual LLUIImagePtr getIcon () const
virtual BOOL renameItem (const LLString &new_name)
virtual BOOL removeItem ()
virtual BOOL isClipboardPasteable () const
virtual void pasteFromClipboard ()
virtual void buildContextMenu (LLMenuGL &menu, U32 flags)
virtual BOOL hasChildren () const
virtual BOOL dragOrDrop (MASK mask, BOOL drop, EDragAndDropType cargo_type, void *cargo_data)
virtual BOOL isItemRemovable ()
virtual BOOL isItemMovable ()
virtual BOOL isUpToDate () const
LLViewerInventoryCategorygetCategory () const
void folderOptionsMenu ()

Static Public Member Functions

static void createWearable (LLFolderBridge *bridge, EWearableType type)
static void createWearable (LLUUID parent_folder_id, EWearableType type)
static void staticFolderOptionsMenu ()

Static Public Attributes

static LLFolderBridgesSelf = NULL

Protected Member Functions

 LLFolderBridge (LLInventoryPanel *inventory, const LLUUID &uuid)
BOOL checkFolderForContentsOfType (LLInventoryModel *model, LLInventoryCollectFunctor &typeToCheck)
void modifyOutfit (BOOL append)

Static Protected Member Functions

static void pasteClipboard (void *user_data)
static void createNewCategory (void *user_data)
static void createNewShirt (void *user_data)
static void createNewPants (void *user_data)
static void createNewShoes (void *user_data)
static void createNewSocks (void *user_data)
static void createNewJacket (void *user_data)
static void createNewSkirt (void *user_data)
static void createNewGloves (void *user_data)
static void createNewUndershirt (void *user_data)
static void createNewUnderpants (void *user_data)
static void createNewShape (void *user_data)
static void createNewSkin (void *user_data)
static void createNewHair (void *user_data)
static void createNewEyes (void *user_data)

Private Attributes

BOOL mCallingCards
BOOL mWearables
LLMenuGLmMenu
std::vector< LLStringmItems
std::vector< LLStringmDisabledItems

Friends

class LLInvFVBridge


Detailed Description

Definition at line 263 of file llinventorybridge.h.


Constructor & Destructor Documentation

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

Definition at line 299 of file llinventorybridge.h.


Member Function Documentation

BOOL LLFolderBridge::dragItemIntoFolder ( LLInventoryItem inv_item,
BOOL  drop 
)

Definition at line 2182 of file llinventorybridge.cpp.

References LLAssetType::AT_BODYPART, LLAssetType::AT_CATEGORY, LLAssetType::AT_CLOTHING, LLAssetType::AT_GESTURE, LLAssetType::AT_NONE, LLAssetType::AT_OBJECT, LLAssetType::AT_ROOT_CATEGORY, LLAssetType::AT_TRASH, LLInvFVBridge::changeItemParent(), copy_inventory_from_notecard(), copy_inventory_item(), LLGestureManager::deactivateGesture(), FALSE, LLInventoryModel::findCategoryUUIDForType(), LLViewerObjectList::findObject(), gAgent, LLInventoryView::getActiveInventory(), LLAgent::getAvatarObject(), LLAgent::getGroupID(), LLAgent::getID(), LLSingleton< LLToolDragAndDrop >::getInstance(), LLInventoryPanel::getModel(), LLPermissions::getOwner(), LLInventoryView::getPanel(), LLInventoryObject::getParentUUID(), LLInventoryItem::getPermissions(), LLToolDragAndDrop::getSource(), LLInventoryObject::getType(), LLInventoryObject::getUUID(), gGestureManager, gObjectList, LLInvFVBridge::isAgentInventory(), LLViewerInventoryItem::isComplete(), LLGestureManager::isGestureActive(), LLInventoryModel::isObjectDescendentOf(), LLVOAvatar::isWearingAttachment(), LLAgent::isWearingItem(), llendl, llinfos, llwarns, LLMoveInv::mCallback, LLInvFVBridge::mInventoryPanel, LLMoveInv::mMoveList, LLMoveInv::mObjectID, move_task_inventory_callback(), LLMoveInv::mUserData, LLInvFVBridge::mUUID, NULL, LLViewerObject::permYouOwner(), LLToolDragAndDrop::SOURCE_AGENT, LLToolDragAndDrop::SOURCE_LIBRARY, LLToolDragAndDrop::SOURCE_NOTECARD, LLToolDragAndDrop::SOURCE_WORLD, TRUE, LLInventoryPanel::unSelectAll(), and warn_move_inventory().

Referenced by dragOrDrop().

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL LLFolderBridge::dragCategoryIntoFolder ( LLInventoryCategory inv_category,
BOOL  drop 
)

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

void LLFolderBridge::openItem ( void   )  [virtual]

Reimplemented from LLInvFVBridge.

Definition at line 1596 of file llinventorybridge.cpp.

References LLInventoryModel::fetchDescendentsOf(), LLInventoryPanel::getModel(), lldebugs, llendl, LLInvFVBridge::mInventoryPanel, and LLInvFVBridge::mUUID.

Referenced by performAction().

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL LLFolderBridge::isItemRenameable (  )  const [virtual]

Reimplemented from LLInvFVBridge.

Definition at line 1604 of file llinventorybridge.cpp.

References LLAssetType::AT_NONE, FALSE, gAgent, getCategory(), LLAgent::getID(), LLViewerInventoryCategory::getOwnerID(), LLInventoryCategory::getPreferredType(), and TRUE.

Referenced by renameItem().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLFolderBridge::selectItem ( void   )  [virtual]

Implements LLFolderViewEventListener.

Definition at line 1029 of file llinventorybridge.cpp.

void LLFolderBridge::restoreItem (  )  [virtual]

Reimplemented from LLInvFVBridge.

Definition at line 1615 of file llinventorybridge.cpp.

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

Referenced by performAction().

Here is the call graph for this function:

Here is the caller graph for this function:

LLUIImagePtr LLFolderBridge::getIcon (  )  const [virtual]

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

BOOL LLFolderBridge::removeItem (  )  [virtual]

BOOL LLFolderBridge::isClipboardPasteable (  )  const [virtual]

Reimplemented from LLInvFVBridge.

Definition at line 1753 of file llinventorybridge.cpp.

References FALSE, LLInventoryClipboard::instance(), LLInvFVBridge::isAgentInventory(), and TRUE.

Referenced by pasteFromClipboard().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLFolderBridge::pasteFromClipboard (  )  [virtual]

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

BOOL LLFolderBridge::hasChildren (  )  const [virtual]

BOOL LLFolderBridge::dragOrDrop ( MASK  mask,
BOOL  drop,
EDragAndDropType  cargo_type,
void *  cargo_data 
) [virtual]

BOOL LLFolderBridge::isItemRemovable ( void   )  [virtual]

BOOL LLFolderBridge::isItemMovable ( void   )  [virtual]

Reimplemented from LLInvFVBridge.

Definition at line 1019 of file llinventorybridge.cpp.

References LLAssetType::AT_NONE, FALSE, and LLInvFVBridge::getInventoryObject().

Here is the call graph for this function:

BOOL LLFolderBridge::isUpToDate (  )  const [virtual]

void LLFolderBridge::createWearable ( LLFolderBridge bridge,
EWearableType  type 
) [static]

void LLFolderBridge::createWearable ( LLUUID  parent_folder_id,
EWearableType  type 
) [static]

LLViewerInventoryCategory * LLFolderBridge::getCategory (  )  const

Definition at line 2008 of file llinventorybridge.cpp.

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

Referenced by getIcon(), LLBeginIMSession::handleEvent(), isItemRenameable(), modifyOutfit(), performAction(), removeItem(), renameItem(), and restoreItem().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLFolderBridge::pasteClipboard ( void *  user_data  )  [static, protected]

Definition at line 2021 of file llinventorybridge.cpp.

void LLFolderBridge::createNewCategory ( void *  user_data  )  [static, protected]

void LLFolderBridge::createNewShirt ( void *  user_data  )  [static, protected]

Definition at line 2045 of file llinventorybridge.cpp.

References createWearable(), and WT_SHIRT.

Here is the call graph for this function:

void LLFolderBridge::createNewPants ( void *  user_data  )  [static, protected]

Definition at line 2050 of file llinventorybridge.cpp.

References createWearable(), and WT_PANTS.

Here is the call graph for this function:

void LLFolderBridge::createNewShoes ( void *  user_data  )  [static, protected]

Definition at line 2055 of file llinventorybridge.cpp.

References createWearable(), and WT_SHOES.

Here is the call graph for this function:

void LLFolderBridge::createNewSocks ( void *  user_data  )  [static, protected]

Definition at line 2060 of file llinventorybridge.cpp.

References createWearable(), and WT_SOCKS.

Here is the call graph for this function:

void LLFolderBridge::createNewJacket ( void *  user_data  )  [static, protected]

Definition at line 2065 of file llinventorybridge.cpp.

References createWearable(), and WT_JACKET.

Here is the call graph for this function:

void LLFolderBridge::createNewSkirt ( void *  user_data  )  [static, protected]

Definition at line 2070 of file llinventorybridge.cpp.

References createWearable(), and WT_SKIRT.

Here is the call graph for this function:

void LLFolderBridge::createNewGloves ( void *  user_data  )  [static, protected]

Definition at line 2075 of file llinventorybridge.cpp.

References createWearable(), and WT_GLOVES.

Here is the call graph for this function:

void LLFolderBridge::createNewUndershirt ( void *  user_data  )  [static, protected]

Definition at line 2080 of file llinventorybridge.cpp.

References createWearable(), and WT_UNDERSHIRT.

Here is the call graph for this function:

void LLFolderBridge::createNewUnderpants ( void *  user_data  )  [static, protected]

Definition at line 2085 of file llinventorybridge.cpp.

References createWearable(), and WT_UNDERPANTS.

Here is the call graph for this function:

void LLFolderBridge::createNewShape ( void *  user_data  )  [static, protected]

Definition at line 2090 of file llinventorybridge.cpp.

References createWearable(), and WT_SHAPE.

Here is the call graph for this function:

void LLFolderBridge::createNewSkin ( void *  user_data  )  [static, protected]

Definition at line 2095 of file llinventorybridge.cpp.

References createWearable(), and WT_SKIN.

Here is the call graph for this function:

void LLFolderBridge::createNewHair ( void *  user_data  )  [static, protected]

Definition at line 2100 of file llinventorybridge.cpp.

References createWearable(), and WT_HAIR.

Here is the call graph for this function:

void LLFolderBridge::createNewEyes ( void *  user_data  )  [static, protected]

Definition at line 2105 of file llinventorybridge.cpp.

References createWearable(), and WT_EYES.

Here is the call graph for this function:

BOOL LLFolderBridge::checkFolderForContentsOfType ( LLInventoryModel model,
LLInventoryCollectFunctor typeToCheck 
) [protected]

Definition at line 1837 of file llinventorybridge.cpp.

References LLInventoryModel::collectDescendentsIf(), LLDynamicArray< Type, BlockSize >::count(), LLInventoryModel::EXCLUDE_TRASH, FALSE, LLInvFVBridge::mUUID, and TRUE.

Referenced by buildContextMenu(), and folderOptionsMenu().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLFolderBridge::modifyOutfit ( BOOL  append  )  [protected]

Definition at line 2133 of file llinventorybridge.cpp.

References getCategory(), LLInventoryPanel::getModel(), LLInvFVBridge::mInventoryPanel, and wear_inventory_category_on_avatar().

Referenced by performAction().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLFolderBridge::staticFolderOptionsMenu (  )  [static]

Definition at line 1789 of file llinventorybridge.cpp.

References folderOptionsMenu(), and sSelf.

Referenced by LLRightClickInventoryFetchObserver::done().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLFolderBridge::folderOptionsMenu (  ) 


Friends And Related Function Documentation

friend class LLInvFVBridge [friend]

Definition at line 265 of file llinventorybridge.h.


Member Data Documentation

Definition at line 328 of file llinventorybridge.h.

Referenced by buildContextMenu(), and folderOptionsMenu().

Definition at line 329 of file llinventorybridge.h.

Referenced by buildContextMenu(), and folderOptionsMenu().

Definition at line 330 of file llinventorybridge.h.

Referenced by buildContextMenu(), and folderOptionsMenu().

std::vector<LLString> LLFolderBridge::mItems [private]

Definition at line 331 of file llinventorybridge.h.

Referenced by buildContextMenu(), and folderOptionsMenu().

std::vector<LLString> LLFolderBridge::mDisabledItems [private]

Definition at line 332 of file llinventorybridge.h.

Referenced by buildContextMenu().


The documentation for this class was generated from the following files:

Generated on Fri May 16 08:47:25 2008 for SecondLife by  doxygen 1.5.5