diff options
author | Jacek Antonelli | 2008-08-15 23:45:11 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:45:11 -0500 |
commit | 215f423cbe18fe9ca14a26caef918d303bad28ff (patch) | |
tree | 0743442b286216cc8e19aa487c26f4e9345ffd64 /linden/indra/llui/llbutton.h | |
parent | Second Life viewer sources 1.18.3.5-RC (diff) | |
download | meta-impy-215f423cbe18fe9ca14a26caef918d303bad28ff.zip meta-impy-215f423cbe18fe9ca14a26caef918d303bad28ff.tar.gz meta-impy-215f423cbe18fe9ca14a26caef918d303bad28ff.tar.bz2 meta-impy-215f423cbe18fe9ca14a26caef918d303bad28ff.tar.xz |
Second Life viewer sources 1.18.4.0-RC
Diffstat (limited to 'linden/indra/llui/llbutton.h')
-rw-r--r-- | linden/indra/llui/llbutton.h | 29 |
1 files changed, 16 insertions, 13 deletions
diff --git a/linden/indra/llui/llbutton.h b/linden/indra/llui/llbutton.h index d26011b..5f7d917 100644 --- a/linden/indra/llui/llbutton.h +++ b/linden/indra/llui/llbutton.h | |||
@@ -2,6 +2,8 @@ | |||
2 | * @file llbutton.h | 2 | * @file llbutton.h |
3 | * @brief Header for buttons | 3 | * @brief Header for buttons |
4 | * | 4 | * |
5 | * $LicenseInfo:firstyear=2001&license=viewergpl$ | ||
6 | * | ||
5 | * Copyright (c) 2001-2007, Linden Research, Inc. | 7 | * Copyright (c) 2001-2007, Linden Research, Inc. |
6 | * | 8 | * |
7 | * Second Life Viewer Source Code | 9 | * Second Life Viewer Source Code |
@@ -24,6 +26,7 @@ | |||
24 | * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO | 26 | * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO |
25 | * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, | 27 | * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, |
26 | * COMPLETENESS OR PERFORMANCE. | 28 | * COMPLETENESS OR PERFORMANCE. |
29 | * $/LicenseInfo$ | ||
27 | */ | 30 | */ |
28 | 31 | ||
29 | #ifndef LL_LLBUTTON_H | 32 | #ifndef LL_LLBUTTON_H |
@@ -65,7 +68,7 @@ class LLButton | |||
65 | { | 68 | { |
66 | public: | 69 | public: |
67 | // simple button with text label | 70 | // simple button with text label |
68 | LLButton(const LLString& name, const LLRect &rect, const LLString& control_name = "", | 71 | LLButton(const LLString& name, const LLRect &rect, const LLString& control_name = LLString(), |
69 | void (*on_click)(void*) = NULL, void *data = NULL); | 72 | void (*on_click)(void*) = NULL, void *data = NULL); |
70 | 73 | ||
71 | LLButton(const LLString& name, const LLRect& rect, | 74 | LLButton(const LLString& name, const LLRect& rect, |
@@ -149,12 +152,12 @@ public: | |||
149 | virtual void setValue(const LLSD& value ); | 152 | virtual void setValue(const LLSD& value ); |
150 | virtual LLSD getValue() const; | 153 | virtual LLSD getValue() const; |
151 | 154 | ||
152 | void setLabel( const LLString& label); | 155 | void setLabel( const LLStringExplicit& label); |
153 | virtual BOOL setLabelArg( const LLString& key, const LLString& text ); | 156 | virtual BOOL setLabelArg( const LLString& key, const LLStringExplicit& text ); |
154 | void setLabelUnselected(const LLString& label); | 157 | void setLabelUnselected(const LLStringExplicit& label); |
155 | void setLabelSelected(const LLString& label); | 158 | void setLabelSelected(const LLStringExplicit& label); |
156 | void setDisabledLabel(const LLString& disabled_label); | 159 | void setDisabledLabel(const LLStringExplicit& disabled_label); |
157 | void setDisabledSelectedLabel(const LLString& disabled_label); | 160 | void setDisabledSelectedLabel(const LLStringExplicit& disabled_label); |
158 | void setDisabledLabelColor( const LLColor4& c ) { mDisabledLabelColor = c; } | 161 | void setDisabledLabelColor( const LLColor4& c ) { mDisabledLabelColor = c; } |
159 | 162 | ||
160 | void setFont(const LLFontGL *font) | 163 | void setFont(const LLFontGL *font) |
@@ -285,12 +288,12 @@ class LLSquareButton | |||
285 | { | 288 | { |
286 | public: | 289 | public: |
287 | LLSquareButton(const LLString& name, const LLRect& rect, | 290 | LLSquareButton(const LLString& name, const LLRect& rect, |
288 | const LLString& label, | 291 | const LLString& label, |
289 | const LLFontGL *font = NULL, | 292 | const LLFontGL *font = NULL, |
290 | const LLString& control_name = "", | 293 | const LLString& control_name = LLString(), |
291 | void (*click_callback)(void*) = NULL, | 294 | void (*click_callback)(void*) = NULL, |
292 | void *callback_data = NULL, | 295 | void *callback_data = NULL, |
293 | const LLString& selected_label = LLString::null ); | 296 | const LLString& selected_label = LLString::null ); |
294 | }; | 297 | }; |
295 | 298 | ||
296 | // Helpful functions | 299 | // Helpful functions |