#include <llfloatergodtools.h>
Public Member Functions | |
LLPanelRegionTools (const std::string &name) | |
~LLPanelRegionTools () | |
BOOL | postBuild () |
void | refresh () |
const std::string | getSimName () const |
U32 | getEstateID () const |
U32 | getParentEstateID () const |
U32 | getRegionFlags () const |
U32 | getRegionFlagsMask () const |
F32 | getBillableFactor () const |
S32 | getPricePerMeter () const |
S32 | getGridPosX () const |
S32 | getGridPosY () const |
S32 | getRedirectGridX () const |
S32 | getRedirectGridY () const |
void | setSimName (char *name) |
void | setEstateID (U32 id) |
void | setParentEstateID (U32 id) |
void | setCheckFlags (U32 flags) |
void | setBillableFactor (F32 billable_factor) |
void | setPricePerMeter (S32 price) |
void | setGridPosX (S32 pos) |
void | setGridPosY (S32 pos) |
void | setRedirectGridX (S32 pos) |
void | setRedirectGridY (S32 pos) |
U32 | computeRegionFlags (U32 initial_flags) const |
void | clearAllWidgets () |
void | enableAllWidgets () |
Static Public Member Functions | |
static void | onSaveState (void *data) |
static void | onChangeAnything (LLUICtrl *ctrl, void *userdata) |
static void | onChangePrelude (LLUICtrl *ctrl, void *data) |
static void | onChangeSimName (LLLineEditor *caller, void *userdata) |
static void | onApplyChanges (void *userdata) |
static void | onBakeTerrain (void *userdata) |
static void | onRevertTerrain (void *userdata) |
static void | onSwapTerrain (void *userdata) |
static void | onSelectRegion (void *userdata) |
static void | onRefresh (void *userdata) |
Protected Member Functions | |
void | updateCurrentRegion () const |
Definition at line 131 of file llfloatergodtools.h.
LLPanelRegionTools::LLPanelRegionTools | ( | const std::string & | name | ) |
Definition at line 428 of file llfloatergodtools.cpp.
LLPanelRegionTools::~LLPanelRegionTools | ( | ) |
Definition at line 488 of file llfloatergodtools.cpp.
BOOL LLPanelRegionTools::postBuild | ( | void | ) | [virtual] |
Reimplemented from LLPanel.
Definition at line 433 of file llfloatergodtools.cpp.
References LLPanel::childDisable(), LLPanel::childSetAction(), LLPanel::childSetCommitCallback(), LLPanel::childSetKeystrokeCallback(), LLPanel::childSetPrevalidate(), onApplyChanges(), onBakeTerrain(), onChangeAnything(), onChangePrelude(), onChangeSimName(), onRefresh(), onRevertTerrain(), onSaveState(), onSelectRegion(), onSwapTerrain(), LLLineEditor::prevalidatePositiveS32(), LLLineEditor::prevalidatePrintableNotPipe(), and TRUE.
void LLPanelRegionTools::refresh | ( | ) | [virtual] |
void LLPanelRegionTools::onSaveState | ( | void * | data | ) | [static] |
Definition at line 571 of file llfloatergodtools.cpp.
References _PREHASH_AgentData, _PREHASH_AgentID, _PREHASH_DataBlock, _PREHASH_Filename, _PREHASH_SessionID, _PREHASH_StateSave, LLMessageSystem::addStringFast(), LLMessageSystem::addUUIDFast(), gAgent, LLAgent::getID(), LLAgent::getSessionID(), gMessageSystem, LLAgent::isGodlike(), LLMessageSystem::newMessageFast(), LLMessageSystem::nextBlockFast(), NULL, and LLAgent::sendReliableMessage().
Referenced by init_server_menu(), and postBuild().
void LLPanelRegionTools::onChangeAnything | ( | LLUICtrl * | ctrl, | |
void * | userdata | |||
) | [static] |
Definition at line 768 of file llfloatergodtools.cpp.
References LLPanel::childEnable(), gAgent, and LLAgent::isGodlike().
Referenced by onChangePrelude(), and postBuild().
void LLPanelRegionTools::onChangePrelude | ( | LLUICtrl * | ctrl, | |
void * | data | |||
) | [static] |
Definition at line 780 of file llfloatergodtools.cpp.
References onChangeAnything(), and TRUE.
Referenced by postBuild().
void LLPanelRegionTools::onChangeSimName | ( | LLLineEditor * | caller, | |
void * | userdata | |||
) | [static] |
Definition at line 794 of file llfloatergodtools.cpp.
References LLPanel::childEnable(), gAgent, and LLAgent::isGodlike().
Referenced by postBuild().
void LLPanelRegionTools::onApplyChanges | ( | void * | userdata | ) | [static] |
Definition at line 818 of file llfloatergodtools.cpp.
References LLPanel::childDisable(), gAgent, LLAgent::getRegion(), LLAgent::isGodlike(), and LLFloaterGodTools::sendGodUpdateRegionInfo().
Referenced by postBuild().
void LLPanelRegionTools::onBakeTerrain | ( | void * | userdata | ) | [static] |
Definition at line 834 of file llfloatergodtools.cpp.
References gAgent, LLAgent::getRegionHost(), and LLPanelRequestTools::sendRequest().
Referenced by postBuild().
void LLPanelRegionTools::onRevertTerrain | ( | void * | userdata | ) | [static] |
Definition at line 840 of file llfloatergodtools.cpp.
References gAgent, LLAgent::getRegionHost(), and LLPanelRequestTools::sendRequest().
Referenced by postBuild().
void LLPanelRegionTools::onSwapTerrain | ( | void * | userdata | ) | [static] |
Definition at line 846 of file llfloatergodtools.cpp.
References gAgent, LLAgent::getRegionHost(), and LLPanelRequestTools::sendRequest().
Referenced by postBuild().
void LLPanelRegionTools::onSelectRegion | ( | void * | userdata | ) | [static] |
Definition at line 852 of file llfloatergodtools.cpp.
References FALSE, gAgent, LLSingleton< LLViewerParcelMgr >::getInstance(), LLSingleton< LLWorld >::getInstance(), LLViewerRegion::getOriginGlobal(), LLAgent::getPositionGlobal(), LLWorld::getRegionFromPosGlobal(), llendl, llinfos, REGION_WIDTH_METERS, and LLViewerParcelMgr::selectLand().
Referenced by postBuild().
void LLPanelRegionTools::onRefresh | ( | void * | userdata | ) | [static] |
Definition at line 806 of file llfloatergodtools.cpp.
References gAgent, LLAgent::getRegion(), LLAgent::isGodlike(), and LLFloaterGodTools::sendRegionInfoRequest().
Referenced by postBuild().
const std::string LLPanelRegionTools::getSimName | ( | ) | const |
Definition at line 586 of file llfloatergodtools.cpp.
References LLPanel::childGetValue().
Referenced by LLFloaterGodTools::sendGodUpdateRegionInfo().
U32 LLPanelRegionTools::getEstateID | ( | ) | const |
Definition at line 591 of file llfloatergodtools.cpp.
References LLSD::asInteger(), and LLPanel::childGetValue().
Referenced by LLFloaterGodTools::sendGodUpdateRegionInfo().
U32 LLPanelRegionTools::getParentEstateID | ( | ) | const |
Definition at line 597 of file llfloatergodtools.cpp.
References LLSD::asInteger(), and LLPanel::childGetValue().
Referenced by LLFloaterGodTools::sendGodUpdateRegionInfo().
U32 LLPanelRegionTools::getRegionFlags | ( | ) | const |
Definition at line 623 of file llfloatergodtools.cpp.
References LLSD::asBoolean(), LLPanel::childGetValue(), REGION_FLAGS_ALLOW_DAMAGE, REGION_FLAGS_BLOCK_DWELL, REGION_FLAGS_BLOCK_TERRAFORM, REGION_FLAGS_EXTERNALLY_VISIBLE, REGION_FLAGS_RESET_HOME_ON_TELEPORT, REGION_FLAGS_SANDBOX, REGION_FLAGS_SUN_FIXED, set_prelude_flags(), and unset_prelude_flags().
Referenced by computeRegionFlags().
U32 LLPanelRegionTools::getRegionFlagsMask | ( | ) | const |
Definition at line 662 of file llfloatergodtools.cpp.
References LLSD::asBoolean(), LLPanel::childGetValue(), REGION_FLAGS_ALLOW_DAMAGE, REGION_FLAGS_BLOCK_DWELL, REGION_FLAGS_BLOCK_TERRAFORM, REGION_FLAGS_EXTERNALLY_VISIBLE, REGION_FLAGS_RESET_HOME_ON_TELEPORT, REGION_FLAGS_SANDBOX, REGION_FLAGS_SUN_FIXED, set_prelude_flags(), and unset_prelude_flags().
Referenced by computeRegionFlags().
F32 LLPanelRegionTools::getBillableFactor | ( | ) | const |
Definition at line 700 of file llfloatergodtools.cpp.
References LLSD::asReal(), and LLPanel::childGetValue().
Referenced by LLFloaterGodTools::sendGodUpdateRegionInfo().
S32 LLPanelRegionTools::getPricePerMeter | ( | ) | const |
Definition at line 705 of file llfloatergodtools.cpp.
References LLPanel::childGetValue().
Referenced by LLFloaterGodTools::sendGodUpdateRegionInfo().
S32 LLPanelRegionTools::getGridPosX | ( | ) | const |
Definition at line 613 of file llfloatergodtools.cpp.
References LLSD::asInteger(), and LLPanel::childGetValue().
S32 LLPanelRegionTools::getGridPosY | ( | ) | const |
Definition at line 618 of file llfloatergodtools.cpp.
References LLSD::asInteger(), and LLPanel::childGetValue().
S32 LLPanelRegionTools::getRedirectGridX | ( | ) | const |
Definition at line 603 of file llfloatergodtools.cpp.
References LLSD::asInteger(), and LLPanel::childGetValue().
Referenced by LLFloaterGodTools::sendGodUpdateRegionInfo().
S32 LLPanelRegionTools::getRedirectGridY | ( | ) | const |
Definition at line 608 of file llfloatergodtools.cpp.
References LLSD::asInteger(), and LLPanel::childGetValue().
Referenced by LLFloaterGodTools::sendGodUpdateRegionInfo().
void LLPanelRegionTools::setSimName | ( | char * | name | ) |
Definition at line 710 of file llfloatergodtools.cpp.
References LLPanel::childSetValue().
Referenced by LLFloaterGodTools::processRegionInfo().
void LLPanelRegionTools::setEstateID | ( | U32 | id | ) |
Definition at line 715 of file llfloatergodtools.cpp.
References LLPanel::childSetValue(), and S32.
Referenced by LLFloaterGodTools::processRegionInfo().
void LLPanelRegionTools::setParentEstateID | ( | U32 | id | ) |
Definition at line 740 of file llfloatergodtools.cpp.
References LLPanel::childSetValue(), and S32.
Referenced by LLFloaterGodTools::processRegionInfo().
void LLPanelRegionTools::setCheckFlags | ( | U32 | flags | ) |
Definition at line 745 of file llfloatergodtools.cpp.
References LLPanel::childSetValue(), FALSE, is_prelude(), REGION_FLAGS_ALLOW_DAMAGE, REGION_FLAGS_BLOCK_DWELL, REGION_FLAGS_BLOCK_TERRAFORM, REGION_FLAGS_EXTERNALLY_VISIBLE, REGION_FLAGS_RESET_HOME_ON_TELEPORT, REGION_FLAGS_SANDBOX, REGION_FLAGS_SUN_FIXED, and TRUE.
Referenced by LLFloaterGodTools::processRegionInfo().
void LLPanelRegionTools::setBillableFactor | ( | F32 | billable_factor | ) |
Definition at line 757 of file llfloatergodtools.cpp.
References LLPanel::childSetValue().
Referenced by LLFloaterGodTools::processRegionInfo().
void LLPanelRegionTools::setPricePerMeter | ( | S32 | price | ) |
Definition at line 762 of file llfloatergodtools.cpp.
References LLPanel::childSetValue().
Referenced by LLFloaterGodTools::processRegionInfo().
void LLPanelRegionTools::setGridPosX | ( | S32 | pos | ) |
Definition at line 720 of file llfloatergodtools.cpp.
References LLPanel::childSetValue().
Referenced by LLFloaterGodTools::processRegionInfo().
void LLPanelRegionTools::setGridPosY | ( | S32 | pos | ) |
Definition at line 725 of file llfloatergodtools.cpp.
References LLPanel::childSetValue().
Referenced by LLFloaterGodTools::processRegionInfo().
void LLPanelRegionTools::setRedirectGridX | ( | S32 | pos | ) |
Definition at line 730 of file llfloatergodtools.cpp.
References LLPanel::childSetValue().
Referenced by LLFloaterGodTools::processRegionInfo().
void LLPanelRegionTools::setRedirectGridY | ( | S32 | pos | ) |
Definition at line 735 of file llfloatergodtools.cpp.
References LLPanel::childSetValue().
Referenced by LLFloaterGodTools::processRegionInfo().
Definition at line 493 of file llfloatergodtools.cpp.
References getRegionFlags(), and getRegionFlagsMask().
Referenced by LLFloaterGodTools::computeRegionFlags().
void LLPanelRegionTools::clearAllWidgets | ( | ) |
Definition at line 506 of file llfloatergodtools.cpp.
References BILLABLE_FACTOR_DEFAULT, LLPanel::childDisable(), LLPanel::childSetFocus(), LLPanel::childSetValue(), FALSE, and PRICE_PER_METER_DEFAULT.
Referenced by LLFloaterGodTools::sendRegionInfoRequest().
void LLPanelRegionTools::enableAllWidgets | ( | ) |
Definition at line 548 of file llfloatergodtools.cpp.
References LLPanel::childDisable(), and LLPanel::childEnable().
Referenced by LLFloaterGodTools::processRegionInfo().
void LLPanelRegionTools::updateCurrentRegion | ( | ) | const [protected] |