LLFloaterBuy Class Reference

#include <llfloaterbuy.h>

Inheritance diagram for LLFloaterBuy:

Inheritance graph
[legend]
Collaboration diagram for LLFloaterBuy:

Collaboration graph
[legend]
List of all members.

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< LLObjectSelectionmObjectSelection
LLSaleInfo mSaleInfo

Static Private Attributes

static LLFloaterBuysInstance = NULL

Detailed Description

Definition at line 50 of file llfloaterbuy.h.


Constructor & Destructor Documentation

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]

Definition at line 68 of file llfloaterbuy.cpp.

References NULL, and sInstance.


Member Function Documentation

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.

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

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().

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

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().


Member Data Documentation

LLHandle<LLObjectSelection> LLFloaterBuy::mObjectSelection [private]

Definition at line 74 of file llfloaterbuy.h.

Referenced by show().

LLSaleInfo LLFloaterBuy::mSaleInfo [private]

Definition at line 75 of file llfloaterbuy.h.

Referenced by onClickBuy(), and show().

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().


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