LLFloaterBuyLandUI Class Reference

Inheritance diagram for LLFloaterBuyLandUI:

Inheritance graph
[legend]
Collaboration diagram for LLFloaterBuyLandUI:

Collaboration graph
[legend]

List of all members.

Public Member Functions

void setForGroup (bool is_for_group)
void setParcel (LLViewerRegion *region, LLParcelSelectionHandle parcel)
void updateAgentInfo ()
void updateParcelInfo ()
void updateCovenantInfo ()
void updateCovenantText (const std::string &string, const LLUUID &asset_id)
void updateEstateName (const std::string &name)
void updateLastModified (const std::string &text)
void updateEstateOwnerName (const std::string &name)
void updateWebSiteInfo ()
void finishWebSiteInfo ()
void runWebSitePrep (const std::string &password)
void finishWebSitePrep ()
void sendBuyLand ()
void updateNames ()
void refreshUI ()
void startTransaction (TransactionType type, LLXMLRPCValue params)
bool checkTransaction ()
void tellUserError (const std::string &message, const std::string &uri)
virtual BOOL postBuild ()
void startBuyPreConfirm ()
void startBuyPostConfirm (const std::string &password)
virtual void draw ()
virtual BOOL canClose ()
virtual void onClose (bool app_quitting)
void setMinimized (BOOL b)

Static Public Member Functions

static LLFloaterBuyLandUIsoleInstance (bool createIfNeeded)
static void onChangeAgreeCovenant (LLUICtrl *ctrl, void *user_data)
static void onClickBuy (void *data)
static void onClickCancel (void *data)
static void onClickErrorWeb (void *data)

Private Types

enum  TransactionType { TransactionPreflight, TransactionCurrency, TransactionBuy }

Private Member Functions

 LLFloaterBuyLandUI ()
virtual ~LLFloaterBuyLandUI ()

Private Attributes

LLViewerRegionmRegion
LLParcelSelectionHandle mParcel
bool mIsClaim
bool mIsForGroup
bool mCanBuy
bool mCannotBuyIsError
std::string mCannotBuyReason
std::string mCannotBuyURI
bool mBought
S32 mAgentCommittedTier
S32 mAgentCashBalance
bool mAgentHasNeverOwnedLand
bool mParcelValid
bool mParcelIsForSale
bool mParcelIsGroupLand
S32 mParcelGroupContribution
S32 mParcelPrice
S32 mParcelActualArea
S32 mParcelBillableArea
S32 mParcelSupportedObjects
bool mParcelSoldWithObjects
std::string mParcelLocation
LLUUID mParcelSnapshot
std::string mParcelSellerName
S32 mUserPlanChoice
bool mSiteValid
bool mSiteMembershipUpgrade
std::string mSiteMembershipAction
std::vector< std::string > mSiteMembershipPlanIDs
std::vector< std::string > mSiteMembershipPlanNames
bool mSiteLandUseUpgrade
std::string mSiteLandUseAction
std::string mSiteConfirm
S32 mPreflightAskBillableArea
S32 mPreflightAskCurrencyBuy
LLViewChildren mChildren
LLCurrencyUIManager mCurrency
LLXMLRPCTransactionmTransaction
TransactionType mTransactionType
LLViewerParcelMgr::ParcelBuyInfomParcelBuyInfo

Static Private Attributes

static LLFloaterBuyLandUIsInstance = NULL

Classes

class  SelectionObserver


Detailed Description

Definition at line 74 of file llfloaterbuyland.cpp.


Member Enumeration Documentation

Enumerator:
TransactionPreflight 
TransactionCurrency 
TransactionBuy 

Definition at line 135 of file llfloaterbuyland.cpp.


Constructor & Destructor Documentation

LLFloaterBuyLandUI::LLFloaterBuyLandUI (  )  [private]

Definition at line 323 of file llfloaterbuyland.cpp.

Referenced by soleInstance().

Here is the caller graph for this function:

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

Definition at line 333 of file llfloaterbuyland.cpp.

References LLViewerParcelMgr::deleteParcelBuy(), LLSingleton< LLViewerParcelMgr >::getInstance(), mParcelBuyInfo, mTransaction, NULL, and sInstance.

Here is the call graph for this function:


Member Function Documentation

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

void LLFloaterBuyLandUI::setForGroup ( bool  is_for_group  ) 

Definition at line 944 of file llfloaterbuyland.cpp.

References mIsForGroup.

Referenced by LLFloaterBuyLand::buyLand().

Here is the caller graph for this function:

void LLFloaterBuyLandUI::setParcel ( LLViewerRegion region,
LLParcelSelectionHandle  parcel 
)

Definition at line 923 of file llfloaterbuyland.cpp.

References mCanBuy, mParcel, mRegion, mTransaction, mTransactionType, refreshUI(), TransactionBuy, updateAgentInfo(), updateCovenantInfo(), updateParcelInfo(), and updateWebSiteInfo().

Referenced by LLFloaterBuyLand::buyLand(), and LLFloaterBuyLandUI::SelectionObserver::changed().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLFloaterBuyLandUI::updateAgentInfo (  ) 

Definition at line 363 of file llfloaterbuyland.cpp.

References LLStatusBar::getBalance(), LLStatusBar::getSquareMetersCommitted(), gStatusBar, mAgentCashBalance, mAgentCommittedTier, and mAgentHasNeverOwnedLand.

Referenced by setParcel().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLFloaterBuyLandUI::updateParcelInfo (  ) 

void LLFloaterBuyLandUI::updateCovenantInfo (  ) 

void LLFloaterBuyLandUI::onChangeAgreeCovenant ( LLUICtrl ctrl,
void *  user_data 
) [static]

Definition at line 582 of file llfloaterbuyland.cpp.

Referenced by updateCovenantInfo().

Here is the caller graph for this function:

void LLFloaterBuyLandUI::updateCovenantText ( const std::string &  string,
const LLUUID asset_id 
)

Definition at line 591 of file llfloaterbuyland.cpp.

References FALSE, LLUUID::isNull(), refreshUI(), LLCheckBoxCtrl::set(), LLCheckBoxCtrl::setEnabled(), LLTextEditor::setHandleEditKeysDirectly(), LLTextEditor::setText(), and TRUE.

Referenced by LLFloaterBuyLand::updateCovenantText().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLFloaterBuyLandUI::updateEstateName ( const std::string &  name  ) 

Definition at line 623 of file llfloaterbuyland.cpp.

References LLTextBox::setText().

Referenced by LLFloaterBuyLand::updateEstateName().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLFloaterBuyLandUI::updateLastModified ( const std::string &  text  ) 

Definition at line 629 of file llfloaterbuyland.cpp.

References LLTextBox::setText().

Referenced by LLFloaterBuyLand::updateLastModified().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLFloaterBuyLandUI::updateEstateOwnerName ( const std::string &  name  ) 

Definition at line 635 of file llfloaterbuyland.cpp.

References LLTextBox::setText().

Referenced by LLFloaterBuyLand::updateEstateOwnerName().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLFloaterBuyLandUI::updateWebSiteInfo (  ) 

void LLFloaterBuyLandUI::finishWebSiteInfo (  ) 

void LLFloaterBuyLandUI::runWebSitePrep ( const std::string &  password  ) 

void LLFloaterBuyLandUI::finishWebSitePrep (  ) 

Definition at line 780 of file llfloaterbuyland.cpp.

References LLXMLRPCValue::asBool(), mTransaction, LLXMLRPCTransaction::responseValue(), sendBuyLand(), and tellUserError().

Referenced by checkTransaction().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLFloaterBuyLandUI::sendBuyLand (  ) 

Definition at line 797 of file llfloaterbuyland.cpp.

References LLViewerParcelMgr::deleteParcelBuy(), LLSingleton< LLViewerParcelMgr >::getInstance(), mBought, mParcelBuyInfo, and LLViewerParcelMgr::sendParcelBuy().

Referenced by finishWebSitePrep(), and runWebSitePrep().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLFloaterBuyLandUI::updateNames (  ) 

Definition at line 807 of file llfloaterbuyland.cpp.

References gCacheName, LLCacheName::getFullName(), LLParcel::getGroupID(), LLCacheName::getGroupName(), LLParcel::getIsGroupOwned(), LLParcel::getOwnerID(), mIsClaim, mParcel, and mParcelSellerName.

Referenced by cacheNameUpdateRefreshesBuyLand(), and updateParcelInfo().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLFloaterBuyLandUI::refreshUI (  ) 

Definition at line 1002 of file llfloaterbuyland.cpp.

References LLComboBox::add(), LLViewChildren::BADGE_ERROR, LLViewChildren::BADGE_NOTE, LLViewChildren::BADGE_OK, LLViewChildren::BADGE_WARN, LLPanel::childHide(), LLPanel::childSetEnabled(), LLPanel::childSetLabelArg(), LLPanel::childSetText(), LLPanel::childSetTextArg(), LLPanel::childSetValue(), LLPanel::childSetVisible(), LLPanel::childSetWrappedText(), LLPanel::childShow(), gAgent, LLCheckBoxCtrl::get(), LLCurrencyUIManager::getAmount(), LLCurrencyUIManager::getEstimate(), LLPanel::getString(), GROUP_LAND_BONUS_FACTOR, i, llceil(), llformat(), mAgentCashBalance, mAgentCommittedTier, mCanBuy, mCannotBuyIsError, mCannotBuyReason, mCannotBuyURI, mChildren, mCurrency, LLAgent::mGroupName, mIsForGroup, mParcelActualArea, mParcelBillableArea, mParcelGroupContribution, mParcelIsForSale, mParcelIsGroupLand, mParcelLocation, mParcelPrice, mParcelSellerName, mParcelSnapshot, mParcelSoldWithObjects, mParcelSupportedObjects, mParcelValid, mSiteLandUseAction, mSiteLandUseUpgrade, mSiteMembershipAction, mSiteMembershipPlanNames, mSiteMembershipUpgrade, mSiteValid, mTransaction, mUserPlanChoice, LLStringBase< char >::null, LLUUID::null, LLComboBox::removeall(), S32, LLViewChildren::setBadge(), LLComboBox::setCurrentByIndex(), LLTextureCtrl::setImageAssetID(), LLView::setVisible(), LLTextBox::setWrappedText(), and LLCurrencyUIManager::updateUI().

Referenced by draw(), setMinimized(), setParcel(), startBuyPostConfirm(), and updateCovenantText().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLFloaterBuyLandUI::startTransaction ( TransactionType  type,
LLXMLRPCValue  params 
)

Definition at line 832 of file llfloaterbuyland.cpp.

References LLAppViewer::getHelperURI(), LLAppViewer::instance(), llendl, llwarns, mTransaction, mTransactionType, NULL, TransactionBuy, and TransactionPreflight.

Referenced by runWebSitePrep(), and updateWebSiteInfo().

Here is the call graph for this function:

Here is the caller graph for this function:

bool LLFloaterBuyLandUI::checkTransaction (  ) 

void LLFloaterBuyLandUI::tellUserError ( const std::string &  message,
const std::string &  uri 
)

Definition at line 900 of file llfloaterbuyland.cpp.

References LLPanel::getString(), mCanBuy, mCannotBuyIsError, mCannotBuyReason, and mCannotBuyURI.

Referenced by checkTransaction(), draw(), finishWebSiteInfo(), and finishWebSitePrep().

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL LLFloaterBuyLandUI::postBuild ( void   )  [virtual]

Reimplemented from LLPanel.

Definition at line 912 of file llfloaterbuyland.cpp.

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

Here is the call graph for this function:

void LLFloaterBuyLandUI::startBuyPreConfirm (  ) 

void LLFloaterBuyLandUI::startBuyPostConfirm ( const std::string &  password  ) 

Definition at line 1333 of file llfloaterbuyland.cpp.

References LLPanel::getString(), mCanBuy, mCannotBuyReason, refreshUI(), and runWebSitePrep().

Referenced by startBuyPreConfirm().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLFloaterBuyLandUI::onClickBuy ( void *  data  )  [static]

Definition at line 1344 of file llfloaterbuyland.cpp.

Referenced by postBuild().

Here is the caller graph for this function:

void LLFloaterBuyLandUI::onClickCancel ( void *  data  )  [static]

Definition at line 1351 of file llfloaterbuyland.cpp.

Referenced by postBuild().

Here is the caller graph for this function:

void LLFloaterBuyLandUI::onClickErrorWeb ( void *  data  )  [static]

Definition at line 1358 of file llfloaterbuyland.cpp.

References LLWeb::loadURLExternal().

Referenced by postBuild().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLFloaterBuyLandUI::draw ( void   )  [virtual]

BOOL LLFloaterBuyLandUI::canClose (  )  [virtual]

Reimplemented from LLFloater.

Definition at line 973 of file llfloaterbuyland.cpp.

References LLViewerWindow::alertXml(), LLCurrencyUIManager::canCancel(), FALSE, gViewerWindow, mCurrency, mTransaction, and TRUE.

Here is the call graph for this function:

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

Reimplemented from LLFloater.

Definition at line 995 of file llfloaterbuyland.cpp.

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

Here is the call graph for this function:

void LLFloaterBuyLandUI::setMinimized ( BOOL  b  )  [virtual]

Reimplemented from LLFloater.

Definition at line 985 of file llfloaterbuyland.cpp.

References LLFloater::isMinimized(), refreshUI(), and LLFloater::setMinimized().

Here is the call graph for this function:


Member Data Documentation

Definition at line 81 of file llfloaterbuyland.cpp.

Referenced by setParcel(), and updateParcelInfo().

Definition at line 82 of file llfloaterbuyland.cpp.

Referenced by setParcel(), updateNames(), and updateParcelInfo().

Definition at line 83 of file llfloaterbuyland.cpp.

Referenced by runWebSitePrep(), updateNames(), and updateParcelInfo().

Definition at line 87 of file llfloaterbuyland.cpp.

Referenced by refreshUI(), tellUserError(), and updateParcelInfo().

std::string LLFloaterBuyLandUI::mCannotBuyReason [private]

std::string LLFloaterBuyLandUI::mCannotBuyURI [private]

Definition at line 89 of file llfloaterbuyland.cpp.

Referenced by refreshUI(), and tellUserError().

Definition at line 91 of file llfloaterbuyland.cpp.

Referenced by draw(), and sendBuyLand().

Definition at line 94 of file llfloaterbuyland.cpp.

Referenced by refreshUI(), and updateAgentInfo().

Definition at line 95 of file llfloaterbuyland.cpp.

Referenced by refreshUI(), updateAgentInfo(), and updateParcelInfo().

Definition at line 96 of file llfloaterbuyland.cpp.

Referenced by updateAgentInfo().

Definition at line 99 of file llfloaterbuyland.cpp.

Referenced by refreshUI(), and updateParcelInfo().

Definition at line 100 of file llfloaterbuyland.cpp.

Referenced by refreshUI(), and updateParcelInfo().

Definition at line 101 of file llfloaterbuyland.cpp.

Referenced by refreshUI(), and updateParcelInfo().

Definition at line 102 of file llfloaterbuyland.cpp.

Referenced by refreshUI(), and updateParcelInfo().

Definition at line 103 of file llfloaterbuyland.cpp.

Referenced by refreshUI(), startBuyPreConfirm(), and updateParcelInfo().

Definition at line 104 of file llfloaterbuyland.cpp.

Referenced by refreshUI(), and updateParcelInfo().

Definition at line 106 of file llfloaterbuyland.cpp.

Referenced by refreshUI(), and updateParcelInfo().

Definition at line 107 of file llfloaterbuyland.cpp.

Referenced by refreshUI(), and updateParcelInfo().

std::string LLFloaterBuyLandUI::mParcelLocation [private]

Definition at line 108 of file llfloaterbuyland.cpp.

Referenced by refreshUI(), and updateParcelInfo().

Definition at line 109 of file llfloaterbuyland.cpp.

Referenced by refreshUI(), and updateParcelInfo().

Definition at line 110 of file llfloaterbuyland.cpp.

Referenced by refreshUI(), startBuyPreConfirm(), updateNames(), and updateParcelInfo().

Definition at line 113 of file llfloaterbuyland.cpp.

Referenced by finishWebSiteInfo(), refreshUI(), and runWebSitePrep().

Definition at line 116 of file llfloaterbuyland.cpp.

Referenced by finishWebSiteInfo(), refreshUI(), and updateWebSiteInfo().

std::vector<std::string> LLFloaterBuyLandUI::mSiteMembershipPlanIDs [private]

Definition at line 120 of file llfloaterbuyland.cpp.

Referenced by finishWebSiteInfo(), runWebSitePrep(), and updateWebSiteInfo().

std::vector<std::string> LLFloaterBuyLandUI::mSiteMembershipPlanNames [private]

std::string LLFloaterBuyLandUI::mSiteConfirm [private]

Definition at line 125 of file llfloaterbuyland.cpp.

Referenced by finishWebSiteInfo(), runWebSitePrep(), and startBuyPreConfirm().

Definition at line 129 of file llfloaterbuyland.cpp.

Referenced by updateWebSiteInfo().

Definition at line 130 of file llfloaterbuyland.cpp.

Referenced by updateWebSiteInfo().

Definition at line 132 of file llfloaterbuyland.cpp.

Referenced by refreshUI().

Definition at line 144 of file llfloaterbuyland.cpp.

Referenced by runWebSitePrep(), sendBuyLand(), and ~LLFloaterBuyLandUI().

Definition at line 146 of file llfloaterbuyland.cpp.

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


The documentation for this class was generated from the following file:

Generated on Fri May 16 08:45:07 2008 for SecondLife by  doxygen 1.5.5