#include <llfloatertopobjects.h>
Public Member Functions | |
void | handleReply (LLMessageSystem *msg, void **data) |
void | updateSelectionInfo () |
virtual BOOL | postBuild () |
Static Public Member Functions | |
static void | show () |
static void | handle_land_reply (LLMessageSystem *msg, void **data) |
static void | clearList () |
static void | onRefresh (void *data) |
static void | setMode (U32 mode) |
Private Types | |
enum | { ACTION_RETURN = 0, ACTION_DISABLE } |
Private Member Functions | |
LLFloaterTopObjects () | |
~LLFloaterTopObjects () | |
void | initColumns (LLCtrlListInterface *list) |
void | doToObjects (int action, bool all) |
void | showBeacon () |
Static Private Member Functions | |
static void | onCommitObjectsList (LLUICtrl *ctrl, void *data) |
static void | onDoubleClickObjectsList (void *data) |
static void | onClickShowBeacon (void *data) |
static void | onReturnAll (void *data) |
static void | onReturnSelected (void *data) |
static void | onDisableAll (void *data) |
static void | onDisableSelected (void *data) |
static void | callbackReturnAll (S32 option, void *userdata) |
static void | callbackDisableAll (S32 option, void *userdata) |
static void | onGetByOwnerName (LLUICtrl *ctrl, void *data) |
static void | onGetByObjectName (LLUICtrl *ctrl, void *data) |
static void | onGetByOwnerNameClicked (void *data) |
static void | onGetByObjectNameClicked (void *data) |
Private Attributes | |
LLString | mMethod |
LLSD | mObjectListData |
std::vector< LLUUID > | mObjectListIDs |
U32 | mCurrentMode |
U32 | mFlags |
LLString | mFilter |
BOOL | mInitialized |
F32 | mtotalScore |
Static Private Attributes | |
static LLFloaterTopObjects * | sInstance = NULL |
Definition at line 39 of file llfloatertopobjects.h.
anonymous enum [private] |
LLFloaterTopObjects::LLFloaterTopObjects | ( | ) | [private] |
Definition at line 69 of file llfloatertopobjects.cpp.
References sInstance.
Referenced by show().
LLFloaterTopObjects::~LLFloaterTopObjects | ( | ) | [private] |
void LLFloaterTopObjects::show | ( | ) | [static] |
Definition at line 56 of file llfloatertopobjects.cpp.
References LLUICtrlFactory::buildFloater(), LLFloater::center(), LLSingleton< LLUICtrlFactory >::getInstance(), LLFloaterTopObjects(), LLFloater::setVisibleAndFrontmost(), and sInstance.
Referenced by handle_land_reply(), LLPanelRegionDebugInfo::onClickTopColliders(), LLPanelRegionDebugInfo::onClickTopScripts(), LLPanelObjectTools::onGetTopColliders(), and LLPanelObjectTools::onGetTopScripts().
void LLFloaterTopObjects::handle_land_reply | ( | LLMessageSystem * | msg, | |
void ** | data | |||
) | [static] |
Definition at line 132 of file llfloatertopobjects.cpp.
References handleReply(), mInitialized, mObjectListIDs, NULL, onRefresh(), show(), sInstance, and TRUE.
Referenced by register_viewer_callbacks().
void LLFloaterTopObjects::handleReply | ( | LLMessageSystem * | msg, | |
void ** | data | |||
) |
Definition at line 148 of file llfloatertopobjects.cpp.
References _PREHASH_LocationX, _PREHASH_LocationY, _PREHASH_LocationZ, _PREHASH_OwnerName, _PREHASH_ReportData, _PREHASH_ReportType, _PREHASH_RequestData, _PREHASH_RequestFlags, _PREHASH_Score, _PREHASH_TaskID, _PREHASH_TaskLocalID, _PREHASH_TaskName, _PREHASH_TotalObjectCount, LLCtrlListInterface::addElement(), LLSD::append(), LLPanel::childGetListInterface(), LLPanel::childSetValue(), indra::ipc::russ::format(), LLMessageSystem::getF32Fast(), LLCtrlSelectionInterface::getItemCount(), LLMessageSystem::getNumberOfBlocks(), LLPanel::getString(), LLMessageSystem::getStringFast(), LLMessageSystem::getU32Fast(), LLMessageSystem::getUUIDFast(), llformat(), MAX_STRING, mCurrentMode, mObjectListData, mObjectListIDs, mtotalScore, LLUUID::null, S32, LLCtrlSelectionInterface::selectFirstItem(), LLUIString::setArg(), LLCtrlListInterface::setColumnLabel(), LLFloater::setTitle(), and STAT_REPORT_TOP_SCRIPTS.
Referenced by handle_land_reply().
void LLFloaterTopObjects::clearList | ( | ) | [static] |
Definition at line 377 of file llfloatertopobjects.cpp.
References LLPanel::childGetListInterface(), LLSD::clear(), mObjectListData, mObjectListIDs, mtotalScore, LLCtrlSelectionInterface::OP_DELETE, LLCtrlSelectionInterface::operateOnAll(), and sInstance.
Referenced by LLPanelRegionDebugInfo::onClickTopColliders(), LLPanelRegionDebugInfo::onClickTopScripts(), and onRefresh().
void LLFloaterTopObjects::updateSelectionInfo | ( | ) |
Definition at line 248 of file llfloatertopobjects.cpp.
References LLSD::asString(), LLUUID::asString(), LLPanel::childSetValue(), LLScrollListItem::getColumn(), LLScrollListCtrl::getCurrentID(), LLScrollListCtrl::getFirstSelected(), LLScrollListCell::getValue(), and LLUUID::isNull().
BOOL LLFloaterTopObjects::postBuild | ( | void | ) | [virtual] |
Reimplemented from LLPanel.
Definition at line 83 of file llfloatertopobjects.cpp.
References LLPanel::childSetAction(), LLPanel::childSetCommitCallback(), LLPanel::childSetDoubleClickCallback(), LLPanel::childSetFocus(), mCurrentMode, mFilter, mFlags, onClickShowBeacon(), onCommitObjectsList(), onDisableAll(), onDisableSelected(), onDoubleClickObjectsList(), onGetByObjectNameClicked(), onGetByOwnerNameClicked(), onRefresh(), onReturnAll(), onReturnSelected(), LLScrollListCtrl::setCommitOnSelectionChange(), LLPanel::setDefaultBtn(), STAT_REPORT_TOP_SCRIPTS, and TRUE.
void LLFloaterTopObjects::onRefresh | ( | void * | data | ) | [static] |
Definition at line 392 of file llfloatertopobjects.cpp.
References _PREHASH_AgentData, _PREHASH_AgentID, _PREHASH_Filter, _PREHASH_LandStatRequest, _PREHASH_ParcelLocalID, _PREHASH_ReportType, _PREHASH_RequestData, _PREHASH_RequestFlags, _PREHASH_SessionID, LLMessageSystem::addS32Fast(), LLMessageSystem::addStringFast(), LLMessageSystem::addU32Fast(), LLMessageSystem::addUUIDFast(), clearList(), gAgent, LLAgent::getID(), LLAgent::getRegionHost(), LLAgent::getSessionID(), gMessageSystem, mCurrentMode, mFilter, mFlags, LLMessageSystem::newMessageFast(), LLMessageSystem::nextBlockFast(), LLMessageSystem::sendReliable(), sInstance, and STAT_REPORT_TOP_SCRIPTS.
Referenced by handle_land_reply(), onGetByObjectName(), onGetByOwnerName(), LLPanelObjectTools::onGetTopColliders(), LLPanelObjectTools::onGetTopScripts(), and postBuild().
static void LLFloaterTopObjects::setMode | ( | U32 | mode | ) | [inline, static] |
Definition at line 56 of file llfloatertopobjects.h.
References mCurrentMode, and sInstance.
Referenced by LLPanelObjectTools::onGetTopColliders(), and LLPanelObjectTools::onGetTopScripts().
void LLFloaterTopObjects::initColumns | ( | LLCtrlListInterface * | list | ) | [private] |
void LLFloaterTopObjects::onCommitObjectsList | ( | LLUICtrl * | ctrl, | |
void * | data | |||
) | [static, private] |
Definition at line 241 of file llfloatertopobjects.cpp.
Referenced by postBuild().
void LLFloaterTopObjects::onDoubleClickObjectsList | ( | void * | data | ) | [static, private] |
Definition at line 265 of file llfloatertopobjects.cpp.
Referenced by postBuild().
void LLFloaterTopObjects::onClickShowBeacon | ( | void * | data | ) | [static, private] |
Definition at line 272 of file llfloatertopobjects.cpp.
Referenced by postBuild().
void LLFloaterTopObjects::doToObjects | ( | int | action, | |
bool | all | |||
) | [private] |
Definition at line 279 of file llfloatertopobjects.cpp.
References _PREHASH_AgentData, _PREHASH_AgentID, _PREHASH_LocalID, _PREHASH_ParcelData, _PREHASH_ParcelDisableObjects, _PREHASH_ParcelReturnObjects, _PREHASH_ReturnType, _PREHASH_SessionID, _PREHASH_TaskID, _PREHASH_TaskIDs, ACTION_RETURN, LLMessageSystem::addS32Fast(), LLMessageSystem::addUUIDFast(), LLPanel::childGetListInterface(), gAgent, LLViewerRegion::getHost(), LLAgent::getID(), LLCtrlSelectionInterface::getItemCount(), LLAgent::getRegion(), LLAgent::getSessionID(), gMessageSystem, LLCtrlSelectionInterface::isSelected(), LLMessageSystem::isSendFullFast(), mObjectListIDs, LLMessageSystem::newMessageFast(), LLMessageSystem::nextBlockFast(), RT_NONE, and LLMessageSystem::sendReliable().
Referenced by callbackDisableAll(), callbackReturnAll(), onDisableSelected(), and onReturnSelected().
void LLFloaterTopObjects::onReturnAll | ( | void * | data | ) | [static, private] |
Definition at line 345 of file llfloatertopobjects.cpp.
References LLViewerWindow::alertXml(), callbackReturnAll(), gViewerWindow, and NULL.
Referenced by postBuild().
void LLFloaterTopObjects::onReturnSelected | ( | void * | data | ) | [static, private] |
Definition at line 351 of file llfloatertopobjects.cpp.
References ACTION_RETURN, doToObjects(), and sInstance.
Referenced by postBuild().
void LLFloaterTopObjects::onDisableAll | ( | void * | data | ) | [static, private] |
Definition at line 366 of file llfloatertopobjects.cpp.
References LLViewerWindow::alertXml(), callbackDisableAll(), gViewerWindow, and NULL.
Referenced by postBuild().
void LLFloaterTopObjects::onDisableSelected | ( | void * | data | ) | [static, private] |
Definition at line 371 of file llfloatertopobjects.cpp.
References ACTION_DISABLE, doToObjects(), and sInstance.
Referenced by postBuild().
void LLFloaterTopObjects::callbackReturnAll | ( | S32 | option, | |
void * | userdata | |||
) | [static, private] |
Definition at line 337 of file llfloatertopobjects.cpp.
References ACTION_RETURN, doToObjects(), and sInstance.
Referenced by onReturnAll().
void LLFloaterTopObjects::callbackDisableAll | ( | S32 | option, | |
void * | userdata | |||
) | [static, private] |
Definition at line 358 of file llfloatertopobjects.cpp.
References ACTION_DISABLE, doToObjects(), and sInstance.
Referenced by onDisableAll().
void LLFloaterTopObjects::onGetByOwnerName | ( | LLUICtrl * | ctrl, | |
void * | data | |||
) | [static, private] |
Definition at line 436 of file llfloatertopobjects.cpp.
References LLPanel::childGetText(), mFilter, mFlags, NULL, onRefresh(), sInstance, and STAT_FILTER_BY_OWNER.
Referenced by onGetByOwnerNameClicked().
void LLFloaterTopObjects::onGetByObjectName | ( | LLUICtrl * | ctrl, | |
void * | data | |||
) | [static, private] |
Definition at line 426 of file llfloatertopobjects.cpp.
References LLPanel::childGetText(), mFilter, mFlags, NULL, onRefresh(), sInstance, and STAT_FILTER_BY_OBJECT.
Referenced by onGetByObjectNameClicked().
static void LLFloaterTopObjects::onGetByOwnerNameClicked | ( | void * | data | ) | [inline, static, private] |
Definition at line 81 of file llfloatertopobjects.h.
References NULL, and onGetByOwnerName().
Referenced by postBuild().
static void LLFloaterTopObjects::onGetByObjectNameClicked | ( | void * | data | ) | [inline, static, private] |
Definition at line 82 of file llfloatertopobjects.h.
References NULL, and onGetByObjectName().
Referenced by postBuild().
void LLFloaterTopObjects::showBeacon | ( | ) | [private] |
Definition at line 446 of file llfloatertopobjects.cpp.
References LLSD::asString(), gAgent, LLScrollListItem::getColumn(), LLScrollListCtrl::getFirstSelected(), LLAgent::getPosGlobalFromAgent(), LLScrollListCell::getValue(), LLTracker::LOCATION_ITEM, S32, and LLTracker::trackLocation().
LLString LLFloaterTopObjects::mMethod [private] |
Definition at line 87 of file llfloatertopobjects.h.
LLSD LLFloaterTopObjects::mObjectListData [private] |
std::vector<LLUUID> LLFloaterTopObjects::mObjectListIDs [private] |
Definition at line 90 of file llfloatertopobjects.h.
Referenced by clearList(), doToObjects(), handle_land_reply(), and handleReply().
U32 LLFloaterTopObjects::mCurrentMode [private] |
Definition at line 92 of file llfloatertopobjects.h.
Referenced by handleReply(), onRefresh(), postBuild(), and setMode().
U32 LLFloaterTopObjects::mFlags [private] |
Definition at line 93 of file llfloatertopobjects.h.
Referenced by onGetByObjectName(), onGetByOwnerName(), onRefresh(), and postBuild().
LLString LLFloaterTopObjects::mFilter [private] |
Definition at line 94 of file llfloatertopobjects.h.
Referenced by onGetByObjectName(), onGetByOwnerName(), onRefresh(), and postBuild().
BOOL LLFloaterTopObjects::mInitialized [private] |
F32 LLFloaterTopObjects::mtotalScore [private] |
LLFloaterTopObjects * LLFloaterTopObjects::sInstance = NULL [static, private] |
Definition at line 106 of file llfloatertopobjects.h.
Referenced by callbackDisableAll(), callbackReturnAll(), clearList(), handle_land_reply(), LLFloaterTopObjects(), onDisableSelected(), onGetByObjectName(), onGetByOwnerName(), onRefresh(), onReturnSelected(), setMode(), show(), and ~LLFloaterTopObjects().