diff options
Diffstat (limited to 'linden/indra')
-rw-r--r-- | linden/indra/llui/llspinctrl.cpp | 12 | ||||
-rw-r--r-- | linden/indra/llui/llspinctrl.h | 2 |
2 files changed, 14 insertions, 0 deletions
diff --git a/linden/indra/llui/llspinctrl.cpp b/linden/indra/llui/llspinctrl.cpp index 2992f98..760fbfd 100644 --- a/linden/indra/llui/llspinctrl.cpp +++ b/linden/indra/llui/llspinctrl.cpp | |||
@@ -402,6 +402,18 @@ void LLSpinCtrl::setLabel(const LLStringExplicit& label) | |||
402 | } | 402 | } |
403 | } | 403 | } |
404 | 404 | ||
405 | BOOL LLSpinCtrl::setLabelArg( const std::string& key, const LLStringExplicit& text ) | ||
406 | { | ||
407 | if (mLabelBox) | ||
408 | { | ||
409 | BOOL res = mLabelBox->setTextArg(key, text); | ||
410 | reshape(getRect().getWidth(), getRect().getHeight(), FALSE); | ||
411 | return res; | ||
412 | } | ||
413 | return FALSE; | ||
414 | } | ||
415 | |||
416 | |||
405 | void LLSpinCtrl::setAllowEdit(BOOL allow_edit) | 417 | void LLSpinCtrl::setAllowEdit(BOOL allow_edit) |
406 | { | 418 | { |
407 | mEditor->setEnabled(allow_edit); | 419 | mEditor->setEnabled(allow_edit); |
diff --git a/linden/indra/llui/llspinctrl.h b/linden/indra/llui/llspinctrl.h index dfd0eb3..b9d94e5 100644 --- a/linden/indra/llui/llspinctrl.h +++ b/linden/indra/llui/llspinctrl.h | |||
@@ -116,6 +116,8 @@ public: | |||
116 | static void onUpBtn(void *userdata); | 116 | static void onUpBtn(void *userdata); |
117 | static void onDownBtn(void *userdata); | 117 | static void onDownBtn(void *userdata); |
118 | 118 | ||
119 | virtual BOOL setLabelArg( const std::string& key, const LLStringExplicit& text ); | ||
120 | |||
119 | private: | 121 | private: |
120 | void updateEditor(); | 122 | void updateEditor(); |
121 | void reportInvalidData(); | 123 | void reportInvalidData(); |