aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorMcCabe Maxsted2010-04-26 20:45:39 -0700
committerMcCabe Maxsted2010-04-26 20:45:39 -0700
commit4b53fd0517dd4bf1c3c0c1d9a094749be4cc761d (patch)
tree8a6ff9bba5303da89705008b3e78428770083057
parentPorted currency changes from Hippo (#237) and fixed some labels Hippo missed ... (diff)
downloadmeta-impy-4b53fd0517dd4bf1c3c0c1d9a094749be4cc761d.zip
meta-impy-4b53fd0517dd4bf1c3c0c1d9a094749be4cc761d.tar.gz
meta-impy-4b53fd0517dd4bf1c3c0c1d9a094749be4cc761d.tar.bz2
meta-impy-4b53fd0517dd4bf1c3c0c1d9a094749be4cc761d.tar.xz
Added missing setLabelArg to LLSpinCtrl (silly Lindens...)
Diffstat (limited to '')
-rw-r--r--linden/indra/llui/llspinctrl.cpp12
-rw-r--r--linden/indra/llui/llspinctrl.h2
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
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);
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
119private: 121private:
120 void updateEditor(); 122 void updateEditor();
121 void reportInvalidData(); 123 void reportInvalidData();