LLSlider Class Reference

#include <llslider.h>

Inheritance diagram for LLSlider:

Inheritance graph
[legend]
Collaboration diagram for LLSlider:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 LLSlider (const LLString &name, const LLRect &rect, void(*on_commit_callback)(LLUICtrl *ctrl, void *userdata), void *callback_userdata, F32 initial_value, F32 min_value, F32 max_value, F32 increment, BOOL volume, const LLString &control_name=LLString::null)
virtual LLXMLNodePtr getXML (bool save_children=true) const
void setValue (F32 value, BOOL from_event=FALSE)
F32 getValueF32 () const
virtual void setValue (const LLSD &value)
virtual LLSD getValue () const
virtual void setMinValue (LLSD min_value)
virtual void setMaxValue (LLSD max_value)
F32 getInitialValue () const
F32 getMinValue () const
F32 getMaxValue () const
F32 getIncrement () const
void setMinValue (F32 min_value)
void setMaxValue (F32 max_value)
void setIncrement (F32 increment)
void setMouseDownCallback (void(*cb)(LLUICtrl *ctrl, void *userdata))
void setMouseUpCallback (void(*cb)(LLUICtrl *ctrl, void *userdata))
virtual BOOL handleHover (S32 x, S32 y, MASK mask)
virtual BOOL handleMouseUp (S32 x, S32 y, MASK mask)
virtual BOOL handleMouseDown (S32 x, S32 y, MASK mask)
virtual BOOL handleKeyHere (KEY key, MASK mask)
virtual void draw ()

Static Public Member Functions

static LLViewfromXML (LLXMLNodePtr node, LLView *parent, class LLUICtrlFactory *factory)

Private Member Functions

void setValueAndCommit (F32 value)
void updateThumbRect ()

Private Attributes

F32 mValue
F32 mInitialValue
F32 mMinValue
F32 mMaxValue
F32 mIncrement
BOOL mVolumeSlider
S32 mMouseOffset
LLRect mDragStartThumbRect
LLUIImagemThumbImage
LLUIImagemTrackImage
LLUIImagemTrackHighlightImage
LLRect mThumbRect
LLColor4 mTrackColor
LLColor4 mThumbOutlineColor
LLColor4 mThumbCenterColor
void(* mMouseDownCallback )(LLUICtrl *ctrl, void *userdata)
void(* mMouseUpCallback )(LLUICtrl *ctrl, void *userdata)


Detailed Description

Definition at line 40 of file llslider.h.


Constructor & Destructor Documentation

LLSlider::LLSlider ( const LLString name,
const LLRect rect,
void(*)(LLUICtrl *ctrl, void *userdata)  on_commit_callback,
void *  callback_userdata,
F32  initial_value,
F32  min_value,
F32  max_value,
F32  increment,
BOOL  volume,
const LLString control_name = LLString::null 
)

Definition at line 48 of file llslider.cpp.

References LLImageProviderInterface::getUIImage(), getValueF32(), mDragStartThumbRect, mThumbImage, mThumbRect, mTrackHighlightImage, mTrackImage, NULL, LLView::setControlName(), setValue(), LLUI::sImageProvider, and updateThumbRect().

Referenced by fromXML().

Here is the call graph for this function:

Here is the caller graph for this function:


Member Function Documentation

LLXMLNodePtr LLSlider::getXML ( bool  save_children = true  )  const [virtual]

Reimplemented from LLUICtrl.

Definition at line 289 of file llslider.cpp.

References getIncrement(), getInitialValue(), getMaxValue(), getMinValue(), LLUICtrl::getXML(), mVolumeSlider, and TRUE.

Here is the call graph for this function:

LLView * LLSlider::fromXML ( LLXMLNodePtr  node,
LLView parent,
class LLUICtrlFactory factory 
) [static]

Reimplemented from LLUICtrl.

Definition at line 304 of file llslider.cpp.

References LLView::createRect(), FALSE, LLUICtrl::initFromXML(), LLSlider(), NULL, and TRUE.

Here is the call graph for this function:

void LLSlider::setValue ( F32  value,
BOOL  from_event = FALSE 
)

Definition at line 90 of file llslider.cpp.

References llclamp(), mIncrement, mMaxValue, mMinValue, mValue, LLView::setControlValue(), and updateThumbRect().

Referenced by LLSlider(), LLPanelVoiceDeviceSettings::postBuild(), LLSliderCtrl::setValue(), setValue(), and setValueAndCommit().

Here is the call graph for this function:

Here is the caller graph for this function:

F32 LLSlider::getValueF32 (  )  const [inline]

Definition at line 59 of file llslider.h.

References mValue.

Referenced by getValue(), LLSliderCtrl::getValueF32(), handleKeyHere(), LLSlider(), and LLSliderCtrl::setValue().

Here is the caller graph for this function:

virtual void LLSlider::setValue ( const LLSD value  )  [inline, virtual]

Reimplemented from LLView.

Definition at line 61 of file llslider.h.

References LLSD::asReal(), setValue(), and TRUE.

Here is the call graph for this function:

virtual LLSD LLSlider::getValue (  )  const [inline, virtual]

Reimplemented from LLUICtrl.

Definition at line 62 of file llslider.h.

References getValueF32().

Referenced by LLPanelVoiceDeviceSettings::refresh().

Here is the call graph for this function:

Here is the caller graph for this function:

virtual void LLSlider::setMinValue ( LLSD  min_value  )  [inline, virtual]

Reimplemented from LLUICtrl.

Definition at line 64 of file llslider.h.

References LLSD::asReal().

Referenced by LLSliderCtrl::setMinValue().

Here is the call graph for this function:

Here is the caller graph for this function:

virtual void LLSlider::setMaxValue ( LLSD  max_value  )  [inline, virtual]

Reimplemented from LLUICtrl.

Definition at line 65 of file llslider.h.

References LLSD::asReal().

Referenced by LLSliderCtrl::setMaxValue().

Here is the call graph for this function:

Here is the caller graph for this function:

F32 LLSlider::getInitialValue (  )  const [inline]

Definition at line 67 of file llslider.h.

References mInitialValue.

Referenced by LLSliderCtrl::getXML(), and getXML().

Here is the caller graph for this function:

F32 LLSlider::getMinValue (  )  const [inline]

Definition at line 68 of file llslider.h.

References mMinValue.

Referenced by LLSliderCtrl::getMinValue(), LLSliderCtrl::getXML(), and getXML().

Here is the caller graph for this function:

F32 LLSlider::getMaxValue (  )  const [inline]

Definition at line 69 of file llslider.h.

References mMaxValue.

Referenced by LLSliderCtrl::getMaxValue(), LLSliderCtrl::getXML(), and getXML().

Here is the caller graph for this function:

F32 LLSlider::getIncrement (  )  const [inline]

Definition at line 70 of file llslider.h.

References mIncrement.

Referenced by LLSliderCtrl::getXML(), getXML(), and handleKeyHere().

Here is the caller graph for this function:

void LLSlider::setMinValue ( F32  min_value  )  [inline]

Definition at line 71 of file llslider.h.

References mMinValue, and updateThumbRect().

Here is the call graph for this function:

void LLSlider::setMaxValue ( F32  max_value  )  [inline]

Definition at line 72 of file llslider.h.

References mMaxValue, and updateThumbRect().

Here is the call graph for this function:

void LLSlider::setIncrement ( F32  increment  )  [inline]

Definition at line 73 of file llslider.h.

References mIncrement.

Referenced by LLSliderCtrl::setIncrement().

Here is the caller graph for this function:

void LLSlider::setMouseDownCallback ( void(*)(LLUICtrl *ctrl, void *userdata)  cb  )  [inline]

Definition at line 74 of file llslider.h.

References mMouseDownCallback.

Referenced by LLSliderCtrl::setSliderMouseDownCallback().

Here is the caller graph for this function:

void LLSlider::setMouseUpCallback ( void(*)(LLUICtrl *ctrl, void *userdata)  cb  )  [inline]

Definition at line 75 of file llslider.h.

References mMouseUpCallback.

Referenced by LLSliderCtrl::setSliderMouseUpCallback().

Here is the caller graph for this function:

BOOL LLSlider::handleHover ( S32  x,
S32  y,
MASK  mask 
) [virtual]

BOOL LLSlider::handleMouseUp ( S32  x,
S32  y,
MASK  mask 
) [virtual]

Reimplemented from LLView.

Definition at line 163 of file llslider.cpp.

References FALSE, gFocusMgr, LLView::hasMouseCapture(), make_ui_sound(), LLUICtrl::mCallbackUserData, mMouseUpCallback, NULL, LLFocusMgr::setMouseCapture(), and TRUE.

Here is the call graph for this function:

BOOL LLSlider::handleMouseDown ( S32  x,
S32  y,
MASK  mask 
) [virtual]

BOOL LLSlider::handleKeyHere ( KEY  key,
MASK  mask 
) [virtual]

Reimplemented from LLView.

Definition at line 224 of file llslider.cpp.

References FALSE, getIncrement(), getValueF32(), KEY_DOWN, KEY_LEFT, KEY_RIGHT, KEY_UP, setValueAndCommit(), and TRUE.

Here is the call graph for this function:

void LLSlider::draw ( void   )  [virtual]

void LLSlider::setValueAndCommit ( F32  value  )  [private]

Definition at line 126 of file llslider.cpp.

References mValue, LLUICtrl::onCommit(), and setValue().

Referenced by handleHover(), handleKeyHere(), and handleMouseDown().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLSlider::updateThumbRect (  )  [private]


Member Data Documentation

F32 LLSlider::mValue [private]

Definition at line 87 of file llslider.h.

Referenced by getValueF32(), setValue(), setValueAndCommit(), and updateThumbRect().

Definition at line 88 of file llslider.h.

Referenced by getInitialValue(), and handleMouseDown().

Definition at line 89 of file llslider.h.

Referenced by getMinValue(), handleHover(), setMinValue(), setValue(), and updateThumbRect().

Definition at line 90 of file llslider.h.

Referenced by getMaxValue(), handleHover(), setMaxValue(), setValue(), and updateThumbRect().

Definition at line 91 of file llslider.h.

Referenced by getIncrement(), setIncrement(), and setValue().

Definition at line 93 of file llslider.h.

Referenced by getXML().

Definition at line 94 of file llslider.h.

Referenced by handleHover(), and handleMouseDown().

Definition at line 95 of file llslider.h.

Referenced by draw(), handleMouseDown(), and LLSlider().

Definition at line 97 of file llslider.h.

Referenced by draw(), handleHover(), handleMouseDown(), LLSlider(), and updateThumbRect().

Definition at line 98 of file llslider.h.

Referenced by draw(), and LLSlider().

Definition at line 99 of file llslider.h.

Referenced by draw(), and LLSlider().

Definition at line 101 of file llslider.h.

Referenced by draw(), handleMouseDown(), LLSlider(), and updateThumbRect().

Definition at line 102 of file llslider.h.

Referenced by draw().

Definition at line 103 of file llslider.h.

Referenced by draw().

Definition at line 104 of file llslider.h.

Referenced by draw().

void(* LLSlider::mMouseDownCallback)(LLUICtrl *ctrl, void *userdata) [private]

void(* LLSlider::mMouseUpCallback)(LLUICtrl *ctrl, void *userdata) [private]


The documentation for this class was generated from the following files:

Generated on Fri May 16 09:04:51 2008 for SecondLife by  doxygen 1.5.5