LLFloaterBuyContents Class Reference

#include <llfloaterbuycontents.h>

Inheritance diagram for LLFloaterBuyContents:

Inheritance graph
[legend]
Collaboration diagram for LLFloaterBuyContents:

Collaboration graph
[legend]
List of all members.

Static Public Member Functions

static void show (const LLSaleInfo &sale_info)

Protected Member Functions

 LLFloaterBuyContents ()
 ~LLFloaterBuyContents ()
void requestObjectInventories ()
void inventoryChanged (LLViewerObject *obj, InventoryObjectList *inv, S32 serial_num, void *data)

Static Protected Member Functions

static void onClickBuy (void *)
static void onClickCancel (void *)

Protected Attributes

LLHandle< LLObjectSelectionmObjectSelection
LLSaleInfo mSaleInfo

Static Protected Attributes

static LLFloaterBuyContentssInstance = NULL

Detailed Description

Definition at line 48 of file llfloaterbuycontents.h.


Constructor & Destructor Documentation

LLFloaterBuyContents::LLFloaterBuyContents (  )  [protected]

Definition at line 58 of file llfloaterbuycontents.cpp.

References LLUICtrlFactory::buildFloater(), LLPanel::childDisable(), LLPanel::childSetAction(), gUICtrlFactory, onClickBuy(), onClickCancel(), and LLPanel::setDefaultBtn().

Referenced by show().

LLFloaterBuyContents::~LLFloaterBuyContents (  )  [protected]

Definition at line 73 of file llfloaterbuycontents.cpp.

References NULL, and sInstance.


Member Function Documentation

void LLFloaterBuyContents::inventoryChanged ( LLViewerObject obj,
InventoryObjectList inv,
S32  serial_num,
void data 
) [protected, virtual]

Implements LLVOInventoryListener.

Definition at line 145 of file llfloaterbuycontents.cpp.

References LLCtrlListInterface::addElement(), LLPermissions::allowCopyBy(), LLPermissions::allowTransferTo(), LLAssetType::AT_CATEGORY, LLAssetType::AT_ROOT_CATEGORY, LLPanel::childDisable(), LLPanel::childEnable(), LLPanel::childGetListInterface(), LLPanel::childGetText(), LLPanel::childSetValue(), end, FALSE, gAgent, get_item_icon_uuid(), LLInventoryItem::getFlags(), LLAgent::getID(), LLInventoryItem::getInventoryType(), LLPermissions::getMaskNextOwner(), LLPermissions::getOwnership(), LLInventoryItem::getPermissions(), LLInventoryObject::getType(), LLInventoryItem::II_FLAGS_LANDMARK_VISITED, LLInventoryType::IT_WEARABLE, llendl, llwarns, PERM_COPY, PERM_MODIFY, PERM_TRANSFER, LLVOInventoryListener::removeVOInventoryListener(), S32, and TRUE.

void LLFloaterBuyContents::onClickBuy ( void  )  [static, protected]

Definition at line 272 of file llfloaterbuycontents.cpp.

References LLAssetType::AT_CATEGORY, LLPanel::childGetValue(), LLPanel::childIsEnabled(), LLFloater::close(), LLInventoryModel::findCategoryUUIDForType(), gAgent, LLAgent::getID(), gInventory, gSelectMgr, mSaleInfo, LLSelectMgr::sendBuy(), sInstance, LLInventoryView::sWearNewClothing, and TRUE.

Referenced by LLFloaterBuyContents().

void LLFloaterBuyContents::onClickCancel ( void  )  [static, protected]

Definition at line 303 of file llfloaterbuycontents.cpp.

References LLFloater::close(), and sInstance.

Referenced by LLFloaterBuyContents().

void LLFloaterBuyContents::requestObjectInventories (  )  [protected]

void LLFloaterBuyContents::show ( const LLSaleInfo sale_info  )  [static]

Definition at line 80 of file llfloaterbuycontents.cpp.

References LLViewerWindow::alertXml(), LLFloater::center(), LLPanel::childSetTextArg(), gCacheName, LLSelectMgr::getEditSelection(), LLCacheName::getGroupName(), LLSaleInfo::getSalePrice(), LLUICtrlFactory::getScrollListByName(), LLSelectMgr::getSelection(), gSelectMgr, gViewerWindow, LLPermissions::isGroupOwned(), list, LLFloaterBuyContents(), llformat(), MAX_STRING, LLSelectNode::mName, mObjectSelection, LLSelectNode::mPermissions, mSaleInfo, NULL, LLFloater::open(), LLVOInventoryListener::registerVOInventoryListener(), LLVOInventoryListener::requestVOInventory(), LLSelectMgr::selectGetOwner(), LLFloater::setFocus(), sInstance, and TRUE.

Referenced by handle_buy_contents().


Member Data Documentation

LLHandle<LLObjectSelection> LLFloaterBuyContents::mObjectSelection [protected]

Definition at line 70 of file llfloaterbuycontents.h.

Referenced by show().

LLSaleInfo LLFloaterBuyContents::mSaleInfo [protected]

Definition at line 71 of file llfloaterbuycontents.h.

Referenced by onClickBuy(), and show().

LLFloaterBuyContents * LLFloaterBuyContents::sInstance = NULL [static, protected]

Shows the contents of an object and their permissions when you click "Buy..." on an object with "Sell Contents" checked.

Definition at line 68 of file llfloaterbuycontents.h.

Referenced by onClickBuy(), onClickCancel(), show(), and ~LLFloaterBuyContents().


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