LLFloaterBuyCurrencyUI Class Reference

Inheritance diagram for LLFloaterBuyCurrencyUI:

Inheritance graph
Collaboration diagram for LLFloaterBuyCurrencyUI:

Collaboration graph
List of all members.

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 LLFloaterBuyCurrencyUIsoleInstance (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 LLFloaterBuyCurrencyUIsInstance = NULL

Detailed Description

Definition at line 51 of file llfloaterbuycurrency.cpp.

Constructor & Destructor Documentation

LLFloaterBuyCurrencyUI::LLFloaterBuyCurrencyUI (  )  [private]

Definition at line 115 of file llfloaterbuycurrency.cpp.

Referenced by soleInstance().

LLFloaterBuyCurrencyUI::~LLFloaterBuyCurrencyUI (  )  [private, virtual]

Definition at line 122 of file llfloaterbuycurrency.cpp.

References NULL, and sInstance.

Member Function Documentation

BOOL LLFloaterBuyCurrencyUI::canClose (  )  [virtual]

Reimplemented from LLFloater.

Definition at line 184 of file llfloaterbuycurrency.cpp.

References LLCurrencyUIManager::canCancel(), and mManager.

void LLFloaterBuyCurrencyUI::draw (  )  [virtual]

Reimplemented from LLFloater.

Definition at line 168 of file llfloaterbuycurrency.cpp.

References LLCurrencyUIManager::bought(), LLFloater::close(), LLFloater::draw(), mManager, LLCurrencyUIManager::process(), and updateUI().

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::onClickBuy ( void data  )  [static]

Definition at line 314 of file llfloaterbuycurrency.cpp.

References soleInstance().

Referenced by postBuild().

void LLFloaterBuyCurrencyUI::onClickCancel ( void data  )  [static]

Definition at line 329 of file llfloaterbuycurrency.cpp.

References soleInstance().

Referenced by postBuild().

void LLFloaterBuyCurrencyUI::onClickErrorWeb ( void data  )  [static]

Definition at line 339 of file llfloaterbuycurrency.cpp.

References LLWeb::loadURLExternal(), and soleInstance().

Referenced by postBuild().

void LLFloaterBuyCurrencyUI::onClose ( bool  app_quitting  )  [virtual]

Reimplemented from LLFloater.

Definition at line 189 of file llfloaterbuycurrency.cpp.

References LLFloater::destroy(), and LLFloater::onClose().

BOOL LLFloaterBuyCurrencyUI::postBuild (  )  [virtual]

Reimplemented from LLPanel.

Definition at line 155 of file llfloaterbuycurrency.cpp.

References LLPanel::childSetAction(), mManager, onClickBuy(), onClickCancel(), onClickErrorWeb(), LLCurrencyUIManager::prepare(), TRUE, and updateUI().

LLFloaterBuyCurrencyUI * LLFloaterBuyCurrencyUI::soleInstance ( bool  createIfNeeded  )  [static]

Definition at line 94 of file llfloaterbuycurrency.cpp.

References LLUICtrlFactory::buildFloater(), LLFloater::center(), gUICtrlFactory, LLFloaterBuyCurrencyUI(), and sInstance.

Referenced by LLFloaterBuyCurrency::buyCurrency(), onClickBuy(), onClickCancel(), and onClickErrorWeb().

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

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::childSetEnabled(), LLPanel::childSetTextArg(), LLPanel::childSetVisible(), LLPanel::childShow(), LLCurrencyUIManager::errorMessage(), LLCurrencyUIManager::errorURI(), LLCurrencyUIManager::getAmount(), LLStatusBar::getBalance(), LLUICtrlFactory::getTextBoxByName(), 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().

Member Data Documentation

LLViewChildren LLFloaterBuyCurrencyUI::mChildren

Definition at line 65 of file llfloaterbuycurrency.cpp.

Referenced by updateUI().

bool LLFloaterBuyCurrencyUI::mHasTarget

Definition at line 68 of file llfloaterbuycurrency.cpp.

Referenced by noTarget(), target(), and updateUI().

LLCurrencyUIManager LLFloaterBuyCurrencyUI::mManager

Definition at line 66 of file llfloaterbuycurrency.cpp.

Referenced by canClose(), draw(), noTarget(), postBuild(), target(), and updateUI().

std::string LLFloaterBuyCurrencyUI::mTargetName

Definition at line 69 of file llfloaterbuycurrency.cpp.

Referenced by target(), and updateUI().

S32 LLFloaterBuyCurrencyUI::mTargetPrice

Definition at line 70 of file llfloaterbuycurrency.cpp.

Referenced by target(), and updateUI().

LLFloaterBuyCurrencyUI * LLFloaterBuyCurrencyUI::sInstance = NULL [static, private]

Definition at line 58 of file llfloaterbuycurrency.cpp.

Referenced by soleInstance(), and ~LLFloaterBuyCurrencyUI().

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