LLTaskInvFVBridge Class Reference

Inheritance diagram for LLTaskInvFVBridge:

Inheritance graph
[legend]
Collaboration diagram for LLTaskInvFVBridge:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 LLTaskInvFVBridge (LLPanelInventory *panel, const LLUUID &uuid, const LLString &name, U32 flags=0)
virtual ~LLTaskInvFVBridge (void)
virtual LLFontGL::StyleFlags getLabelStyle () const
virtual LLString getLabelSuffix () const
void showProperties ()
void buyItem ()
S32 getPrice ()
virtual const LLString & getName () const
virtual const LLString & getDisplayName () const
virtual PermissionMask getPermissionMask () const
virtual const LLUUID & getUUID () const
virtual U32 getCreationDate () const
virtual LLViewerImage * getIcon () const
virtual void openItem ()
virtual void previewItem ()
virtual void selectItem ()
virtual BOOL isItemRenameable () const
virtual BOOL renameItem (const LLString &new_name)
virtual BOOL isItemMovable ()
virtual BOOL isItemRemovable ()
virtual BOOL removeItem ()
virtual void removeBatch (LLDynamicArray< LLFolderViewEventListener * > &batch)
virtual void move (LLFolderViewEventListener *parent_listener)
virtual BOOL isItemCopyable () const
virtual BOOL copyToClipboard () const
virtual void cutToClipboard ()
virtual BOOL isClipboardPasteable () const
virtual void pasteFromClipboard ()
virtual void buildContextMenu (LLMenuGL &menu, U32 flags)
virtual void performAction (LLFolderView *folder, LLInventoryModel *model, LLString action)
virtual BOOL isUpToDate () const
virtual BOOL hasChildren () const
virtual LLInventoryType::EType getInventoryType () const
virtual BOOL startDrag (EDragAndDropType *type, LLUUID *id)
virtual BOOL dragOrDrop (MASK mask, BOOL drop, EDragAndDropType cargo_type, void *cargo_data)

Static Public Member Functions

static LLTaskInvFVBridge * createObjectBridge (LLPanelInventory *panel, LLInventoryObject *object)
static void commitBuyItem (S32 option, void *data)

Protected Member Functions

LLInventoryItem * findItem () const

Protected Attributes

LLUUID mUUID
LLString mName
LLString mDisplayName
LLPanelInventory * mPanel
U32 mFlags

Detailed Description

---------------------------------------------------------------------------- Class LLTaskInvFVBridge ----------------------------------------------------------------------------

Definition at line 93 of file llpanelinventory.cpp.


Constructor & Destructor Documentation

LLTaskInvFVBridge::LLTaskInvFVBridge ( LLPanelInventory *  panel,
const LLUUID &  uuid,
const LLString &  name,
U32  flags = 0 
)

Definition at line 158 of file llpanelinventory.cpp.

virtual LLTaskInvFVBridge::~LLTaskInvFVBridge ( void   )  [inline, virtual]

Definition at line 110 of file llpanelinventory.cpp.


Member Function Documentation

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

Implements LLFolderViewEventListener.

Reimplemented in LLTaskCategoryBridge, and LLTaskSoundBridge.

Definition at line 630 of file llpanelinventory.cpp.

References LLAgent::allowOperation(), findItem(), gAgent, LLView::getChildList(), LLInventoryItem::getPermissions(), getPrice(), LLInventoryItem::getSaleInfo(), GP_OBJECT_MANIPULATE, hideContextEntries(), LLSaleInfo::isForSale(), isItemCopyable(), isItemRemovable(), isItemRenameable(), list, LL_MENU_ITEM_CALL_GL_TAG, llendl, llwarns, PERM_OWNER, and S32.

void LLTaskInvFVBridge::buyItem (  ) 

Definition at line 211 of file llpanelinventory.cpp.

References LLViewerWindow::alertXml(), commitBuyItem(), findItem(), LLViewerObjectList::findObject(), LLSaleInfo::FS_CONTENTS, LLSaleInfo::FS_COPY, LLSaleInfo::FS_ORIGINAL, LLPermissions::getMaskNextOwner(), LLInventoryItem::getPermissions(), LLInventoryItem::getSaleInfo(), LLPanelInventory::getTaskUUID(), LLAlertDialog::getTemplateMessage(), LLInventoryObject::getType(), gObjectList, gViewerWindow, tut::inv(), LLViewerObject::isAttachment(), LLSaleInfo::isForSale(), llendl, llformat(), llinfos, mPanel, mUUID, PERM_COPY, PERM_MODIFY, and PERM_TRANSFER.

Referenced by performAction().

void LLTaskInvFVBridge::commitBuyItem ( S32  option,
void *  data 
) [static]

Definition at line 277 of file llpanelinventory.cpp.

References _PREHASH_AgentData, _PREHASH_AgentID, _PREHASH_BuyObjectInventory, _PREHASH_Data, _PREHASH_FolderID, _PREHASH_ItemID, _PREHASH_ObjectID, _PREHASH_SessionID, LLMessageSystem::addUUIDFast(), LLInventoryModel::findCategoryUUIDForType(), LLViewerObjectList::findObject(), gAgent, LLViewerRegion::getHost(), LLAgent::getID(), LLViewerObject::getRegion(), LLAgent::getSessionID(), gInventory, gMessageSystem, gObjectList, tut::inv(), LLMessageSystem::newMessageFast(), LLMessageSystem::nextBlockFast(), and LLMessageSystem::sendReliable().

Referenced by buyItem().

BOOL LLTaskInvFVBridge::copyToClipboard (  )  const [virtual]

Implements LLFolderViewEventListener.

Definition at line 528 of file llpanelinventory.cpp.

References FALSE.

LLTaskInvFVBridge * LLTaskInvFVBridge::createObjectBridge ( LLPanelInventory *  panel,
LLInventoryObject *  object 
) [static]

---------------------------------------------------------------------------- LLTaskInvFVBridge impl

Definition at line 1503 of file llpanelinventory.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_SCRIPT, LLAssetType::AT_SOUND, LLAssetType::AT_TEXTURE, LLInventoryItem::getFlags(), LLInventoryItem::getInventoryType(), LLInventoryObject::getName(), LLInventoryObject::getType(), LLInventoryObject::getUUID(), llendl, llinfos, llwarns, NULL, S32, and type.

Referenced by LLPanelInventory::createFolderViews(), and LLPanelInventory::createViewsForCategory().

void LLTaskInvFVBridge::cutToClipboard (  )  [virtual]

Implements LLFolderViewEventListener.

Definition at line 533 of file llpanelinventory.cpp.

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

Implements LLFolderViewEventListener.

Reimplemented in LLTaskCategoryBridge.

Definition at line 584 of file llpanelinventory.cpp.

References FALSE.

LLInventoryItem * LLTaskInvFVBridge::findItem (  )  const [protected]

Definition at line 171 of file llpanelinventory.cpp.

References LLViewerObjectList::findObject(), LLViewerObject::getInventoryObject(), LLPanelInventory::getTaskUUID(), gObjectList, mPanel, mUUID, and NULL.

Referenced by LLTaskSoundBridge::buildContextMenu(), buildContextMenu(), buyItem(), getDisplayName(), getPrice(), isItemCopyable(), LLTaskLSLBridge::openItem(), and LLTaskSoundBridge::performAction().

U32 LLTaskInvFVBridge::getCreationDate (  )  const [virtual]

Implements LLFolderViewEventListener.

Definition at line 337 of file llpanelinventory.cpp.

Referenced by LLPanelInventory::createViewsForCategory().

const LLString & LLTaskInvFVBridge::getDisplayName (  )  const [virtual]

Implements LLFolderViewEventListener.

Reimplemented in LLTaskCategoryBridge.

Definition at line 307 of file llpanelinventory.cpp.

References LLAgent::allowOperation(), findItem(), gAgent, LLInventoryObject::getName(), LLInventoryItem::getPermissions(), GP_OBJECT_MANIPULATE, mDisplayName, PERM_COPY, PERM_MODIFY, and PERM_TRANSFER.

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

Implements LLFolderViewEventListener.

Reimplemented in LLTaskCategoryBridge, LLTaskTextureBridge, LLTaskSoundBridge, LLTaskLandmarkBridge, LLTaskCallingCardBridge, LLTaskScriptBridge, LLTaskObjectBridge, LLTaskNotecardBridge, LLTaskGestureBridge, LLTaskAnimationBridge, and LLTaskWearableBridge.

Definition at line 342 of file llpanelinventory.cpp.

References LLAssetType::AT_OBJECT, FALSE, get_item_icon(), LLInventoryItem::II_FLAGS_OBJECT_HAS_MULTIPLE_ITEMS, LLInventoryType::IT_OBJECT, mFlags, and TRUE.

Referenced by LLPanelInventory::createFolderViews(), and LLPanelInventory::createViewsForCategory().

virtual LLInventoryType::EType LLTaskInvFVBridge::getInventoryType (  )  const [inline, virtual]

Implements LLFolderViewEventListener.

Definition at line 148 of file llpanelinventory.cpp.

References LLInventoryType::IT_NONE.

virtual LLFontGL::StyleFlags LLTaskInvFVBridge::getLabelStyle (  )  const [inline, virtual]

Implements LLFolderViewEventListener.

Definition at line 112 of file llpanelinventory.cpp.

References LLFontGL::NORMAL.

virtual LLString LLTaskInvFVBridge::getLabelSuffix (  )  const [inline, virtual]

Implements LLFolderViewEventListener.

Definition at line 113 of file llpanelinventory.cpp.

References LLStringBase< char >::null.

const LLString & LLTaskInvFVBridge::getName (  )  const [virtual]

Implements LLFolderViewEventListener.

Definition at line 302 of file llpanelinventory.cpp.

References mName.

Referenced by LLTaskCategoryBridge::getDisplayName(), LLTaskAnimationBridge::openItem(), LLTaskGestureBridge::openItem(), LLTaskNotecardBridge::openItem(), and LLTaskTextureBridge::openItem().

virtual PermissionMask LLTaskInvFVBridge::getPermissionMask (  )  const [inline, virtual]

Implements LLFolderViewEventListener.

Definition at line 125 of file llpanelinventory.cpp.

References PERM_NONE.

S32 LLTaskInvFVBridge::getPrice (  ) 

Definition at line 263 of file llpanelinventory.cpp.

References findItem(), LLInventoryItem::getSaleInfo(), and LLSaleInfo::getSalePrice().

Referenced by LLTaskSoundBridge::buildContextMenu(), buildContextMenu(), and performAction().

virtual const LLUUID& LLTaskInvFVBridge::getUUID (  )  const [inline, virtual]

Implements LLFolderViewEventListener.

Definition at line 126 of file llpanelinventory.cpp.

References mUUID.

virtual BOOL LLTaskInvFVBridge::hasChildren (  )  const [inline, virtual]

Implements LLFolderViewEventListener.

Reimplemented in LLTaskCategoryBridge.

Definition at line 147 of file llpanelinventory.cpp.

References FALSE.

BOOL LLTaskInvFVBridge::isClipboardPasteable (  )  const [virtual]

Implements LLFolderViewEventListener.

Definition at line 537 of file llpanelinventory.cpp.

References FALSE.

BOOL LLTaskInvFVBridge::isItemCopyable (  )  const [virtual]

Implements LLFolderViewEventListener.

Definition at line 520 of file llpanelinventory.cpp.

References LLAgent::allowOperation(), FALSE, findItem(), gAgent, LLInventoryItem::getPermissions(), GP_OBJECT_MANIPULATE, and PERM_COPY.

Referenced by LLTaskSoundBridge::buildContextMenu(), and buildContextMenu().

BOOL LLTaskInvFVBridge::isItemMovable (  )  [virtual]

Implements LLFolderViewEventListener.

Definition at line 402 of file llpanelinventory.cpp.

References TRUE.

BOOL LLTaskInvFVBridge::isItemRemovable (  )  [virtual]

Implements LLFolderViewEventListener.

Reimplemented in LLTaskCategoryBridge.

Definition at line 413 of file llpanelinventory.cpp.

References FALSE, LLViewerObjectList::findObject(), LLPanelInventory::getTaskUUID(), gObjectList, mPanel, LLViewerObject::permModify(), LLViewerObject::permYouOwner(), and TRUE.

Referenced by LLTaskSoundBridge::buildContextMenu(), buildContextMenu(), and removeItem().

BOOL LLTaskInvFVBridge::isItemRenameable (  )  const [virtual]

Implements LLFolderViewEventListener.

Reimplemented in LLTaskCategoryBridge, and LLTaskCallingCardBridge.

Definition at line 364 of file llpanelinventory.cpp.

References LLAgent::allowOperation(), FALSE, LLViewerObjectList::findObject(), gAgent, LLViewerObject::getInventoryObject(), LLInventoryItem::getPermissions(), LLPanelInventory::getTaskUUID(), gObjectList, GOD_LIKE, GP_OBJECT_MANIPULATE, LLAgent::isGodlike(), mPanel, mUUID, PERM_MODIFY, and TRUE.

Referenced by LLTaskSoundBridge::buildContextMenu(), and buildContextMenu().

virtual BOOL LLTaskInvFVBridge::isUpToDate (  )  const [inline, virtual]

Implements LLFolderViewEventListener.

Definition at line 146 of file llpanelinventory.cpp.

References TRUE.

void LLTaskInvFVBridge::move ( LLFolderViewEventListener *  parent_listener  )  [virtual]

Implements LLFolderViewEventListener.

Definition at line 516 of file llpanelinventory.cpp.

void LLTaskInvFVBridge::openItem (  )  [virtual]

Implements LLFolderViewEventListener.

Reimplemented in LLTaskTextureBridge, LLTaskSoundBridge, LLTaskLSLBridge, LLTaskNotecardBridge, LLTaskGestureBridge, and LLTaskAnimationBridge.

Definition at line 353 of file llpanelinventory.cpp.

References lldebugs, and llendl.

Referenced by performAction(), and previewItem().

void LLTaskInvFVBridge::pasteFromClipboard (  )  [virtual]

Implements LLFolderViewEventListener.

Definition at line 542 of file llpanelinventory.cpp.

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

Reimplemented from LLFolderViewEventListener.

Reimplemented in LLTaskSoundBridge.

Definition at line 598 of file llpanelinventory.cpp.

References LLFloaterBuyCurrency::buyCurrency(), buyItem(), LLStatusBar::getBalance(), getPrice(), gStatusBar, llendl, llwarns, openItem(), S32, and showProperties().

Referenced by LLTaskSoundBridge::performAction().

void LLTaskInvFVBridge::previewItem (  )  [virtual]

Implements LLFolderViewEventListener.

Definition at line 359 of file llpanelinventory.cpp.

References openItem().

void LLTaskInvFVBridge::removeBatch ( LLDynamicArray< LLFolderViewEventListener * > &  batch  )  [virtual]

Implements LLFolderViewEventListener.

Definition at line 476 of file llpanelinventory.cpp.

References LLViewerWindow::alertXml(), LLViewerObjectList::findObject(), LLPanelInventory::getTaskUUID(), gObjectList, gViewerWindow, i, mPanel, LLViewerObject::permModify(), remove_task_inventory_callback(), LLViewerObject::removeInventory(), and S32.

BOOL LLTaskInvFVBridge::removeItem (  )  [virtual]

Implements LLFolderViewEventListener.

Reimplemented in LLTaskLSLBridge, LLTaskNotecardBridge, LLTaskGestureBridge, and LLTaskAnimationBridge.

Definition at line 449 of file llpanelinventory.cpp.

References LLViewerWindow::alertXml(), FALSE, LLViewerObjectList::findObject(), LLPanelInventory::getTaskUUID(), gObjectList, gViewerWindow, isItemRemovable(), mPanel, mUUID, LLViewerObject::permModify(), remove_task_inventory_callback(), LLViewerObject::removeInventory(), and TRUE.

Referenced by LLTaskAnimationBridge::removeItem(), LLTaskGestureBridge::removeItem(), LLTaskNotecardBridge::removeItem(), and LLTaskLSLBridge::removeItem().

BOOL LLTaskInvFVBridge::renameItem ( const LLString &  new_name  )  [virtual]

Implements LLFolderViewEventListener.

Reimplemented in LLTaskCategoryBridge, and LLTaskCallingCardBridge.

Definition at line 381 of file llpanelinventory.cpp.

References LLAgent::allowOperation(), LLViewerObjectList::findObject(), gAgent, LLViewerObject::getInventoryObject(), LLInventoryItem::getPermissions(), LLPanelInventory::getTaskUUID(), gObjectList, GOD_LIKE, GP_OBJECT_MANIPULATE, mPanel, mUUID, NULL, PERM_MODIFY, LLInventoryObject::rename(), TASK_INVENTORY_ITEM_KEY, TRUE, and LLViewerObject::updateInventory().

virtual void LLTaskInvFVBridge::selectItem ( void   )  [inline, virtual]

Implements LLFolderViewEventListener.

Definition at line 131 of file llpanelinventory.cpp.

void LLTaskInvFVBridge::showProperties (  )  [virtual]

Implements LLFolderViewEventListener.

Definition at line 181 of file llpanelinventory.cpp.

References LLFloaterView::getNewFloaterPosition(), LLControlGroup::getRect(), LLPanelInventory::getTaskUUID(), gFloaterView, gSavedSettings, left, LLRectBase< Type >::mLeft, mPanel, LLRectBase< Type >::mTop, mUUID, LLFloater::open(), S32, LLFloaterProperties::show(), top, and LLRectBase< Type >::translate().

Referenced by performAction().

BOOL LLTaskInvFVBridge::startDrag ( EDragAndDropType *  type,
LLUUID *  id 
) [virtual]

Implements LLFolderViewEventListener.

Reimplemented in LLTaskCategoryBridge.

Definition at line 546 of file llpanelinventory.cpp.

References LLAgent::allowOperation(), LLPermissions::allowTransferTo(), FALSE, LLViewerObjectList::findObject(), gAgent, LLAgent::getID(), LLViewerObject::getInventoryObject(), LLPanelInventory::getTaskUUID(), gObjectList, GP_OBJECT_MANIPULATE, tut::inv(), LLViewerObject::isAttachment(), LLAssetType::lookupDragAndDropType(), mPanel, mUUID, NULL, PERM_COPY, LLViewerObject::permYouOwner(), and TRUE.


Member Data Documentation

LLString LLTaskInvFVBridge::mDisplayName [mutable, protected]

Definition at line 98 of file llpanelinventory.cpp.

Referenced by getDisplayName().

U32 LLTaskInvFVBridge::mFlags [protected]

Definition at line 100 of file llpanelinventory.cpp.

Referenced by LLTaskWearableBridge::getIcon(), LLTaskObjectBridge::getIcon(), and getIcon().

LLString LLTaskInvFVBridge::mName [protected]

Definition at line 97 of file llpanelinventory.cpp.

Referenced by getName().

LLPanelInventory* LLTaskInvFVBridge::mPanel [protected]

Definition at line 99 of file llpanelinventory.cpp.

Referenced by buyItem(), LLTaskCategoryBridge::dragOrDrop(), findItem(), isItemRemovable(), isItemRenameable(), LLTaskAnimationBridge::openItem(), LLTaskGestureBridge::openItem(), LLTaskNotecardBridge::openItem(), LLTaskLSLBridge::openItem(), LLTaskTextureBridge::openItem(), removeBatch(), LLTaskLSLBridge::removeItem(), removeItem(), renameItem(), showProperties(), LLTaskCategoryBridge::startDrag(), and startDrag().

LLUUID LLTaskInvFVBridge::mUUID [protected]

Definition at line 96 of file llpanelinventory.cpp.

Referenced by buyItem(), findItem(), getUUID(), isItemRenameable(), LLTaskAnimationBridge::openItem(), LLTaskGestureBridge::openItem(), LLTaskNotecardBridge::openItem(), LLTaskLSLBridge::openItem(), LLTaskTextureBridge::openItem(), LLTaskAnimationBridge::removeItem(), LLTaskGestureBridge::removeItem(), LLTaskNotecardBridge::removeItem(), LLTaskLSLBridge::removeItem(), removeItem(), renameItem(), showProperties(), LLTaskCategoryBridge::startDrag(), and startDrag().


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