#include <llpaneldirbrowser.h>
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 LLUUID & | getSearchID () 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) |
std::string | filterShortWords (const std::string source_string, int shortest_word_length, bool &was_filtered) |
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 | 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 |
LLFloaterDirectory * | mFloaterDirectory |
Definition at line 48 of file llpaneldirbrowser.h.
LLPanelDirBrowser::LLPanelDirBrowser | ( | const std::string & | name, | |
LLFloaterDirectory * | floater | |||
) |
Definition at line 84 of file llpaneldirbrowser.cpp.
LLPanelDirBrowser::~LLPanelDirBrowser | ( | ) | [virtual] |
Definition at line 116 of file llpaneldirbrowser.cpp.
References mSearchID, and LLMap< INDEX_TYPE, MAPPED_TYPE >::removeData().
BOOL LLPanelDirBrowser::postBuild | ( | void | ) | [virtual] |
Reimplemented from LLPanel.
Reimplemented in LLPanelDirClassified, LLPanelDirEvents, LLPanelDirFind, LLPanelDirLand, and LLPanelDirPeople.
Definition at line 103 of file llpaneldirbrowser.cpp.
References LLPanel::childHide(), LLPanel::childSetAction(), LLPanel::childSetCommitCallback(), onClickNext(), onClickPrev(), onCommitList(), and TRUE.
Referenced by LLPanelDirPeople::postBuild(), LLPanelDirLand::postBuild(), LLPanelDirFind::postBuild(), LLPanelDirEvents::postBuild(), and LLPanelDirClassified::postBuild().
void LLPanelDirBrowser::draw | ( | void | ) | [virtual] |
Reimplemented from LLPanel.
Reimplemented in LLPanelDirClassified, LLPanelDirEvents, and LLPanelDirFind.
Definition at line 125 of file llpaneldirbrowser.cpp.
References LLPanel::childGetListInterface(), LLPanel::childHasFocus(), LLPanel::childSetFocus(), LLPanel::draw(), LLCtrlSelectionInterface::getCanSelect(), LLFrameTimer::getElapsedTimeF32(), mDidAutoSelect, mLastResultTimer, NULL, onCommitList(), LLCtrlSelectionInterface::selectFirstItem(), and TRUE.
Referenced by LLPanelDirFind::draw(), LLPanelDirEvents::draw(), and LLPanelDirClassified::draw().
void LLPanelDirBrowser::onVisibilityChange | ( | BOOL | curVisibilityIn | ) | [virtual] |
Reimplemented from LLView.
Reimplemented in LLPanelDirFind.
Definition at line 1172 of file llpaneldirbrowser.cpp.
References NULL, onCommitList(), and LLView::onVisibilityChange().
void LLPanelDirBrowser::prevPage | ( | ) | [virtual] |
Definition at line 166 of file llpaneldirbrowser.cpp.
References LLPanel::childSetVisible(), mResultsPerPage, mSearchStart, and performQuery().
void LLPanelDirBrowser::nextPage | ( | ) | [virtual] |
Definition at line 156 of file llpaneldirbrowser.cpp.
References LLPanel::childShow(), mResultsPerPage, mSearchStart, and performQuery().
void LLPanelDirBrowser::resetSearchStart | ( | ) |
Definition at line 175 of file llpaneldirbrowser.cpp.
References LLPanel::childHide(), and mSearchStart.
virtual void LLPanelDirBrowser::performQuery | ( | ) | [inline, virtual] |
Reimplemented in LLPanelDirClassified, LLPanelDirEvents, LLPanelDirLand, and LLPanelDirPeople.
Definition at line 66 of file llpaneldirbrowser.h.
Referenced by nextPage(), and prevPage().
const LLUUID& LLPanelDirBrowser::getSearchID | ( | ) | const [inline] |
Definition at line 68 of file llpaneldirbrowser.h.
References mSearchID.
Referenced by LLPanelDirLand::performQuery().
void LLPanelDirBrowser::selectByUUID | ( | const LLUUID & | id | ) |
Definition at line 274 of file llpaneldirbrowser.cpp.
References LLPanel::childGetListInterface(), mWantSelectID, NULL, onCommitList(), LLCtrlSelectionInterface::setCurrentByID(), and LLUUID::setNull().
Referenced by LLFloaterDirectory::showClassified(), and LLFloaterDirectory::showLandForSale().
void LLPanelDirBrowser::selectEventByID | ( | S32 | event_id | ) |
Definition at line 294 of file llpaneldirbrowser.cpp.
References mFloaterDirectory, LLFloaterDirectory::mPanelEventp, LLPanelEvent::setEventID(), LLView::setVisible(), and TRUE.
Referenced by LLFloaterDirectory::showEvents().
U32 LLPanelDirBrowser::getSelectedEventID | ( | ) | const |
Definition at line 306 of file llpaneldirbrowser.cpp.
References LLPanelEvent::getEventID(), mFloaterDirectory, and LLFloaterDirectory::mPanelEventp.
Definition at line 318 of file llpaneldirbrowser.cpp.
References LLSD::asString(), LLSD::asUUID(), LLPanel::childGetListInterface(), LLPanel::childGetValue(), and mResultsContents.
Definition at line 368 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::setupNewSearch | ( | ) |
Definition at line 1087 of file llpaneldirbrowser.cpp.
References LLScrollListCtrl::addCommentText(), LLMap< INDEX_TYPE, MAPPED_TYPE >::addData(), LLPanel::childDisable(), FALSE, LLUUID::generate(), LLPanel::getString(), LLFloaterDirectory::hideAllDetailPanels(), mFloaterDirectory, mHaveSearchResults, mResultsReceived, mSearchID, LLCtrlSelectionInterface::OP_DELETE, LLScrollListCtrl::operateOnAll(), LLMap< INDEX_TYPE, MAPPED_TYPE >::removeData(), and updateResultCount().
Referenced by LLPanelDirPeople::performQuery(), LLPanelDirLand::performQuery(), LLPanelDirClassified::performQuery(), and LLPanelDirEvents::performQueryOrDelete().
void LLPanelDirBrowser::onClickSearchCore | ( | void * | userdata | ) | [static] |
Definition at line 1114 of file llpaneldirbrowser.cpp.
References LLFloaterDirectory::sOldSearchCount.
Referenced by LLPanelDirEvents::onCommitMature(), LLPanelDirPeople::postBuild(), LLPanelDirLand::postBuild(), LLPanelDirEvents::postBuild(), and LLPanelDirClassified::postBuild().
void LLPanelDirBrowser::sendDirFindQuery | ( | LLMessageSystem * | msg, | |
const LLUUID & | query_id, | |||
const LLString & | text, | |||
U32 | flags, | |||
S32 | query_start | |||
) | [static] |
Definition at line 1127 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 LLPanelDirPeople::performQuery(), and LLPanelDirEvents::performQueryOrDelete().
void LLPanelDirBrowser::addHelpText | ( | const char * | text | ) |
Definition at line 1147 of file llpaneldirbrowser.cpp.
References LLScrollListCtrl::addCommentText(), and LLPanel::childDisable().
void LLPanelDirBrowser::newClassified | ( | ) |
Definition at line 1059 of file llpaneldirbrowser.cpp.
References addClassified(), LLPanel::childGetListInterface(), LLPanelClassified::getClassifiedID(), LLPanelClassified::getClassifiedName(), LLPanelClassified::initNewClassified(), mFloaterDirectory, LLFloaterDirectory::mPanelClassifiedp, LLPanelClassified::reset(), LLCtrlSelectionInterface::setCurrentByID(), LLView::setVisible(), and TRUE.
void LLPanelDirBrowser::showEvent | ( | const U32 | event_id | ) |
Definition at line 431 of file llpaneldirbrowser.cpp.
References LLFloaterDirectory::hideAllDetailPanels(), mFloaterDirectory, LLFloaterDirectory::mPanelEventp, LLPanelEvent::setEventID(), LLView::setVisible(), and TRUE.
Referenced by showDetailPanel().
void LLPanelDirBrowser::onClickNext | ( | void * | data | ) | [static] |
Definition at line 229 of file llpaneldirbrowser.cpp.
Referenced by postBuild().
void LLPanelDirBrowser::onClickPrev | ( | void * | data | ) | [static] |
Definition at line 221 of file llpaneldirbrowser.cpp.
Referenced by postBuild().
void LLPanelDirBrowser::onCommitList | ( | LLUICtrl * | ctrl, | |
void * | data | |||
) | [static] |
Definition at line 333 of file llpaneldirbrowser.cpp.
References EVENT_CODE, FALSE, LLCtrlSelectionInterface::getCanSelect(), LLCtrlSelectionInterface::getCurrentID(), and S32.
Referenced by draw(), onVisibilityChange(), postBuild(), and selectByUUID().
void LLPanelDirBrowser::processDirPeopleReply | ( | LLMessageSystem * | msg, | |
void ** | ||||
) | [static] |
Definition at line 445 of file llpaneldirbrowser.cpp.
References _PREHASH_AgentID, _PREHASH_FirstName, _PREHASH_LastName, _PREHASH_QueryData, _PREHASH_QueryID, _PREHASH_QueryReplies, LLCtrlListInterface::addElement(), LLUUID::asString(), AVATAR_CODE, DB_FIRST_NAME_BUF_SIZE, DB_LAST_NAME_BUF_SIZE, FALSE, LLCtrlSelectionInterface::getCanSelect(), LLMap< INDEX_TYPE, MAPPED_TYPE >::getIfThere(), LLMessageSystem::getNumberOfBlocksFast(), LLMessageSystem::getStringFast(), LLMessageSystem::getUUIDFast(), i, LLUUID::isNull(), mHaveSearchResults, LLCtrlSelectionInterface::OP_DELETE, LLCtrlSelectionInterface::operateOnAll(), S32, LLCtrlListInterface::sortByColumn(), and TRUE.
Referenced by register_viewer_callbacks().
void LLPanelDirBrowser::processDirPlacesReply | ( | LLMessageSystem * | msg, | |
void ** | ||||
) | [static] |
Definition at line 526 of file llpaneldirbrowser.cpp.
References LLCtrlListInterface::addElement(), LLUUID::asString(), FALSE, LLMessageSystem::getBOOL(), LLCtrlSelectionInterface::getCanSelect(), LLMessageSystem::getF32(), LLMap< INDEX_TYPE, MAPPED_TYPE >::getIfThere(), LLMessageSystem::getNumberOfBlocks(), LLMessageSystem::getString(), LLMessageSystem::getUUID(), i, LLUUID::isNull(), llformat(), MAX_STRING, mHaveSearchResults, LLCtrlSelectionInterface::OP_DELETE, LLCtrlSelectionInterface::operateOnAll(), S32, LLCtrlListInterface::sortByColumn(), and TRUE.
Referenced by register_viewer_callbacks().
void LLPanelDirBrowser::processDirEventsReply | ( | LLMessageSystem * | msg, | |
void ** | ||||
) | [static] |
Definition at line 603 of file llpaneldirbrowser.cpp.
References ADD_SORTED, LLCtrlListInterface::addElement(), EVENT_CODE, EVENT_FLAG_MATURE, FALSE, LLControlGroup::getBOOL(), LLCtrlSelectionInterface::getCanSelect(), LLMap< INDEX_TYPE, MAPPED_TYPE >::getIfThere(), LLMessageSystem::getNumberOfBlocks(), LLMessageSystem::getString(), LLMessageSystem::getU32(), LLMessageSystem::getUUID(), gSavedSettings, i, LLUUID::isNull(), llendl, llformat(), llwarns, MAX_STRING, mHaveSearchResults, LLCtrlSelectionInterface::OP_DELETE, LLCtrlSelectionInterface::operateOnAll(), S32, LLCtrlListInterface::sortByColumn(), and TRUE.
Referenced by register_viewer_callbacks().
void LLPanelDirBrowser::processDirGroupsReply | ( | LLMessageSystem * | msg, | |
void ** | ||||
) | [static] |
Definition at line 718 of file llpaneldirbrowser.cpp.
References _PREHASH_GroupID, _PREHASH_GroupName, _PREHASH_Members, _PREHASH_QueryData, _PREHASH_QueryID, _PREHASH_QueryReplies, _PREHASH_SearchOrder, LLCtrlListInterface::addElement(), LLUUID::asString(), DB_GROUP_NAME_BUF_SIZE, FALSE, LLCtrlSelectionInterface::getCanSelect(), LLMessageSystem::getF32Fast(), LLMap< INDEX_TYPE, MAPPED_TYPE >::getIfThere(), LLMessageSystem::getNumberOfBlocksFast(), LLMessageSystem::getS32Fast(), LLMessageSystem::getStringFast(), LLMessageSystem::getUUIDFast(), GROUP_CODE, i, LLUUID::isNull(), mHaveSearchResults, LLCtrlSelectionInterface::OP_DELETE, LLCtrlSelectionInterface::operateOnAll(), S32, LLCtrlListInterface::sortByColumn(), and TRUE.
Referenced by register_viewer_callbacks().
void LLPanelDirBrowser::processDirClassifiedReply | ( | LLMessageSystem * | msg, | |
void ** | ||||
) | [static] |
Definition at line 801 of file llpaneldirbrowser.cpp.
References _PREHASH_QueryReplies, LLUUID::asString(), CLASSIFIED_CODE, DB_PARCEL_NAME_SIZE, FALSE, gAgent, LLCtrlSelectionInterface::getCanSelect(), LLAgent::getID(), LLMap< INDEX_TYPE, MAPPED_TYPE >::getIfThere(), LLMessageSystem::getNumberOfBlocksFast(), LLMessageSystem::getS32(), LLMessageSystem::getString(), LLMessageSystem::getU32(), LLMessageSystem::getUUID(), i, llendl, llwarns, mHaveSearchResults, LLUUID::notNull(), LLCtrlSelectionInterface::OP_DELETE, LLCtrlSelectionInterface::operateOnAll(), S32, and TRUE.
Referenced by register_viewer_callbacks().
void LLPanelDirBrowser::processDirLandReply | ( | LLMessageSystem * | msg, | |
void ** | ||||
) | [static] |
Definition at line 870 of file llpaneldirbrowser.cpp.
References LLCtrlListInterface::addElement(), LLUUID::asString(), FALSE, LLMessageSystem::getBOOL(), LLControlGroup::getBOOL(), LLCtrlSelectionInterface::getCanSelect(), LLMap< INDEX_TYPE, MAPPED_TYPE >::getIfThere(), LLMessageSystem::getNumberOfBlocks(), LLMessageSystem::getS32(), LLMessageSystem::getString(), LLMessageSystem::getUUID(), gSavedSettings, i, LLUUID::isNull(), llformat(), MAX_STRING, mHaveSearchResults, LLCtrlSelectionInterface::OP_DELETE, LLCtrlSelectionInterface::operateOnAll(), S32, LLCtrlListInterface::sortByColumn(), and TRUE.
Referenced by register_viewer_callbacks().
std::string LLPanelDirBrowser::filterShortWords | ( | const std::string | source_string, | |
int | shortest_word_length, | |||
bool & | was_filtered | |||
) |
Definition at line 236 of file llpaneldirbrowser.cpp.
References codec.
Referenced by LLPanelDirPeople::performQuery().
void LLPanelDirBrowser::updateResultCount | ( | ) | [protected] |
Definition at line 183 of file llpaneldirbrowser.cpp.
References LLScrollListCtrl::addCommentText(), LLPanel::childEnable(), LLPanel::childIsVisible(), LLPanel::childSetValue(), LLScrollListCtrl::getItemCount(), LLPanel::getString(), llformat(), mHaveSearchResults, mResultsPerPage, LLCtrlSelectionInterface::OP_DESELECT, LLScrollListCtrl::operateOnAll(), and S32.
Referenced by setupNewSearch().
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 998 of file llpaneldirbrowser.cpp.
References LLCtrlListInterface::addElement(), CLASSIFIED_CODE, and llformat().
Referenced by newClassified().
LLSD LLPanelDirBrowser::createLandSale | ( | const LLUUID & | parcel_id, | |
BOOL | is_auction, | |||
BOOL | is_for_sale, | |||
const LLString & | name, | |||
S32 * | type | |||
) | [protected] |
Definition at line 1020 of file llpaneldirbrowser.cpp.
References AUCTION_CODE, FOR_SALE_CODE, and PLACE_CODE.
void LLPanelDirBrowser::onKeystrokeName | ( | LLLineEditor * | line, | |
void * | data | |||
) | [static, protected] |
Reimplemented in LLPanelDirPeople.
Definition at line 1156 of file llpaneldirbrowser.cpp.
References LLLineEditor::getLength(), and S32.
Referenced by LLPanelDirPeople::postBuild().
Definition at line 1181 of file llpaneldirbrowser.cpp.
References LLPanel::childHide(), LLPanel::childSetVisible(), LLView::getName(), mResultsPerPage, and mResultsReceived.
LLUUID LLPanelDirBrowser::mSearchID [protected] |
Definition at line 137 of file llpaneldirbrowser.h.
Referenced by getSearchID(), LLPanelDirPeople::performQuery(), LLPanelDirClassified::performQuery(), LLPanelDirEvents::performQueryOrDelete(), setupNewSearch(), and ~LLPanelDirBrowser().
LLUUID LLPanelDirBrowser::mWantSelectID [protected] |
LLString LLPanelDirBrowser::mCurrentSortColumn [protected] |
Definition at line 139 of file llpaneldirbrowser.h.
Referenced by LLPanelDirLand::postBuild(), and LLPanelDirEvents::postBuild().
BOOL LLPanelDirBrowser::mCurrentSortAscending [protected] |
S32 LLPanelDirBrowser::mSearchStart [protected] |
Definition at line 143 of file llpaneldirbrowser.h.
Referenced by nextPage(), LLPanelDirPeople::performQuery(), LLPanelDirLand::performQuery(), LLPanelDirClassified::performQuery(), LLPanelDirEvents::performQueryOrDelete(), prevPage(), and resetSearchStart().
S32 LLPanelDirBrowser::mResultsPerPage [protected] |
Definition at line 145 of file llpaneldirbrowser.h.
Referenced by LLPanelDirEvents::LLPanelDirEvents(), nextPage(), prevPage(), showNextButton(), and updateResultCount().
S32 LLPanelDirBrowser::mResultsReceived [protected] |
Definition at line 146 of file llpaneldirbrowser.h.
Referenced by setupNewSearch(), and showNextButton().
U32 LLPanelDirBrowser::mMinSearchChars [protected] |
Definition at line 148 of file llpaneldirbrowser.h.
Referenced by LLPanelDirPeople::LLPanelDirPeople(), and LLPanelDirPeople::performQuery().
LLSD LLPanelDirBrowser::mResultsContents [protected] |
BOOL LLPanelDirBrowser::mHaveSearchResults [protected] |
Definition at line 152 of file llpaneldirbrowser.h.
Referenced by processDirClassifiedReply(), processDirEventsReply(), processDirGroupsReply(), processDirLandReply(), processDirPeopleReply(), processDirPlacesReply(), setupNewSearch(), and updateResultCount().
BOOL LLPanelDirBrowser::mDidAutoSelect [protected] |
LLFrameTimer LLPanelDirBrowser::mLastResultTimer [protected] |
LLFloaterDirectory* LLPanelDirBrowser::mFloaterDirectory [protected] |
Definition at line 156 of file llpaneldirbrowser.h.
Referenced by getSelectedEventID(), newClassified(), LLPanelDirFind::onVisibilityChange(), selectEventByID(), setupNewSearch(), showDetailPanel(), and showEvent().