LLPanelDirBrowser Class Reference

#include <llpaneldirbrowser.h>

Inheritance diagram for LLPanelDirBrowser:

Inheritance graph
[legend]
Collaboration diagram for LLPanelDirBrowser:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 LLPanelDirBrowser (const std::string &name, LLFloaterDirectory *floater)
virtual ~LLPanelDirBrowser ()
virtual BOOL postBuild ()
virtual void draw ()
virtual void onVisibilityChange (BOOL curVisibilityIn)
virtual void prevPage ()
virtual void nextPage ()
void resetSearchStart ()
virtual void performQuery ()
const LLUUIDgetSearchID () const
void selectByUUID (const LLUUID &id)
void selectEventByID (S32 event_id)
U32 getSelectedEventID () const
void getSelectedInfo (LLUUID *id, S32 *type)
void showDetailPanel (S32 type, LLSD item_id)
void setupNewSearch ()
void addHelpText (const char *text)
void newClassified ()
void showEvent (const U32 event_id)
void renameClassified (const LLUUID &classified_id, const char *name)

Static Public Member Functions

static void onClickSearchCore (void *userdata)
static void sendDirFindQuery (LLMessageSystem *msg, const LLUUID &query_id, const LLString &text, U32 flags, S32 query_start)
static void onClickNext (void *data)
static void onClickPrev (void *data)
static void onCommitList (LLUICtrl *ctrl, void *data)
static void processDirPeopleReply (LLMessageSystem *msg, void **)
static void processDirPlacesReply (LLMessageSystem *msg, void **)
static void processDirEventsReply (LLMessageSystem *msg, void **)
static void processDirGroupsReply (LLMessageSystem *msg, void **)
static void processDirClassifiedReply (LLMessageSystem *msg, void **)
static void processDirPopularReply (LLMessageSystem *msg, void **)
static void processDirLandReply (LLMessageSystem *msg, void **)

Protected Member Functions

void updateResultCount ()
void addClassified (LLCtrlListInterface *list, const LLUUID &classified_id, const char *name, const U32 creation_date, const S32 price_for_listing)
LLSD createLandSale (const LLUUID &parcel_id, BOOL is_auction, BOOL is_for_sale, const LLString &name, S32 *type)
S32 showNextButton (S32 rows)

Static Protected Member Functions

static void onKeystrokeName (LLLineEditor *line, void *data)

Protected Attributes

LLUUID mSearchID
LLUUID mWantSelectID
LLString mCurrentSortColumn
BOOL mCurrentSortAscending
S32 mSearchStart
S32 mResultsPerPage
S32 mResultsReceived
U32 mMinSearchChars
LLSD mResultsContents
BOOL mHaveSearchResults
BOOL mDidAutoSelect
LLFrameTimer mLastResultTimer
LLFloaterDirectorymFloaterDirectory

Detailed Description

Definition at line 48 of file llpaneldirbrowser.h.


Constructor & Destructor Documentation

LLPanelDirBrowser::LLPanelDirBrowser ( const std::string &  name,
LLFloaterDirectory floater 
)

Definition at line 79 of file llpaneldirbrowser.cpp.

LLPanelDirBrowser::~LLPanelDirBrowser (  )  [virtual]

Definition at line 111 of file llpaneldirbrowser.cpp.

References gDirBrowserInstances, and mSearchID.


Member Function Documentation

void LLPanelDirBrowser::addClassified ( LLCtrlListInterface list,
const LLUUID classified_id,
const char *  name,
const U32  creation_date,
const S32  price_for_listing 
) [protected]

Definition at line 1041 of file llpaneldirbrowser.cpp.

References CLASSIFIED_CODE, LLControlGroup::getString(), gViewerArt, list, llformat(), LLUUID::set(), and type.

Referenced by newClassified().

void LLPanelDirBrowser::addHelpText ( const char *  text  ) 

Definition at line 1218 of file llpaneldirbrowser.cpp.

References LLPanel::childDisable(), LLPanel::childGetListInterface(), and list.

LLSD LLPanelDirBrowser::createLandSale ( const LLUUID parcel_id,
BOOL  is_auction,
BOOL  is_for_sale,
const LLString name,
S32 type 
) [protected]

Definition at line 1065 of file llpaneldirbrowser.cpp.

References AUCTION_CODE, FOR_SALE_CODE, LLControlGroup::getString(), gViewerArt, PLACE_CODE, and LLUUID::set().

void LLPanelDirBrowser::draw (  )  [virtual]

Reimplemented from LLPanel.

Reimplemented in LLPanelDirClassified, LLPanelDirEvents, LLPanelDirFindAll, LLPanelDirFindAllOld, LLPanelDirGroups, LLPanelDirPlaces, and LLPanelDirPopular.

Definition at line 120 of file llpaneldirbrowser.cpp.

References LLPanel::childGetListInterface(), LLPanel::childHasFocus(), LLPanel::childSetFocus(), LLPanel::draw(), LLFrameTimer::getElapsedTimeF32(), LLView::getVisible(), list, mDidAutoSelect, mLastResultTimer, NULL, onCommitList(), and TRUE.

Referenced by LLPanelDirPopular::draw(), LLPanelDirPlaces::draw(), LLPanelDirGroups::draw(), LLPanelDirFindAllOld::draw(), LLPanelDirFindAll::draw(), LLPanelDirEvents::draw(), and LLPanelDirClassified::draw().

const LLUUID& LLPanelDirBrowser::getSearchID (  )  const [inline]

Definition at line 68 of file llpaneldirbrowser.h.

References mSearchID.

Referenced by LLPanelDirLand::performQuery(), LLPanelDirPlaces::queryCore(), and LLPanelDirPopular::requestPopular().

U32 LLPanelDirBrowser::getSelectedEventID (  )  const

Definition at line 264 of file llpaneldirbrowser.cpp.

References LLPanelEvent::getEventID(), mFloaterDirectory, and LLFloaterDirectory::mPanelEventp.

void LLPanelDirBrowser::getSelectedInfo ( LLUUID id,
S32 type 
)

Definition at line 276 of file llpaneldirbrowser.cpp.

References LLSD::asString(), LLSD::asUUID(), LLPanel::childGetListInterface(), LLPanel::childGetValue(), list, and mResultsContents.

void LLPanelDirBrowser::newClassified (  ) 

Definition at line 1107 of file llpaneldirbrowser.cpp.

References addClassified(), LLPanel::childGetListInterface(), LLPanelClassified::getClassifiedID(), LLPanelClassified::getClassifiedName(), LLPanelClassified::initNewClassified(), list, mFloaterDirectory, LLFloaterDirectory::mPanelClassifiedp, LLPanelClassified::reset(), LLView::setVisible(), and TRUE.

void LLPanelDirBrowser::nextPage (  )  [virtual]

Definition at line 151 of file llpaneldirbrowser.cpp.

References LLPanel::childShow(), mResultsPerPage, mSearchStart, and performQuery().

void LLPanelDirBrowser::onClickNext ( void data  )  [static]

Definition at line 225 of file llpaneldirbrowser.cpp.

Referenced by postBuild().

void LLPanelDirBrowser::onClickPrev ( void data  )  [static]

Definition at line 217 of file llpaneldirbrowser.cpp.

Referenced by postBuild().

void LLPanelDirBrowser::onClickSearchCore ( void userdata  )  [static]

Definition at line 1187 of file llpaneldirbrowser.cpp.

Referenced by LLPanelDirEvents::onCommitMature(), LLPanelDirPlaces::postBuild(), LLPanelDirPeople::postBuild(), LLPanelDirLand::postBuild(), LLPanelDirGroups::postBuild(), LLPanelDirEvents::postBuild(), and LLPanelDirClassified::postBuild().

void LLPanelDirBrowser::onCommitList ( LLUICtrl ctrl,
void data 
) [static]

Definition at line 291 of file llpaneldirbrowser.cpp.

References EVENT_CODE, FALSE, list, S32, and type.

Referenced by draw(), onVisibilityChange(), postBuild(), and selectByUUID().

void LLPanelDirBrowser::onKeystrokeName ( LLLineEditor line,
void data 
) [static, protected]

Reimplemented in LLPanelDirFindAllOld, LLPanelDirPeople, and LLPanelDirPlaces.

Definition at line 1228 of file llpaneldirbrowser.cpp.

References LLLineEditor::getLength(), and S32.

Referenced by LLPanelDirPlaces::postBuild(), LLPanelDirPeople::postBuild(), LLPanelDirGroups::postBuild(), and LLPanelDirFindAllOld::postBuild().

void LLPanelDirBrowser::onVisibilityChange ( BOOL  curVisibilityIn  )  [virtual]

Reimplemented from LLView.

Definition at line 1244 of file llpaneldirbrowser.cpp.

References NULL, onCommitList(), and LLView::onVisibilityChange().

virtual void LLPanelDirBrowser::performQuery (  )  [inline, virtual]

Reimplemented in LLPanelDirClassified, LLPanelDirEvents, LLPanelDirGroups, LLPanelDirLand, LLPanelDirPeople, and LLPanelDirPlaces.

Definition at line 66 of file llpaneldirbrowser.h.

Referenced by nextPage(), and prevPage().

BOOL LLPanelDirBrowser::postBuild (  )  [virtual]

Reimplemented from LLPanel.

Reimplemented in LLPanelDirClassified, LLPanelDirEvents, LLPanelDirFindAll, LLPanelDirFindAllOld, LLPanelDirGroups, LLPanelDirLand, LLPanelDirPeople, LLPanelDirPlaces, and LLPanelDirPopular.

Definition at line 98 of file llpaneldirbrowser.cpp.

References LLPanel::childHide(), LLPanel::childSetAction(), LLPanel::childSetCommitCallback(), onClickNext(), onClickPrev(), onCommitList(), and TRUE.

Referenced by LLPanelDirPopular::postBuild(), LLPanelDirPlaces::postBuild(), LLPanelDirPeople::postBuild(), LLPanelDirLand::postBuild(), LLPanelDirGroups::postBuild(), LLPanelDirFindAllOld::postBuild(), LLPanelDirFindAll::postBuild(), LLPanelDirEvents::postBuild(), and LLPanelDirClassified::postBuild().

void LLPanelDirBrowser::prevPage (  )  [virtual]

Definition at line 161 of file llpaneldirbrowser.cpp.

References LLPanel::childSetVisible(), mResultsPerPage, mSearchStart, and performQuery().

void LLPanelDirBrowser::processDirClassifiedReply ( LLMessageSystem msg,
void **   
) [static]

Definition at line 844 of file llpaneldirbrowser.cpp.

References _PREHASH_QueryReplies, CLASSIFIED_CODE, DB_PARCEL_NAME_SIZE, FALSE, gAgent, gDirBrowserInstances, LLAgent::getID(), LLMessageSystem::getNumberOfBlocksFast(), LLMessageSystem::getS32(), LLMessageSystem::getString(), LLMessageSystem::getU32(), LLMessageSystem::getUUID(), i, list, llendl, llwarns, LLCtrlSelectionInterface::OP_DELETE, S32, and TRUE.

Referenced by register_viewer_callbacks().

void LLPanelDirBrowser::processDirEventsReply ( LLMessageSystem msg,
void **   
) [static]

Definition at line 643 of file llpaneldirbrowser.cpp.

References ADD_SORTED, EVENT_CODE, EVENT_FLAG_MATURE, FALSE, gDirBrowserInstances, LLControlGroup::getBOOL(), LLMessageSystem::getNumberOfBlocks(), LLControlGroup::getString(), LLMessageSystem::getString(), LLMessageSystem::getU32(), LLMessageSystem::getUUID(), gSavedSettings, gViewerArt, i, LLUUID::isNull(), list, llendl, llformat(), llwarns, MAX_STRING, LLCtrlSelectionInterface::OP_DELETE, S32, LLUUID::set(), and TRUE.

Referenced by register_viewer_callbacks().

void LLPanelDirBrowser::processDirGroupsReply ( LLMessageSystem msg,
void **   
) [static]

Definition at line 760 of file llpaneldirbrowser.cpp.

References _PREHASH_GroupID, _PREHASH_GroupName, _PREHASH_Members, _PREHASH_QueryData, _PREHASH_QueryID, _PREHASH_QueryReplies, _PREHASH_SearchOrder, LLUUID::asString(), DB_GROUP_NAME_BUF_SIZE, FALSE, gDirBrowserInstances, LLMessageSystem::getF32Fast(), LLMessageSystem::getNumberOfBlocksFast(), LLMessageSystem::getS32Fast(), LLControlGroup::getString(), LLMessageSystem::getStringFast(), LLMessageSystem::getUUIDFast(), GROUP_CODE, gViewerArt, i, LLUUID::isNull(), list, LLCtrlSelectionInterface::OP_DELETE, S32, LLUUID::set(), and TRUE.

Referenced by register_viewer_callbacks().

void LLPanelDirBrowser::processDirLandReply ( LLMessageSystem msg,
void **   
) [static]

Definition at line 913 of file llpaneldirbrowser.cpp.

References LLUUID::asString(), count, FALSE, gDirBrowserInstances, LLMessageSystem::getBOOL(), LLControlGroup::getBOOL(), LLMessageSystem::getNumberOfBlocks(), LLMessageSystem::getS32(), LLMessageSystem::getString(), LLMessageSystem::getUUID(), gSavedSettings, i, LLUUID::isNull(), list, llformat(), MAX_STRING, mHaveSearchResults, LLCtrlSelectionInterface::OP_DELETE, S32, TRUE, and type.

Referenced by register_viewer_callbacks().

void LLPanelDirBrowser::processDirPeopleReply ( LLMessageSystem msg,
void **   
) [static]

Definition at line 403 of file llpaneldirbrowser.cpp.

References _PREHASH_AgentID, _PREHASH_FirstName, _PREHASH_LastName, _PREHASH_QueryData, _PREHASH_QueryID, _PREHASH_QueryReplies, LLUUID::asString(), AVATAR_CODE, DB_FIRST_NAME_BUF_SIZE, DB_LAST_NAME_BUF_SIZE, FALSE, gDirBrowserInstances, LLMessageSystem::getNumberOfBlocksFast(), LLControlGroup::getString(), LLMessageSystem::getStringFast(), LLMessageSystem::getUUIDFast(), gViewerArt, i, LLUUID::isNull(), list, LLCtrlSelectionInterface::OP_DELETE, S32, LLUUID::set(), and TRUE.

Referenced by register_viewer_callbacks().

void LLPanelDirBrowser::processDirPlacesReply ( LLMessageSystem msg,
void **   
) [static]

Definition at line 486 of file llpaneldirbrowser.cpp.

References LLUUID::asString(), count, FALSE, gDirBrowserInstances, LLMessageSystem::getBOOL(), LLMessageSystem::getF32(), LLMessageSystem::getNumberOfBlocks(), LLMessageSystem::getString(), LLMessageSystem::getUUID(), i, LLUUID::isNull(), list, llformat(), MAX_STRING, LLCtrlSelectionInterface::OP_DELETE, S32, TRUE, and type.

Referenced by register_viewer_callbacks().

void LLPanelDirBrowser::processDirPopularReply ( LLMessageSystem msg,
void **   
) [static]

Definition at line 564 of file llpaneldirbrowser.cpp.

References LLUUID::asString(), count, FALSE, gDirBrowserInstances, LLMessageSystem::getF32(), LLMessageSystem::getNumberOfBlocks(), LLControlGroup::getString(), LLMessageSystem::getString(), LLMessageSystem::getUUID(), gViewerArt, i, LLUUID::isNull(), list, llformat(), MAX_STRING, LLCtrlSelectionInterface::OP_DELETE, POPULAR_CODE, S32, LLUUID::set(), and TRUE.

Referenced by register_viewer_callbacks().

void LLPanelDirBrowser::renameClassified ( const LLUUID classified_id,
const char *  name 
)

Definition at line 1135 of file llpaneldirbrowser.cpp.

void LLPanelDirBrowser::resetSearchStart (  ) 

Definition at line 170 of file llpaneldirbrowser.cpp.

References LLPanel::childHide(), and mSearchStart.

void LLPanelDirBrowser::selectByUUID ( const LLUUID id  ) 

Definition at line 232 of file llpaneldirbrowser.cpp.

References LLPanel::childGetListInterface(), list, mWantSelectID, NULL, onCommitList(), and LLUUID::setNull().

Referenced by LLFloaterDirectory::showClassified(), LLFloaterDirectory::showLandForSale(), and LLFloaterDirectory::showPopular().

void LLPanelDirBrowser::selectEventByID ( S32  event_id  ) 

Definition at line 252 of file llpaneldirbrowser.cpp.

References mFloaterDirectory, LLFloaterDirectory::mPanelEventp, LLPanelEvent::setEventID(), LLView::setVisible(), and TRUE.

Referenced by LLFloaterDirectory::showEvents().

void LLPanelDirBrowser::sendDirFindQuery ( LLMessageSystem msg,
const LLUUID query_id,
const LLString text,
U32  flags,
S32  query_start 
) [static]

Definition at line 1198 of file llpaneldirbrowser.cpp.

References LLMessageSystem::addS32(), LLMessageSystem::addString(), LLMessageSystem::addU32(), LLMessageSystem::addUUID(), gAgent, LLAgent::getID(), LLAgent::getSessionID(), LLMessageSystem::newMessage(), LLMessageSystem::nextBlock(), and LLAgent::sendReliableMessage().

Referenced by LLPanelDirFindAllOld::onClickSearch(), LLPanelDirPeople::performQuery(), LLPanelDirGroups::performQuery(), and LLPanelDirEvents::performQueryOrDelete().

void LLPanelDirBrowser::setupNewSearch (  ) 

Definition at line 1160 of file llpaneldirbrowser.cpp.

References LLPanel::childDisable(), LLPanel::childGetListInterface(), FALSE, gDirBrowserInstances, LLUUID::generate(), LLFloaterDirectory::hideAllDetailPanels(), list, mFloaterDirectory, mHaveSearchResults, mResultsReceived, mSearchID, LLCtrlSelectionInterface::OP_DELETE, and updateResultCount().

Referenced by LLPanelDirPeople::performQuery(), LLPanelDirLand::performQuery(), LLPanelDirGroups::performQuery(), LLPanelDirClassified::performQuery(), LLPanelDirEvents::performQueryOrDelete(), LLPanelDirPlaces::queryCore(), and LLPanelDirPopular::requestPopular().

void LLPanelDirBrowser::showDetailPanel ( S32  type,
LLSD  item_id 
)

Definition at line 326 of file llpaneldirbrowser.cpp.

References AUCTION_CODE, AVATAR_CODE, CLASSIFIED_CODE, EVENT_CODE, FOR_SALE_CODE, GROUP_CODE, llendl, llwarns, mFloaterDirectory, LLFloaterDirectory::mPanelAvatarp, LLFloaterDirectory::mPanelClassifiedp, LLFloaterDirectory::mPanelGroupHolderp, LLFloaterDirectory::mPanelGroupp, LLFloaterDirectory::mPanelPlacep, LLFloaterDirectory::mPanelPlaceSmallp, ONLINE_STATUS_NO, PLACE_CODE, POPULAR_CODE, LLPanelPlace::resetLocation(), LLPanelClassified::sendClassifiedInfoRequest(), LLPanelAvatar::setAvatarID(), LLPanelClassified::setClassifiedID(), LLPanelGroup::setGroupID(), LLPanelPlace::setParcelID(), LLView::setVisible(), showEvent(), and TRUE.

void LLPanelDirBrowser::showEvent ( const U32  event_id  ) 

Definition at line 389 of file llpaneldirbrowser.cpp.

References LLFloaterDirectory::hideAllDetailPanels(), mFloaterDirectory, LLFloaterDirectory::mPanelEventp, LLPanelEvent::setEventID(), LLView::setVisible(), and TRUE.

Referenced by showDetailPanel().

S32 LLPanelDirBrowser::showNextButton ( S32  rows  )  [protected]

Definition at line 1253 of file llpaneldirbrowser.cpp.

References LLPanel::childHide(), LLPanel::childSetVisible(), LLView::getName(), mResultsPerPage, and mResultsReceived.

void LLPanelDirBrowser::updateResultCount (  )  [protected]

Definition at line 178 of file llpaneldirbrowser.cpp.

References LLPanel::childEnable(), LLPanel::childGetListInterface(), LLPanel::childIsVisible(), LLPanel::childSetValue(), list, llformat(), mHaveSearchResults, mResultsPerPage, LLCtrlSelectionInterface::OP_DESELECT, and S32.

Referenced by setupNewSearch().


Member Data Documentation

BOOL LLPanelDirBrowser::mCurrentSortAscending [protected]

Definition at line 141 of file llpaneldirbrowser.h.

Referenced by LLPanelDirGroups::performQuery(), LLPanelDirPopular::postBuild(), LLPanelDirPlaces::postBuild(), and LLPanelDirLand::postBuild().

LLString LLPanelDirBrowser::mCurrentSortColumn [protected]

Definition at line 140 of file llpaneldirbrowser.h.

Referenced by LLPanelDirGroups::performQuery(), LLPanelDirPopular::postBuild(), LLPanelDirPlaces::postBuild(), LLPanelDirLand::postBuild(), and LLPanelDirEvents::postBuild().

BOOL LLPanelDirBrowser::mDidAutoSelect [protected]

Definition at line 154 of file llpaneldirbrowser.h.

Referenced by draw().

LLFloaterDirectory* LLPanelDirBrowser::mFloaterDirectory [protected]

Definition at line 157 of file llpaneldirbrowser.h.

Referenced by getSelectedEventID(), newClassified(), selectEventByID(), setupNewSearch(), showDetailPanel(), and showEvent().

BOOL LLPanelDirBrowser::mHaveSearchResults [protected]

Definition at line 153 of file llpaneldirbrowser.h.

Referenced by processDirLandReply(), setupNewSearch(), and updateResultCount().

LLFrameTimer LLPanelDirBrowser::mLastResultTimer [protected]

Definition at line 155 of file llpaneldirbrowser.h.

Referenced by draw().

U32 LLPanelDirBrowser::mMinSearchChars [protected]

Definition at line 149 of file llpaneldirbrowser.h.

Referenced by LLPanelDirFindAll::LLPanelDirFindAll(), LLPanelDirFindAllOld::LLPanelDirFindAllOld(), LLPanelDirGroups::LLPanelDirGroups(), LLPanelDirPeople::LLPanelDirPeople(), LLPanelDirPlaces::LLPanelDirPlaces(), LLPanelDirPlaces::performQuery(), LLPanelDirPeople::performQuery(), and LLPanelDirGroups::performQuery().

LLSD LLPanelDirBrowser::mResultsContents [protected]

Definition at line 151 of file llpaneldirbrowser.h.

Referenced by getSelectedInfo().

S32 LLPanelDirBrowser::mResultsPerPage [protected]

Definition at line 146 of file llpaneldirbrowser.h.

Referenced by LLPanelDirEvents::LLPanelDirEvents(), nextPage(), prevPage(), showNextButton(), and updateResultCount().

S32 LLPanelDirBrowser::mResultsReceived [protected]

Definition at line 147 of file llpaneldirbrowser.h.

Referenced by setupNewSearch(), and showNextButton().

LLUUID LLPanelDirBrowser::mSearchID [protected]

Definition at line 138 of file llpaneldirbrowser.h.

Referenced by getSearchID(), LLPanelDirPeople::performQuery(), LLPanelDirGroups::performQuery(), LLPanelDirClassified::performQuery(), LLPanelDirEvents::performQueryOrDelete(), setupNewSearch(), and ~LLPanelDirBrowser().

S32 LLPanelDirBrowser::mSearchStart [protected]

Definition at line 144 of file llpaneldirbrowser.h.

Referenced by nextPage(), LLPanelDirPeople::performQuery(), LLPanelDirLand::performQuery(), LLPanelDirGroups::performQuery(), LLPanelDirClassified::performQuery(), LLPanelDirEvents::performQueryOrDelete(), prevPage(), LLPanelDirPlaces::queryCore(), and resetSearchStart().

LLUUID LLPanelDirBrowser::mWantSelectID [protected]

Definition at line 139 of file llpaneldirbrowser.h.

Referenced by selectByUUID().


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