summaryrefslogtreecommitdiff
path: root/indra/llui
diff options
context:
space:
mode:
authorpaul_productengine <none@none>2011-06-08 18:23:31 +0300
committerpaul_productengine <none@none>2011-06-08 18:23:31 +0300
commit0c3de98056bde49a18c40469b3d3e3a43be3d209 (patch)
tree7c5bfd5c98ad5ddd623fd6dd4e890812a29f0ce0 /indra/llui
parent280caa290253d92cc8f5f283c340d79639a9b178 (diff)
SH-1588 FIXED (Build tools does not specify units for prim density value)
- Changed label of the Density spinner - Added ability to LLSpinCtrl to set wrap property form XML
Diffstat (limited to 'indra/llui')
-rw-r--r--indra/llui/llspinctrl.cpp2
-rw-r--r--indra/llui/llspinctrl.h1
2 files changed, 3 insertions, 0 deletions
diff --git a/indra/llui/llspinctrl.cpp b/indra/llui/llspinctrl.cpp
index 6b4e9cf923..15a7438ec9 100644
--- a/indra/llui/llspinctrl.cpp
+++ b/indra/llui/llspinctrl.cpp
@@ -52,6 +52,7 @@ LLSpinCtrl::Params::Params()
: label_width("label_width"),
decimal_digits("decimal_digits"),
allow_text_entry("allow_text_entry", true),
+ label_wrap("label_wrap", false),
text_enabled_color("text_enabled_color"),
text_disabled_color("text_disabled_color"),
up_button("up_button"),
@@ -80,6 +81,7 @@ LLSpinCtrl::LLSpinCtrl(const LLSpinCtrl::Params& p)
{
LLRect label_rect( 0, centered_top, label_width, centered_bottom );
LLTextBox::Params params;
+ params.wrap(p.label_wrap);
params.name("SpinCtrl Label");
params.rect(label_rect);
params.initial_value(p.label());
diff --git a/indra/llui/llspinctrl.h b/indra/llui/llspinctrl.h
index 8960971594..d197084e38 100644
--- a/indra/llui/llspinctrl.h
+++ b/indra/llui/llspinctrl.h
@@ -44,6 +44,7 @@ public:
Optional<S32> label_width;
Optional<U32> decimal_digits;
Optional<bool> allow_text_entry;
+ Optional<bool> label_wrap;
Optional<LLUIColor> text_enabled_color;
Optional<LLUIColor> text_disabled_color;