Public Member Functions | |
LLScrollingPanelParam (const LLString &name, LLViewerJointMesh *mesh, LLViewerVisualParam *param, BOOL allow_modify) | |
virtual | ~LLScrollingPanelParam () |
virtual void | draw () |
virtual void | setVisible (BOOL visible) |
virtual void | updatePanel (BOOL allow_modify) |
void | onHintMouseDown (LLVisualParamHint *hint) |
void | onHintHeldDown (LLVisualParamHint *hint) |
F32 | weightToPercent (F32 weight) |
F32 | percentToWeight (F32 percent) |
Static Public Member Functions | |
static void | onSliderMouseDown (LLUICtrl *ctrl, void *userdata) |
static void | onSliderMoved (LLUICtrl *ctrl, void *userdata) |
static void | onSliderMouseUp (LLUICtrl *ctrl, void *userdata) |
static void | onHintMinMouseDown (void *userdata) |
static void | onHintMinHeldDown (void *userdata) |
static void | onHintMaxMouseDown (void *userdata) |
static void | onHintMaxHeldDown (void *userdata) |
static void | onHintMinMouseUp (void *userdata) |
static void | onHintMaxMouseUp (void *userdata) |
Public Attributes | |
LLViewerVisualParam * | mParam |
LLVisualParamHint * | mHintMin |
LLVisualParamHint * | mHintMax |
Static Public Attributes | |
static S32 | sUpdateDelayFrames = 0 |
Protected Attributes | |
LLTimer | mMouseDownTimer |
F32 | mLastHeldTime |
BOOL | mAllowModify |
Definition at line 1097 of file llfloatercustomize.cpp.
LLScrollingPanelParam::LLScrollingPanelParam | ( | const LLString & | name, | |
LLViewerJointMesh * | mesh, | |||
LLViewerVisualParam * | param, | |||
BOOL | allow_modify | |||
) |
Definition at line 1147 of file llfloatercustomize.cpp.
References LLUICtrlFactory::buildPanel(), LLPanel::childSetCommitCallback(), LLPanel::childSetEnabled(), LLPanel::childSetLabelArg(), LLPanel::childSetValue(), FALSE, LLVisualParam::getDisplayName(), LLSingleton< LLUICtrlFactory >::getInstance(), LLVisualParam::getMaxDisplayName(), LLVisualParam::getMaxWeight(), LLVisualParam::getMinDisplayName(), LLVisualParam::getMinWeight(), LLVisualParam::getWeight(), mAllowModify, mHintMax, mHintMin, onHintMaxHeldDown(), onHintMaxMouseDown(), onHintMaxMouseUp(), onHintMinHeldDown(), onHintMinMouseDown(), onHintMinMouseUp(), onSliderMoved(), PARAM_STEP_TIME_THRESHOLD, S32, LLVisualParamHint::setAllowsUpdates(), LLPanel::setBorderVisible(), LLButton::setHeldDownCallback(), LLButton::setHeldDownDelay(), LLButton::setMouseDownCallback(), LLButton::setMouseUpCallback(), setVisible(), SLIDERCTRL_HEIGHT, and weightToPercent().
LLScrollingPanelParam::~LLScrollingPanelParam | ( | ) | [virtual] |
void LLScrollingPanelParam::draw | ( | void | ) | [virtual] |
Reimplemented from LLPanel.
Definition at line 1234 of file llfloatercustomize.cpp.
References LLPanel::childSetVisible(), LLVisualParamHint::draw(), LLPanel::draw(), LLView::drawChild(), FALSE, LLVisualParamHint::getRect(), LLVisualParamHint::getVisible(), LLFloater::isMinimized(), LLRectBase< Type >::mBottom, mHintMax, mHintMin, LLRectBase< Type >::mLeft, r, and TRUE.
void LLScrollingPanelParam::setVisible | ( | BOOL | visible | ) | [virtual] |
Reimplemented from LLView.
Definition at line 1218 of file llfloatercustomize.cpp.
References LLView::getVisible(), mHintMax, mHintMin, LLVisualParamHint::setAllowsUpdates(), LLVisualParamHint::setUpdateDelayFrames(), LLView::setVisible(), and sUpdateDelayFrames.
Referenced by LLScrollingPanelParam().
void LLScrollingPanelParam::updatePanel | ( | BOOL | allow_modify | ) | [virtual] |
Implements LLScrollingPanel.
Definition at line 1205 of file llfloatercustomize.cpp.
References LLPanel::childSetEnabled(), LLPanel::childSetValue(), LLVisualParamHint::getVisualParam(), LLVisualParam::getWeight(), mAllowModify, mHintMax, mHintMin, LLVisualParamHint::requestUpdate(), sUpdateDelayFrames, and weightToPercent().
void LLScrollingPanelParam::onSliderMouseDown | ( | LLUICtrl * | ctrl, | |
void * | userdata | |||
) | [static] |
Definition at line 1296 of file llfloatercustomize.cpp.
References LLPanelEditWearable::addVisualParamToUndoBuffer(), gAgent, LLAgent::getAvatarObject(), LLFloaterCustomize::getCurrentWearablePanel(), LLVisualParam::getID(), and LLCharacter::getVisualParamWeight().
void LLScrollingPanelParam::onSliderMoved | ( | LLUICtrl * | ctrl, | |
void * | userdata | |||
) | [static] |
Definition at line 1280 of file llfloatercustomize.cpp.
References LLSD::asReal(), gAgent, LLAgent::getAvatarObject(), LLSliderCtrl::getValue(), LLCharacter::getVisualParamWeight(), LLCharacter::setVisualParamWeight(), TRUE, and LLVOAvatar::updateVisualParams().
Referenced by LLScrollingPanelParam().
void LLScrollingPanelParam::onSliderMouseUp | ( | LLUICtrl * | ctrl, | |
void * | userdata | |||
) | [static] |
Definition at line 1315 of file llfloatercustomize.cpp.
References gAgent, LLVisualParamHint::requestHintUpdates(), and LLAgent::sendAgentSetAppearance().
void LLScrollingPanelParam::onHintMinMouseDown | ( | void * | userdata | ) | [static] |
Definition at line 1326 of file llfloatercustomize.cpp.
Referenced by LLScrollingPanelParam().
void LLScrollingPanelParam::onHintMinHeldDown | ( | void * | userdata | ) | [static] |
Definition at line 1364 of file llfloatercustomize.cpp.
Referenced by LLScrollingPanelParam().
void LLScrollingPanelParam::onHintMaxMouseDown | ( | void * | userdata | ) | [static] |
Definition at line 1333 of file llfloatercustomize.cpp.
Referenced by LLScrollingPanelParam().
void LLScrollingPanelParam::onHintMaxHeldDown | ( | void * | userdata | ) | [static] |
Definition at line 1371 of file llfloatercustomize.cpp.
Referenced by LLScrollingPanelParam().
void LLScrollingPanelParam::onHintMinMouseUp | ( | void * | userdata | ) | [static] |
Definition at line 1416 of file llfloatercustomize.cpp.
References gAgent, LLAgent::getAvatarObject(), LLSliderCtrl::getMaxValue(), LLSliderCtrl::getMinValue(), LLVisualParamHint::getVisualParam(), LLCharacter::getVisualParamWeight(), PARAM_STEP_TIME_THRESHOLD, LLVisualParamHint::requestHintUpdates(), LLAgent::sendAgentSetAppearance(), LLSliderCtrl::setValue(), LLCharacter::setVisualParamWeight(), and TRUE.
Referenced by LLScrollingPanelParam().
void LLScrollingPanelParam::onHintMaxMouseUp | ( | void * | userdata | ) | [static] |
Definition at line 1454 of file llfloatercustomize.cpp.
References gAgent, LLAgent::getAvatarObject(), LLSliderCtrl::getMaxValue(), LLSliderCtrl::getMinValue(), LLVisualParamHint::getVisualParam(), LLCharacter::getVisualParamWeight(), PARAM_STEP_TIME_THRESHOLD, LLVisualParamHint::requestHintUpdates(), LLAgent::sendAgentSetAppearance(), LLSliderCtrl::setValue(), LLCharacter::setVisualParamWeight(), and TRUE.
Referenced by LLScrollingPanelParam().
void LLScrollingPanelParam::onHintMouseDown | ( | LLVisualParamHint * | hint | ) |
Definition at line 1340 of file llfloatercustomize.cpp.
References LLPanelEditWearable::addVisualParamToUndoBuffer(), gAgent, LLAgent::getAvatarObject(), LLFloaterCustomize::getCurrentWearablePanel(), LLVisualParam::getID(), LLVisualParamHint::getVisualParam(), LLVisualParamHint::getVisualParamWeight(), LLCharacter::getVisualParamWeight(), mLastHeldTime, mMouseDownTimer, and LLTimer::reset().
void LLScrollingPanelParam::onHintHeldDown | ( | LLVisualParamHint * | hint | ) |
Definition at line 1377 of file llfloatercustomize.cpp.
References gAgent, LLAgent::getAvatarObject(), LLTimer::getElapsedTimeF32(), LLSliderCtrl::getMaxValue(), LLSliderCtrl::getMinValue(), LLVisualParamHint::getVisualParam(), LLVisualParamHint::getVisualParamWeight(), LLCharacter::getVisualParamWeight(), mLastHeldTime, mMouseDownTimer, LLSliderCtrl::setValue(), LLCharacter::setVisualParamWeight(), TRUE, LLVOAvatar::updateVisualParams(), and weightToPercent().
Definition at line 1493 of file llfloatercustomize.cpp.
References LLVisualParam::getMaxWeight(), LLVisualParam::getMinWeight(), and mParam.
Referenced by LLScrollingPanelParam(), onHintHeldDown(), and updatePanel().
Definition at line 1499 of file llfloatercustomize.cpp.
References LLVisualParam::getMaxWeight(), LLVisualParam::getMinWeight(), and mParam.
Definition at line 1125 of file llfloatercustomize.cpp.
Referenced by percentToWeight(), and weightToPercent().
Definition at line 1126 of file llfloatercustomize.cpp.
Referenced by draw(), LLScrollingPanelParam(), setVisible(), updatePanel(), and ~LLScrollingPanelParam().
Definition at line 1127 of file llfloatercustomize.cpp.
Referenced by draw(), LLScrollingPanelParam(), setVisible(), updatePanel(), and ~LLScrollingPanelParam().
S32 LLScrollingPanelParam::sUpdateDelayFrames = 0 [static] |
Definition at line 1128 of file llfloatercustomize.cpp.
Referenced by setVisible(), and updatePanel().
LLTimer LLScrollingPanelParam::mMouseDownTimer [protected] |
Definition at line 1131 of file llfloatercustomize.cpp.
Referenced by onHintHeldDown(), and onHintMouseDown().
F32 LLScrollingPanelParam::mLastHeldTime [protected] |
Definition at line 1132 of file llfloatercustomize.cpp.
Referenced by onHintHeldDown(), and onHintMouseDown().
BOOL LLScrollingPanelParam::mAllowModify [protected] |
Definition at line 1134 of file llfloatercustomize.cpp.
Referenced by LLScrollingPanelParam(), and updatePanel().