LLFloaterSellLandUI Class Reference

Inheritance diagram for LLFloaterSellLandUI:

Inheritance graph
[legend]
Collaboration diagram for LLFloaterSellLandUI:

Collaboration graph
[legend]
List of all members.

Public Member Functions

virtual BOOL postBuild ()
virtual void onClose (bool app_quitting)
bool setParcel (LLViewerRegion *region, LLParcelSelectionHandle parcel)

Static Public Member Functions

static LLFloaterSellLandUIsoleInstance (bool createIfNeeded)

Private Member Functions

 LLFloaterSellLandUI ()
virtual ~LLFloaterSellLandUI ()
void updateParcelInfo ()
void refreshUI ()
void setBadge (const char *id, Badge badge)

Static Private Member Functions

static void onChangeValue (LLUICtrl *ctrl, void *userdata)
static void doSelectAgent (void *userdata)
static void doCancel (void *userdata)
static void doSellLand (void *userdata)
static void onConfirmSale (S32 option, void *userdata)
static void doShowObjects (void *userdata)
static void callbackHighlightTransferable (S32 option, void *userdata)
static void callbackAvatarPick (const std::vector< std::string > &names, const std::vector< LLUUID > &ids, void *data)

Private Attributes

LLViewerRegionmRegion
LLParcelSelectionHandle mParcelSelection
bool mParcelIsForSale
bool mSellToBuyer
bool mChoseSellTo
S32 mParcelPrice
S32 mParcelActualArea
LLUUID mParcelSnapshot
LLUUID mAuthorizedBuyer
bool mParcelSoldWithObjects

Static Private Attributes

static LLFloaterSellLandUIsInstance = NULL

Classes

class  SelectionObserver

Detailed Description

Definition at line 54 of file llfloatersellland.cpp.


Constructor & Destructor Documentation

LLFloaterSellLandUI::LLFloaterSellLandUI (  )  [private]

Definition at line 140 of file llfloatersellland.cpp.

Referenced by soleInstance().

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

Definition at line 146 of file llfloatersellland.cpp.

References NULL, and sInstance.


Member Function Documentation

void LLFloaterSellLandUI::callbackAvatarPick ( const std::vector< std::string > &  names,
const std::vector< LLUUID > &  ids,
void data 
) [static, private]

Definition at line 419 of file llfloatersellland.cpp.

References LLPanel::childSetText(), mAuthorizedBuyer, mParcelSelection, refreshUI(), and LLParcel::setAuthorizedBuyerID().

Referenced by doSelectAgent().

void LLFloaterSellLandUI::callbackHighlightTransferable ( S32  option,
void userdata 
) [static, private]

Definition at line 458 of file llfloatersellland.cpp.

References gSelectMgr, and LLSelectMgr::unhighlightAll().

Referenced by doShowObjects().

void LLFloaterSellLandUI::doCancel ( void userdata  )  [static, private]

Definition at line 437 of file llfloatersellland.cpp.

Referenced by postBuild().

void LLFloaterSellLandUI::doSelectAgent ( void userdata  )  [static, private]

Definition at line 411 of file llfloatersellland.cpp.

References LLFloater::addDependentFloater(), callbackAvatarPick(), FALSE, LLFloaterAvatarPicker::show(), and TRUE.

Referenced by onChangeValue(), and postBuild().

void LLFloaterSellLandUI::doSellLand ( void userdata  )  [static, private]

Definition at line 464 of file llfloatersellland.cpp.

References LLViewerWindow::alertXml(), LLParcel::getArea(), LLParcel::getForSale(), gViewerWindow, llformat(), onConfirmSale(), and S32.

Referenced by postBuild().

void LLFloaterSellLandUI::doShowObjects ( void userdata  )  [static, private]

Definition at line 444 of file llfloatersellland.cpp.

References callbackHighlightTransferable(), LLParcel::getLocalID(), RT_SELL, send_parcel_select_objects(), and LLNotifyBox::showXml().

Referenced by postBuild().

void LLFloaterSellLandUI::onChangeValue ( LLUICtrl ctrl,
void userdata 
) [static, private]

Definition at line 375 of file llfloatersellland.cpp.

References doSelectAgent().

Referenced by postBuild().

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

Reimplemented from LLFloater.

Definition at line 171 of file llfloatersellland.cpp.

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

void LLFloaterSellLandUI::onConfirmSale ( S32  option,
void userdata 
) [static, private]

Definition at line 504 of file llfloatersellland.cpp.

References gParcelMgr, LLUUID::null, PF_FOR_SALE, S32, LLViewerParcelMgr::sendParcelPropertiesUpdate(), LLParcel::setAuthorizedBuyerID(), LLParcel::setParcelFlag(), LLParcel::setSalePrice(), LLParcel::setSellWithObjects(), and TRUE.

Referenced by doSellLand().

BOOL LLFloaterSellLandUI::postBuild (  )  [virtual]

Reimplemented from LLPanel.

Definition at line 177 of file llfloatersellland.cpp.

References LLPanel::childSetAction(), LLPanel::childSetCommitCallback(), LLPanel::childSetPrevalidate(), doCancel(), doSelectAgent(), doSellLand(), doShowObjects(), onChangeValue(), LLLineEditor::prevalidateNonNegativeS32(), and TRUE.

void LLFloaterSellLandUI::refreshUI (  )  [private]

Definition at line 278 of file llfloatersellland.cpp.

References LLSD::asString(), BADGE_ERROR, BADGE_NOTE, BADGE_OK, LLPanel::childDisable(), LLPanel::childEnable(), LLPanel::childGetValue(), LLPanel::childHide(), LLPanel::childSetText(), LLPanel::childSetTextArg(), LLPanel::childSetValue(), LLPanel::childShow(), LLParcel::getName(), LLViewerUICtrlFactory::getTexturePickerByName(), llformat(), mAuthorizedBuyer, mChoseSellTo, mParcelActualArea, mParcelPrice, mParcelSelection, mParcelSnapshot, mSellToBuyer, LLUUID::notNull(), LLLineEditor::prevalidateNonNegativeS32(), setBadge(), LLTextureCtrl::setImageAssetID(), and utf8str_to_wstring().

Referenced by callbackAvatarPick(), and setParcel().

void LLFloaterSellLandUI::setBadge ( const char *  id,
Badge  badge 
) [private]

Definition at line 258 of file llfloatersellland.cpp.

References BADGE_ERROR, BADGE_NOTE, BADGE_OK, BADGE_WARN, LLPanel::childSetValue(), LLControlGroup::getString(), and gViewerArt.

Referenced by refreshUI().

bool LLFloaterSellLandUI::setParcel ( LLViewerRegion region,
LLParcelSelectionHandle  parcel 
)

Definition at line 190 of file llfloatersellland.cpp.

References mChoseSellTo, mParcelSelection, mRegion, refreshUI(), and updateParcelInfo().

Referenced by LLFloaterSellLandUI::SelectionObserver::changed(), and LLFloaterSellLand::sellLand().

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

Definition at line 119 of file llfloatersellland.cpp.

References LLViewerParcelMgr::addObserver(), LLUICtrlFactory::buildFloater(), LLFloater::center(), gParcelMgr, gUICtrlFactory, LLFloaterSellLandUI(), NULL, and sInstance.

Referenced by LLFloaterSellLandUI::SelectionObserver::changed(), and LLFloaterSellLand::sellLand().

void LLFloaterSellLandUI::updateParcelInfo (  )  [private]

Definition at line 208 of file llfloatersellland.cpp.

References LLPanel::childSetText(), LLPanel::childSetValue(), gCacheName, LLParcel::getArea(), LLParcel::getAuthorizedBuyerID(), LLParcel::getForSale(), LLCacheName::getName(), LLParcel::getSalePrice(), LLParcel::getSellWithObjects(), LLParcel::getSnapshotID(), mAuthorizedBuyer, MAX_STRING, mChoseSellTo, mParcelActualArea, mParcelIsForSale, mParcelPrice, mParcelSelection, mParcelSnapshot, mParcelSoldWithObjects, mSellToBuyer, and LLUUID::notNull().

Referenced by setParcel().


Member Data Documentation

LLUUID LLFloaterSellLandUI::mAuthorizedBuyer [private]

Definition at line 69 of file llfloatersellland.cpp.

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

bool LLFloaterSellLandUI::mChoseSellTo [private]

Definition at line 65 of file llfloatersellland.cpp.

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

S32 LLFloaterSellLandUI::mParcelActualArea [private]

Definition at line 67 of file llfloatersellland.cpp.

Referenced by refreshUI(), and updateParcelInfo().

bool LLFloaterSellLandUI::mParcelIsForSale [private]

Definition at line 63 of file llfloatersellland.cpp.

Referenced by updateParcelInfo().

S32 LLFloaterSellLandUI::mParcelPrice [private]

Definition at line 66 of file llfloatersellland.cpp.

Referenced by refreshUI(), and updateParcelInfo().

LLParcelSelectionHandle LLFloaterSellLandUI::mParcelSelection [private]

Definition at line 62 of file llfloatersellland.cpp.

Referenced by callbackAvatarPick(), refreshUI(), setParcel(), and updateParcelInfo().

LLUUID LLFloaterSellLandUI::mParcelSnapshot [private]

Definition at line 68 of file llfloatersellland.cpp.

Referenced by refreshUI(), and updateParcelInfo().

bool LLFloaterSellLandUI::mParcelSoldWithObjects [private]

Definition at line 70 of file llfloatersellland.cpp.

Referenced by updateParcelInfo().

LLViewerRegion* LLFloaterSellLandUI::mRegion [private]

Definition at line 61 of file llfloatersellland.cpp.

Referenced by setParcel().

bool LLFloaterSellLandUI::mSellToBuyer [private]

Definition at line 64 of file llfloatersellland.cpp.

Referenced by refreshUI(), and updateParcelInfo().

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

Definition at line 76 of file llfloatersellland.cpp.

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


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