aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llui/llsliderctrl.h
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/llui/llsliderctrl.h')
-rw-r--r--linden/indra/llui/llsliderctrl.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/linden/indra/llui/llsliderctrl.h b/linden/indra/llui/llsliderctrl.h
index 0c8a8b6..7df255c 100644
--- a/linden/indra/llui/llsliderctrl.h
+++ b/linden/indra/llui/llsliderctrl.h
@@ -48,9 +48,9 @@ const S32 SLIDERCTRL_HEIGHT = 16;
48class LLSliderCtrl : public LLUICtrl 48class LLSliderCtrl : public LLUICtrl
49{ 49{
50public: 50public:
51 LLSliderCtrl(const LLString& name, 51 LLSliderCtrl(const std::string& name,
52 const LLRect& rect, 52 const LLRect& rect,
53 const LLString& label, 53 const std::string& label,
54 const LLFontGL* font, 54 const LLFontGL* font,
55 S32 slider_left, 55 S32 slider_left,
56 S32 text_left, 56 S32 text_left,
@@ -60,7 +60,7 @@ public:
60 void (*commit_callback)(LLUICtrl*, void*), 60 void (*commit_callback)(LLUICtrl*, void*),
61 void* callback_userdata, 61 void* callback_userdata,
62 F32 initial_value, F32 min_value, F32 max_value, F32 increment, 62 F32 initial_value, F32 min_value, F32 max_value, F32 increment,
63 const LLString& control_which = LLString::null ); 63 const std::string& control_which = LLStringUtil::null );
64 64
65 virtual ~LLSliderCtrl() {} // Children all cleaned up by default view destructor. 65 virtual ~LLSliderCtrl() {} // Children all cleaned up by default view destructor.
66 66
@@ -72,7 +72,7 @@ public:
72 72
73 virtual void setValue(const LLSD& value) { setValue((F32)value.asReal(), TRUE); } 73 virtual void setValue(const LLSD& value) { setValue((F32)value.asReal(), TRUE); }
74 virtual LLSD getValue() const { return LLSD(getValueF32()); } 74 virtual LLSD getValue() const { return LLSD(getValueF32()); }
75 virtual BOOL setLabelArg( const LLString& key, const LLStringExplicit& text ); 75 virtual BOOL setLabelArg( const std::string& key, const LLStringExplicit& text );
76 76
77 virtual void setMinValue(LLSD min_value) { setMinValue((F32)min_value.asReal()); } 77 virtual void setMinValue(LLSD min_value) { setMinValue((F32)min_value.asReal()); }
78 virtual void setMaxValue(LLSD max_value) { setMaxValue((F32)max_value.asReal()); } 78 virtual void setMaxValue(LLSD max_value) { setMaxValue((F32)max_value.asReal()); }
@@ -101,13 +101,13 @@ public:
101 virtual void setTentative(BOOL b); // marks value as tentative 101 virtual void setTentative(BOOL b); // marks value as tentative
102 virtual void onCommit(); // mark not tentative, then commit 102 virtual void onCommit(); // mark not tentative, then commit
103 103
104 virtual void setControlName(const LLString& control_name, LLView* context) 104 virtual void setControlName(const std::string& control_name, LLView* context)
105 { 105 {
106 LLView::setControlName(control_name, context); 106 LLView::setControlName(control_name, context);
107 mSlider->setControlName(control_name, context); 107 mSlider->setControlName(control_name, context);
108 } 108 }
109 109
110 virtual LLString getControlName() const { return mSlider->getControlName(); } 110 virtual std::string getControlName() const { return mSlider->getControlName(); }
111 111
112 static void onSliderCommit(LLUICtrl* caller, void* userdata); 112 static void onSliderCommit(LLUICtrl* caller, void* userdata);
113 static void onSliderMouseDown(LLUICtrl* caller,void* userdata); 113 static void onSliderMouseDown(LLUICtrl* caller,void* userdata);