LLFloaterPay Class Reference

#include <llgivemoney.h>

Inheritance diagram for LLFloaterPay:

Inheritance graph
[legend]
Collaboration diagram for LLFloaterPay:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 LLFloaterPay (const std::string &name, money_callback callback, const LLUUID &target_id, BOOL target_is_object)
virtual ~LLFloaterPay ()

Static Public Member Functions

static void payViaObject (money_callback callback, const LLUUID &object_id)
static void payDirectly (money_callback callback, const LLUUID &target_id, BOOL is_group)

Protected Attributes

std::vector< LLGiveMoneyInfo * > mCallbackData
money_callback mCallback
LLTextBoxmObjectNameText
LLUUID mTargetUUID
BOOL mTargetIsObject
BOOL mTargetIsGroup
BOOL mHaveName
LLButtonmQuickPayButton [MAX_PAY_BUTTONS]
LLGiveMoneyInfomQuickPayInfo [MAX_PAY_BUTTONS]
LLHandle< LLObjectSelectionmObjectSelection

Static Protected Attributes

static S32 sLastAmount = 0

Private Member Functions

void give (S32 amount)
void finishPayUI (const LLUUID &target_id, BOOL is_group)

Static Private Member Functions

static void onCancel (void *data)
static void onKeystroke (LLLineEditor *editor, void *data)
static void onGive (void *data)
static void processPayPriceReply (LLMessageSystem *msg, void **userdata)
static void onCacheOwnerName (const LLUUID &owner_id, const char *firstname, const char *lastname, BOOL is_group, void *userdata)

Detailed Description

Definition at line 52 of file llgivemoney.h.


Constructor & Destructor Documentation

LLFloaterPay::LLFloaterPay ( const std::string &  name,
money_callback  callback,
const LLUUID target_id,
BOOL  target_is_object 
)

Definition at line 81 of file llgivemoney.cpp.

References LLUICtrlFactory::buildFloater(), LLFloater::center(), LLPanel::childSetAction(), LLPanel::childSetEnabled(), LLPanel::childSetKeystrokeCallback(), LLPanel::childSetPrevalidate(), LLPanel::childSetText(), LLPanel::childSetVisible(), FALSE, LLUICtrlFactory::getButtonByName(), LLSelectMgr::getEditSelection(), gSelectMgr, gUICtrlFactory, i, llformat(), mCallbackData, mObjectSelection, mQuickPayButton, mQuickPayInfo, onCancel(), onGive(), onKeystroke(), LLFloater::open(), PAY_BUTTON_DEFAULT_0, PAY_BUTTON_DEFAULT_1, PAY_BUTTON_DEFAULT_2, PAY_BUTTON_DEFAULT_3, LLLineEditor::prevalidateNonNegativeS32(), S32, LLPanel::setDefaultBtn(), and sLastAmount.

Referenced by payDirectly(), and payViaObject().

LLFloaterPay::~LLFloaterPay (  )  [virtual]

Definition at line 178 of file llgivemoney.cpp.

References LLCacheName::cancelCallback(), gCacheName, mCallbackData, mTargetUUID, and onCacheOwnerName().


Member Function Documentation

void LLFloaterPay::finishPayUI ( const LLUUID target_id,
BOOL  is_group 
) [private]

Definition at line 374 of file llgivemoney.cpp.

References LLPanel::childSetFocus(), gCacheName, LLCacheName::get(), LLUICtrlFactory::getLineEditorByName(), mTargetIsGroup, onCacheOwnerName(), LLLineEditor::selectAll(), and TRUE.

Referenced by payDirectly().

void LLFloaterPay::give ( S32  amount  )  [private]

Definition at line 445 of file llgivemoney.cpp.

References LLPanel::childGetText(), FALSE, LLViewerObjectList::findObject(), gAgent, LLAgent::getRegion(), LLViewerObject::getRegion(), gObjectList, LLPrimitive::isAvatar(), mCallback, LLSelectNode::mName, mObjectSelection, mTargetIsGroup, mTargetIsObject, mTargetUUID, LLStringBase< char >::null, NULL, S32, sLastAmount, TRANS_GIFT, and TRANS_PAY_OBJECT.

Referenced by onGive().

void LLFloaterPay::onCacheOwnerName ( const LLUUID owner_id,
const char *  firstname,
const char *  lastname,
BOOL  is_group,
void userdata 
) [static, private]

Definition at line 388 of file llgivemoney.cpp.

Referenced by finishPayUI(), and ~LLFloaterPay().

void LLFloaterPay::onCancel ( void data  )  [static, private]

Definition at line 413 of file llgivemoney.cpp.

Referenced by LLFloaterPay().

void LLFloaterPay::onGive ( void data  )  [static, private]

Definition at line 435 of file llgivemoney.cpp.

References LLFloater::close(), give(), LLGiveMoneyInfo::mAmount, and LLGiveMoneyInfo::mFloater.

Referenced by LLFloaterPay().

void LLFloaterPay::onKeystroke ( LLLineEditor editor,
void data 
) [static, private]

Definition at line 423 of file llgivemoney.cpp.

Referenced by LLFloaterPay().

void LLFloaterPay::payDirectly ( money_callback  callback,
const LLUUID target_id,
BOOL  is_group 
) [static]

Definition at line 354 of file llgivemoney.cpp.

References LLPanel::childSetVisible(), FALSE, finishPayUI(), i, LLFloaterPay(), MAX_PAY_BUTTONS, mQuickPayButton, S32, and TRUE.

Referenced by complete_give_money(), and handle_pay_by_id().

void LLFloaterPay::payViaObject ( money_callback  callback,
const LLUUID object_id 
) [static]

Definition at line 320 of file llgivemoney.cpp.

References _PREHASH_ObjectData, _PREHASH_ObjectID, _PREHASH_PayPriceReply, _PREHASH_RequestPayPrice, LLMessageSystem::addUUIDFast(), LLFloater::close(), FALSE, LLViewerObjectList::findObject(), LLViewerRegion::getHost(), LLPermissions::getOwnership(), LLViewerObject::getRegion(), gMessageSystem, gObjectList, LLFloaterPay(), LLSelectNode::mName, mObjectSelection, LLSelectNode::mPermissions, LLMessageSystem::newMessageFast(), LLMessageSystem::nextBlockFast(), processPayPriceReply(), LLMessageSystem::sendReliable(), LLMessageSystem::setHandlerFuncFast(), and TRUE.

Referenced by complete_give_money().

void LLFloaterPay::processPayPriceReply ( LLMessageSystem msg,
void **  userdata 
) [static, private]

Definition at line 187 of file llgivemoney.cpp.

References _PREHASH_ButtonData, _PREHASH_DefaultPayPrice, _PREHASH_ObjectData, _PREHASH_ObjectID, _PREHASH_PayButton, FALSE, FASTPAY_BUTTON_WIDTH, LLResMgr::getMonetaryString(), LLMessageSystem::getNumberOfBlocksFast(), LLResMgr::getRes(), LLMessageSystem::getS32Fast(), LLMessageSystem::getUUIDFast(), LLFontGL::getWidth(), gResMgr, i, llabs(), LLFONT_SANSSERIF, llformat(), MAX_PAY_BUTTONS, NULL, PAY_PRICE_DEFAULT, PAY_PRICE_HIDE, r, S32, LLMessageSystem::setHandlerFunc(), target, and TRUE.

Referenced by payViaObject().


Member Data Documentation

money_callback LLFloaterPay::mCallback [protected]

Definition at line 88 of file llgivemoney.h.

Referenced by give().

std::vector<LLGiveMoneyInfo*> LLFloaterPay::mCallbackData [protected]

Definition at line 87 of file llgivemoney.h.

Referenced by LLFloaterPay(), and ~LLFloaterPay().

BOOL LLFloaterPay::mHaveName [protected]

Definition at line 93 of file llgivemoney.h.

LLTextBox* LLFloaterPay::mObjectNameText [protected]

Definition at line 89 of file llgivemoney.h.

LLHandle<LLObjectSelection> LLFloaterPay::mObjectSelection [protected]

Definition at line 98 of file llgivemoney.h.

Referenced by give(), LLFloaterPay(), and payViaObject().

LLButton* LLFloaterPay::mQuickPayButton[MAX_PAY_BUTTONS] [protected]

Definition at line 95 of file llgivemoney.h.

Referenced by LLFloaterPay(), and payDirectly().

LLGiveMoneyInfo* LLFloaterPay::mQuickPayInfo[MAX_PAY_BUTTONS] [protected]

Definition at line 96 of file llgivemoney.h.

Referenced by LLFloaterPay().

BOOL LLFloaterPay::mTargetIsGroup [protected]

Definition at line 92 of file llgivemoney.h.

Referenced by finishPayUI(), and give().

BOOL LLFloaterPay::mTargetIsObject [protected]

Definition at line 91 of file llgivemoney.h.

Referenced by give().

LLUUID LLFloaterPay::mTargetUUID [protected]

Definition at line 90 of file llgivemoney.h.

Referenced by give(), and ~LLFloaterPay().

S32 LLFloaterPay::sLastAmount = 0 [static, protected]

---------------------------------------------------------------------------- Class LLFloaterPay ----------------------------------------------------------------------------

Definition at line 100 of file llgivemoney.h.

Referenced by give(), and LLFloaterPay().


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