aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llui/llspinctrl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/llui/llspinctrl.cpp')
-rw-r--r--linden/indra/llui/llspinctrl.cpp12
1 files changed, 12 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
405BOOL 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
405void LLSpinCtrl::setAllowEdit(BOOL allow_edit) 417void LLSpinCtrl::setAllowEdit(BOOL allow_edit)
406{ 418{
407 mEditor->setEnabled(allow_edit); 419 mEditor->setEnabled(allow_edit);