LLPanelPlace Class Reference

#include <llpanelplace.h>

Inheritance diagram for LLPanelPlace:

Inheritance graph
[legend]
Collaboration diagram for LLPanelPlace:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 LLPanelPlace ()
 ~LLPanelPlace ()
BOOL postBuild ()
void resetLocation ()
void setParcelID (const LLUUID &parcel_id)
void displayItemInfo (const LLInventoryItem *pItem)
void setRegionID (const LLUUID &region_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 &region_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
LLTextureCtrlmSnapshotCtrl
LLTextBoxmNameEditor
LLTextEditormDescEditor
LLTextBoxmInfoEditor
LLTextBoxmLocationEditor
LLButtonmTeleportBtn
LLButtonmMapBtn
LLButtonmAuctionBtn

Static Protected Attributes

static panel_list_t sAllPanels

Detailed Description

Definition at line 48 of file llpanelplace.h.


Member Typedef Documentation

typedef std::list<LLPanelPlace*> LLPanelPlace::panel_list_t [protected]

Definition at line 111 of file llpanelplace.h.


Constructor & Destructor Documentation

LLPanelPlace::LLPanelPlace (  ) 

Definition at line 63 of file llpanelplace.cpp.

References sAllPanels.

LLPanelPlace::~LLPanelPlace (  ) 

Definition at line 77 of file llpanelplace.cpp.

References sAllPanels.


Member Function Documentation

void LLPanelPlace::callbackAuctionWebPage ( S32  option,
void data 
) [static, protected]

Definition at line 422 of file llpanelplace.cpp.

References AUCTION_URL, llendl, llinfos, and LLWeb::loadURL().

Referenced by onClickAuction().

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::displayParcelInfo ( const LLVector3 pos_region,
const LLUUID landmark_asset_id,
const LLUUID region_id,
const LLVector3d pos_global 
)

Definition at line 331 of file llpanelplace.cpp.

References LLPanel::childGetText(), gAgent, LLViewerRegion::getCapability(), LLAgent::getRegion(), 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::onClickAuction ( void data  )  [static, protected]

Definition at line 412 of file llpanelplace.cpp.

References LLViewerWindow::alertXml(), callbackAuctionWebPage(), and gViewerWindow.

Referenced by postBuild().

void LLPanelPlace::onClickMap ( void data  )  [static, protected]

Definition at line 390 of file llpanelplace.cpp.

References gFloaterWorldMap, NULL, LLFloaterWorldMap::show(), LLFloaterWorldMap::trackLocation(), and TRUE.

Referenced by postBuild().

void LLPanelPlace::onClickTeleport ( void data  )  [static, protected]

Definition at line 364 of file llpanelplace.cpp.

References gAgent, LLView::getWidgetType(), gFloaterWorldMap, LLView::setVisible(), LLAgent::teleportViaLandmark(), LLAgent::teleportViaLocation(), LLFloaterWorldMap::trackLandmark(), LLFloaterWorldMap::trackLocation(), and WIDGET_TYPE_FLOATER.

Referenced by postBuild().

BOOL LLPanelPlace::postBuild (  )  [virtual]

Reimplemented from LLPanel.

Definition at line 83 of file llpanelplace.cpp.

References FALSE, LLUICtrlFactory::getButtonByName(), LLUICtrlFactory::getTextBoxByName(), LLUICtrlFactory::getTextEditorByName(), LLViewerUICtrlFactory::getTexturePickerByName(), 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::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::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::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::setErrorStatus ( U32  status,
const std::string &  reason 
)

Definition at line 187 of file llpanelplace.cpp.

References LLPanel::childGetText(), mDescEditor, and LLTextEditor::setText().

Referenced by LLRemoteParcelRequestResponder::error().

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::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::setRegionID ( const LLUUID region_id  )  [inline]

Definition at line 65 of file llpanelplace.h.

References mRegionID.

void LLPanelPlace::setSnapshot ( const LLUUID snapshot_id  ) 

Definition at line 159 of file llpanelplace.cpp.

References mSnapshotCtrl, and LLTextureCtrl::setImageAssetID().

Referenced by LLFloaterURLDisplay::setSnapshotDisplay().


Member Data Documentation

LLButton* LLPanelPlace::mAuctionBtn [protected]

Definition at line 109 of file llpanelplace.h.

Referenced by postBuild().

S32 LLPanelPlace::mAuctionID [protected]

Definition at line 97 of file llpanelplace.h.

Referenced by 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]

Definition at line 103 of file llpanelplace.h.

Referenced by postBuild(), and resetLocation().

LLUUID LLPanelPlace::mLandmarkAssetID [protected]

Definition at line 90 of file llpanelplace.h.

Referenced by displayParcelInfo(), and resetLocation().

LLTextBox* LLPanelPlace::mLocationEditor [protected]

Definition at line 104 of file llpanelplace.h.

Referenced by postBuild(), resetLocation(), and setLocationString().

LLButton* LLPanelPlace::mMapBtn [protected]

Definition at line 107 of file llpanelplace.h.

Referenced by postBuild().

LLTextBox* LLPanelPlace::mNameEditor [protected]

Definition at line 101 of file llpanelplace.h.

Referenced by displayItemInfo(), postBuild(), and resetLocation().

LLUUID LLPanelPlace::mParcelID [protected]

Definition at line 87 of file llpanelplace.h.

Referenced by resetLocation(), sendParcelInfoRequest(), and setParcelID().

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

LLUUID LLPanelPlace::mRegionID [protected]

Definition at line 89 of file llpanelplace.h.

Referenced by resetLocation(), and setRegionID().

LLUUID LLPanelPlace::mRequestedID [protected]

Definition at line 88 of file llpanelplace.h.

Referenced by resetLocation(), and sendParcelInfoRequest().

LLTextureCtrl* LLPanelPlace::mSnapshotCtrl [protected]

Definition at line 99 of file llpanelplace.h.

Referenced by displayParcelInfo(), postBuild(), and setSnapshot().

LLButton* LLPanelPlace::mTeleportBtn [protected]

Definition at line 106 of file llpanelplace.h.

Referenced by postBuild().

std::list< LLPanelPlace * > LLPanelPlace::sAllPanels [static, protected]

Definition at line 112 of file llpanelplace.h.

Referenced by LLPanelPlace(), processParcelInfoReply(), and ~LLPanelPlace().


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