#include <llfloatergodtools.h>
Public Types | |
enum | EGodPanel { PANEL_GRID, PANEL_REGION, PANEL_OBJECT, PANEL_REQUEST, PANEL_COUNT } |
Public Member Functions | |
void | showPanel (const LLString &panel_name) |
virtual void | onClose (bool app_quitting) |
virtual void | draw () |
void | updatePopup (LLCoordGL center, MASK mask) |
void | sendRegionInfoRequest () |
void | sendGodUpdateRegionInfo () |
Static Public Member Functions | |
static LLFloaterGodTools * | instance () |
static void | show (void *) |
static void | hide (void *) |
static void * | createPanelGrid (void *userdata) |
static void * | createPanelRegion (void *userdata) |
static void * | createPanelObjects (void *userdata) |
static void * | createPanelRequest (void *userdata) |
static void | refreshAll () |
static void | processRegionInfo (LLMessageSystem *msg) |
static void | onTabChanged (void *data, bool from_click) |
Public Attributes | |
LLPanelRegionTools * | mPanelRegionTools |
LLPanelObjectTools * | mPanelObjectTools |
LLHost | mCurrentHost |
LLFrameTimer | mUpdateTimer |
Protected Member Functions | |
U32 | computeRegionFlags () const |
LLFloaterGodTools () | |
~LLFloaterGodTools () | |
void | resetToolState () |
Static Protected Attributes | |
static LLFloaterGodTools * | sInstance |
Definition at line 58 of file llfloatergodtools.h.
Definition at line 65 of file llfloatergodtools.h.
LLFloaterGodTools::LLFloaterGodTools | ( | ) | [protected] |
Definition at line 117 of file llfloatergodtools.cpp.
References LLUICtrlFactory::buildFloater(), LLPanel::childSetTabChangeCallback(), LLPanel::childShowTab(), createPanelGrid(), createPanelObjects(), createPanelRegion(), createPanelRequest(), LLSingleton< LLUICtrlFactory >::getInstance(), onTabChanged(), and sendRegionInfoRequest().
Referenced by instance().
LLFloaterGodTools::~LLFloaterGodTools | ( | ) | [protected] |
Definition at line 167 of file llfloatergodtools.cpp.
LLFloaterGodTools * LLFloaterGodTools::instance | ( | void | ) | [static] |
Definition at line 88 of file llfloatergodtools.cpp.
References LLFloater::center(), LLFloaterGodTools(), LLFloater::open(), LLFloater::setFocus(), and TRUE.
Referenced by refreshAll(), and show().
void LLFloaterGodTools::show | ( | void * | ) | [static] |
Definition at line 212 of file llfloatergodtools.cpp.
References LLPanel::childGetVisibleTab(), gAgent, LLAgent::getRegionHost(), instance(), mCurrentHost, mPanelObjectTools, LLUUID::null, LLFloater::open(), sendRegionInfoRequest(), LLPanel::setFocus(), LLPanelObjectTools::setTargetAvatar(), and TRUE.
Referenced by init_server_menu().
static void LLFloaterGodTools::hide | ( | void * | ) | [static] |
void * LLFloaterGodTools::createPanelGrid | ( | void * | userdata | ) | [static] |
Definition at line 140 of file llfloatergodtools.cpp.
Referenced by LLFloaterGodTools().
void * LLFloaterGodTools::createPanelRegion | ( | void * | userdata | ) | [static] |
Definition at line 146 of file llfloatergodtools.cpp.
Referenced by LLFloaterGodTools().
void * LLFloaterGodTools::createPanelObjects | ( | void * | userdata | ) | [static] |
Definition at line 154 of file llfloatergodtools.cpp.
Referenced by LLFloaterGodTools().
void * LLFloaterGodTools::createPanelRequest | ( | void * | userdata | ) | [static] |
Definition at line 162 of file llfloatergodtools.cpp.
Referenced by LLFloaterGodTools().
void LLFloaterGodTools::refreshAll | ( | ) | [static] |
Definition at line 102 of file llfloatergodtools.cpp.
References gAgent, LLAgent::getRegionHost(), instance(), mCurrentHost, and sendRegionInfoRequest().
void LLFloaterGodTools::showPanel | ( | const LLString & | panel_name | ) |
Definition at line 227 of file llfloatergodtools.cpp.
References LLPanel::childGetVisibleTab(), LLPanel::childShowTab(), LLFloater::open(), LLPanel::setFocus(), and TRUE.
void LLFloaterGodTools::onClose | ( | bool | app_quitting | ) | [virtual] |
Reimplemented from LLFloater.
Definition at line 186 of file llfloatergodtools.cpp.
References FALSE, and LLFloater::setVisible().
void LLFloaterGodTools::draw | ( | void | ) | [virtual] |
Reimplemented from LLFloater.
Definition at line 195 of file llfloatergodtools.cpp.
References LLFloater::draw(), gAgent, LLFrameTimer::getElapsedTimeF32(), LLAgent::getRegionHost(), LLHost::invalid, mCurrentHost, mUpdateTimer, SECONDS_BETWEEN_UPDATE_REQUESTS, and sendRegionInfoRequest().
Definition at line 181 of file llfloatergodtools.cpp.
void LLFloaterGodTools::sendRegionInfoRequest | ( | ) |
Definition at line 346 of file llfloatergodtools.cpp.
References LLMessageSystem::addUUID(), LLPanelObjectTools::clearAllWidgets(), LLPanelRegionTools::clearAllWidgets(), gAgent, LLAgent::getID(), LLAgent::getSessionID(), gMessageSystem, LLHost::invalid, mCurrentHost, mPanelObjectTools, mPanelRegionTools, mUpdateTimer, LLMessageSystem::newMessage(), LLMessageSystem::nextBlock(), LLFrameTimer::reset(), and LLAgent::sendReliableMessage().
Referenced by draw(), LLFloaterGodTools(), LLPanelRegionTools::onRefresh(), refreshAll(), and show().
void LLFloaterGodTools::processRegionInfo | ( | LLMessageSystem * | msg | ) | [static] |
Definition at line 248 of file llfloatergodtools.cpp.
References _PREHASH_BillableFactor, _PREHASH_EstateID, _PREHASH_MaxAgents, _PREHASH_ObjectBonusFactor, _PREHASH_ParentEstateID, _PREHASH_PricePerMeter, _PREHASH_RedirectGridX, _PREHASH_RedirectGridY, _PREHASH_RegionFlags, _PREHASH_RegionInfo, _PREHASH_SimAccess, _PREHASH_SimName, _PREHASH_TerrainLowerLimit, _PREHASH_TerrainRaiseLimit, _PREHASH_WaterHeight, LLPanelObjectTools::enableAllWidgets(), LLPanelRegionTools::enableAllWidgets(), gAgent, LLMessageSystem::getF32Fast(), LLViewerRegion::getPosGlobalFromRegion(), LLAgent::getRegion(), LLAgent::getRegionHost(), LLMessageSystem::getS32Fast(), LLMessageSystem::getSender(), LLMessageSystem::getStringFast(), LLMessageSystem::getU32Fast(), LLMessageSystem::getU8Fast(), LLAgent::isGodlike(), MAX_STRING, mCurrentHost, LLVector3d::mdV, mPanelObjectTools, mPanelRegionTools, S32, LLPanelRegionTools::setBillableFactor(), LLViewerRegion::setBillableFactor(), LLPanelObjectTools::setCheckFlags(), LLPanelRegionTools::setCheckFlags(), LLPanelRegionTools::setEstateID(), LLPanelRegionTools::setGridPosX(), LLPanelRegionTools::setGridPosY(), LLPanelRegionTools::setParentEstateID(), LLPanelRegionTools::setPricePerMeter(), LLPanelRegionTools::setRedirectGridX(), LLPanelRegionTools::setRedirectGridY(), LLViewerRegion::setRegionFlags(), LLViewerRegion::setRegionNameAndZone(), LLViewerRegion::setSimAccess(), LLPanelRegionTools::setSimName(), LLViewerRegion::setWaterHeight(), VX, VY, and LLVector3::zero.
Referenced by LLViewerRegion::processRegionInfo().
void LLFloaterGodTools::sendGodUpdateRegionInfo | ( | ) |
Definition at line 362 of file llfloatergodtools.cpp.
References _PREHASH_AgentData, _PREHASH_AgentID, _PREHASH_BillableFactor, _PREHASH_EstateID, _PREHASH_ParentEstateID, _PREHASH_PricePerMeter, _PREHASH_RedirectGridX, _PREHASH_RedirectGridY, _PREHASH_RegionFlags, _PREHASH_RegionInfo, _PREHASH_SessionID, _PREHASH_SimName, LLMessageSystem::addF32Fast(), LLMessageSystem::addS32Fast(), LLMessageSystem::addStringFast(), LLMessageSystem::addU32Fast(), LLMessageSystem::addUUIDFast(), computeRegionFlags(), gAgent, LLPanelRegionTools::getBillableFactor(), LLPanelRegionTools::getEstateID(), LLAgent::getID(), LLPanelRegionTools::getParentEstateID(), LLPanelRegionTools::getPricePerMeter(), LLPanelRegionTools::getRedirectGridX(), LLPanelRegionTools::getRedirectGridY(), LLAgent::getRegion(), LLAgent::getRegionHost(), LLAgent::getSessionID(), LLPanelRegionTools::getSimName(), gMessageSystem, LLAgent::isGodlike(), mCurrentHost, mPanelRegionTools, LLMessageSystem::newMessage(), LLMessageSystem::nextBlockFast(), and LLAgent::sendReliableMessage().
Referenced by LLPanelObjectTools::onApplyChanges(), and LLPanelRegionTools::onApplyChanges().
void LLFloaterGodTools::onTabChanged | ( | void * | data, | |
bool | from_click | |||
) | [static] |
Definition at line 237 of file llfloatergodtools.cpp.
References LLPanel::setFocus(), and TRUE.
Referenced by LLFloaterGodTools().
U32 LLFloaterGodTools::computeRegionFlags | ( | ) | const [protected] |
Definition at line 172 of file llfloatergodtools.cpp.
References LLPanelObjectTools::computeRegionFlags(), LLPanelRegionTools::computeRegionFlags(), gAgent, LLAgent::getRegion(), LLViewerRegion::getRegionFlags(), mPanelObjectTools, and mPanelRegionTools.
Referenced by sendGodUpdateRegionInfo().
void LLFloaterGodTools::resetToolState | ( | ) | [protected] |
LLFloaterGodTools* LLFloaterGodTools::sInstance [static, protected] |
Definition at line 116 of file llfloatergodtools.h.
Definition at line 119 of file llfloatergodtools.h.
Referenced by computeRegionFlags(), processRegionInfo(), sendGodUpdateRegionInfo(), and sendRegionInfoRequest().
Definition at line 120 of file llfloatergodtools.h.
Referenced by computeRegionFlags(), processRegionInfo(), sendRegionInfoRequest(), and show().
Definition at line 122 of file llfloatergodtools.h.
Referenced by draw(), processRegionInfo(), refreshAll(), sendGodUpdateRegionInfo(), sendRegionInfoRequest(), and show().
Definition at line 123 of file llfloatergodtools.h.
Referenced by draw(), and sendRegionInfoRequest().