diff options
Diffstat (limited to '')
-rw-r--r-- | linden/indra/llui/llslider.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/linden/indra/llui/llslider.h b/linden/indra/llui/llslider.h index 4f42a56..8fcd672 100644 --- a/linden/indra/llui/llslider.h +++ b/linden/indra/llui/llslider.h | |||
@@ -46,6 +46,7 @@ public: | |||
46 | F32 min_value, | 46 | F32 min_value, |
47 | F32 max_value, | 47 | F32 max_value, |
48 | F32 increment, | 48 | F32 increment, |
49 | BOOL volume, | ||
49 | const LLString& control_name = LLString::null ); | 50 | const LLString& control_name = LLString::null ); |
50 | 51 | ||
51 | virtual EWidgetType getWidgetType() const; | 52 | virtual EWidgetType getWidgetType() const; |
@@ -66,6 +67,7 @@ public: | |||
66 | F32 getMinValue() const { return mMinValue; } | 67 | F32 getMinValue() const { return mMinValue; } |
67 | F32 getMaxValue() const { return mMaxValue; } | 68 | F32 getMaxValue() const { return mMaxValue; } |
68 | F32 getIncrement() const { return mIncrement; } | 69 | F32 getIncrement() const { return mIncrement; } |
70 | BOOL getVolumeSlider() const { return mVolumeSlider; } | ||
69 | void setMinValue(F32 min_value) {mMinValue = min_value;} | 71 | void setMinValue(F32 min_value) {mMinValue = min_value;} |
70 | void setMaxValue(F32 max_value) {mMaxValue = max_value;} | 72 | void setMaxValue(F32 max_value) {mMaxValue = max_value;} |
71 | void setIncrement(F32 increment) {mIncrement = increment;} | 73 | void setIncrement(F32 increment) {mIncrement = increment;} |
@@ -79,12 +81,16 @@ public: | |||
79 | virtual void draw(); | 81 | virtual void draw(); |
80 | 82 | ||
81 | protected: | 83 | protected: |
84 | void setValueAndCommit(F32 value); | ||
85 | |||
86 | protected: | ||
82 | F32 mValue; | 87 | F32 mValue; |
83 | F32 mInitialValue; | 88 | F32 mInitialValue; |
84 | F32 mMinValue; | 89 | F32 mMinValue; |
85 | F32 mMaxValue; | 90 | F32 mMaxValue; |
86 | F32 mIncrement; | 91 | F32 mIncrement; |
87 | 92 | ||
93 | BOOL mVolumeSlider; | ||
88 | S32 mMouseOffset; | 94 | S32 mMouseOffset; |
89 | LLRect mDragStartThumbRect; | 95 | LLRect mDragStartThumbRect; |
90 | 96 | ||