LLPanelClassified Class Reference

#include <llpanelclassified.h>

Inheritance diagram for LLPanelClassified:

Inheritance graph
[legend]
Collaboration diagram for LLPanelClassified:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 LLPanelClassified (BOOL in_finder, bool from_search=false)
 ~LLPanelClassified ()
void reset ()
BOOL postBuild ()
void draw ()
void refresh ()
void apply ()
BOOL canClose ()
void initNewClassified ()
void setClassifiedID (const LLUUID &id)
void setClickThroughText (const std::string &text)
BOOL titleIsValid ()
void markForServerRequest ()
std::string getClassifiedName ()
const LLUUIDgetClassifiedID () const
void sendClassifiedInfoRequest ()
void sendClassifiedInfoUpdate ()
void confirmPublish (S32 option)

Static Public Member Functions

static void setClickThrough (const LLUUID &classified_id, S32 teleport, S32 map, S32 profile, bool from_new_table)
static void processClassifiedInfoReply (LLMessageSystem *msg, void **)
static void callbackGotPriceForListing (S32 option, LLString text, void *data)
static void callbackConfirmPublish (S32 option, void *data)

Protected Types

typedef std::list< LLPanelClassified * > panel_list_t

Protected Member Functions

void sendClassifiedClickMessage (const char *type)
BOOL checkDirty ()

Static Protected Member Functions

static void saveCallback (S32 option, void *data)
static void onClickUpdate (void *data)
static void onClickTeleport (void *data)
static void onClickMap (void *data)
static void onClickProfile (void *data)
static void onClickSet (void *data)
static void onFocusReceived (LLUICtrl *ctrl, void *data)
static void onCommitAny (LLUICtrl *ctrl, void *data)

Protected Attributes

BOOL mInFinder
bool mFromSearch
BOOL mDirty
bool mForceClose
bool mLocationChanged
LLUUID mClassifiedID
LLUUID mRequestedID
LLUUID mCreatorID
LLUUID mParcelID
S32 mPriceForListing
S32 mTeleportClicksOld
S32 mMapClicksOld
S32 mProfileClicksOld
S32 mTeleportClicksNew
S32 mMapClicksNew
S32 mProfileClicksNew
BOOL mDataRequested
BOOL mPaidFor
LLString mSimName
LLVector3d mPosGlobal
LLTextureCtrlmSnapshotCtrl
LLLineEditormNameEditor
LLTextEditormDescEditor
LLLineEditormLocationEditor
LLComboBoxmCategoryCombo
LLCheckBoxCtrlmMatureCheck
LLCheckBoxCtrlmAutoRenewCheck
LLButtonmUpdateBtn
LLButtonmTeleportBtn
LLButtonmMapBtn
LLButtonmProfileBtn
LLTextBoxmInfoText
LLButtonmSetBtn
LLTextBoxmClickThroughText
LLRect mSnapshotSize

Static Protected Attributes

static panel_list_t sAllPanels

Detailed Description

Definition at line 57 of file llpanelclassified.h.


Member Typedef Documentation

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

Definition at line 169 of file llpanelclassified.h.


Constructor & Destructor Documentation

LLPanelClassified::LLPanelClassified ( BOOL  in_finder,
bool  from_search = false 
)

Definition at line 105 of file llpanelclassified.cpp.

References LLDispatcher::addHandler(), LLUICtrlFactory::buildPanel(), gGenericDispatcher, gUICtrlFactory, mInFinder, sAllPanels, and sClassifiedClickThrough.

LLPanelClassified::~LLPanelClassified (  ) 

Definition at line 158 of file llpanelclassified.cpp.

References sAllPanels.


Member Function Documentation

void LLPanelClassified::apply (  ) 

Definition at line 284 of file llpanelclassified.cpp.

References checkDirty(), mPaidFor, and sendClassifiedInfoUpdate().

void LLPanelClassified::callbackConfirmPublish ( S32  option,
void data 
) [static]

Definition at line 825 of file llpanelclassified.cpp.

Referenced by callbackGotPriceForListing(), and onClickUpdate().

void LLPanelClassified::callbackGotPriceForListing ( S32  option,
LLString  text,
void data 
) [static]

Definition at line 759 of file llpanelclassified.cpp.

References LLViewerWindow::alertXml(), callbackConfirmPublish(), gViewerWindow, llformat(), MINIMUM_PRICE_FOR_LISTING, NULL, and S32.

Referenced by onClickUpdate().

BOOL LLPanelClassified::canClose (  ) 

Definition at line 330 of file llpanelclassified.cpp.

References checkDirty(), FALSE, LLLineEditor::getText(), mForceClose, mNameEditor, saveCallback(), LLAlertDialog::showXml(), and TRUE.

BOOL LLPanelClassified::checkDirty (  )  [protected]

Definition at line 902 of file llpanelclassified.cpp.

References FALSE, LLCheckBoxCtrl::isDirty(), LLComboBox::isDirty(), LLTextEditor::isDirty(), LLLineEditor::isDirty(), LLTextureCtrl::isDirty(), mAutoRenewCheck, mCategoryCombo, mDescEditor, mDirty, mLocationChanged, mLocationEditor, mMatureCheck, mNameEditor, mSnapshotCtrl, and TRUE.

Referenced by apply(), canClose(), and refresh().

void LLPanelClassified::confirmPublish ( S32  option  ) 

Definition at line 789 of file llpanelclassified.cpp.

References LLView::getParent(), LLLineEditor::getText(), mAutoRenewCheck, mCategoryCombo, mDescEditor, mInFinder, mLocationChanged, mLocationEditor, mMatureCheck, mNameEditor, mSnapshotCtrl, LLCheckBoxCtrl::resetDirty(), LLComboBox::resetDirty(), LLUICtrl::resetDirty(), LLLineEditor::resetDirty(), LLTextureCtrl::resetDirty(), sendClassifiedInfoUpdate(), and tab.

void LLPanelClassified::draw (  )  [virtual]

Reimplemented from LLPanel.

Definition at line 643 of file llpanelclassified.cpp.

References LLPanel::draw(), LLView::getVisible(), and refresh().

const LLUUID& LLPanelClassified::getClassifiedID (  )  const [inline]

Definition at line 94 of file llpanelclassified.h.

References mClassifiedID.

Referenced by LLPanelAvatarClassified::callbackDelete(), and LLPanelDirBrowser::newClassified().

std::string LLPanelClassified::getClassifiedName (  ) 

Definition at line 431 of file llpanelclassified.cpp.

References LLLineEditor::getText(), and mNameEditor.

Referenced by LLPanelAvatarClassified::callbackNew(), LLPanelDirBrowser::newClassified(), and LLPanelAvatarClassified::onClickDelete().

void LLPanelClassified::initNewClassified (  ) 

Definition at line 342 of file llpanelclassified.cpp.

References LLPanel::childGetText(), FALSE, gAgent, LLUUID::generate(), LLViewerParcelMgr::getAgentParcel(), LLAgent::getID(), LLParcel::getName(), LLAgent::getPositionGlobal(), LLParcel::getSnapshotID(), gParcelMgr, 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::markForServerRequest (  ) 

Definition at line 425 of file llpanelclassified.cpp.

References FALSE, and mDataRequested.

Referenced by LLPanelAvatarClassified::processAvatarClassifiedReply().

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

Definition at line 847 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 857 of file llpanelclassified.cpp.

References LLFloaterAvatarInfo::showFromDirectory().

Referenced by postBuild().

void LLPanelClassified::onClickSet ( void data  )  [static, protected]

Definition at line 874 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::onClickTeleport ( void data  )  [static, protected]

Definition at line 832 of file llpanelclassified.cpp.

References gAgent, gFloaterWorldMap, LLAgent::teleportViaLocation(), and LLFloaterWorldMap::trackLocation().

Referenced by postBuild().

void LLPanelClassified::onClickUpdate ( void data  )  [static, protected]

Definition at line 733 of file llpanelclassified.cpp.

References callbackConfirmPublish(), callbackGotPriceForListing(), NULL, and LLFloaterPriceForListing::show().

Referenced by postBuild().

void LLPanelClassified::onCommitAny ( LLUICtrl ctrl,
void data 
) [static, protected]

Definition at line 918 of file llpanelclassified.cpp.

Referenced by onClickSet(), onFocusReceived(), and postBuild().

void LLPanelClassified::onFocusReceived ( LLUICtrl ctrl,
void data 
) [static, protected]

Definition at line 928 of file llpanelclassified.cpp.

References onCommitAny().

BOOL LLPanelClassified::postBuild (  )  [virtual]

Reimplemented from LLPanel.

Definition at line 182 of file llpanelclassified.cpp.

References LLComboBox::add(), ADD_BOTTOM, DB_PARCEL_NAME_LEN, FALSE, gAgent, LLUICtrlFactory::getButtonByName(), LLUICtrlFactory::getCheckBoxByName(), LLUICtrlFactory::getComboBoxByName(), LLUICtrlFactory::getLineEditorByName(), LLView::getRect(), LLUICtrlFactory::getTextBoxByName(), LLUICtrlFactory::getTextEditorByName(), LLViewerUICtrlFactory::getTexturePickerByName(), LLAgent::isTeen(), mAutoRenewCheck, mCategoryCombo, mClickThroughText, mDescEditor, mInFinder, mLocationEditor, mMapBtn, mMatureCheck, mNameEditor, mProfileBtn, mSetBtn, mSnapshotCtrl, mSnapshotSize, mTeleportBtn, mUpdateBtn, onClickMap(), onClickProfile(), onClickSet(), onClickTeleport(), onClickUpdate(), onCommitAny(), LLUICtrl::onFocusReceived(), LLLineEditor::prevalidateASCII(), LLClassifiedInfo::sCategories, LLUICtrl::setCallbackUserData(), LLButton::setClickedCallback(), LLUICtrl::setCommitCallback(), LLTextEditor::setCommitOnFocusLost(), LLLineEditor::setCommitOnFocusLost(), LLComboBox::setCurrentByIndex(), LLUICtrl::setFocusReceivedCallback(), LLLineEditor::setMaxTextLength(), LLLineEditor::setPrevalidate(), LLTextEditor::setTabToNextField(), LLView::setVisible(), and TRUE.

void LLPanelClassified::processClassifiedInfoReply ( LLMessageSystem msg,
void **   
) [static]

Definition at line 517 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, LLVector3d::mdV, REGION_WIDTH_UNITS, S32, sAllPanels, tut::tm(), TRUE, VX, VY, and VZ.

Referenced by register_viewer_callbacks().

void LLPanelClassified::refresh (  )  [virtual]

Reimplemented from LLPanel.

Definition at line 654 of file llpanelclassified.cpp.

References checkDirty(), FALSE, gAgent, LLAgent::getID(), LLAgent::isGodlike(), mAutoRenewCheck, mCategoryCombo, mClickThroughText, mCreatorID, mDataRequested, mDescEditor, mInFinder, mMatureCheck, mNameEditor, mSetBtn, mSnapshotCtrl, mSnapshotSize, mUpdateBtn, sendClassifiedInfoRequest(), LLView::setEnabled(), LLCheckBoxCtrl::setEnabled(), LLComboBox::setEnabled(), LLTextEditor::setEnabled(), LLLineEditor::setEnabled(), LLTextureCtrl::setEnabled(), LLView::setRect(), and LLView::setVisible().

Referenced by draw().

void LLPanelClassified::reset (  ) 

Definition at line 164 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().

void LLPanelClassified::saveCallback ( S32  option,
void data 
) [static, protected]

Definition at line 296 of file llpanelclassified.cpp.

References app_abort_quit(), f, LLView::getParent(), LLView::getWidgetType(), and WIDGET_TYPE_FLOATER.

Referenced by canClose().

void LLPanelClassified::sendClassifiedClickMessage ( const char *  type  )  [protected]

Definition at line 935 of file llpanelclassified.cpp.

References LLUUID::asString(), gAgent, LLViewerRegion::getCapability(), LLAgent::getRegion(), llendl, llinfos, mClassifiedID, mFromSearch, LLHTTPClient::post(), and send_generic_message().

void LLPanelClassified::sendClassifiedInfoRequest (  ) 

Definition at line 437 of file llpanelclassified.cpp.

References _PREHASH_AgentData, _PREHASH_AgentID, _PREHASH_ClassifiedID, _PREHASH_ClassifiedInfoRequest, _PREHASH_Data, _PREHASH_SessionID, LLMessageSystem::addUUIDFast(), gAgent, LLViewerRegion::getCapability(), 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 469 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(), mAutoRenewCheck, mCategoryCombo, mClassifiedID, mDescEditor, mDirty, mMatureCheck, mNameEditor, mParcelID, mPosGlobal, mPriceForListing, mSnapshotCtrl, LLMessageSystem::newMessageFast(), LLMessageSystem::nextBlockFast(), pack_classified_flags(), and LLAgent::sendReliableMessage().

Referenced by apply(), and confirmPublish().

void LLPanelClassified::setClassifiedID ( const LLUUID id  ) 

Definition at line 374 of file llpanelclassified.cpp.

References mClassifiedID.

Referenced by LLFloaterClassifiedInfo::displayClassifiedInfo(), LLPanelAvatarClassified::processAvatarClassifiedReply(), and LLPanelDirBrowser::showDetailPanel().

void LLPanelClassified::setClickThrough ( const LLUUID classified_id,
S32  teleport,
S32  map,
S32  profile,
bool  from_new_table 
) [static]

Definition at line 380 of file llpanelclassified.cpp.

References llformat(), and sAllPanels.

Referenced by LLDispatchClassifiedClickThrough::operator()(), and LLClassifiedStatsResponder::result().

void LLPanelClassified::setClickThroughText ( const std::string &  text  ) 

BOOL LLPanelClassified::titleIsValid (  ) 

Definition at line 265 of file llpanelclassified.cpp.

References LLViewerWindow::alertXml(), FALSE, LLLineEditor::getText(), gViewerWindow, mNameEditor, and TRUE.

Referenced by LLPanelAvatarClassified::titleIsValid().


Member Data Documentation

LLCheckBoxCtrl* LLPanelClassified::mAutoRenewCheck [protected]

Definition at line 157 of file llpanelclassified.h.

Referenced by checkDirty(), confirmPublish(), postBuild(), refresh(), and sendClassifiedInfoUpdate().

LLComboBox* LLPanelClassified::mCategoryCombo [protected]

Definition at line 155 of file llpanelclassified.h.

Referenced by checkDirty(), confirmPublish(), initNewClassified(), postBuild(), refresh(), and sendClassifiedInfoUpdate().

LLUUID LLPanelClassified::mClassifiedID [protected]

Definition at line 126 of file llpanelclassified.h.

Referenced by getClassifiedID(), initNewClassified(), reset(), sendClassifiedClickMessage(), sendClassifiedInfoRequest(), sendClassifiedInfoUpdate(), and setClassifiedID().

LLTextBox* LLPanelClassified::mClickThroughText [protected]

Definition at line 166 of file llpanelclassified.h.

Referenced by postBuild(), and refresh().

LLUUID LLPanelClassified::mCreatorID [protected]

Definition at line 128 of file llpanelclassified.h.

Referenced by initNewClassified(), refresh(), and reset().

BOOL LLPanelClassified::mDataRequested [protected]

Definition at line 141 of file llpanelclassified.h.

Referenced by markForServerRequest(), refresh(), reset(), and sendClassifiedInfoRequest().

LLTextEditor* LLPanelClassified::mDescEditor [protected]

Definition at line 153 of file llpanelclassified.h.

Referenced by checkDirty(), confirmPublish(), postBuild(), refresh(), and sendClassifiedInfoUpdate().

BOOL LLPanelClassified::mDirty [protected]

Definition at line 123 of file llpanelclassified.h.

Referenced by checkDirty(), reset(), and sendClassifiedInfoUpdate().

bool LLPanelClassified::mForceClose [protected]

Definition at line 124 of file llpanelclassified.h.

Referenced by canClose().

bool LLPanelClassified::mFromSearch [protected]

Definition at line 122 of file llpanelclassified.h.

Referenced by sendClassifiedClickMessage().

BOOL LLPanelClassified::mInFinder [protected]

Definition at line 121 of file llpanelclassified.h.

Referenced by confirmPublish(), LLPanelClassified(), postBuild(), and refresh().

LLTextBox* LLPanelClassified::mInfoText [protected]

Definition at line 164 of file llpanelclassified.h.

bool LLPanelClassified::mLocationChanged [protected]

Definition at line 125 of file llpanelclassified.h.

Referenced by checkDirty(), and confirmPublish().

LLLineEditor* LLPanelClassified::mLocationEditor [protected]

Definition at line 154 of file llpanelclassified.h.

Referenced by checkDirty(), confirmPublish(), and postBuild().

LLButton* LLPanelClassified::mMapBtn [protected]

Definition at line 161 of file llpanelclassified.h.

Referenced by postBuild().

S32 LLPanelClassified::mMapClicksNew [protected]

Definition at line 137 of file llpanelclassified.h.

S32 LLPanelClassified::mMapClicksOld [protected]

Definition at line 134 of file llpanelclassified.h.

LLCheckBoxCtrl* LLPanelClassified::mMatureCheck [protected]

Definition at line 156 of file llpanelclassified.h.

Referenced by checkDirty(), confirmPublish(), postBuild(), refresh(), and sendClassifiedInfoUpdate().

LLLineEditor* LLPanelClassified::mNameEditor [protected]

Definition at line 152 of file llpanelclassified.h.

Referenced by canClose(), checkDirty(), confirmPublish(), getClassifiedName(), initNewClassified(), postBuild(), refresh(), sendClassifiedInfoUpdate(), and titleIsValid().

BOOL LLPanelClassified::mPaidFor [protected]

Definition at line 145 of file llpanelclassified.h.

Referenced by apply(), initNewClassified(), and reset().

LLUUID LLPanelClassified::mParcelID [protected]

Definition at line 129 of file llpanelclassified.h.

Referenced by reset(), and sendClassifiedInfoUpdate().

LLVector3d LLPanelClassified::mPosGlobal [protected]

Definition at line 148 of file llpanelclassified.h.

Referenced by initNewClassified(), reset(), and sendClassifiedInfoUpdate().

S32 LLPanelClassified::mPriceForListing [protected]

Definition at line 130 of file llpanelclassified.h.

Referenced by sendClassifiedInfoUpdate().

LLButton* LLPanelClassified::mProfileBtn [protected]

Definition at line 162 of file llpanelclassified.h.

Referenced by postBuild().

S32 LLPanelClassified::mProfileClicksNew [protected]

Definition at line 138 of file llpanelclassified.h.

S32 LLPanelClassified::mProfileClicksOld [protected]

Definition at line 135 of file llpanelclassified.h.

LLUUID LLPanelClassified::mRequestedID [protected]

Definition at line 127 of file llpanelclassified.h.

Referenced by sendClassifiedInfoRequest().

LLButton* LLPanelClassified::mSetBtn [protected]

Definition at line 165 of file llpanelclassified.h.

Referenced by postBuild(), and refresh().

LLString LLPanelClassified::mSimName [protected]

Definition at line 147 of file llpanelclassified.h.

LLTextureCtrl* LLPanelClassified::mSnapshotCtrl [protected]

Definition at line 151 of file llpanelclassified.h.

Referenced by checkDirty(), confirmPublish(), initNewClassified(), postBuild(), refresh(), and sendClassifiedInfoUpdate().

LLRect LLPanelClassified::mSnapshotSize [protected]

Definition at line 168 of file llpanelclassified.h.

Referenced by postBuild(), and refresh().

LLButton* LLPanelClassified::mTeleportBtn [protected]

Definition at line 160 of file llpanelclassified.h.

Referenced by postBuild().

S32 LLPanelClassified::mTeleportClicksNew [protected]

Definition at line 136 of file llpanelclassified.h.

S32 LLPanelClassified::mTeleportClicksOld [protected]

Definition at line 133 of file llpanelclassified.h.

LLButton* LLPanelClassified::mUpdateBtn [protected]

Definition at line 159 of file llpanelclassified.h.

Referenced by initNewClassified(), postBuild(), and refresh().

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

Definition at line 170 of file llpanelclassified.h.

Referenced by LLPanelClassified(), processClassifiedInfoReply(), setClickThrough(), and ~LLPanelClassified().


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