diff options
author | Jacek Antonelli | 2008-08-15 23:45:34 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:45:34 -0500 |
commit | cd17687f01420952712a500107e0f93e7ab8d5f8 (patch) | |
tree | ce48c2b706f2c1176290e39fb555fbdf6648ce01 /linden/indra/llui/llsliderctrl.cpp | |
parent | Second Life viewer sources 1.19.0.5 (diff) | |
download | meta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.zip meta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.tar.gz meta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.tar.bz2 meta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.tar.xz |
Second Life viewer sources 1.19.1.0
Diffstat (limited to '')
-rw-r--r-- | linden/indra/llui/llsliderctrl.cpp | 31 |
1 files changed, 3 insertions, 28 deletions
diff --git a/linden/indra/llui/llsliderctrl.cpp b/linden/indra/llui/llsliderctrl.cpp index 17854d0..58ab4ae 100644 --- a/linden/indra/llui/llsliderctrl.cpp +++ b/linden/indra/llui/llsliderctrl.cpp | |||
@@ -81,7 +81,7 @@ LLSliderCtrl::LLSliderCtrl(const LLString& name, const LLRect& rect, | |||
81 | mSliderMouseUpCallback( NULL ), | 81 | mSliderMouseUpCallback( NULL ), |
82 | mSliderMouseDownCallback( NULL ) | 82 | mSliderMouseDownCallback( NULL ) |
83 | { | 83 | { |
84 | S32 top = mRect.getHeight(); | 84 | S32 top = getRect().getHeight(); |
85 | S32 bottom = 0; | 85 | S32 bottom = 0; |
86 | S32 left = 0; | 86 | S32 left = 0; |
87 | 87 | ||
@@ -97,7 +97,7 @@ LLSliderCtrl::LLSliderCtrl(const LLString& name, const LLRect& rect, | |||
97 | addChild(mLabelBox); | 97 | addChild(mLabelBox); |
98 | } | 98 | } |
99 | 99 | ||
100 | S32 slider_right = mRect.getWidth(); | 100 | S32 slider_right = getRect().getWidth(); |
101 | if( show_text ) | 101 | if( show_text ) |
102 | { | 102 | { |
103 | slider_right = text_left - SLIDERCTRL_SPACING; | 103 | slider_right = text_left - SLIDERCTRL_SPACING; |
@@ -115,7 +115,7 @@ LLSliderCtrl::LLSliderCtrl(const LLString& name, const LLRect& rect, | |||
115 | 115 | ||
116 | if( show_text ) | 116 | if( show_text ) |
117 | { | 117 | { |
118 | LLRect text_rect( text_left, top, mRect.getWidth(), bottom ); | 118 | LLRect text_rect( text_left, top, getRect().getWidth(), bottom ); |
119 | if( can_edit_text ) | 119 | if( can_edit_text ) |
120 | { | 120 | { |
121 | mEditor = new LLLineEditor( "SliderCtrl Editor", text_rect, | 121 | mEditor = new LLLineEditor( "SliderCtrl Editor", text_rect, |
@@ -144,10 +144,6 @@ LLSliderCtrl::LLSliderCtrl(const LLString& name, const LLRect& rect, | |||
144 | updateText(); | 144 | updateText(); |
145 | } | 145 | } |
146 | 146 | ||
147 | LLSliderCtrl::~LLSliderCtrl() | ||
148 | { | ||
149 | // Children all cleaned up by default view destructor. | ||
150 | } | ||
151 | 147 | ||
152 | // static | 148 | // static |
153 | void LLSliderCtrl::onEditorGainFocus( LLFocusableElement* caller, void *userdata ) | 149 | void LLSliderCtrl::onEditorGainFocus( LLFocusableElement* caller, void *userdata ) |
@@ -158,10 +154,6 @@ void LLSliderCtrl::onEditorGainFocus( LLFocusableElement* caller, void *userdata | |||
158 | self->onFocusReceived(); | 154 | self->onFocusReceived(); |
159 | } | 155 | } |
160 | 156 | ||
161 | F32 LLSliderCtrl::getValueF32() const | ||
162 | { | ||
163 | return mSlider->getValueF32(); | ||
164 | } | ||
165 | 157 | ||
166 | void LLSliderCtrl::setValue(F32 v, BOOL from_event) | 158 | void LLSliderCtrl::setValue(F32 v, BOOL from_event) |
167 | { | 159 | { |
@@ -209,11 +201,6 @@ void LLSliderCtrl::clear() | |||
209 | 201 | ||
210 | } | 202 | } |
211 | 203 | ||
212 | BOOL LLSliderCtrl::isMouseHeldDown() | ||
213 | { | ||
214 | return mSlider->hasMouseCapture(); | ||
215 | } | ||
216 | |||
217 | void LLSliderCtrl::updateText() | 204 | void LLSliderCtrl::updateText() |
218 | { | 205 | { |
219 | if( mEditor || mTextBox ) | 206 | if( mEditor || mTextBox ) |
@@ -427,18 +414,6 @@ void LLSliderCtrl::reportInvalidData() | |||
427 | make_ui_sound("UISndBadKeystroke"); | 414 | make_ui_sound("UISndBadKeystroke"); |
428 | } | 415 | } |
429 | 416 | ||
430 | //virtual | ||
431 | LLString LLSliderCtrl::getControlName() const | ||
432 | { | ||
433 | return mSlider->getControlName(); | ||
434 | } | ||
435 | |||
436 | // virtual | ||
437 | void LLSliderCtrl::setControlName(const LLString& control_name, LLView* context) | ||
438 | { | ||
439 | mSlider->setControlName(control_name, context); | ||
440 | } | ||
441 | |||
442 | // virtual | 417 | // virtual |
443 | LLXMLNodePtr LLSliderCtrl::getXML(bool save_children) const | 418 | LLXMLNodePtr LLSliderCtrl::getXML(bool save_children) const |
444 | { | 419 | { |