summaryrefslogtreecommitdiff
path: root/indra/llui/llmultislider.h
diff options
context:
space:
mode:
authorandreykproductengine <andreykproductengine@lindenlab.com>2018-09-06 21:29:28 +0300
committerandreykproductengine <andreykproductengine@lindenlab.com>2018-09-06 21:29:28 +0300
commite539236a75a163b1c6748617bd1e4d2b84aaa3d6 (patch)
treeb1ac6d1694d25aa5c4abe8d2e42b1fdbd255559a /indra/llui/llmultislider.h
parent14107dd0625af06dcf2019940eaf8e8d66585658 (diff)
MAINT-9099 Implementation of vertical orientation support for multislider
Diffstat (limited to 'indra/llui/llmultislider.h')
-rw-r--r--indra/llui/llmultislider.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/indra/llui/llmultislider.h b/indra/llui/llmultislider.h
index eff0c7d2d7..3884b0a2a0 100644
--- a/indra/llui/llmultislider.h
+++ b/indra/llui/llmultislider.h
@@ -60,6 +60,8 @@ public:
thumb_center_selected_color,
triangle_color;
+ Optional<std::string> orientation;
+
Optional<CommitCallbackParam> mouse_down_callback,
mouse_up_callback;
Optional<S32> thumb_width;
@@ -75,7 +77,7 @@ public:
virtual ~LLMultiSlider();
void setSliderValue(const std::string& name, F32 value, BOOL from_event = FALSE);
F32 getSliderValue(const std::string& name) const;
- F32 getSliderValueFromX(S32 xpos) const;
+ F32 getSliderValueFromPos(S32 xpos, S32 ypos) const;
const std::string& getCurSlider() const { return mCurSlider; }
F32 getCurSliderValue() const { return getSliderValue(mCurSlider); }
@@ -127,7 +129,9 @@ protected:
LLUIColor mThumbCenterSelectedColor;
LLUIColor mDisabledThumbColor;
LLUIColor mTriangleColor;
-
+
+ const EOrientation mOrientation;
+
commit_signal_t* mMouseDownSignal;
commit_signal_t* mMouseUpSignal;
};