aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--ChangeLog.txt8
-rw-r--r--linden/indra/llui/llslider.cpp6
-rw-r--r--linden/indra/llui/llslider.h1
3 files changed, 15 insertions, 0 deletions
diff --git a/ChangeLog.txt b/ChangeLog.txt
index cbcc174..4d13196 100644
--- a/ChangeLog.txt
+++ b/ChangeLog.txt
@@ -145,6 +145,14 @@
145 modified: linden/indra/newview/viewer_manifest.py 145 modified: linden/indra/newview/viewer_manifest.py
146 146
147 147
1482010-01-05 Armin Weatherwax <Armin.Weatherwax@gmail.com>
149
150 * Slider widgets can now be controlled with mouse wheel.
151
152 modified: linden/indra/llui/llslider.cpp
153 modified: linden/indra/llui/llslider.h
154
155
1482010-01-08 McCabe Maxsted <hakushakukun@gmail.com> 1562010-01-08 McCabe Maxsted <hakushakukun@gmail.com>
149 157
150 * Fixed options missing from Text Chat and Input & Camera preferences (see VWR-13120). 158 * Fixed options missing from Text Chat and Input & Camera preferences (see VWR-13120).
diff --git a/linden/indra/llui/llslider.cpp b/linden/indra/llui/llslider.cpp
index 7b4da9b..83b4d65 100644
--- a/linden/indra/llui/llslider.cpp
+++ b/linden/indra/llui/llslider.cpp
@@ -222,6 +222,12 @@ BOOL LLSlider::handleMouseDown(S32 x, S32 y, MASK mask)
222 return TRUE; 222 return TRUE;
223} 223}
224 224
225BOOL LLSlider::handleScrollWheel(S32 x, S32 y, S32 clicks)
226{
227 setValueAndCommit(getValueF32() - ( getIncrement()* (F32)clicks ));
228 return TRUE;
229}
230
225BOOL LLSlider::handleKeyHere(KEY key, MASK mask) 231BOOL LLSlider::handleKeyHere(KEY key, MASK mask)
226{ 232{
227 BOOL handled = FALSE; 233 BOOL handled = FALSE;
diff --git a/linden/indra/llui/llslider.h b/linden/indra/llui/llslider.h
index 154685f..9fc85f2 100644
--- a/linden/indra/llui/llslider.h
+++ b/linden/indra/llui/llslider.h
@@ -78,6 +78,7 @@ public:
78 virtual BOOL handleHover(S32 x, S32 y, MASK mask); 78 virtual BOOL handleHover(S32 x, S32 y, MASK mask);
79 virtual BOOL handleMouseUp(S32 x, S32 y, MASK mask); 79 virtual BOOL handleMouseUp(S32 x, S32 y, MASK mask);
80 virtual BOOL handleMouseDown(S32 x, S32 y, MASK mask); 80 virtual BOOL handleMouseDown(S32 x, S32 y, MASK mask);
81 virtual BOOL handleScrollWheel(S32 x, S32 y, S32 clicks);
81 virtual BOOL handleKeyHere(KEY key, MASK mask); 82 virtual BOOL handleKeyHere(KEY key, MASK mask);
82 virtual void draw(); 83 virtual void draw();
83 84