#include <llpanelvolume.h>
Public Member Functions | |
LLPanelVolume (const std::string &name) | |
virtual | ~LLPanelVolume () |
virtual void | draw () |
virtual void | clearCtrls () |
virtual BOOL | postBuild () |
void | refresh () |
void | sendIsLight () |
void | sendIsFlexible () |
Static Public Member Functions | |
static BOOL | precommitValidate (LLUICtrl *ctrl, void *userdata) |
static void | onCommitIsLight (LLUICtrl *ctrl, void *userdata) |
static void | onCommitLight (LLUICtrl *ctrl, void *userdata) |
static void | onCommitIsFlexible (LLUICtrl *ctrl, void *userdata) |
static void | onCommitFlexible (LLUICtrl *ctrl, void *userdata) |
static void | onLightCancelColor (LLUICtrl *ctrl, void *userdata) |
static void | onLightSelectColor (LLUICtrl *ctrl, void *userdata) |
Protected Member Functions | |
void | getState () |
Protected Attributes | |
LLColor4 | mLightSavedColor |
LLPointer< LLViewerObject > | mObject |
LLPointer< LLViewerObject > | mRootObject |
Definition at line 50 of file llpanelvolume.h.
LLPanelVolume::LLPanelVolume | ( | const std::string & | name | ) |
Definition at line 127 of file llpanelvolume.cpp.
References FALSE, and LLView::setMouseOpaque().
LLPanelVolume::~LLPanelVolume | ( | ) | [virtual] |
Definition at line 135 of file llpanelvolume.cpp.
void LLPanelVolume::draw | ( | void | ) | [virtual] |
Reimplemented from LLPanel.
Definition at line 341 of file llpanelvolume.cpp.
References LLPanel::draw().
void LLPanelVolume::clearCtrls | ( | ) | [virtual] |
Reimplemented from LLPanel.
Definition at line 347 of file llpanelvolume.cpp.
References LLPanel::childSetEnabled(), LLPanel::childSetVisible(), LLPanel::clearCtrls(), FALSE, LLColorSwatchCtrl::setEnabled(), and LLColorSwatchCtrl::setValid().
Referenced by getState(), and postBuild().
BOOL LLPanelVolume::postBuild | ( | void | ) | [virtual] |
Reimplemented from LLPanel.
Definition at line 81 of file llpanelvolume.cpp.
References LLPanel::childSetCommitCallback(), LLPanel::childSetValidate(), clearCtrls(), onCommitFlexible(), onCommitIsFlexible(), onCommitIsLight(), onCommitLight(), onLightCancelColor(), onLightSelectColor(), precommitValidate(), LLColorSwatchCtrl::setOnCancelCallback(), LLColorSwatchCtrl::setOnSelectCallback(), and TRUE.
void LLPanelVolume::refresh | ( | ) | [virtual] |
Reimplemented from LLPanel.
Definition at line 326 of file llpanelvolume.cpp.
References getState(), mObject, mRootObject, LLPointer< Type >::notNull(), and NULL.
Referenced by LLFloaterTools::refresh().
void LLPanelVolume::sendIsLight | ( | ) |
Definition at line 383 of file llpanelvolume.cpp.
References LLPanel::childGetValue(), LLPrimitive::getPCode(), LL_PCODE_VOLUME, llendl, llinfos, mObject, and LLVOVolume::setIsLight().
void LLPanelVolume::sendIsFlexible | ( | ) |
Definition at line 397 of file llpanelvolume.cpp.
References LLPanel::childGetValue(), CLICK_ACTION_NONE, CLICK_ACTION_SIT, LLViewerObject::flagPhantom(), LLViewerObject::getClickAction(), LLSingleton< LLSelectMgr >::getInstance(), LLPrimitive::getPCode(), LL_PCODE_VOLUME, llendl, llinfos, mObject, LLSelectMgr::selectionSetClickAction(), LLSelectMgr::selectionUpdatePhantom(), LLVOVolume::setIsFlexible(), and LLFirstUse::useFlexible().
Definition at line 319 of file llpanelvolume.cpp.
References TRUE.
Referenced by postBuild().
void LLPanelVolume::onCommitIsLight | ( | LLUICtrl * | ctrl, | |
void * | userdata | |||
) | [static] |
Definition at line 485 of file llpanelvolume.cpp.
Referenced by postBuild().
void LLPanelVolume::onCommitLight | ( | LLUICtrl * | ctrl, | |
void * | userdata | |||
) | [static] |
Definition at line 462 of file llpanelvolume.cpp.
References LLColorSwatchCtrl::get(), LLPrimitive::getPCode(), LL_PCODE_VOLUME, LLVOVolume::setLightColor(), LLVOVolume::setLightFalloff(), LLVOVolume::setLightIntensity(), and LLVOVolume::setLightRadius().
Referenced by postBuild().
void LLPanelVolume::onCommitIsFlexible | ( | LLUICtrl * | ctrl, | |
void * | userdata | |||
) | [static] |
Definition at line 529 of file llpanelvolume.cpp.
Referenced by postBuild().
void LLPanelVolume::onCommitFlexible | ( | LLUICtrl * | ctrl, | |
void * | userdata | |||
) | [static] |
Definition at line 494 of file llpanelvolume.cpp.
References LLViewerObject::getParameterEntry(), LLPrimitive::getPCode(), LL_PCODE_VOLUME, LLNetworkData::PARAMS_FLEXIBLE, LLFlexibleObjectData::setAirFriction(), LLFlexibleObjectData::setGravity(), LLViewerObject::setParameterEntry(), LLFlexibleObjectData::setSimulateLOD(), LLFlexibleObjectData::setTension(), LLFlexibleObjectData::setUserForce(), and LLFlexibleObjectData::setWindSensitivity().
Referenced by postBuild().
void LLPanelVolume::onLightCancelColor | ( | LLUICtrl * | ctrl, | |
void * | userdata | |||
) | [static] |
Definition at line 429 of file llpanelvolume.cpp.
References NULL, onLightSelectColor(), and LLUICtrl::setColor().
Referenced by postBuild().
void LLPanelVolume::onLightSelectColor | ( | LLUICtrl * | ctrl, | |
void * | userdata | |||
) | [static] |
Definition at line 440 of file llpanelvolume.cpp.
References LLColorSwatchCtrl::get(), LLPrimitive::getPCode(), LL_PCODE_VOLUME, and LLVOVolume::setLightColor().
Referenced by onLightCancelColor(), and postBuild().
void LLPanelVolume::getState | ( | ) | [protected] |
Definition at line 140 of file llpanelvolume.cpp.
References LLVOVolume::canBeFlexible(), LLFocusMgr::childHasKeyboardFocus(), LLPanel::childSetEnabled(), LLPanel::childSetValue(), LLPanel::childSetVisible(), LLUICtrl::clear(), clearCtrls(), FALSE, LLFlexibleObjectData::getAirFriction(), LLFlexibleObjectData::getGravity(), LLSingleton< LLSelectMgr >::getInstance(), LLVOVolume::getIsLight(), LLVOVolume::getLightBaseColor(), LLVOVolume::getLightColor(), LLVOVolume::getLightFalloff(), LLVOVolume::getLightIntensity(), LLVOVolume::getLightRadius(), LLViewerObject::getParameterEntry(), LLPrimitive::getPCode(), LLSelectMgr::getSelection(), LLFlexibleObjectData::getSimulateLOD(), LLViewerObject::getSubParent(), LLFlexibleObjectData::getTension(), LLFlexibleObjectData::getUserForce(), LLFlexibleObjectData::getWindSensitivity(), gFocusMgr, LLVOVolume::isFlexible(), LL_PCODE_VOLUME, mLightSavedColor, mObject, mRootObject, LLVector3::mV, NULL, LLNetworkData::PARAMS_FLEXIBLE, LLViewerObject::permModify(), LLSelectMgr::selectGetOwner(), LLSelectMgr::selectionAllPCode(), LLColorSwatchCtrl::set(), LLColorSwatchCtrl::setEnabled(), LLFocusMgr::setKeyboardFocus(), LLColorSwatchCtrl::setValid(), TRUE, VX, VY, and VZ.
Referenced by refresh().
LLColor4 LLPanelVolume::mLightSavedColor [protected] |
LLPointer<LLViewerObject> LLPanelVolume::mObject [protected] |
Definition at line 101 of file llpanelvolume.h.
Referenced by getState(), refresh(), sendIsFlexible(), and sendIsLight().
LLPointer<LLViewerObject> LLPanelVolume::mRootObject [protected] |