#include <llfloaterregioninfo.h>
Public Types | |
enum | e_asset_status { ASSET_ERROR, ASSET_UNLOADED, ASSET_LOADING, ASSET_LOADED } |
typedef enum LLPanelEstateCovenant::e_asset_status | EAssetStatus |
Public Member Functions | |
LLPanelEstateCovenant () | |
~LLPanelEstateCovenant () | |
virtual BOOL | postBuild () |
virtual void | updateChild (LLUICtrl *child_ctrl) |
virtual bool | refreshFromRegion (LLViewerRegion *region) |
virtual bool | estateUpdate (LLMessageSystem *msg) |
BOOL | handleDragAndDrop (S32 x, S32 y, MASK mask, BOOL drop, EDragAndDropType cargo_type, void *cargo_data, EAcceptance *accept, LLString &tooltip_msg) |
void | sendChangeCovenantID (const LLUUID &asset_id) |
void | loadInvItem (LLInventoryItem *itemp) |
const LLUUID & | getCovenantID () const |
void | setCovenantID (const LLUUID &id) |
const std::string & | getEstateName () const |
void | setEstateName (const std::string &name) |
const std::string & | getOwnerName () const |
void | setOwnerName (const std::string &name) |
void | setCovenantTextEditor (const std::string &text) |
Static Public Member Functions | |
static void | confirmChangeCovenantCallback (S32 option, void *userdata) |
static void | resetCovenantID (void *userdata) |
static void | confirmResetCovenantCallback (S32 option, void *userdata) |
static void | onLoadComplete (LLVFS *vfs, const LLUUID &asset_uuid, LLAssetType::EType type, void *user_data, S32 status, LLExtStat ext_status) |
static void | updateCovenantText (const std::string &string, const LLUUID &asset_id) |
static void | updateEstateName (const std::string &name) |
static void | updateLastModified (const std::string &text) |
static void | updateEstateOwnerName (const std::string &name) |
Protected Member Functions | |
virtual BOOL | sendUpdate () |
Protected Attributes | |
LLTextBox * | mEstateNameText |
LLTextBox * | mEstateOwnerText |
LLTextBox * | mLastModifiedText |
LLUUID | mCovenantID |
LLViewerTextEditor * | mEditor |
EAssetStatus | mAssetStatus |
Definition at line 364 of file llfloaterregioninfo.h.
Definition at line 405 of file llfloaterregioninfo.h.
LLPanelEstateCovenant::LLPanelEstateCovenant | ( | ) |
Definition at line 2602 of file llfloaterregioninfo.cpp.
LLPanelEstateCovenant::~LLPanelEstateCovenant | ( | ) | [inline] |
Definition at line 368 of file llfloaterregioninfo.h.
BOOL LLPanelEstateCovenant::postBuild | ( | void | ) | [virtual] |
Reimplemented from LLPanelRegionInfo.
Definition at line 2661 of file llfloaterregioninfo.cpp.
References LLAgent::canManageEstate(), gAgent, LLPanelRegionInfo::initHelpBtn(), mEditor, mEstateNameText, mEstateOwnerText, mLastModifiedText, NULL, LLPanelRegionInfo::postBuild(), resetCovenantID(), LLButton::setClickedCallback(), LLView::setEnabled(), LLTextEditor::setHandleEditKeysDirectly(), and TRUE.
void LLPanelEstateCovenant::updateChild | ( | LLUICtrl * | child_ctrl | ) | [virtual] |
bool LLPanelEstateCovenant::refreshFromRegion | ( | LLViewerRegion * | region | ) | [virtual] |
Reimplemented from LLPanelRegionInfo.
Definition at line 2608 of file llfloaterregioninfo.cpp.
References _PREHASH_AgentData, _PREHASH_AgentID, _PREHASH_SessionID, LLMessageSystem::addUUIDFast(), gAgent, LLViewerRegion::getHost(), LLAgent::getID(), LLViewerRegion::getName(), LLViewerRegion::getRegionFlags(), LLAgent::getSessionID(), LLPanel::getString(), gMessageSystem, LLMessageSystem::newMessage(), LLMessageSystem::nextBlockFast(), LLPanelRegionInfo::refreshFromRegion(), REGION_FLAGS_ALLOW_PARCEL_CHANGES, REGION_FLAGS_BLOCK_LAND_RESELL, LLMessageSystem::sendReliable(), and LLTextBox::setText().
bool LLPanelEstateCovenant::estateUpdate | ( | LLMessageSystem * | msg | ) | [virtual] |
BOOL LLPanelEstateCovenant::handleDragAndDrop | ( | S32 | x, | |
S32 | y, | |||
MASK | mask, | |||
BOOL | drop, | |||
EDragAndDropType | cargo_type, | |||
void * | cargo_data, | |||
EAcceptance * | accept, | |||
LLString & | tooltip_msg | |||
) | [virtual] |
Reimplemented from LLView.
Definition at line 2682 of file llfloaterregioninfo.cpp.
References ACCEPT_NO, ACCEPT_YES_COPY_SINGLE, LLViewerWindow::alertXml(), LLAgent::canManageEstate(), confirmChangeCovenantCallback(), DAD_NOTECARD, gAgent, gViewerWindow, and TRUE.
void LLPanelEstateCovenant::confirmChangeCovenantCallback | ( | S32 | option, | |
void * | userdata | |||
) | [static] |
Definition at line 2716 of file llfloaterregioninfo.cpp.
References LLFloaterRegionInfo::getPanelCovenant().
Referenced by handleDragAndDrop().
void LLPanelEstateCovenant::resetCovenantID | ( | void * | userdata | ) | [static] |
Definition at line 2734 of file llfloaterregioninfo.cpp.
References LLViewerWindow::alertXml(), confirmResetCovenantCallback(), gViewerWindow, and NULL.
Referenced by postBuild().
void LLPanelEstateCovenant::confirmResetCovenantCallback | ( | S32 | option, | |
void * | userdata | |||
) | [static] |
Definition at line 2742 of file llfloaterregioninfo.cpp.
References LLFloaterRegionInfo::getPanelCovenant(), and NULL.
Referenced by resetCovenantID().
void LLPanelEstateCovenant::sendChangeCovenantID | ( | const LLUUID & | asset_id | ) |
Definition at line 2857 of file llfloaterregioninfo.cpp.
References _PREHASH_AgentData, _PREHASH_AgentID, _PREHASH_SessionID, _PREHASH_TransactionID, LLMessageSystem::addString(), LLMessageSystem::addUUID(), LLMessageSystem::addUUIDFast(), gAgent, getCovenantID(), LLAgent::getID(), LLFloaterRegionInfo::getLastInvoice(), LLAgent::getSessionID(), gMessageSystem, LLMessageSystem::newMessage(), LLMessageSystem::nextBlock(), LLMessageSystem::nextBlockFast(), LLUUID::null, LLAgent::sendReliableMessage(), and setCovenantID().
Referenced by loadInvItem(), and onLoadComplete().
void LLPanelEstateCovenant::loadInvItem | ( | LLInventoryItem * | itemp | ) |
Definition at line 2757 of file llfloaterregioninfo.cpp.
References ASSET_LOADED, ASSET_LOADING, gAgent, gAssetStorage, LLInventoryItem::getAssetUUID(), LLAgent::getID(), LLAssetStorage::getInvItemAsset(), LLPermissions::getOwner(), LLInventoryItem::getPermissions(), LLAgent::getRegionHost(), LLAgent::getSessionID(), LLInventoryObject::getType(), LLInventoryObject::getUUID(), mAssetStatus, LLUUID::null, onLoadComplete(), sendChangeCovenantID(), setCovenantTextEditor(), and TRUE.
void LLPanelEstateCovenant::onLoadComplete | ( | LLVFS * | vfs, | |
const LLUUID & | asset_uuid, | |||
LLAssetType::EType | type, | |||
void * | user_data, | |||
S32 | status, | |||
LLExtStat | ext_status | |||
) | [static] |
Definition at line 2784 of file llfloaterregioninfo.cpp.
References LLViewerWindow::alertXml(), ASSET_LOADED, LLSingleton< LLViewerStats >::getInstance(), LLVFile::getSize(), gViewerWindow, LLViewerTextEditor::importBuffer(), LLViewerStats::incStat(), LL_ERR_ASSET_REQUEST_NOT_IN_DATABASE, LL_ERR_FILE_EMPTY, LL_ERR_INSUFFICIENT_PERMISSIONS, llendl, llerrs, llinfos, llwarns, mAssetStatus, mEditor, NULL, LLVFile::read(), LLVFile::READ, S32, sendChangeCovenantID(), setCovenantID(), and LLViewerStats::ST_DOWNLOAD_FAILED.
Referenced by loadInvItem().
void LLPanelEstateCovenant::updateCovenantText | ( | const std::string & | string, | |
const LLUUID & | asset_id | |||
) | [static] |
Definition at line 2897 of file llfloaterregioninfo.cpp.
References LLFloaterRegionInfo::getPanelCovenant(), mEditor, setCovenantID(), and LLTextEditor::setText().
Referenced by onCovenantLoadComplete(), and process_covenant_reply().
void LLPanelEstateCovenant::updateEstateName | ( | const std::string & | name | ) | [static] |
Definition at line 2908 of file llfloaterregioninfo.cpp.
References LLFloaterRegionInfo::getPanelCovenant(), mEstateNameText, and LLTextBox::setText().
Referenced by process_covenant_reply().
void LLPanelEstateCovenant::updateLastModified | ( | const std::string & | text | ) | [static] |
Definition at line 2918 of file llfloaterregioninfo.cpp.
References LLFloaterRegionInfo::getPanelCovenant(), mLastModifiedText, and LLTextBox::setText().
Referenced by process_covenant_reply().
void LLPanelEstateCovenant::updateEstateOwnerName | ( | const std::string & | name | ) | [static] |
Definition at line 2928 of file llfloaterregioninfo.cpp.
References LLFloaterRegionInfo::getPanelCovenant(), mEstateOwnerText, and LLTextBox::setText().
Referenced by callbackCacheEstateOwnerName().
const LLUUID& LLPanelEstateCovenant::getCovenantID | ( | ) | const [inline] |
Definition at line 397 of file llfloaterregioninfo.h.
References mCovenantID.
Referenced by sendChangeCovenantID().
void LLPanelEstateCovenant::setCovenantID | ( | const LLUUID & | id | ) | [inline] |
Definition at line 398 of file llfloaterregioninfo.h.
References mCovenantID.
Referenced by onLoadComplete(), sendChangeCovenantID(), and updateCovenantText().
const std::string & LLPanelEstateCovenant::getEstateName | ( | ) | const |
Definition at line 2886 of file llfloaterregioninfo.cpp.
References LLTextBox::getText(), and mEstateNameText.
void LLPanelEstateCovenant::setEstateName | ( | const std::string & | name | ) |
Definition at line 2891 of file llfloaterregioninfo.cpp.
References mEstateNameText, and LLTextBox::setText().
const std::string & LLPanelEstateCovenant::getOwnerName | ( | ) | const |
Definition at line 2937 of file llfloaterregioninfo.cpp.
References LLTextBox::getText(), and mEstateOwnerText.
void LLPanelEstateCovenant::setOwnerName | ( | const std::string & | name | ) |
Definition at line 2942 of file llfloaterregioninfo.cpp.
References mEstateOwnerText, and LLTextBox::setText().
void LLPanelEstateCovenant::setCovenantTextEditor | ( | const std::string & | text | ) |
Definition at line 2947 of file llfloaterregioninfo.cpp.
References mEditor, and LLTextEditor::setText().
Referenced by loadInvItem().
BOOL LLPanelEstateCovenant::sendUpdate | ( | ) | [protected, virtual] |
Reimplemented from LLPanelRegionInfo.
Definition at line 2881 of file llfloaterregioninfo.cpp.
References TRUE.
LLTextBox* LLPanelEstateCovenant::mEstateNameText [protected] |
Definition at line 415 of file llfloaterregioninfo.h.
Referenced by getEstateName(), postBuild(), setEstateName(), and updateEstateName().
LLTextBox* LLPanelEstateCovenant::mEstateOwnerText [protected] |
Definition at line 416 of file llfloaterregioninfo.h.
Referenced by getOwnerName(), postBuild(), setOwnerName(), and updateEstateOwnerName().
LLTextBox* LLPanelEstateCovenant::mLastModifiedText [protected] |
Definition at line 417 of file llfloaterregioninfo.h.
Referenced by postBuild(), and updateLastModified().
LLUUID LLPanelEstateCovenant::mCovenantID [protected] |
Definition at line 419 of file llfloaterregioninfo.h.
Referenced by getCovenantID(), and setCovenantID().
LLViewerTextEditor* LLPanelEstateCovenant::mEditor [protected] |
Definition at line 420 of file llfloaterregioninfo.h.
Referenced by onLoadComplete(), postBuild(), setCovenantTextEditor(), and updateCovenantText().
EAssetStatus LLPanelEstateCovenant::mAssetStatus [protected] |
Definition at line 421 of file llfloaterregioninfo.h.
Referenced by loadInvItem(), and onLoadComplete().