From 4b53fd0517dd4bf1c3c0c1d9a094749be4cc761d Mon Sep 17 00:00:00 2001 From: McCabe Maxsted Date: Mon, 26 Apr 2010 20:45:39 -0700 Subject: Added missing setLabelArg to LLSpinCtrl (silly Lindens...) --- linden/indra/llui/llspinctrl.cpp | 12 ++++++++++++ linden/indra/llui/llspinctrl.h | 2 ++ 2 files changed, 14 insertions(+) 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) } } +BOOL LLSpinCtrl::setLabelArg( const std::string& key, const LLStringExplicit& text ) +{ + if (mLabelBox) + { + BOOL res = mLabelBox->setTextArg(key, text); + reshape(getRect().getWidth(), getRect().getHeight(), FALSE); + return res; + } + return FALSE; +} + + void LLSpinCtrl::setAllowEdit(BOOL allow_edit) { 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: static void onUpBtn(void *userdata); static void onDownBtn(void *userdata); + virtual BOOL setLabelArg( const std::string& key, const LLStringExplicit& text ); + private: void updateEditor(); void reportInvalidData(); -- cgit v1.1