aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/lltexturectrl.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:45:07 -0500
committerJacek Antonelli2008-08-15 23:45:07 -0500
commit8465910c79b8e746e04fd581cca2d60399e569b9 (patch)
treef43fec3e83c46e0d6190dca923d6fb268b52ffdd /linden/indra/newview/lltexturectrl.cpp
parentSecond Life viewer sources 1.18.2.1 (diff)
downloadmeta-impy-8465910c79b8e746e04fd581cca2d60399e569b9.zip
meta-impy-8465910c79b8e746e04fd581cca2d60399e569b9.tar.gz
meta-impy-8465910c79b8e746e04fd581cca2d60399e569b9.tar.bz2
meta-impy-8465910c79b8e746e04fd581cca2d60399e569b9.tar.xz
Second Life viewer sources 1.18.3.2-RC
Diffstat (limited to 'linden/indra/newview/lltexturectrl.cpp')
-rw-r--r--linden/indra/newview/lltexturectrl.cpp18
1 files changed, 16 insertions, 2 deletions
diff --git a/linden/indra/newview/lltexturectrl.cpp b/linden/indra/newview/lltexturectrl.cpp
index 6602096..9c64bd3 100644
--- a/linden/indra/newview/lltexturectrl.cpp
+++ b/linden/indra/newview/lltexturectrl.cpp
@@ -129,7 +129,7 @@ public:
129 void setCanApplyImmediately(BOOL b); 129 void setCanApplyImmediately(BOOL b);
130 130
131 void setDirty( BOOL b ) { mIsDirty = b; } 131 void setDirty( BOOL b ) { mIsDirty = b; }
132 BOOL isDirty() { return mIsDirty; } 132 BOOL isDirty() const { return mIsDirty; }
133 void setActive( BOOL active ); 133 void setActive( BOOL active );
134 134
135 LLTextureCtrl* getOwner() const { return mOwner; } 135 LLTextureCtrl* getOwner() const { return mOwner; }
@@ -908,7 +908,8 @@ LLTextureCtrl::LLTextureCtrl(
908 mNonImmediateFilterPermMask( PERM_NONE ), 908 mNonImmediateFilterPermMask( PERM_NONE ),
909 mCanApplyImmediately( FALSE ), 909 mCanApplyImmediately( FALSE ),
910 mNeedsRawImageData( FALSE ), 910 mNeedsRawImageData( FALSE ),
911 mValid( TRUE ) 911 mValid( TRUE ),
912 mDirty( FALSE )
912{ 913{
913 mCaption = new LLTextBox( label, 914 mCaption = new LLTextBox( label,
914 LLRect( 0, BTN_HEIGHT_SMALL, mRect.getWidth(), 0 ), 915 LLRect( 0, BTN_HEIGHT_SMALL, mRect.getWidth(), 0 ),
@@ -1070,6 +1071,18 @@ void LLTextureCtrl::setValid(BOOL valid )
1070 } 1071 }
1071} 1072}
1072 1073
1074// virtual
1075BOOL LLTextureCtrl::isDirty() const
1076{
1077 return mDirty;
1078}
1079
1080// virtual
1081void LLTextureCtrl::resetDirty()
1082{
1083 mDirty = FALSE;
1084}
1085
1073 1086
1074// virtual 1087// virtual
1075void LLTextureCtrl::clear() 1088void LLTextureCtrl::clear()
@@ -1186,6 +1199,7 @@ void LLTextureCtrl::onFloaterCommit(ETexturePickOp op)
1186 1199
1187 if( floaterp && mEnabled) 1200 if( floaterp && mEnabled)
1188 { 1201 {
1202 mDirty = (op != TEXTURE_CANCEL);
1189 if( floaterp->isDirty() ) 1203 if( floaterp->isDirty() )
1190 { 1204 {
1191 setTentative( FALSE ); 1205 setTentative( FALSE );