#include <llfloaterbuy.h>
Inheritance diagram for LLFloaterBuy:
Static Public Member Functions | |
static void | show (const LLSaleInfo &sale_info) |
Protected Member Functions | |
LLFloaterBuy () | |
~LLFloaterBuy () | |
void | reset () |
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 *) |
Private Attributes | |
LLHandle< LLObjectSelection > | mObjectSelection |
LLSaleInfo | mSaleInfo |
Static Private Attributes | |
static LLFloaterBuy * | sInstance = NULL |
Definition at line 50 of file llfloaterbuy.h.
LLFloaterBuy::LLFloaterBuy | ( | ) | [protected] |
Definition at line 54 of file llfloaterbuy.cpp.
References LLUICtrlFactory::buildFloater(), LLPanel::childDisable(), LLPanel::childSetAction(), gUICtrlFactory, onClickBuy(), onClickCancel(), and LLPanel::setDefaultBtn().
Referenced by show().
LLFloaterBuy::~LLFloaterBuy | ( | ) | [protected] |
void LLFloaterBuy::inventoryChanged | ( | LLViewerObject * | obj, | |
InventoryObjectList * | inv, | |||
S32 | serial_num, | |||
void * | data | |||
) | [protected, virtual] |
Implements LLVOInventoryListener.
Definition at line 198 of file llfloaterbuy.cpp.
References LLCtrlListInterface::addElement(), LLPermissions::allowTransferTo(), LLAssetType::AT_CATEGORY, LLAssetType::AT_NONE, LLAssetType::AT_ROOT_CATEGORY, LLPanel::childGetListInterface(), end, FALSE, gAgent, get_item_icon_uuid(), LLInventoryItem::getFlags(), LLAgent::getID(), LLInventoryItem::getInventoryType(), LLPermissions::getMaskNextOwner(), LLInventoryItem::getPermissions(), LLInventoryObject::getType(), LLInventoryItem::II_FLAGS_LANDMARK_VISITED, llendl, llwarns, PERM_COPY, PERM_MODIFY, PERM_TRANSFER, LLVOInventoryListener::removeVOInventoryListener(), and TRUE.
Definition at line 295 of file llfloaterbuy.cpp.
References LLAssetType::AT_OBJECT, LLFloater::close(), LLInventoryModel::findCategoryUUIDForType(), gAgent, LLAgent::getID(), gInventory, gSelectMgr, llendl, llinfos, mSaleInfo, LLSelectMgr::sendBuy(), and sInstance.
Referenced by LLFloaterBuy().
Definition at line 317 of file llfloaterbuy.cpp.
References LLFloater::close(), and sInstance.
Referenced by LLFloaterBuy().
void LLFloaterBuy::requestObjectInventories | ( | ) | [protected] |
void LLFloaterBuy::reset | ( | ) | [protected] |
Definition at line 73 of file llfloaterbuy.cpp.
References LLScrollListCtrl::deleteAllItems(), and LLUICtrlFactory::getScrollListByName().
Referenced by show().
void LLFloaterBuy::show | ( | const LLSaleInfo & | sale_info | ) | [static] |
Definition at line 83 of file llfloaterbuy.cpp.
References LLCtrlListInterface::addElement(), LLViewerWindow::alertXml(), LLAssetType::AT_OBJECT, LLFloater::center(), LLPanel::childGetListInterface(), LLPanel::childGetText(), LLPanel::childSetTextArg(), FALSE, LLSaleInfo::FS_COPY, LLSaleInfo::FS_ORIGINAL, get_item_icon_uuid(), LLSelectMgr::getEditSelection(), LLPermissions::getMaskNextOwner(), LLSaleInfo::getSalePrice(), LLSaleInfo::getSaleType(), LLSelectMgr::getSelection(), gSelectMgr, gViewerWindow, LLInventoryType::IT_OBJECT, LLFloaterBuy(), llformat(), LLSelectNode::mName, mObjectSelection, LLSelectNode::mPermissions, mSaleInfo, NULL, LLFloater::open(), PERM_COPY, PERM_MODIFY, PERM_TRANSFER, LLVOInventoryListener::registerVOInventoryListener(), LLVOInventoryListener::requestVOInventory(), reset(), LLSelectMgr::selectGetOwner(), LLUIString::setArg(), LLFloater::setFocus(), LLFloater::setTitle(), sInstance, and TRUE.
Referenced by handle_buy_object().
LLSaleInfo LLFloaterBuy::mSaleInfo [private] |
LLFloaterBuy * LLFloaterBuy::sInstance = NULL [static, private] |
Floater that appears when buying an object, giving a preview of its contents and their permissions.
Definition at line 72 of file llfloaterbuy.h.
Referenced by onClickBuy(), onClickCancel(), show(), and ~LLFloaterBuy().