LLScrollingPanelParam Class Reference

Inheritance diagram for LLScrollingPanelParam:

Inheritance graph
[legend]
Collaboration diagram for LLScrollingPanelParam:

Collaboration graph
[legend]
List of all members.

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

LLViewerVisualParammParam
LLVisualParamHintmHintMin
LLVisualParamHintmHintMax

Static Public Attributes

static S32 sUpdateDelayFrames = 0

Protected Attributes

LLTimer mMouseDownTimer
F32 mLastHeldTime
BOOL mAllowModify

Detailed Description

Definition at line 1119 of file llfloatercustomize.cpp.


Constructor & Destructor Documentation

LLScrollingPanelParam::LLScrollingPanelParam ( const LLString name,
LLViewerJointMesh mesh,
LLViewerVisualParam param,
BOOL  allow_modify 
)

Definition at line 1169 of file llfloatercustomize.cpp.

References LLUICtrlFactory::buildPanel(), LLPanel::childSetCommitCallback(), LLPanel::childSetEnabled(), LLPanel::childSetLabelArg(), LLPanel::childSetValue(), FALSE, LLUICtrlFactory::getButtonByName(), gUICtrlFactory, mAllowModify, mHintMax, mHintMin, onHintMaxHeldDown(), onHintMaxMouseDown(), onHintMaxMouseUp(), onHintMinHeldDown(), onHintMinMouseDown(), onHintMinMouseUp(), onSliderMoved(), param, 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]

Definition at line 1221 of file llfloatercustomize.cpp.

References mHintMax, and mHintMin.


Member Function Documentation

void LLScrollingPanelParam::draw (  )  [virtual]

Reimplemented from LLPanel.

Definition at line 1256 of file llfloatercustomize.cpp.

References LLPanel::childSetVisible(), LLVisualParamHint::draw(), LLPanel::draw(), LLView::drawChild(), f, FALSE, LLPanel::getChildByName(), LLVisualParamHint::getRect(), LLView::getVisible(), LLVisualParamHint::getVisible(), gFloaterCustomize, glPopMatrix, glTranslatef, LLFloater::isMinimized(), left, mHintMax, mHintMin, r, and TRUE.

void LLScrollingPanelParam::onHintHeldDown ( LLVisualParamHint hint  ) 

Definition at line 1402 of file llfloatercustomize.cpp.

References f, gAgent, LLAgent::getAvatarObject(), LLTimer::getElapsedTimeF32(), LLSliderCtrl::getMaxValue(), LLSliderCtrl::getMinValue(), LLUICtrlFactory::getSliderByName(), LLVisualParamHint::getVisualParam(), LLVisualParamHint::getVisualParamWeight(), LLCharacter::getVisualParamWeight(), mLastHeldTime, mMouseDownTimer, LLSliderCtrl::setValue(), LLCharacter::setVisualParamWeight(), TRUE, LLVOAvatar::updateVisualParams(), and weightToPercent().

void LLScrollingPanelParam::onHintMaxHeldDown ( void userdata  )  [static]

Definition at line 1396 of file llfloatercustomize.cpp.

Referenced by LLScrollingPanelParam().

void LLScrollingPanelParam::onHintMaxMouseDown ( void userdata  )  [static]

Definition at line 1358 of file llfloatercustomize.cpp.

Referenced by LLScrollingPanelParam().

void LLScrollingPanelParam::onHintMaxMouseUp ( void userdata  )  [static]

Definition at line 1479 of file llfloatercustomize.cpp.

References gAgent, LLAgent::getAvatarObject(), LLSliderCtrl::getMaxValue(), LLSliderCtrl::getMinValue(), LLUICtrlFactory::getSliderByName(), LLVisualParamHint::getVisualParam(), LLCharacter::getVisualParamWeight(), PARAM_STEP_TIME_THRESHOLD, range, LLVisualParamHint::requestHintUpdates(), LLAgent::sendAgentSetAppearance(), LLSliderCtrl::setValue(), LLCharacter::setVisualParamWeight(), and TRUE.

Referenced by LLScrollingPanelParam().

void LLScrollingPanelParam::onHintMinHeldDown ( void userdata  )  [static]

Definition at line 1389 of file llfloatercustomize.cpp.

Referenced by LLScrollingPanelParam().

void LLScrollingPanelParam::onHintMinMouseDown ( void userdata  )  [static]

Definition at line 1351 of file llfloatercustomize.cpp.

Referenced by LLScrollingPanelParam().

void LLScrollingPanelParam::onHintMinMouseUp ( void userdata  )  [static]

Definition at line 1441 of file llfloatercustomize.cpp.

References gAgent, LLAgent::getAvatarObject(), LLSliderCtrl::getMaxValue(), LLSliderCtrl::getMinValue(), LLUICtrlFactory::getSliderByName(), LLVisualParamHint::getVisualParam(), LLCharacter::getVisualParamWeight(), PARAM_STEP_TIME_THRESHOLD, range, LLVisualParamHint::requestHintUpdates(), LLAgent::sendAgentSetAppearance(), LLSliderCtrl::setValue(), LLCharacter::setVisualParamWeight(), and TRUE.

Referenced by LLScrollingPanelParam().

void LLScrollingPanelParam::onHintMouseDown ( LLVisualParamHint hint  ) 

Definition at line 1365 of file llfloatercustomize.cpp.

References LLPanelEditWearable::addVisualParamToUndoBuffer(), gAgent, LLAgent::getAvatarObject(), LLVisualParam::getID(), LLVisualParamHint::getVisualParam(), LLVisualParamHint::getVisualParamWeight(), LLCharacter::getVisualParamWeight(), gFloaterCustomize, mLastHeldTime, mMouseDownTimer, and LLTimer::reset().

void LLScrollingPanelParam::onSliderMouseDown ( LLUICtrl ctrl,
void userdata 
) [static]

Definition at line 1321 of file llfloatercustomize.cpp.

References LLPanelEditWearable::addVisualParamToUndoBuffer(), gAgent, LLAgent::getAvatarObject(), LLFloaterCustomize::getCurrentWearablePanel(), LLCharacter::getVisualParamWeight(), gFloaterCustomize, and param.

void LLScrollingPanelParam::onSliderMouseUp ( LLUICtrl ctrl,
void userdata 
) [static]

Definition at line 1340 of file llfloatercustomize.cpp.

References gAgent, LLVisualParamHint::requestHintUpdates(), and LLAgent::sendAgentSetAppearance().

void LLScrollingPanelParam::onSliderMoved ( LLUICtrl ctrl,
void userdata 
) [static]

Definition at line 1305 of file llfloatercustomize.cpp.

References LLSD::asReal(), gAgent, LLAgent::getAvatarObject(), LLSliderCtrl::getValue(), LLCharacter::getVisualParamWeight(), param, LLCharacter::setVisualParamWeight(), TRUE, and LLVOAvatar::updateVisualParams().

Referenced by LLScrollingPanelParam().

F32 LLScrollingPanelParam::percentToWeight ( F32  percent  ) 

Definition at line 1524 of file llfloatercustomize.cpp.

References mParam, and param.

void LLScrollingPanelParam::setVisible ( BOOL  visible  )  [virtual]

Reimplemented from LLView.

Definition at line 1240 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 1227 of file llfloatercustomize.cpp.

References LLPanel::childSetEnabled(), LLPanel::childSetValue(), LLVisualParamHint::getVisualParam(), mAllowModify, mHintMax, mHintMin, param, LLVisualParamHint::requestUpdate(), sUpdateDelayFrames, and weightToPercent().

F32 LLScrollingPanelParam::weightToPercent ( F32  weight  ) 

Definition at line 1518 of file llfloatercustomize.cpp.

References f, mParam, and param.

Referenced by LLScrollingPanelParam(), onHintHeldDown(), and updatePanel().


Member Data Documentation

BOOL LLScrollingPanelParam::mAllowModify [protected]

Definition at line 1156 of file llfloatercustomize.cpp.

Referenced by LLScrollingPanelParam(), and updatePanel().

LLVisualParamHint* LLScrollingPanelParam::mHintMax

Definition at line 1149 of file llfloatercustomize.cpp.

Referenced by draw(), LLScrollingPanelParam(), setVisible(), updatePanel(), and ~LLScrollingPanelParam().

LLVisualParamHint* LLScrollingPanelParam::mHintMin

Definition at line 1148 of file llfloatercustomize.cpp.

Referenced by draw(), LLScrollingPanelParam(), setVisible(), updatePanel(), and ~LLScrollingPanelParam().

F32 LLScrollingPanelParam::mLastHeldTime [protected]

Definition at line 1154 of file llfloatercustomize.cpp.

Referenced by onHintHeldDown(), and onHintMouseDown().

LLTimer LLScrollingPanelParam::mMouseDownTimer [protected]

Definition at line 1153 of file llfloatercustomize.cpp.

Referenced by onHintHeldDown(), and onHintMouseDown().

LLViewerVisualParam* LLScrollingPanelParam::mParam

Definition at line 1147 of file llfloatercustomize.cpp.

Referenced by percentToWeight(), and weightToPercent().

S32 LLScrollingPanelParam::sUpdateDelayFrames = 0 [static]

Definition at line 1150 of file llfloatercustomize.cpp.

Referenced by setVisible(), and updatePanel().


The documentation for this class was generated from the following file:
Generated on Thu Jul 1 06:11:45 2010 for Second Life Viewer by  doxygen 1.4.7