aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llui
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/llui')
-rw-r--r--linden/indra/llui/llspinctrl.cpp5
-rw-r--r--linden/indra/llui/llspinctrl.h4
-rw-r--r--linden/indra/llui/llui_vc8.vcproj4
3 files changed, 12 insertions, 1 deletions
diff --git a/linden/indra/llui/llspinctrl.cpp b/linden/indra/llui/llspinctrl.cpp
index 668ddfa..f587c80 100644
--- a/linden/indra/llui/llspinctrl.cpp
+++ b/linden/indra/llui/llspinctrl.cpp
@@ -547,3 +547,8 @@ LLView* LLSpinCtrl::fromXML(LLXMLNodePtr node, LLView *parent, LLUICtrlFactory *
547 547
548 return spinner; 548 return spinner;
549} 549}
550
551BOOL LLSpinCtrl::isDirty() const
552{
553 return( mValue != mInitialValue );
554}
diff --git a/linden/indra/llui/llspinctrl.h b/linden/indra/llui/llspinctrl.h
index dcc305e..c854ff0 100644
--- a/linden/indra/llui/llspinctrl.h
+++ b/linden/indra/llui/llspinctrl.h
@@ -76,7 +76,7 @@ public:
76 virtual void setValue(const LLSD& value ); 76 virtual void setValue(const LLSD& value );
77 virtual LLSD getValue() const; 77 virtual LLSD getValue() const;
78 F32 get() { return (F32)getValue().asReal(); } 78 F32 get() { return (F32)getValue().asReal(); }
79 void set(F32 value) { setValue(value); } 79 void set(F32 value) { setValue(value); mInitialValue = value; }
80 80
81 virtual void setMinValue(LLSD min_value) { setMinValue((F32)min_value.asReal()); } 81 virtual void setMinValue(LLSD min_value) { setMinValue((F32)min_value.asReal()); }
82 virtual void setMaxValue(LLSD max_value) { setMaxValue((F32)max_value.asReal()); } 82 virtual void setMaxValue(LLSD max_value) { setMaxValue((F32)max_value.asReal()); }
@@ -86,6 +86,8 @@ public:
86 virtual void setEnabled( BOOL b ); 86 virtual void setEnabled( BOOL b );
87 virtual void setFocus( BOOL b ); 87 virtual void setFocus( BOOL b );
88 virtual void clear(); 88 virtual void clear();
89 virtual BOOL isDirty() const;
90
89 virtual void setPrecision(S32 precision); 91 virtual void setPrecision(S32 precision);
90 virtual void setMinValue(F32 min) { mMinValue = min; } 92 virtual void setMinValue(F32 min) { mMinValue = min; }
91 virtual void setMaxValue(F32 max) { mMaxValue = max; } 93 virtual void setMaxValue(F32 max) { mMaxValue = max; }
diff --git a/linden/indra/llui/llui_vc8.vcproj b/linden/indra/llui/llui_vc8.vcproj
index a78c71c..096a755 100644
--- a/linden/indra/llui/llui_vc8.vcproj
+++ b/linden/indra/llui/llui_vc8.vcproj
@@ -440,6 +440,10 @@
440 > 440 >
441 </File> 441 </File>
442 <File 442 <File
443 RelativePath=".\llhtmlhelp.h"
444 >
445 </File>
446 <File
443 RelativePath=".\lliconctrl.h" 447 RelativePath=".\lliconctrl.h"
444 > 448 >
445 </File> 449 </File>