#include <llgivemoney.h>
Inheritance diagram for LLFloaterPay:
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 |
LLTextBox * | mObjectNameText |
LLUUID | mTargetUUID |
BOOL | mTargetIsObject |
BOOL | mTargetIsGroup |
BOOL | mHaveName |
LLButton * | mQuickPayButton [MAX_PAY_BUTTONS] |
LLGiveMoneyInfo * | mQuickPayInfo [MAX_PAY_BUTTONS] |
LLHandle< LLObjectSelection > | mObjectSelection |
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) |
Definition at line 52 of file llgivemoney.h.
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().
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().
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().
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] |
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().
money_callback LLFloaterPay::mCallback [protected] |
std::vector<LLGiveMoneyInfo*> LLFloaterPay::mCallbackData [protected] |
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] |
LLGiveMoneyInfo* LLFloaterPay::mQuickPayInfo[MAX_PAY_BUTTONS] [protected] |
BOOL LLFloaterPay::mTargetIsGroup [protected] |
BOOL LLFloaterPay::mTargetIsObject [protected] |
LLUUID LLFloaterPay::mTargetUUID [protected] |
S32 LLFloaterPay::sLastAmount = 0 [static, protected] |
---------------------------------------------------------------------------- Class LLFloaterPay ----------------------------------------------------------------------------
Definition at line 100 of file llgivemoney.h.
Referenced by give(), and LLFloaterPay().