#include <llpanelplace.h>
Public Member Functions | |
LLPanelPlace () | |
~LLPanelPlace () | |
BOOL | postBuild () |
void | resetLocation () |
void | setParcelID (const LLUUID &parcel_id) |
void | displayItemInfo (const LLInventoryItem *pItem) |
void | setRegionID (const LLUUID ®ion_id) |
void | setSnapshot (const LLUUID &snapshot_id) |
void | setLocationString (const std::string &location) |
void | setErrorStatus (U32 status, const std::string &reason) |
void | sendParcelInfoRequest () |
void | displayParcelInfo (const LLVector3 &pos_region, const LLUUID &landmark_asset_id, const LLUUID ®ion_id, const LLVector3d &pos_global) |
Static Public Member Functions | |
static void | processParcelInfoReply (LLMessageSystem *msg, void **) |
Protected Types | |
typedef std::list< LLPanelPlace * > | panel_list_t |
Static Protected Member Functions | |
static void | onClickTeleport (void *data) |
static void | onClickMap (void *data) |
static void | onClickAuction (void *data) |
static void | callbackAuctionWebPage (S32 option, void *data) |
Protected Attributes | |
LLUUID | mParcelID |
LLUUID | mRequestedID |
LLUUID | mRegionID |
LLUUID | mLandmarkAssetID |
LLVector3d | mPosGlobal |
LLVector3 | mPosRegion |
S32 | mAuctionID |
LLTextureCtrl * | mSnapshotCtrl |
LLTextBox * | mNameEditor |
LLTextEditor * | mDescEditor |
LLTextBox * | mInfoEditor |
LLTextBox * | mLocationEditor |
LLButton * | mTeleportBtn |
LLButton * | mMapBtn |
LLButton * | mAuctionBtn |
Static Protected Attributes | |
static panel_list_t | sAllPanels |
Definition at line 48 of file llpanelplace.h.
typedef std::list<LLPanelPlace*> LLPanelPlace::panel_list_t [protected] |
Definition at line 111 of file llpanelplace.h.
LLPanelPlace::LLPanelPlace | ( | ) |
LLPanelPlace::~LLPanelPlace | ( | ) |
BOOL LLPanelPlace::postBuild | ( | void | ) | [virtual] |
Reimplemented from LLPanel.
Definition at line 83 of file llpanelplace.cpp.
References FALSE, mAuctionBtn, mDescEditor, mInfoEditor, mLocationEditor, mMapBtn, mNameEditor, mSnapshotCtrl, mTeleportBtn, LLStringBase< char >::null, onClickAuction(), onClickMap(), onClickTeleport(), LLUICtrl::setCallbackUserData(), LLButton::setClickedCallback(), LLTextureCtrl::setEnabled(), LLTextBox::setText(), LLView::setVisible(), and TRUE.
void LLPanelPlace::resetLocation | ( | ) |
Definition at line 138 of file llpanelplace.cpp.
References LLVector3::clearVec(), LLVector3d::clearVec(), mAuctionID, mDescEditor, mInfoEditor, mLandmarkAssetID, mLocationEditor, mNameEditor, mParcelID, mPosGlobal, mPosRegion, mRegionID, mRequestedID, LLStringBase< char >::null, LLUUID::setNull(), LLTextEditor::setText(), and LLTextBox::setText().
Referenced by LLPanelDirBrowser::showDetailPanel().
void LLPanelPlace::setParcelID | ( | const LLUUID & | parcel_id | ) |
Definition at line 153 of file llpanelplace.cpp.
References mParcelID, and sendParcelInfoRequest().
Referenced by LLFloaterParcelInfo::displayParcelInfo(), LLRemoteParcelRequestResponder::result(), and LLPanelDirBrowser::showDetailPanel().
void LLPanelPlace::displayItemInfo | ( | const LLInventoryItem * | pItem | ) |
Definition at line 127 of file llpanelplace.cpp.
References LLInventoryItem::getDescription(), LLInventoryObject::getName(), mDescEditor, mNameEditor, LLTextEditor::setText(), and LLTextBox::setText().
void LLPanelPlace::setRegionID | ( | const LLUUID & | region_id | ) | [inline] |
void LLPanelPlace::setSnapshot | ( | const LLUUID & | snapshot_id | ) |
Definition at line 159 of file llpanelplace.cpp.
References mSnapshotCtrl, and LLTextureCtrl::setImageAssetID().
Referenced by LLFloaterURLDisplay::setSnapshotDisplay().
void LLPanelPlace::setLocationString | ( | const std::string & | location | ) |
Definition at line 165 of file llpanelplace.cpp.
References mLocationEditor, and LLTextBox::setText().
Referenced by LLFloaterURLDisplay::setLocationString().
void LLPanelPlace::setErrorStatus | ( | U32 | status, | |
const std::string & | reason | |||
) |
Definition at line 187 of file llpanelplace.cpp.
References LLPanel::getString(), mDescEditor, and LLTextEditor::setText().
Referenced by LLRemoteParcelRequestResponder::error().
void LLPanelPlace::sendParcelInfoRequest | ( | ) |
Definition at line 170 of file llpanelplace.cpp.
References _PREHASH_AgentData, _PREHASH_AgentID, LLMessageSystem::addUUID(), LLMessageSystem::addUUIDFast(), gAgent, LLAgent::getID(), LLAgent::getSessionID(), gMessageSystem, mParcelID, mRequestedID, LLMessageSystem::newMessage(), LLMessageSystem::nextBlock(), LLMessageSystem::nextBlockFast(), and LLAgent::sendReliableMessage().
Referenced by setParcelID().
void LLPanelPlace::displayParcelInfo | ( | const LLVector3 & | pos_region, | |
const LLUUID & | landmark_asset_id, | |||
const LLUUID & | region_id, | |||
const LLVector3d & | pos_global | |||
) |
Definition at line 336 of file llpanelplace.cpp.
References gAgent, LLViewerRegion::getCapability(), LLPanel::getHandle(), LLAgent::getRegion(), LLPanel::getString(), LLVector3d::isExactlyZero(), LLUUID::isNull(), ll_sd_from_U64(), ll_sd_from_vector3(), mDescEditor, mLandmarkAssetID, mPosGlobal, mPosRegion, mSnapshotCtrl, LLUUID::null, LLHTTPClient::post(), LLTextureCtrl::setImageAssetID(), LLTextEditor::setText(), and to_region_handle().
Referenced by LLFloaterURLDisplay::displayParcelInfo(), and LLPreviewLandmark::draw().
void LLPanelPlace::processParcelInfoReply | ( | LLMessageSystem * | msg, | |
void ** | ||||
) | [static] |
Definition at line 203 of file llpanelplace.cpp.
References LLViewerRegion::accessToString(), DFQ_FOR_SALE, LLMessageSystem::getF32(), LLMessageSystem::getS32(), LLMessageSystem::getString(), LLMessageSystem::getU8(), LLMessageSystem::getUUID(), llformat(), llround(), MAX_STRING, LLUUID::notNull(), REGION_WIDTH_UNITS, S32, sAllPanels, LLUIString::setArg(), SIM_ACCESS_MATURE, and SIM_ACCESS_PG.
Referenced by register_viewer_callbacks().
void LLPanelPlace::onClickTeleport | ( | void * | data | ) | [static, protected] |
Definition at line 369 of file llpanelplace.cpp.
References LLFloater::close(), gAgent, gFloaterWorldMap, LLView::setVisible(), LLAgent::teleportViaLandmark(), LLAgent::teleportViaLocation(), LLFloaterWorldMap::trackLandmark(), and LLFloaterWorldMap::trackLocation().
Referenced by postBuild().
void LLPanelPlace::onClickMap | ( | void * | data | ) | [static, protected] |
Definition at line 395 of file llpanelplace.cpp.
References gFloaterWorldMap, NULL, LLFloaterWorldMap::show(), LLFloaterWorldMap::trackLocation(), and TRUE.
Referenced by postBuild().
void LLPanelPlace::onClickAuction | ( | void * | data | ) | [static, protected] |
Definition at line 417 of file llpanelplace.cpp.
References LLViewerWindow::alertXml(), callbackAuctionWebPage(), and gViewerWindow.
Referenced by postBuild().
void LLPanelPlace::callbackAuctionWebPage | ( | S32 | option, | |
void * | data | |||
) | [static, protected] |
Definition at line 427 of file llpanelplace.cpp.
References AUCTION_URL, llendl, llinfos, and LLWeb::loadURL().
Referenced by onClickAuction().
LLUUID LLPanelPlace::mParcelID [protected] |
Definition at line 87 of file llpanelplace.h.
Referenced by resetLocation(), sendParcelInfoRequest(), and setParcelID().
LLUUID LLPanelPlace::mRequestedID [protected] |
Definition at line 88 of file llpanelplace.h.
Referenced by resetLocation(), and sendParcelInfoRequest().
LLUUID LLPanelPlace::mRegionID [protected] |
LLUUID LLPanelPlace::mLandmarkAssetID [protected] |
Definition at line 90 of file llpanelplace.h.
Referenced by displayParcelInfo(), and resetLocation().
LLVector3d LLPanelPlace::mPosGlobal [protected] |
Definition at line 93 of file llpanelplace.h.
Referenced by displayParcelInfo(), and resetLocation().
LLVector3 LLPanelPlace::mPosRegion [protected] |
Definition at line 95 of file llpanelplace.h.
Referenced by displayParcelInfo(), and resetLocation().
S32 LLPanelPlace::mAuctionID [protected] |
LLTextureCtrl* LLPanelPlace::mSnapshotCtrl [protected] |
Definition at line 99 of file llpanelplace.h.
Referenced by displayParcelInfo(), postBuild(), and setSnapshot().
LLTextBox* LLPanelPlace::mNameEditor [protected] |
Definition at line 101 of file llpanelplace.h.
Referenced by displayItemInfo(), postBuild(), and resetLocation().
LLTextEditor* LLPanelPlace::mDescEditor [protected] |
Definition at line 102 of file llpanelplace.h.
Referenced by displayItemInfo(), displayParcelInfo(), postBuild(), resetLocation(), and setErrorStatus().
LLTextBox* LLPanelPlace::mInfoEditor [protected] |
LLTextBox* LLPanelPlace::mLocationEditor [protected] |
Definition at line 104 of file llpanelplace.h.
Referenced by postBuild(), resetLocation(), and setLocationString().
LLButton* LLPanelPlace::mTeleportBtn [protected] |
LLButton* LLPanelPlace::mMapBtn [protected] |
LLButton* LLPanelPlace::mAuctionBtn [protected] |
std::list< LLPanelPlace * > LLPanelPlace::sAllPanels [static, protected] |
Definition at line 112 of file llpanelplace.h.
Referenced by LLPanelPlace(), processParcelInfoReply(), and ~LLPanelPlace().