#include <llpanelvolume.h>
Inheritance diagram for LLPanelVolume:
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 | ) |
LLPanelVolume::~LLPanelVolume | ( | ) | [virtual] |
Definition at line 136 of file llpanelvolume.cpp.
void LLPanelVolume::clearCtrls | ( | ) | [virtual] |
Reimplemented from LLPanel.
Definition at line 335 of file llpanelvolume.cpp.
References LLPanel::childSetEnabled(), LLPanel::childSetVisible(), LLPanel::clearCtrls(), FALSE, LLUICtrlFactory::getColorSwatchByName(), gUICtrlFactory, LLColorSwatchCtrl::setEnabled(), and LLColorSwatchCtrl::setValid().
Referenced by getState(), and postBuild().
void LLPanelVolume::draw | ( | ) | [virtual] |
Reimplemented from LLPanel.
Definition at line 329 of file llpanelvolume.cpp.
References LLPanel::draw().
void LLPanelVolume::getState | ( | ) | [protected] |
Definition at line 141 of file llpanelvolume.cpp.
References LLVOVolume::canBeFlexible(), LLFocusMgr::childHasKeyboardFocus(), LLPanel::childSetEnabled(), LLPanel::childSetValue(), LLPanel::childSetVisible(), clearCtrls(), FALSE, LLFlexibleObjectData::getAirFriction(), LLUICtrlFactory::getColorSwatchByName(), LLFlexibleObjectData::getGravity(), 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, gSelectMgr, gUICtrlFactory, 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().
Definition at line 482 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().
Definition at line 450 of file llpanelvolume.cpp.
References LLColorSwatchCtrl::get(), LLUICtrlFactory::getColorSwatchByName(), LLPrimitive::getPCode(), gUICtrlFactory, LL_PCODE_VOLUME, LLVOVolume::setLightColor(), LLVOVolume::setLightFalloff(), LLVOVolume::setLightIntensity(), and LLVOVolume::setLightRadius().
Referenced by postBuild().
Definition at line 417 of file llpanelvolume.cpp.
References LLUICtrlFactory::getColorSwatchByName(), gUICtrlFactory, NULL, onLightSelectColor(), and LLUICtrl::setColor().
Referenced by postBuild().
Definition at line 428 of file llpanelvolume.cpp.
References LLColorSwatchCtrl::get(), LLUICtrlFactory::getColorSwatchByName(), LLPrimitive::getPCode(), gUICtrlFactory, LL_PCODE_VOLUME, and LLVOVolume::setLightColor().
Referenced by onLightCancelColor(), and postBuild().
BOOL LLPanelVolume::postBuild | ( | ) | [virtual] |
Reimplemented from LLPanel.
Definition at line 82 of file llpanelvolume.cpp.
References LLPanel::childSetCommitCallback(), LLPanel::childSetValidate(), clearCtrls(), LLUICtrlFactory::getColorSwatchByName(), gUICtrlFactory, onCommitFlexible(), onCommitIsFlexible(), onCommitIsLight(), onCommitLight(), onLightCancelColor(), onLightSelectColor(), precommitValidate(), LLColorSwatchCtrl::setOnCancelCallback(), LLColorSwatchCtrl::setOnSelectCallback(), and TRUE.
void LLPanelVolume::refresh | ( | ) | [virtual] |
Reimplemented from LLPanel.
Definition at line 314 of file llpanelvolume.cpp.
References getState(), mObject, mRootObject, LLPointer< Type >::notNull(), and NULL.
Referenced by LLFloaterTools::refresh().
void LLPanelVolume::sendIsFlexible | ( | ) |
Definition at line 385 of file llpanelvolume.cpp.
References LLPanel::childGetValue(), CLICK_ACTION_NONE, CLICK_ACTION_SIT, LLViewerObject::flagPhantom(), LLViewerObject::getClickAction(), LLPrimitive::getPCode(), gSelectMgr, LL_PCODE_VOLUME, llendl, llinfos, mObject, LLSelectMgr::selectionSetClickAction(), LLSelectMgr::selectionUpdatePhantom(), LLVOVolume::setIsFlexible(), and LLFirstUse::useFlexible().
void LLPanelVolume::sendIsLight | ( | ) |
Definition at line 371 of file llpanelvolume.cpp.
References LLPanel::childGetValue(), LLPrimitive::getPCode(), LL_PCODE_VOLUME, llendl, llinfos, mObject, and LLVOVolume::setIsLight().
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] |