LLMultiSliderCtrl Class Reference

#include <llmultisliderctrl.h>

Inheritance diagram for LLMultiSliderCtrl:

Inheritance graph
[legend]
Collaboration diagram for LLMultiSliderCtrl:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 LLMultiSliderCtrl (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, void(*commit_callback)(LLUICtrl *, void *), void *callback_userdata, F32 initial_value, F32 min_value, F32 max_value, F32 increment, S32 max_sliders, BOOL allow_overlap, BOOL draw_track, BOOL use_triangle, const LLString &control_which=LLString::null)
virtual ~LLMultiSliderCtrl ()
virtual LLXMLNodePtr getXML (bool save_children=true) const
F32 getSliderValue (const LLString &name) const
void setSliderValue (const LLString &name, 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)
const LLStringgetCurSlider () const
F32 getCurSliderValue () const
void setCurSlider (const LLString &name)
void setCurSliderValue (F32 val, BOOL from_event=false)
virtual void setMinValue (LLSD min_value)
virtual void setMaxValue (LLSD max_value)
BOOL isMouseHeldDown ()
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)
const LLStringaddSlider ()
 for adding and deleting sliders
const LLStringaddSlider (F32 val)
void deleteSlider (const LLString &name)
void deleteCurSlider ()
F32 getMinValue ()
F32 getMaxValue ()
void setLabel (const LLString &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
S32 mPrecision
LLTextBoxmLabelBox
S32 mLabelWidth
F32 mCurValue
LLMultiSlidermMultiSlider
LLLineEditormEditor
LLTextBoxmTextBox
LLColor4 mTextEnabledColor
LLColor4 mTextDisabledColor
void(* mSliderMouseUpCallback )(LLUICtrl *ctrl, void *userdata)
void(* mSliderMouseDownCallback )(LLUICtrl *ctrl, void *userdata)


Detailed Description

Definition at line 55 of file llmultisliderctrl.h.


Constructor & Destructor Documentation

LLMultiSliderCtrl::LLMultiSliderCtrl ( 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,
void(*)(LLUICtrl *, void *)  commit_callback,
void *  callback_userdata,
F32  initial_value,
F32  min_value,
F32  max_value,
F32  increment,
S32  max_sliders,
BOOL  allow_overlap,
BOOL  draw_track,
BOOL  use_triangle,
const LLString control_which = LLString::null 
)

LLMultiSliderCtrl::~LLMultiSliderCtrl (  )  [virtual]

Definition at line 153 of file llmultisliderctrl.cpp.


Member Function Documentation

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

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

F32 LLMultiSliderCtrl::getSliderValue ( const LLString name  )  const

void LLMultiSliderCtrl::setSliderValue ( const LLString name,
F32  v,
BOOL  from_event = FALSE 
)

Definition at line 175 of file llmultisliderctrl.cpp.

References LLMultiSlider::getCurSliderValue(), mCurValue, mMultiSlider, LLMultiSlider::setSliderValue(), and updateText().

Referenced by setCurSliderValue().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLMultiSliderCtrl::setValue ( const LLSD value  )  [virtual]

Reimplemented from LLView.

Definition at line 168 of file llmultisliderctrl.cpp.

References LLMultiSlider::getCurSliderValue(), mCurValue, mMultiSlider, LLMultiSlider::setValue(), and updateText().

Here is the call graph for this function:

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

Reimplemented from LLUICtrl.

Definition at line 81 of file llmultisliderctrl.h.

References LLMultiSlider::getValue(), and mMultiSlider.

Referenced by LLFloaterDayCycle::addSliderKey(), LLFloaterDayCycle::onRunAnimSky(), and LLFloaterDayCycle::syncTrack().

Here is the call graph for this function:

Here is the caller graph for this function:

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

const LLString& LLMultiSliderCtrl::getCurSlider (  )  const [inline]

Definition at line 84 of file llmultisliderctrl.h.

References LLMultiSlider::getCurSlider(), and mMultiSlider.

Referenced by LLFloaterDayCycle::onKeyTimeChanged().

Here is the call graph for this function:

Here is the caller graph for this function:

F32 LLMultiSliderCtrl::getCurSliderValue (  )  const [inline]

void LLMultiSliderCtrl::setCurSlider ( const LLString name  ) 

Definition at line 182 of file llmultisliderctrl.cpp.

References LLMultiSlider::getCurSliderValue(), mCurValue, mMultiSlider, and LLMultiSlider::setCurSlider().

Here is the call graph for this function:

void LLMultiSliderCtrl::setCurSliderValue ( F32  val,
BOOL  from_event = false 
) [inline]

Definition at line 87 of file llmultisliderctrl.h.

References LLMultiSlider::getCurSlider(), mMultiSlider, and setSliderValue().

Referenced by clear(), LLFloaterDayCycle::onKeyTimeChanged(), and LLFloaterDayCycle::syncMenu().

Here is the call graph for this function:

Here is the caller graph for this function:

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

Reimplemented from LLUICtrl.

Definition at line 89 of file llmultisliderctrl.h.

References LLSD::asReal().

Here is the call graph for this function:

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

Reimplemented from LLUICtrl.

Definition at line 90 of file llmultisliderctrl.h.

References LLSD::asReal().

Here is the call graph for this function:

BOOL LLMultiSliderCtrl::isMouseHeldDown (  ) 

Definition at line 268 of file llmultisliderctrl.cpp.

References LLFocusMgr::getMouseCapture(), gFocusMgr, and mMultiSlider.

Here is the call graph for this function:

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

Reimplemented from LLView.

Definition at line 382 of file llmultisliderctrl.cpp.

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

Here is the call graph for this function:

void LLMultiSliderCtrl::clear ( void   )  [virtual]

Reimplemented from LLUICtrl.

Definition at line 251 of file llmultisliderctrl.cpp.

References LLMultiSlider::clear(), mEditor, mMultiSlider, mTextBox, setCurSliderValue(), LLTextBox::setText(), and LLLineEditor::setText().

Referenced by LLFloaterDayCycle::syncSliderTrack().

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 428 of file llmultisliderctrl.cpp.

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

Referenced by fromXML().

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 97 of file llmultisliderctrl.h.

References mMultiSlider, and LLMultiSlider::setMinValue().

Here is the call graph for this function:

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

Definition at line 98 of file llmultisliderctrl.h.

References mMultiSlider, and LLMultiSlider::setMaxValue().

Here is the call graph for this function:

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

Definition at line 99 of file llmultisliderctrl.h.

References mMultiSlider, and LLMultiSlider::setIncrement().

Here is the call graph for this function:

const LLString & LLMultiSliderCtrl::addSlider (  ) 

for adding and deleting sliders

Definition at line 213 of file llmultisliderctrl.cpp.

References LLMultiSlider::addSlider(), LLMultiSlider::getCurSliderValue(), mCurValue, mMultiSlider, LLStringBase< char >::null, and updateText().

Referenced by LLFloaterDayCycle::addSliderKey(), and LLFloaterDayCycle::LLFloaterDayCycle().

Here is the call graph for this function:

Here is the caller graph for this function:

const LLString & LLMultiSliderCtrl::addSlider ( F32  val  ) 

Definition at line 228 of file llmultisliderctrl.cpp.

References LLMultiSlider::addSlider(), LLMultiSlider::getCurSliderValue(), mCurValue, mMultiSlider, LLStringBase< char >::null, and updateText().

Here is the call graph for this function:

void LLMultiSliderCtrl::deleteSlider ( const LLString name  ) 

Definition at line 243 of file llmultisliderctrl.cpp.

References LLMultiSlider::deleteSlider(), LLMultiSlider::getCurSliderValue(), mCurValue, mMultiSlider, and updateText().

Referenced by deleteCurSlider(), and LLFloaterDayCycle::deletePreset().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLMultiSliderCtrl::deleteCurSlider (  )  [inline]

Definition at line 105 of file llmultisliderctrl.h.

References deleteSlider(), LLMultiSlider::getCurSlider(), and mMultiSlider.

Here is the call graph for this function:

F32 LLMultiSliderCtrl::getMinValue (  )  [inline]

Definition at line 107 of file llmultisliderctrl.h.

References LLMultiSlider::getMinValue(), and mMultiSlider.

Here is the call graph for this function:

F32 LLMultiSliderCtrl::getMaxValue (  )  [inline]

Definition at line 108 of file llmultisliderctrl.h.

References LLMultiSlider::getMaxValue(), and mMultiSlider.

Here is the call graph for this function:

void LLMultiSliderCtrl::setLabel ( const LLString label  )  [inline]

Definition at line 110 of file llmultisliderctrl.h.

References mLabelBox, and LLTextBox::setText().

Here is the call graph for this function:

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

Definition at line 111 of file llmultisliderctrl.h.

References mTextEnabledColor.

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

Definition at line 112 of file llmultisliderctrl.h.

References mTextDisabledColor.

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

Definition at line 440 of file llmultisliderctrl.cpp.

References mMultiSlider, mSliderMouseDownCallback, onSliderMouseDown(), and LLMultiSlider::setMouseDownCallback().

Here is the call graph for this function:

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

Definition at line 457 of file llmultisliderctrl.cpp.

References mMultiSlider, mSliderMouseUpCallback, onSliderMouseUp(), and LLMultiSlider::setMouseUpCallback().

Here is the call graph for this function:

void LLMultiSliderCtrl::onTabInto (  )  [virtual]

Reimplemented from LLUICtrl.

Definition at line 473 of file llmultisliderctrl.cpp.

References mEditor, and LLLineEditor::onTabInto().

Here is the call graph for this function:

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

Reimplemented from LLUICtrl.

Definition at line 405 of file llmultisliderctrl.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 LLMultiSliderCtrl::onCommit (  )  [virtual]

Reimplemented from LLUICtrl.

Definition at line 415 of file llmultisliderctrl.cpp.

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

Here is the call graph for this function:

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

Reimplemented from LLView.

Definition at line 493 of file llmultisliderctrl.cpp.

References mMultiSlider, and LLView::setControlName().

Here is the call graph for this function:

LLString LLMultiSliderCtrl::getControlName (  )  const [virtual]

Reimplemented from LLView.

Definition at line 487 of file llmultisliderctrl.cpp.

References LLView::getControlName(), and mMultiSlider.

Here is the call graph for this function:

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

Definition at line 344 of file llmultisliderctrl.cpp.

References FALSE, and TRUE.

Referenced by LLMultiSliderCtrl().

Here is the caller graph for this function:

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

Definition at line 447 of file llmultisliderctrl.cpp.

Referenced by setSliderMouseDownCallback().

Here is the caller graph for this function:

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

Definition at line 464 of file llmultisliderctrl.cpp.

Referenced by setSliderMouseUpCallback().

Here is the caller graph for this function:

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

Definition at line 296 of file llmultisliderctrl.cpp.

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

Referenced by LLMultiSliderCtrl().

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 159 of file llmultisliderctrl.cpp.

References llassert.

Referenced by LLMultiSliderCtrl().

Here is the caller graph for this function:

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

void LLMultiSliderCtrl::updateText (  )  [private]

Definition at line 273 of file llmultisliderctrl.cpp.

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

Referenced by addSlider(), deleteSlider(), fromXML(), LLMultiSliderCtrl(), setPrecision(), setSliderValue(), and setValue().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLMultiSliderCtrl::reportInvalidData (  )  [private]

Definition at line 481 of file llmultisliderctrl.cpp.

References make_ui_sound().

Here is the call graph for this function:


Member Data Documentation

Definition at line 138 of file llmultisliderctrl.h.

Referenced by setLabelArg().

Definition at line 139 of file llmultisliderctrl.h.

Referenced by getXML().

Definition at line 140 of file llmultisliderctrl.h.

Referenced by getXML().

Definition at line 142 of file llmultisliderctrl.h.

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

Definition at line 143 of file llmultisliderctrl.h.

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

Definition at line 144 of file llmultisliderctrl.h.

Referenced by setLabelArg().

Definition at line 149 of file llmultisliderctrl.h.

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

Definition at line 151 of file llmultisliderctrl.h.

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

Definition at line 152 of file llmultisliderctrl.h.

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

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

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


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

Generated on Fri May 16 08:54:19 2008 for SecondLife by  doxygen 1.5.5