aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llui/llbutton.h
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:45:04 -0500
committerJacek Antonelli2008-08-15 23:45:04 -0500
commit117e22047c5752352342d64e3fb7ce00a4eb8113 (patch)
treee32de2cfba0dda8705ae528fcd1fbe23ba075685 /linden/indra/llui/llbutton.h
parentSecond Life viewer sources 1.18.0.6 (diff)
downloadmeta-impy-117e22047c5752352342d64e3fb7ce00a4eb8113.zip
meta-impy-117e22047c5752352342d64e3fb7ce00a4eb8113.tar.gz
meta-impy-117e22047c5752352342d64e3fb7ce00a4eb8113.tar.bz2
meta-impy-117e22047c5752352342d64e3fb7ce00a4eb8113.tar.xz
Second Life viewer sources 1.18.1.2
Diffstat (limited to 'linden/indra/llui/llbutton.h')
-rw-r--r--linden/indra/llui/llbutton.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/linden/indra/llui/llbutton.h b/linden/indra/llui/llbutton.h
index 6e11779..aedc411 100644
--- a/linden/indra/llui/llbutton.h
+++ b/linden/indra/llui/llbutton.h
@@ -100,6 +100,8 @@ public:
100 // HACK: "committing" a button is the same as clicking on it. 100 // HACK: "committing" a button is the same as clicking on it.
101 virtual void onCommit(); 101 virtual void onCommit();
102 102
103 virtual BOOL isDirty() { return mIsDirty; }; // Returns TRUE if the user has clicked on the button at all
104
103 void setUnselectedLabelColor( const LLColor4& c ) { mUnselectedLabelColor = c; } 105 void setUnselectedLabelColor( const LLColor4& c ) { mUnselectedLabelColor = c; }
104 void setSelectedLabelColor( const LLColor4& c ) { mSelectedLabelColor = c; } 106 void setSelectedLabelColor( const LLColor4& c ) { mSelectedLabelColor = c; }
105 107
@@ -142,7 +144,7 @@ public:
142 144
143 void setDisabledSelectedLabelColor( const LLColor4& c ) { mDisabledSelectedLabelColor = c; } 145 void setDisabledSelectedLabelColor( const LLColor4& c ) { mDisabledSelectedLabelColor = c; }
144 146
145 void setImageOverlay(const LLString &image_name, LLFontGL::HAlign alignment = LLFontGL::HCENTER); 147 void setImageOverlay(const LLString &image_name, LLFontGL::HAlign alignment = LLFontGL::HCENTER, const LLColor4& color = LLColor4::white);
146 LLPointer<LLImageGL> getImageOverlay() { return mImageOverlay; } 148 LLPointer<LLImageGL> getImageOverlay() { return mImageOverlay; }
147 149
148 150
@@ -208,6 +210,7 @@ protected:
208 210
209 LLPointer<LLImageGL> mImageOverlay; 211 LLPointer<LLImageGL> mImageOverlay;
210 LLFontGL::HAlign mImageOverlayAlignment; 212 LLFontGL::HAlign mImageOverlayAlignment;
213 LLColor4 mImageOverlayColor;
211 214
212 LLPointer<LLImageGL> mImageUnselected; 215 LLPointer<LLImageGL> mImageUnselected;
213 LLUIString mUnselectedLabel; 216 LLUIString mUnselectedLabel;
@@ -276,6 +279,8 @@ protected:
276 279
277 LLPointer<LLImageGL> mImagep; 280 LLPointer<LLImageGL> mImagep;
278 281
282 BOOL mIsDirty;
283
279 static LLFrameTimer sFlashingTimer; 284 static LLFrameTimer sFlashingTimer;
280}; 285};
281 286