LLSliderCtrl Class Reference

#include <llsliderctrl.h>

Inheritance diagram for LLSliderCtrl:

Inheritance graph
[legend]
Collaboration diagram for LLSliderCtrl:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 LLSliderCtrl (const LLString &name, const LLRect &rect, const LLString &label, const LLFontGL *font, S32 slider_left, S32 text_left, BOOL show_text, BOOL can_edit_text, BOOL volume, void(*commit_callback)(LLUICtrl *, void *), void *callback_userdata, F32 initial_value, F32 min_value, F32 max_value, F32 increment, const LLString &control_which=LLString::null)
virtual ~LLSliderCtrl ()
virtual LLXMLNodePtr getXML (bool save_children=true) const
F32 getValueF32 () const
void setValue (F32 v, BOOL from_event=FALSE)
virtual void setValue (const LLSD &value)
virtual LLSD getValue () const
virtual BOOL setLabelArg (const LLString &key, const LLStringExplicit &text)
virtual void setMinValue (LLSD min_value)
virtual void setMaxValue (LLSD max_value)
BOOL isMouseHeldDown () const
virtual void setEnabled (BOOL b)
virtual void clear ()
virtual void setPrecision (S32 precision)
void setMinValue (F32 min_value)
void setMaxValue (F32 max_value)
void setIncrement (F32 increment)
F32 getMinValue ()
F32 getMaxValue ()
void setLabel (const LLStringExplicit &label)
void setLabelColor (const LLColor4 &c)
void setDisabledLabelColor (const LLColor4 &c)
void setSliderMouseDownCallback (void(*slider_mousedown_callback)(LLUICtrl *caller, void *userdata))
void setSliderMouseUpCallback (void(*slider_mouseup_callback)(LLUICtrl *caller, void *userdata))
virtual void onTabInto ()
virtual void setTentative (BOOL b)
virtual void onCommit ()
virtual void setControlName (const LLString &control_name, LLView *context)
virtual LLString getControlName () const

Static Public Member Functions

static LLViewfromXML (LLXMLNodePtr node, LLView *parent, LLUICtrlFactory *factory)
static void onSliderCommit (LLUICtrl *caller, void *userdata)
static void onSliderMouseDown (LLUICtrl *caller, void *userdata)
static void onSliderMouseUp (LLUICtrl *caller, void *userdata)
static void onEditorCommit (LLUICtrl *caller, void *userdata)
static void onEditorGainFocus (LLFocusableElement *caller, void *userdata)
static void onEditorChangeFocus (LLUICtrl *caller, S32 direction, void *userdata)

Private Member Functions

void updateText ()
void reportInvalidData ()

Private Attributes

const LLFontGLmFont
BOOL mShowText
BOOL mCanEditText
BOOL mVolumeSlider
S32 mPrecision
LLTextBoxmLabelBox
S32 mLabelWidth
F32 mValue
LLSlidermSlider
class LLLineEditormEditor
LLTextBoxmTextBox
LLColor4 mTextEnabledColor
LLColor4 mTextDisabledColor
void(* mSliderMouseUpCallback )(LLUICtrl *ctrl, void *userdata)
void(* mSliderMouseDownCallback )(LLUICtrl *ctrl, void *userdata)


Detailed Description

Definition at line 48 of file llsliderctrl.h.


Constructor & Destructor Documentation

LLSliderCtrl::LLSliderCtrl ( const LLString name,
const LLRect rect,
const LLString label,
const LLFontGL font,
S32  slider_left,
S32  text_left,
BOOL  show_text,
BOOL  can_edit_text,
BOOL  volume,
void(*)(LLUICtrl *, void *)  commit_callback,
void *  callback_userdata,
F32  initial_value,
F32  min_value,
F32  max_value,
F32  increment,
const LLString control_which = LLString::null 
)

virtual LLSliderCtrl::~LLSliderCtrl (  )  [inline, virtual]

Definition at line 65 of file llsliderctrl.h.


Member Function Documentation

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

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

F32 LLSliderCtrl::getValueF32 (  )  const [inline]

void LLSliderCtrl::setValue ( F32  v,
BOOL  from_event = FALSE 
)

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

Reimplemented from LLView.

Definition at line 73 of file llsliderctrl.h.

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

Here is the call graph for this function:

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

BOOL LLSliderCtrl::setLabelArg ( const LLString key,
const LLStringExplicit text 
) [virtual]

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

Reimplemented from LLUICtrl.

Definition at line 77 of file llsliderctrl.h.

References LLSD::asReal().

Referenced by LLDebugVarMessageBox::show().

Here is the call graph for this function:

Here is the caller graph for this function:

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

Reimplemented from LLUICtrl.

Definition at line 78 of file llsliderctrl.h.

References LLSD::asReal().

Referenced by LLDebugVarMessageBox::show().

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL LLSliderCtrl::isMouseHeldDown (  )  const [inline]

Definition at line 80 of file llsliderctrl.h.

References LLView::hasMouseCapture(), and mSlider.

Here is the call graph for this function:

void LLSliderCtrl::setEnabled ( BOOL  b  )  [virtual]

Reimplemented from LLView.

Definition at line 314 of file llsliderctrl.cpp.

References mEditor, mLabelBox, mSlider, mTextBox, mTextDisabledColor, mTextEnabledColor, LLTextBox::setColor(), LLLineEditor::setEnabled(), and LLView::setEnabled().

Referenced by LLFloaterWindLight::onCloudScrollXToggled(), LLFloaterWindLight::onCloudScrollYToggled(), and LLPanelDisplay::refreshEnabledState().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLSliderCtrl::clear ( void   )  [virtual]

Reimplemented from LLUICtrl.

Definition at line 191 of file llsliderctrl.cpp.

References mEditor, mTextBox, LLStringBase< char >::null, LLTextBox::setText(), LLLineEditor::setText(), and setValue().

Here is the call graph for this function:

void LLSliderCtrl::setPrecision ( S32  precision  )  [virtual]

Definition at line 360 of file llsliderctrl.cpp.

References llendl, llerrs, mPrecision, and updateText().

Referenced by fromXML(), and LLDebugVarMessageBox::LLDebugVarMessageBox().

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 85 of file llsliderctrl.h.

References mSlider, LLSlider::setMinValue(), and updateText().

Here is the call graph for this function:

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

Definition at line 86 of file llsliderctrl.h.

References mSlider, LLSlider::setMaxValue(), and updateText().

Here is the call graph for this function:

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

Definition at line 87 of file llsliderctrl.h.

References mSlider, and LLSlider::setIncrement().

Referenced by LLDebugVarMessageBox::show().

Here is the call graph for this function:

Here is the caller graph for this function:

F32 LLSliderCtrl::getMinValue (  )  [inline]

Definition at line 89 of file llsliderctrl.h.

References LLSlider::getMinValue(), and mSlider.

Referenced by LLScrollingPanelParam::onHintHeldDown(), LLScrollingPanelParam::onHintMaxMouseUp(), LLScrollingPanelParam::onHintMinMouseUp(), and LLPanelDisplay::updateSliderText().

Here is the call graph for this function:

Here is the caller graph for this function:

F32 LLSliderCtrl::getMaxValue (  )  [inline]

Definition at line 90 of file llsliderctrl.h.

References LLSlider::getMaxValue(), and mSlider.

Referenced by LLDebugVarMessageBox::draw(), LLScrollingPanelParam::onHintHeldDown(), LLScrollingPanelParam::onHintMaxMouseUp(), LLScrollingPanelParam::onHintMinMouseUp(), and LLPanelDisplay::updateSliderText().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLSliderCtrl::setLabel ( const LLStringExplicit label  )  [inline]

Definition at line 92 of file llsliderctrl.h.

References mLabelBox, and LLTextBox::setText().

Here is the call graph for this function:

void LLSliderCtrl::setLabelColor ( const LLColor4 c  )  [inline]

Definition at line 93 of file llsliderctrl.h.

References mTextEnabledColor.

void LLSliderCtrl::setDisabledLabelColor ( const LLColor4 c  )  [inline]

Definition at line 94 of file llsliderctrl.h.

References mTextDisabledColor.

void LLSliderCtrl::setSliderMouseDownCallback ( void(*)(LLUICtrl *caller, void *userdata)  slider_mousedown_callback  ) 

Definition at line 372 of file llsliderctrl.cpp.

References mSlider, mSliderMouseDownCallback, onSliderMouseDown(), and LLSlider::setMouseDownCallback().

Here is the call graph for this function:

void LLSliderCtrl::setSliderMouseUpCallback ( void(*)(LLUICtrl *caller, void *userdata)  slider_mouseup_callback  ) 

Definition at line 389 of file llsliderctrl.cpp.

References mSlider, mSliderMouseUpCallback, onSliderMouseUp(), and LLSlider::setMouseUpCallback().

Referenced by LLPanelDisplay::postBuild().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLSliderCtrl::onTabInto (  )  [virtual]

Reimplemented from LLUICtrl.

Definition at line 405 of file llsliderctrl.cpp.

References mEditor, and LLLineEditor::onTabInto().

Here is the call graph for this function:

void LLSliderCtrl::setTentative ( BOOL  b  )  [virtual]

Reimplemented from LLUICtrl.

Definition at line 337 of file llsliderctrl.cpp.

References mEditor, and LLUICtrl::setTentative().

Referenced by onCommit().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLSliderCtrl::onCommit (  )  [virtual]

Reimplemented from LLUICtrl.

Definition at line 347 of file llsliderctrl.cpp.

References FALSE, mEditor, LLUICtrl::onCommit(), LLUICtrl::setTentative(), and setTentative().

Here is the call graph for this function:

virtual void LLSliderCtrl::setControlName ( const LLString control_name,
LLView context 
) [inline, virtual]

Reimplemented from LLView.

Definition at line 104 of file llsliderctrl.h.

References mSlider, and LLView::setControlName().

Here is the call graph for this function:

virtual LLString LLSliderCtrl::getControlName (  )  const [inline, virtual]

Reimplemented from LLView.

Definition at line 110 of file llsliderctrl.h.

References LLView::getControlName(), and mSlider.

Here is the call graph for this function:

void LLSliderCtrl::onSliderCommit ( LLUICtrl caller,
void *  userdata 
) [static]

Definition at line 276 of file llsliderctrl.cpp.

References FALSE, llassert, and TRUE.

Referenced by LLSliderCtrl().

Here is the caller graph for this function:

void LLSliderCtrl::onSliderMouseDown ( LLUICtrl caller,
void *  userdata 
) [static]

Definition at line 379 of file llsliderctrl.cpp.

Referenced by setSliderMouseDownCallback().

Here is the caller graph for this function:

void LLSliderCtrl::onSliderMouseUp ( LLUICtrl caller,
void *  userdata 
) [static]

Definition at line 396 of file llsliderctrl.cpp.

Referenced by setSliderMouseUpCallback().

Here is the caller graph for this function:

void LLSliderCtrl::onEditorCommit ( LLUICtrl caller,
void *  userdata 
) [static]

Definition at line 228 of file llsliderctrl.cpp.

References FALSE, llassert, LLLineEditor::postvalidateFloat(), TRUE, and LLLocale::USER_LOCALE.

Referenced by LLSliderCtrl().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLSliderCtrl::onEditorGainFocus ( LLFocusableElement caller,
void *  userdata 
) [static]

Definition at line 150 of file llsliderctrl.cpp.

References llassert.

Referenced by LLSliderCtrl().

Here is the caller graph for this function:

static void LLSliderCtrl::onEditorChangeFocus ( LLUICtrl caller,
S32  direction,
void *  userdata 
) [static]

void LLSliderCtrl::updateText (  )  [private]

Definition at line 205 of file llsliderctrl.cpp.

References indra::ipc::russ::format(), getValueF32(), llformat(), mEditor, mPrecision, mTextBox, LLTextBox::setText(), LLLineEditor::setText(), and LLLocale::USER_LOCALE.

Referenced by fromXML(), LLSliderCtrl(), setMaxValue(), setMinValue(), setPrecision(), and setValue().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLSliderCtrl::reportInvalidData (  )  [private]

Definition at line 413 of file llsliderctrl.cpp.

References make_ui_sound().

Here is the call graph for this function:


Member Data Documentation

const LLFontGL* LLSliderCtrl::mFont [private]

Definition at line 124 of file llsliderctrl.h.

Referenced by setLabelArg().

Definition at line 125 of file llsliderctrl.h.

Referenced by getXML().

Definition at line 126 of file llsliderctrl.h.

Referenced by getXML().

Definition at line 127 of file llsliderctrl.h.

Referenced by getXML().

Definition at line 129 of file llsliderctrl.h.

Referenced by getXML(), setPrecision(), and updateText().

Definition at line 130 of file llsliderctrl.h.

Referenced by getXML(), LLSliderCtrl(), setEnabled(), setLabel(), and setLabelArg().

Definition at line 131 of file llsliderctrl.h.

Referenced by setLabelArg().

Definition at line 133 of file llsliderctrl.h.

Referenced by getXML(), and setValue().

Definition at line 136 of file llsliderctrl.h.

Referenced by clear(), LLSliderCtrl(), setEnabled(), and updateText().

Definition at line 138 of file llsliderctrl.h.

Referenced by getXML(), setEnabled(), and setLabelColor().

Definition at line 139 of file llsliderctrl.h.

Referenced by getXML(), setDisabledLabelColor(), and setEnabled().

void(* LLSliderCtrl::mSliderMouseUpCallback)(LLUICtrl *ctrl, void *userdata) [private]

void(* LLSliderCtrl::mSliderMouseDownCallback)(LLUICtrl *ctrl, void *userdata) [private]


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

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