Public Member Functions | |
void | noTarget () |
void | target (const std::string &name, S32 price) |
virtual BOOL | postBuild () |
void | updateUI () |
virtual void | draw () |
virtual BOOL | canClose () |
virtual void | onClose (bool app_quitting) |
Static Public Member Functions | |
static LLFloaterBuyCurrencyUI * | soleInstance (bool createIfNeeded) |
static void | onClickBuy (void *data) |
static void | onClickCancel (void *data) |
static void | onClickErrorWeb (void *data) |
Public Attributes | |
LLViewChildren | mChildren |
LLCurrencyUIManager | mManager |
bool | mHasTarget |
std::string | mTargetName |
S32 | mTargetPrice |
Private Member Functions | |
LLFloaterBuyCurrencyUI () | |
virtual | ~LLFloaterBuyCurrencyUI () |
Static Private Attributes | |
static LLFloaterBuyCurrencyUI * | sInstance = NULL |
Definition at line 51 of file llfloaterbuycurrency.cpp.
LLFloaterBuyCurrencyUI::LLFloaterBuyCurrencyUI | ( | ) | [private] |
Definition at line 115 of file llfloaterbuycurrency.cpp.
Referenced by soleInstance().
LLFloaterBuyCurrencyUI::~LLFloaterBuyCurrencyUI | ( | ) | [private, virtual] |
LLFloaterBuyCurrencyUI * LLFloaterBuyCurrencyUI::soleInstance | ( | bool | createIfNeeded | ) | [static] |
Definition at line 94 of file llfloaterbuycurrency.cpp.
References LLUICtrlFactory::buildFloater(), LLFloater::center(), LLSingleton< LLUICtrlFactory >::getInstance(), LLFloaterBuyCurrencyUI(), and sInstance.
Referenced by LLFloaterBuyCurrency::buyCurrency(), onClickBuy(), onClickCancel(), and onClickErrorWeb().
void LLFloaterBuyCurrencyUI::noTarget | ( | ) |
Definition at line 131 of file llfloaterbuycurrency.cpp.
References mHasTarget, mManager, LLCurrencyUIManager::setAmount(), and STANDARD_BUY_AMOUNT.
Referenced by LLFloaterBuyCurrency::buyCurrency().
void LLFloaterBuyCurrencyUI::target | ( | const std::string & | name, | |
S32 | price | |||
) |
Definition at line 137 of file llfloaterbuycurrency.cpp.
References LLStatusBar::getBalance(), gStatusBar, mHasTarget, MINIMUM_BALANCE_AMOUNT, mManager, mTargetName, mTargetPrice, S32, and LLCurrencyUIManager::setAmount().
Referenced by LLFloaterBuyCurrency::buyCurrency().
BOOL LLFloaterBuyCurrencyUI::postBuild | ( | void | ) | [virtual] |
Reimplemented from LLPanel.
Definition at line 155 of file llfloaterbuycurrency.cpp.
References LLPanel::childSetAction(), mManager, onClickBuy(), onClickCancel(), onClickErrorWeb(), LLCurrencyUIManager::prepare(), TRUE, and updateUI().
void LLFloaterBuyCurrencyUI::updateUI | ( | ) |
Definition at line 195 of file llfloaterbuycurrency.cpp.
References LLViewChildren::BADGE_ERROR, LLViewChildren::BADGE_NOTE, LLCurrencyUIManager::buying(), LLCurrencyUIManager::canBuy(), LLPanel::childHide(), LLPanel::childIsVisible(), LLPanel::childSetEnabled(), LLPanel::childSetTextArg(), LLPanel::childSetVisible(), LLPanel::childShow(), LLCurrencyUIManager::errorMessage(), LLCurrencyUIManager::errorURI(), LLCurrencyUIManager::getAmount(), LLStatusBar::getBalance(), gStatusBar, LLCurrencyUIManager::hasError(), llformat(), mChildren, mHasTarget, mManager, mTargetName, mTargetPrice, S32, LLViewChildren::setBadge(), LLView::setVisible(), LLTextBox::setWrappedText(), and LLCurrencyUIManager::updateUI().
Referenced by LLFloaterBuyCurrency::buyCurrency(), draw(), and postBuild().
void LLFloaterBuyCurrencyUI::draw | ( | void | ) | [virtual] |
Reimplemented from LLFloater.
Definition at line 168 of file llfloaterbuycurrency.cpp.
References LLCurrencyUIManager::bought(), LLFloater::close(), LLFloater::draw(), mManager, LLCurrencyUIManager::process(), and updateUI().
BOOL LLFloaterBuyCurrencyUI::canClose | ( | ) | [virtual] |
Reimplemented from LLFloater.
Definition at line 184 of file llfloaterbuycurrency.cpp.
References LLCurrencyUIManager::canCancel(), and mManager.
void LLFloaterBuyCurrencyUI::onClose | ( | bool | app_quitting | ) | [virtual] |
Reimplemented from LLFloater.
Definition at line 189 of file llfloaterbuycurrency.cpp.
References LLFloater::destroy(), and LLFloater::onClose().
void LLFloaterBuyCurrencyUI::onClickBuy | ( | void * | data | ) | [static] |
Definition at line 323 of file llfloaterbuycurrency.cpp.
References soleInstance().
Referenced by postBuild().
void LLFloaterBuyCurrencyUI::onClickCancel | ( | void * | data | ) | [static] |
Definition at line 338 of file llfloaterbuycurrency.cpp.
References soleInstance().
Referenced by postBuild().
void LLFloaterBuyCurrencyUI::onClickErrorWeb | ( | void * | data | ) | [static] |
Definition at line 348 of file llfloaterbuycurrency.cpp.
References LLWeb::loadURLExternal(), and soleInstance().
Referenced by postBuild().
LLFloaterBuyCurrencyUI * LLFloaterBuyCurrencyUI::sInstance = NULL [static, private] |
Definition at line 58 of file llfloaterbuycurrency.cpp.
Referenced by soleInstance(), and ~LLFloaterBuyCurrencyUI().
Definition at line 66 of file llfloaterbuycurrency.cpp.
Referenced by canClose(), draw(), noTarget(), postBuild(), target(), and updateUI().
Definition at line 68 of file llfloaterbuycurrency.cpp.
Referenced by noTarget(), target(), and updateUI().
std::string LLFloaterBuyCurrencyUI::mTargetName |