#include <llfloaterbuycontents.h>
Inheritance diagram for LLFloaterBuyContents:
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< LLObjectSelection > | mObjectSelection |
LLSaleInfo | mSaleInfo |
Static Protected Attributes | |
static LLFloaterBuyContents * | sInstance = NULL |
Definition at line 48 of file llfloaterbuycontents.h.
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] |
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.
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().
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().
LLSaleInfo LLFloaterBuyContents::mSaleInfo [protected] |
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().