From 2ce0fc5f185f22be79b9be5406b76c97ed91ee01 Mon Sep 17 00:00:00 2001 From: Richard Nelson Date: Thu, 5 Apr 2007 00:59:55 +0000 Subject: svn merge -r 59234:60086 svn+ssh://svn/svn/linden/branches/live_lsl_help2 -> release --- indra/llui/llscrolllistctrl.cpp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'indra/llui/llscrolllistctrl.cpp') diff --git a/indra/llui/llscrolllistctrl.cpp b/indra/llui/llscrolllistctrl.cpp index 98dddfb542..f442855aca 100644 --- a/indra/llui/llscrolllistctrl.cpp +++ b/indra/llui/llscrolllistctrl.cpp @@ -135,6 +135,19 @@ BOOL LLScrollListCheck::handleClick() return TRUE; } +// +// LLScrollListSeparator +// +LLScrollListSeparator::LLScrollListSeparator(S32 width) : mWidth(width) +{ +} + +void LLScrollListSeparator::drawToWidth(S32 width, const LLColor4& color, const LLColor4& highlight_color) const +{ + //*FIXME: use dynamic item heights and make separators narrow, and inactive + gl_line_2d(5, 8, llmax(5, width - 5), 8, color); +} + // // LLScrollListText // @@ -2750,6 +2763,10 @@ LLScrollListItem* LLScrollListCtrl::addElement(const LLSD& value, EAddPosition p LLRect(0, 0, width, width), "label"); new_item->setColumn(index, new LLScrollListCheck(ctrl,width)); } + else if (type == "separator") + { + new_item->setColumn(index, new LLScrollListSeparator(width)); + } else { new_item->setColumn(index, new LLScrollListText(value.asString(), font, width, font_style, font_alignment)); -- cgit v1.2.3