#include <llpanelclassified.h>
Definition at line 57 of file llpanelclassified.h.
typedef std::list<LLPanelClassified*> LLPanelClassified::panel_list_t [protected] |
Definition at line 175 of file llpanelclassified.h.
LLPanelClassified::LLPanelClassified | ( | bool | in_finder, | |
bool | from_search | |||
) |
Definition at line 150 of file llpanelclassified.cpp.
References LLDispatcher::addHandler(), LLUICtrlFactory::buildPanel(), LLSingleton< LLUICtrlFactory >::getInstance(), gGenericDispatcher, mInFinder, and sAllPanels.
LLPanelClassified::~LLPanelClassified | ( | ) |
void LLPanelClassified::reset | ( | ) |
Definition at line 209 of file llpanelclassified.cpp.
References LLPanel::clearCtrls(), LLVector3d::clearVec(), FALSE, mClassifiedID, mCreatorID, mDataRequested, mDirty, mPaidFor, mParcelID, mPosGlobal, LLUUID::setNull(), and TRUE.
Referenced by LLPanelDirBrowser::newClassified().
BOOL LLPanelClassified::postBuild | ( | void | ) | [virtual] |
Reimplemented from LLPanel.
Definition at line 227 of file llpanelclassified.cpp.
References LLComboBox::add(), ADD_BOTTOM, DB_PARCEL_NAME_LEN, FALSE, focusReceived(), gAgent, LLView::getRect(), LLAgent::isTeen(), mAutoRenewCheck, mCategoryCombo, mClickThroughText, mDescEditor, mInFinder, mLocationEditor, mMapBtn, mMatureCombo, mNameEditor, mProfileBtn, mSetBtn, mSnapshotCtrl, mSnapshotSize, mTeleportBtn, mUpdateBtn, NON_MATURE_CONTENT, onClickMap(), onClickProfile(), onClickSet(), onClickTeleport(), onClickUpdate(), onCommitAny(), LLLineEditor::prevalidateASCII(), LLClassifiedInfo::sCategories, LLUICtrl::setCallbackUserData(), LLButton::setClickedCallback(), LLUICtrl::setCommitCallback(), LLTextEditor::setCommitOnFocusLost(), LLLineEditor::setCommitOnFocusLost(), LLComboBox::setCurrentByIndex(), LLFocusableElement::setFocusReceivedCallback(), LLLineEditor::setMaxTextLength(), LLLineEditor::setPrevalidate(), LLTextEditor::setTabsToNextField(), LLView::setVisible(), and TRUE.
void LLPanelClassified::draw | ( | void | ) | [virtual] |
Reimplemented from LLPanel.
Definition at line 694 of file llpanelclassified.cpp.
References LLPanel::draw(), and refresh().
void LLPanelClassified::refresh | ( | ) | [virtual] |
Reimplemented from LLPanel.
Definition at line 702 of file llpanelclassified.cpp.
References checkDirty(), FALSE, gAgent, LLRectBase< Type >::getHeight(), LLAgent::getID(), LLRectBase< Type >::getWidth(), LLAgent::isGodlike(), mAutoRenewCheck, LLRectBase< Type >::mBottom, mCategoryCombo, mClickThroughText, mCreatorID, mDataRequested, mDescEditor, mInFinder, LLRectBase< Type >::mLeft, mMatureCombo, mNameEditor, mSetBtn, mSnapshotCtrl, mSnapshotSize, mUpdateBtn, LLView::reshape(), sendClassifiedInfoRequest(), LLCheckBoxCtrl::setEnabled(), LLView::setEnabled(), LLComboBox::setEnabled(), LLTextEditor::setEnabled(), LLLineEditor::setEnabled(), LLTextureCtrl::setEnabled(), LLView::setOrigin(), and LLView::setVisible().
Referenced by draw().
void LLPanelClassified::apply | ( | ) |
Definition at line 331 of file llpanelclassified.cpp.
References checkDirty(), mPaidFor, and sendClassifiedInfoUpdate().
Referenced by LLPanelAvatarClassified::apply().
BOOL LLPanelClassified::canClose | ( | ) |
Definition at line 377 of file llpanelclassified.cpp.
References checkDirty(), FALSE, LLLineEditor::getText(), mForceClose, mNameEditor, saveCallback(), LLAlertDialog::showXml(), and TRUE.
Referenced by LLPanelAvatarClassified::canClose().
void LLPanelClassified::initNewClassified | ( | ) |
Definition at line 389 of file llpanelclassified.cpp.
References FALSE, gAgent, LLUUID::generate(), LLViewerParcelMgr::getAgentParcel(), LLAgent::getID(), LLSingleton< LLViewerParcelMgr >::getInstance(), LLParcel::getName(), LLAgent::getPositionGlobal(), LLParcel::getSnapshotID(), LLPanel::getString(), mCategoryCombo, mClassifiedID, mCreatorID, mNameEditor, mPaidFor, mPosGlobal, mSnapshotCtrl, mUpdateBtn, LLComboBox::setCurrentByIndex(), LLTextureCtrl::setImageAssetID(), LLButton::setLabel(), and LLLineEditor::setText().
Referenced by LLPanelAvatarClassified::callbackNew(), and LLPanelDirBrowser::newClassified().
void LLPanelClassified::setClassifiedID | ( | const LLUUID & | id | ) |
Definition at line 415 of file llpanelclassified.cpp.
References mClassifiedID.
Referenced by LLFloaterClassifiedInfo::displayClassifiedInfo(), LLPanelAvatarClassified::processAvatarClassifiedReply(), and LLPanelDirBrowser::showDetailPanel().
void LLPanelClassified::setClickThroughText | ( | const std::string & | text | ) |
void LLPanelClassified::setClickThrough | ( | const LLUUID & | classified_id, | |
S32 | teleport, | |||
S32 | map, | |||
S32 | profile, | |||
bool | from_new_table | |||
) | [static] |
Definition at line 421 of file llpanelclassified.cpp.
References llformat(), and sAllPanels.
Referenced by LLDispatchClassifiedClickThrough::operator()(), and LLClassifiedStatsResponder::result().
BOOL LLPanelClassified::titleIsValid | ( | ) |
Definition at line 312 of file llpanelclassified.cpp.
References LLViewerWindow::alertXml(), FALSE, LLLineEditor::getText(), gViewerWindow, mNameEditor, and TRUE.
Referenced by LLPanelAvatarClassified::titleIsValid().
void LLPanelClassified::markForServerRequest | ( | ) |
Definition at line 466 of file llpanelclassified.cpp.
References FALSE, and mDataRequested.
Referenced by LLPanelAvatarClassified::processAvatarClassifiedReply().
std::string LLPanelClassified::getClassifiedName | ( | ) |
Definition at line 472 of file llpanelclassified.cpp.
References LLLineEditor::getText(), and mNameEditor.
Referenced by LLPanelAvatarClassified::callbackNew(), and LLPanelDirBrowser::newClassified().
const LLUUID& LLPanelClassified::getClassifiedID | ( | ) | const [inline] |
Definition at line 94 of file llpanelclassified.h.
References mClassifiedID.
Referenced by LLPanelDirBrowser::newClassified().
void LLPanelClassified::sendClassifiedInfoRequest | ( | ) |
Definition at line 478 of file llpanelclassified.cpp.
References _PREHASH_AgentData, _PREHASH_AgentID, _PREHASH_ClassifiedID, _PREHASH_ClassifiedInfoRequest, _PREHASH_Data, _PREHASH_SessionID, LLMessageSystem::addUUIDFast(), gAgent, LLViewerRegion::getCapability(), LLPanel::getHandle(), LLAgent::getID(), LLAgent::getRegion(), LLAgent::getSessionID(), gMessageSystem, llendl, llinfos, mClassifiedID, mDataRequested, mRequestedID, LLMessageSystem::newMessageFast(), LLMessageSystem::nextBlockFast(), LLHTTPClient::post(), LLAgent::sendReliableMessage(), and TRUE.
Referenced by LLFloaterClassifiedInfo::displayClassifiedInfo(), refresh(), and LLPanelDirBrowser::showDetailPanel().
void LLPanelClassified::sendClassifiedInfoUpdate | ( | ) |
Definition at line 510 of file llpanelclassified.cpp.
References _PREHASH_AgentData, _PREHASH_AgentID, _PREHASH_Category, _PREHASH_ClassifiedFlags, _PREHASH_ClassifiedID, _PREHASH_ClassifiedInfoUpdate, _PREHASH_Data, _PREHASH_Desc, _PREHASH_Name, _PREHASH_ParcelID, _PREHASH_ParentEstate, _PREHASH_PosGlobal, _PREHASH_SessionID, _PREHASH_SnapshotID, LLMessageSystem::addS32(), LLMessageSystem::addStringFast(), LLMessageSystem::addU32Fast(), LLMessageSystem::addU8Fast(), LLMessageSystem::addUUIDFast(), LLMessageSystem::addVector3dFast(), FALSE, gAgent, LLUUID::generate(), LLCheckBoxCtrl::get(), LLComboBox::getCurrentIndex(), LLAgent::getID(), LLTextureCtrl::getImageAssetID(), LLAgent::getSessionID(), LLTextEditor::getText(), LLLineEditor::getText(), gMessageSystem, LLUUID::isNull(), MATURE_CONTENT, mAutoRenewCheck, mCategoryCombo, mClassifiedID, mDescEditor, mDirty, mMatureCombo, mNameEditor, mParcelID, mPosGlobal, mPriceForListing, mSnapshotCtrl, LLMessageSystem::newMessageFast(), LLMessageSystem::nextBlockFast(), pack_classified_flags(), and LLAgent::sendReliableMessage().
Referenced by apply(), and confirmPublish().
void LLPanelClassified::resetDirty | ( | ) | [virtual] |
Reimplemented from LLUICtrl.
Definition at line 876 of file llpanelclassified.cpp.
References mAutoRenewCheck, mCategoryCombo, mDescEditor, mLocationChanged, mLocationEditor, mMatureCombo, mNameEditor, mSnapshotCtrl, LLCheckBoxCtrl::resetDirty(), LLComboBox::resetDirty(), LLUICtrl::resetDirty(), LLLineEditor::resetDirty(), and LLTextureCtrl::resetDirty().
Referenced by confirmPublish().
void LLPanelClassified::processClassifiedInfoReply | ( | LLMessageSystem * | msg, | |
void ** | ||||
) | [static] |
Definition at line 556 of file llpanelclassified.cpp.
References _PREHASH_AgentData, _PREHASH_AgentID, _PREHASH_Category, _PREHASH_ClassifiedFlags, _PREHASH_ClassifiedID, _PREHASH_CreationDate, _PREHASH_CreatorID, _PREHASH_Data, _PREHASH_Desc, _PREHASH_Name, _PREHASH_ParcelID, _PREHASH_ParcelName, _PREHASH_PosGlobal, _PREHASH_SimName, _PREHASH_SnapshotID, DB_PARCEL_NAME_SIZE, DB_PICK_DESC_SIZE, gAgent, LLAgent::getID(), LLMessageSystem::getS32(), LLMessageSystem::getStringFast(), LLMessageSystem::getU32(), LLMessageSystem::getU32Fast(), LLMessageSystem::getU8Fast(), LLMessageSystem::getUUIDFast(), LLMessageSystem::getVector3dFast(), is_cf_auto_renew(), is_cf_mature(), lldebugs, llendl, llformat(), llround(), llwarns, MATURE_CONTENT, LLVector3d::mdV, NON_MATURE_CONTENT, REGION_WIDTH_UNITS, S32, sAllPanels, tut::tm(), TRUE, VX, VY, and VZ.
Referenced by register_viewer_callbacks().
void LLPanelClassified::callbackConfirmMature | ( | S32 | option, | |
void * | data | |||
) | [static] |
Definition at line 803 of file llpanelclassified.cpp.
Referenced by onClickUpdate().
void LLPanelClassified::confirmMature | ( | S32 | option | ) |
Definition at line 810 of file llpanelclassified.cpp.
References gotMature(), MATURE_CONTENT, mMatureCombo, NON_MATURE_CONTENT, and LLComboBox::setCurrentByIndex().
void LLPanelClassified::gotMature | ( | ) |
Definition at line 833 of file llpanelclassified.cpp.
References callbackConfirmPublish(), callbackGotPriceForListing(), mPaidFor, and LLFloaterPriceForListing::show().
Referenced by confirmMature().
void LLPanelClassified::callbackGotPriceForListing | ( | S32 | option, | |
LLString | text, | |||
void * | data | |||
) | [static] |
Definition at line 848 of file llpanelclassified.cpp.
References LLViewerWindow::alertXml(), callbackConfirmPublish(), gViewerWindow, llformat(), MINIMUM_PRICE_FOR_LISTING, NULL, and S32.
Referenced by gotMature().
void LLPanelClassified::callbackConfirmPublish | ( | S32 | option, | |
void * | data | |||
) | [static] |
Definition at line 922 of file llpanelclassified.cpp.
Referenced by callbackGotPriceForListing(), and gotMature().
void LLPanelClassified::confirmPublish | ( | S32 | option | ) |
Definition at line 897 of file llpanelclassified.cpp.
References LLView::getParent(), LLLineEditor::getText(), mInFinder, mNameEditor, resetDirty(), sendClassifiedInfoUpdate(), LLTabContainer::setCurrentTabName(), and tab.
void LLPanelClassified::sendClassifiedClickMessage | ( | const char * | type | ) |
Definition at line 1032 of file llpanelclassified.cpp.
References gAgent, LLViewerRegion::getCapability(), LLAgent::getRegion(), LLVector3d::getValue(), llendl, llinfos, mClassifiedID, mFromSearch, mParcelID, mPosGlobal, mSimName, and LLHTTPClient::post().
void LLPanelClassified::saveCallback | ( | S32 | option, | |
void * | data | |||
) | [static, protected] |
Definition at line 343 of file llpanelclassified.cpp.
References LLAppViewer::abortQuit(), LLFloater::close(), LLView::getParent(), and LLAppViewer::instance().
Referenced by canClose().
void LLPanelClassified::onClickUpdate | ( | void * | data | ) | [static, protected] |
Definition at line 777 of file llpanelclassified.cpp.
References LLViewerWindow::alertXml(), callbackConfirmMature(), DECLINE_TO_STATE, gViewerWindow, and NULL.
Referenced by postBuild().
void LLPanelClassified::onClickTeleport | ( | void * | data | ) | [static, protected] |
Definition at line 929 of file llpanelclassified.cpp.
References gAgent, gFloaterWorldMap, LLAgent::teleportViaLocation(), and LLFloaterWorldMap::trackLocation().
Referenced by postBuild().
void LLPanelClassified::onClickMap | ( | void * | data | ) | [static, protected] |
Definition at line 944 of file llpanelclassified.cpp.
References gFloaterWorldMap, NULL, LLFloaterWorldMap::show(), LLFloaterWorldMap::trackLocation(), and TRUE.
Referenced by postBuild().
void LLPanelClassified::onClickProfile | ( | void * | data | ) | [static, protected] |
Definition at line 954 of file llpanelclassified.cpp.
References LLFloaterAvatarInfo::showFromDirectory().
Referenced by postBuild().
void LLPanelClassified::onClickSet | ( | void * | data | ) | [static, protected] |
Definition at line 971 of file llpanelclassified.cpp.
References gAgent, LLAgent::getPositionGlobal(), llformat(), llround(), NULL, onCommitAny(), REGION_WIDTH_UNITS, S32, VX, VY, and VZ.
Referenced by postBuild().
void LLPanelClassified::focusReceived | ( | LLFocusableElement * | ctrl, | |
void * | data | |||
) | [static, protected] |
Definition at line 1025 of file llpanelclassified.cpp.
References onCommitAny().
Referenced by postBuild().
void LLPanelClassified::onCommitAny | ( | LLUICtrl * | ctrl, | |
void * | data | |||
) | [static, protected] |
Definition at line 1015 of file llpanelclassified.cpp.
Referenced by focusReceived(), onClickSet(), and postBuild().
BOOL LLPanelClassified::checkDirty | ( | ) | [protected] |
Definition at line 999 of file llpanelclassified.cpp.
References FALSE, LLCheckBoxCtrl::isDirty(), LLComboBox::isDirty(), LLTextEditor::isDirty(), LLLineEditor::isDirty(), LLTextureCtrl::isDirty(), mAutoRenewCheck, mCategoryCombo, mDescEditor, mDirty, mLocationChanged, mLocationEditor, mMatureCombo, mNameEditor, mSnapshotCtrl, and TRUE.
Referenced by apply(), canClose(), and refresh().
bool LLPanelClassified::mInFinder [protected] |
Definition at line 127 of file llpanelclassified.h.
Referenced by confirmPublish(), LLPanelClassified(), postBuild(), and refresh().
bool LLPanelClassified::mFromSearch [protected] |
BOOL LLPanelClassified::mDirty [protected] |
Definition at line 129 of file llpanelclassified.h.
Referenced by checkDirty(), reset(), and sendClassifiedInfoUpdate().
bool LLPanelClassified::mForceClose [protected] |
bool LLPanelClassified::mLocationChanged [protected] |
LLUUID LLPanelClassified::mClassifiedID [protected] |
Definition at line 132 of file llpanelclassified.h.
Referenced by getClassifiedID(), initNewClassified(), reset(), sendClassifiedClickMessage(), sendClassifiedInfoRequest(), sendClassifiedInfoUpdate(), and setClassifiedID().
LLUUID LLPanelClassified::mRequestedID [protected] |
LLUUID LLPanelClassified::mCreatorID [protected] |
Definition at line 134 of file llpanelclassified.h.
Referenced by initNewClassified(), refresh(), and reset().
LLUUID LLPanelClassified::mParcelID [protected] |
Definition at line 135 of file llpanelclassified.h.
Referenced by reset(), sendClassifiedClickMessage(), and sendClassifiedInfoUpdate().
S32 LLPanelClassified::mPriceForListing [protected] |
S32 LLPanelClassified::mTeleportClicksOld [protected] |
Definition at line 139 of file llpanelclassified.h.
S32 LLPanelClassified::mMapClicksOld [protected] |
Definition at line 140 of file llpanelclassified.h.
S32 LLPanelClassified::mProfileClicksOld [protected] |
Definition at line 141 of file llpanelclassified.h.
S32 LLPanelClassified::mTeleportClicksNew [protected] |
Definition at line 142 of file llpanelclassified.h.
S32 LLPanelClassified::mMapClicksNew [protected] |
Definition at line 143 of file llpanelclassified.h.
S32 LLPanelClassified::mProfileClicksNew [protected] |
Definition at line 144 of file llpanelclassified.h.
BOOL LLPanelClassified::mDataRequested [protected] |
Definition at line 147 of file llpanelclassified.h.
Referenced by markForServerRequest(), refresh(), reset(), and sendClassifiedInfoRequest().
BOOL LLPanelClassified::mPaidFor [protected] |
Definition at line 151 of file llpanelclassified.h.
Referenced by apply(), gotMature(), initNewClassified(), and reset().
LLString LLPanelClassified::mSimName [protected] |
LLVector3d LLPanelClassified::mPosGlobal [protected] |
Definition at line 154 of file llpanelclassified.h.
Referenced by initNewClassified(), reset(), sendClassifiedClickMessage(), and sendClassifiedInfoUpdate().
LLTextureCtrl* LLPanelClassified::mSnapshotCtrl [protected] |
Definition at line 157 of file llpanelclassified.h.
Referenced by checkDirty(), initNewClassified(), postBuild(), refresh(), resetDirty(), and sendClassifiedInfoUpdate().
LLLineEditor* LLPanelClassified::mNameEditor [protected] |
Definition at line 158 of file llpanelclassified.h.
Referenced by canClose(), checkDirty(), confirmPublish(), getClassifiedName(), initNewClassified(), postBuild(), refresh(), resetDirty(), sendClassifiedInfoUpdate(), and titleIsValid().
LLTextEditor* LLPanelClassified::mDescEditor [protected] |
Definition at line 159 of file llpanelclassified.h.
Referenced by checkDirty(), postBuild(), refresh(), resetDirty(), and sendClassifiedInfoUpdate().
LLLineEditor* LLPanelClassified::mLocationEditor [protected] |
Definition at line 160 of file llpanelclassified.h.
Referenced by checkDirty(), postBuild(), and resetDirty().
LLComboBox* LLPanelClassified::mCategoryCombo [protected] |
Definition at line 161 of file llpanelclassified.h.
Referenced by checkDirty(), initNewClassified(), postBuild(), refresh(), resetDirty(), and sendClassifiedInfoUpdate().
LLComboBox* LLPanelClassified::mMatureCombo [protected] |
Definition at line 162 of file llpanelclassified.h.
Referenced by checkDirty(), confirmMature(), postBuild(), refresh(), resetDirty(), and sendClassifiedInfoUpdate().
LLCheckBoxCtrl* LLPanelClassified::mAutoRenewCheck [protected] |
Definition at line 163 of file llpanelclassified.h.
Referenced by checkDirty(), postBuild(), refresh(), resetDirty(), and sendClassifiedInfoUpdate().
LLButton* LLPanelClassified::mUpdateBtn [protected] |
Definition at line 165 of file llpanelclassified.h.
Referenced by initNewClassified(), postBuild(), and refresh().
LLButton* LLPanelClassified::mTeleportBtn [protected] |
LLButton* LLPanelClassified::mMapBtn [protected] |
LLButton* LLPanelClassified::mProfileBtn [protected] |
LLTextBox* LLPanelClassified::mInfoText [protected] |
Definition at line 170 of file llpanelclassified.h.
LLButton* LLPanelClassified::mSetBtn [protected] |
LLTextBox* LLPanelClassified::mClickThroughText [protected] |
LLRect LLPanelClassified::mSnapshotSize [protected] |
std::list< LLPanelClassified * > LLPanelClassified::sAllPanels [static, protected] |
Definition at line 176 of file llpanelclassified.h.
Referenced by LLPanelClassified(), processClassifiedInfoReply(), setClickThrough(), and ~LLPanelClassified().