diff options
author | Jacek Antonelli | 2008-08-15 23:44:58 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:44:58 -0500 |
commit | 089fc07d207c71ce1401e72f09c31ad8c45872e2 (patch) | |
tree | 0028955add042c6f45b47a7b774adeeac9c592cb /linden/indra/llui/llscrolllistctrl.h | |
parent | Second Life viewer sources 1.16.0.5 (diff) | |
download | meta-impy-089fc07d207c71ce1401e72f09c31ad8c45872e2.zip meta-impy-089fc07d207c71ce1401e72f09c31ad8c45872e2.tar.gz meta-impy-089fc07d207c71ce1401e72f09c31ad8c45872e2.tar.bz2 meta-impy-089fc07d207c71ce1401e72f09c31ad8c45872e2.tar.xz |
Second Life viewer sources 1.17.0.12
Diffstat (limited to 'linden/indra/llui/llscrolllistctrl.h')
-rw-r--r-- | linden/indra/llui/llscrolllistctrl.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/linden/indra/llui/llscrolllistctrl.h b/linden/indra/llui/llscrolllistctrl.h index eed07b8..429985b 100644 --- a/linden/indra/llui/llscrolllistctrl.h +++ b/linden/indra/llui/llscrolllistctrl.h | |||
@@ -63,6 +63,7 @@ public: | |||
63 | virtual void setWidth(S32 width) = 0; | 63 | virtual void setWidth(S32 width) = 0; |
64 | virtual void highlightText(S32 offset, S32 num_chars) {} | 64 | virtual void highlightText(S32 offset, S32 num_chars) {} |
65 | virtual BOOL isText() = 0; | 65 | virtual BOOL isText() = 0; |
66 | virtual void setColor(const LLColor4&) = 0; | ||
66 | 67 | ||
67 | virtual BOOL handleClick() { return FALSE; } | 68 | virtual BOOL handleClick() { return FALSE; } |
68 | virtual void setEnabled(BOOL enable) { } | 69 | virtual void setEnabled(BOOL enable) { } |
@@ -77,6 +78,7 @@ public: | |||
77 | virtual S32 getWidth() const {return mWidth;} | 78 | virtual S32 getWidth() const {return mWidth;} |
78 | virtual S32 getHeight() const { return 5; }; | 79 | virtual S32 getHeight() const { return 5; }; |
79 | virtual void setWidth(S32 width) {mWidth = width; } | 80 | virtual void setWidth(S32 width) {mWidth = width; } |
81 | virtual void setColor(const LLColor4&) {}; | ||
80 | virtual BOOL isText() { return FALSE; } | 82 | virtual BOOL isText() { return FALSE; } |
81 | 83 | ||
82 | protected: | 84 | protected: |
@@ -97,6 +99,7 @@ public: | |||
97 | virtual const BOOL getVisible() const { return mVisible; } | 99 | virtual const BOOL getVisible() const { return mVisible; } |
98 | virtual void highlightText(S32 offset, S32 num_chars) {mHighlightOffset = offset; mHighlightCount = num_chars;} | 100 | virtual void highlightText(S32 offset, S32 num_chars) {mHighlightOffset = offset; mHighlightCount = num_chars;} |
99 | void setText(const LLString& text); | 101 | void setText(const LLString& text); |
102 | virtual void setColor(const LLColor4&); | ||
100 | virtual BOOL isText() { return TRUE; } | 103 | virtual BOOL isText() { return TRUE; } |
101 | 104 | ||
102 | private: | 105 | private: |
@@ -120,18 +123,20 @@ class LLScrollListIcon : public LLScrollListCell | |||
120 | public: | 123 | public: |
121 | LLScrollListIcon( LLImageGL* icon, S32 width = 0, LLUUID image_id = LLUUID::null); | 124 | LLScrollListIcon( LLImageGL* icon, S32 width = 0, LLUUID image_id = LLUUID::null); |
122 | /*virtual*/ ~LLScrollListIcon(); | 125 | /*virtual*/ ~LLScrollListIcon(); |
123 | virtual void drawToWidth(S32 width, const LLColor4& color, const LLColor4& highlight_color) const { gl_draw_image(0, 0, mIcon); } | 126 | virtual void drawToWidth(S32 width, const LLColor4& color, const LLColor4& highlight_color) const; |
124 | virtual S32 getWidth() const { return mWidth; } | 127 | virtual S32 getWidth() const { return mWidth; } |
125 | virtual S32 getHeight() const { return mIcon->getHeight(); } | 128 | virtual S32 getHeight() const { return mIcon->getHeight(); } |
126 | virtual const LLString& getText() const { return mImageUUID; } | 129 | virtual const LLString& getText() const { return mImageUUID; } |
127 | virtual const LLString& getTextLower() const { return mImageUUID; } | 130 | virtual const LLString& getTextLower() const { return mImageUUID; } |
128 | virtual void setWidth(S32 width) { mWidth = width; } | 131 | virtual void setWidth(S32 width) { mWidth = width; } |
132 | virtual void setColor(const LLColor4&); | ||
129 | virtual BOOL isText() { return FALSE; } | 133 | virtual BOOL isText() { return FALSE; } |
130 | 134 | ||
131 | private: | 135 | private: |
132 | LLPointer<LLImageGL> mIcon; | 136 | LLPointer<LLImageGL> mIcon; |
133 | LLString mImageUUID; | 137 | LLString mImageUUID; |
134 | S32 mWidth; | 138 | S32 mWidth; |
139 | LLColor4 mColor; | ||
135 | }; | 140 | }; |
136 | 141 | ||
137 | class LLScrollListCheck : public LLScrollListCell | 142 | class LLScrollListCheck : public LLScrollListCell |
@@ -146,6 +151,7 @@ public: | |||
146 | 151 | ||
147 | virtual BOOL handleClick(); | 152 | virtual BOOL handleClick(); |
148 | virtual void setEnabled(BOOL enable) { if (mCheckBox) mCheckBox->setEnabled(enable); } | 153 | virtual void setEnabled(BOOL enable) { if (mCheckBox) mCheckBox->setEnabled(enable); } |
154 | virtual void setColor(const LLColor4& color) {}; | ||
149 | 155 | ||
150 | LLCheckBoxCtrl* getCheckBox() { return mCheckBox; } | 156 | LLCheckBoxCtrl* getCheckBox() { return mCheckBox; } |
151 | virtual BOOL isText() { return FALSE; } | 157 | virtual BOOL isText() { return FALSE; } |