LLFloaterTopObjects Class Reference

#include <llfloatertopobjects.h>

Inheritance diagram for LLFloaterTopObjects:

Inheritance graph
[legend]
Collaboration diagram for LLFloaterTopObjects:

Collaboration graph
[legend]
List of all members.

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

 ACTION_RETURN = 0
 ACTION_DISABLE
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< LLUUIDmObjectListIDs
U32 mCurrentMode
U32 mFlags
LLString mFilter
BOOL mInitialized
F32 mtotalScore

Static Private Attributes

static LLFloaterTopObjectssInstance = NULL

Detailed Description

Definition at line 39 of file llfloatertopobjects.h.


Member Enumeration Documentation

anonymous enum [private]

Enumerator:
ACTION_RETURN 
ACTION_DISABLE 

Definition at line 100 of file llfloatertopobjects.h.


Constructor & Destructor Documentation

LLFloaterTopObjects::LLFloaterTopObjects (  )  [private]

Definition at line 69 of file llfloatertopobjects.cpp.

References sInstance.

Referenced by show().

LLFloaterTopObjects::~LLFloaterTopObjects (  )  [private]

Definition at line 77 of file llfloatertopobjects.cpp.

References NULL, and sInstance.


Member Function Documentation

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::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::clearList (  )  [static]

Definition at line 377 of file llfloatertopobjects.cpp.

References LLPanel::childGetListInterface(), LLSD::clear(), list, mObjectListData, mObjectListIDs, mtotalScore, LLCtrlSelectionInterface::OP_DELETE, and sInstance.

Referenced by LLPanelRegionDebugInfo::onClickTopColliders(), LLPanelRegionDebugInfo::onClickTopScripts(), and onRefresh().

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(), LLAgent::getRegion(), LLAgent::getSessionID(), gMessageSystem, LLMessageSystem::isSendFullFast(), list, mObjectListIDs, LLMessageSystem::newMessageFast(), LLMessageSystem::nextBlockFast(), RT_NONE, and LLMessageSystem::sendReliable().

Referenced by callbackDisableAll(), callbackReturnAll(), onDisableSelected(), and onReturnSelected().

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, LLSD::append(), LLPanel::childGetListInterface(), LLPanel::childGetText(), LLPanel::childSetValue(), format, LLMessageSystem::getF32Fast(), LLMessageSystem::getNumberOfBlocks(), LLMessageSystem::getStringFast(), LLMessageSystem::getU32Fast(), LLMessageSystem::getUUIDFast(), list, llformat(), MAX_STRING, mCurrentMode, mObjectListData, mObjectListIDs, mtotalScore, LLUUID::null, S32, LLFloater::setTitle(), and STAT_REPORT_TOP_SCRIPTS.

Referenced by handle_land_reply().

void LLFloaterTopObjects::initColumns ( LLCtrlListInterface list  )  [private]

void LLFloaterTopObjects::onClickShowBeacon ( void data  )  [static, private]

Definition at line 272 of file llfloatertopobjects.cpp.

Referenced by postBuild().

void LLFloaterTopObjects::onCommitObjectsList ( LLUICtrl ctrl,
void data 
) [static, private]

Definition at line 241 of file llfloatertopobjects.cpp.

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::onDoubleClickObjectsList ( void data  )  [static, private]

Definition at line 265 of file llfloatertopobjects.cpp.

Referenced by postBuild().

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::onGetByObjectNameClicked ( void data  )  [inline, static, private]

Definition at line 82 of file llfloatertopobjects.h.

References NULL, and onGetByObjectName().

Referenced by postBuild().

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().

static void LLFloaterTopObjects::onGetByOwnerNameClicked ( void data  )  [inline, static, private]

Definition at line 81 of file llfloatertopobjects.h.

References NULL, and onGetByOwnerName().

Referenced by postBuild().

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, mode, 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().

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().

BOOL LLFloaterTopObjects::postBuild (  )  [virtual]

Reimplemented from LLPanel.

Definition at line 83 of file llfloatertopobjects.cpp.

References LLPanel::childSetAction(), LLPanel::childSetCommitCallback(), LLPanel::childSetDoubleClickCallback(), LLPanel::childSetFocus(), LLUICtrlFactory::getScrollListByName(), mCurrentMode, mFilter, mFlags, onClickShowBeacon(), onCommitObjectsList(), onDisableAll(), onDisableSelected(), onDoubleClickObjectsList(), onGetByObjectNameClicked(), onGetByOwnerNameClicked(), onRefresh(), onReturnAll(), onReturnSelected(), LLScrollListCtrl::setCommitOnSelectionChange(), LLPanel::setDefaultBtn(), STAT_REPORT_TOP_SCRIPTS, and TRUE.

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::show (  )  [static]

Definition at line 56 of file llfloatertopobjects.cpp.

References LLUICtrlFactory::buildFloater(), LLFloater::center(), gUICtrlFactory, LLFloaterTopObjects(), LLFloater::setVisibleAndFrontmost(), and sInstance.

Referenced by handle_land_reply(), LLPanelRegionDebugInfo::onClickTopColliders(), LLPanelRegionDebugInfo::onClickTopScripts(), LLPanelObjectTools::onGetTopColliders(), and LLPanelObjectTools::onGetTopScripts().

void LLFloaterTopObjects::showBeacon (  )  [private]

Definition at line 446 of file llfloatertopobjects.cpp.

References gAgent, LLScrollListItem::getColumn(), LLAgent::getPosGlobalFromAgent(), LLUICtrlFactory::getScrollListByName(), LLScrollListCell::getText(), list, LLTracker::LOCATION_ITEM, S32, LLTracker::trackLocation(), x, y, and z.

void LLFloaterTopObjects::updateSelectionInfo (  ) 

Definition at line 248 of file llfloatertopobjects.cpp.

References LLUUID::asString(), LLPanel::childSetValue(), LLUICtrlFactory::getScrollListByName(), LLUUID::isNull(), and list.


Member Data Documentation

U32 LLFloaterTopObjects::mCurrentMode [private]

Definition at line 92 of file llfloatertopobjects.h.

Referenced by handleReply(), onRefresh(), postBuild(), and setMode().

LLString LLFloaterTopObjects::mFilter [private]

Definition at line 94 of file llfloatertopobjects.h.

Referenced by onGetByObjectName(), onGetByOwnerName(), onRefresh(), and postBuild().

U32 LLFloaterTopObjects::mFlags [private]

Definition at line 93 of file llfloatertopobjects.h.

Referenced by onGetByObjectName(), onGetByOwnerName(), onRefresh(), and postBuild().

BOOL LLFloaterTopObjects::mInitialized [private]

Definition at line 96 of file llfloatertopobjects.h.

Referenced by handle_land_reply().

LLString LLFloaterTopObjects::mMethod [private]

Definition at line 87 of file llfloatertopobjects.h.

LLSD LLFloaterTopObjects::mObjectListData [private]

Definition at line 89 of file llfloatertopobjects.h.

Referenced by clearList(), and handleReply().

std::vector<LLUUID> LLFloaterTopObjects::mObjectListIDs [private]

Definition at line 90 of file llfloatertopobjects.h.

Referenced by clearList(), doToObjects(), handle_land_reply(), and handleReply().

F32 LLFloaterTopObjects::mtotalScore [private]

Definition at line 98 of file llfloatertopobjects.h.

Referenced by clearList(), and handleReply().

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().


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