summaryrefslogtreecommitdiff
path: root/indra/llui/llscrolllistcell.h
diff options
context:
space:
mode:
authorYchebotarev ProductEngine <ychebotarev@productengine.com>2010-03-03 11:43:48 +0200
committerYchebotarev ProductEngine <ychebotarev@productengine.com>2010-03-03 11:43:48 +0200
commit0f04222acc13802d1b16dff49e17dc52c1cfae2a (patch)
treebe024a4e2b19b425a99d40fdddd1702d006b6698 /indra/llui/llscrolllistcell.h
parent2cc7478e76c2de328cabbce323493bff9f1c94f8 (diff)
fix for normal EXT-1391 Group Info: Avatar name should end with ellipsis if it doesn't fit free space
--HG-- branch : product-engine
Diffstat (limited to 'indra/llui/llscrolllistcell.h')
-rw-r--r--indra/llui/llscrolllistcell.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/indra/llui/llscrolllistcell.h b/indra/llui/llscrolllistcell.h
index 5fecf5aade..b1c8901fc4 100644
--- a/indra/llui/llscrolllistcell.h
+++ b/indra/llui/llscrolllistcell.h
@@ -151,11 +151,16 @@ public:
/*virtual*/ const std::string & getToolTip() const;
/*virtual*/ BOOL needsToolTip() const;
+ S32 getTextWidth() const { return mTextWidth;}
+ void setTextWidth(S32 value) { mTextWidth = value;}
+ virtual void setWidth(S32 width) { LLScrollListCell::setWidth(width); mTextWidth = width; }
+
void setText(const LLStringExplicit& text);
void setFontStyle(const U8 font_style);
private:
LLUIString mText;
+ S32 mTextWidth;
const LLFontGL* mFont;
LLColor4 mColor;
U8 mUseColor;