diff options
Diffstat (limited to 'linden/indra/llui/llscrolllistctrl.cpp')
-rw-r--r-- | linden/indra/llui/llscrolllistctrl.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/linden/indra/llui/llscrolllistctrl.cpp b/linden/indra/llui/llscrolllistctrl.cpp index 3c2293f..9635f99 100644 --- a/linden/indra/llui/llscrolllistctrl.cpp +++ b/linden/indra/llui/llscrolllistctrl.cpp | |||
@@ -103,6 +103,10 @@ struct SortScrollListItem | |||
103 | LLScrollListIcon::LLScrollListIcon(LLUIImagePtr icon, S32 width) | 103 | LLScrollListIcon::LLScrollListIcon(LLUIImagePtr icon, S32 width) |
104 | : LLScrollListCell(width), | 104 | : LLScrollListCell(width), |
105 | mIcon(icon), | 105 | mIcon(icon), |
106 | // <edit> | ||
107 | mCallback(NULL), | ||
108 | mUserData(NULL), | ||
109 | // </edit> | ||
106 | mColor(LLColor4::white) | 110 | mColor(LLColor4::white) |
107 | { | 111 | { |
108 | } | 112 | } |
@@ -145,6 +149,19 @@ void LLScrollListIcon::setValue(const LLSD& value) | |||
145 | } | 149 | } |
146 | } | 150 | } |
147 | 151 | ||
152 | // <edit> | ||
153 | void LLScrollListIcon::setClickCallback(BOOL (*callback)(void*), void* user_data) | ||
154 | { | ||
155 | mCallback = callback; | ||
156 | mUserData = user_data; | ||
157 | } | ||
158 | |||
159 | BOOL LLScrollListIcon::handleClick() | ||
160 | { | ||
161 | if(mCallback) return mCallback(mUserData); | ||
162 | return FALSE; | ||
163 | } | ||
164 | // </edit> | ||
148 | 165 | ||
149 | void LLScrollListIcon::setColor(const LLColor4& color) | 166 | void LLScrollListIcon::setColor(const LLColor4& color) |
150 | { | 167 | { |