Scroll List Classes Params
Params for LLScrollListCell, LLScrollListItem, and LLScrollListColumn Moves code block for creating a LLScrollListCell out of LLScrollListCtrl::fromXML and into LLScrollListCell::create Removes mDefaultListTextColor from LLScrollListCtrl, it is now used only in LLScrollListCell::create Adds LLScrollListCtrl::addRow and LLScrollListCtrl::addColumn functions that take these Params Separators are now built from an icon.. we may want to tweak it in the future, looks alright though LLFloaterAvatarList::refreshAvatarList now builds elements with these Params instead of by LLSD
This commit is contained in:
@@ -34,11 +34,11 @@
|
||||
// LLScrollListItem
|
||||
//---------------------------------------------------------------------------
|
||||
|
||||
LLScrollListItem::LLScrollListItem( bool enabled, const LLSD& value, void* userdata )
|
||||
LLScrollListItem::LLScrollListItem( const Params& p )
|
||||
: mSelected(FALSE),
|
||||
mEnabled(enabled),
|
||||
mUserdata(userdata),
|
||||
mItemValue(value),
|
||||
mEnabled(p.enabled),
|
||||
mUserdata(p.userdata),
|
||||
mItemValue(p.value),
|
||||
mColumns()
|
||||
{
|
||||
}
|
||||
@@ -49,9 +49,9 @@ LLScrollListItem::~LLScrollListItem()
|
||||
std::for_each(mColumns.begin(), mColumns.end(), DeletePointer());
|
||||
}
|
||||
|
||||
void LLScrollListItem::addColumn(const std::string& text, const LLFontGL* font, S32 width, U8 font_style, LLFontGL::HAlign font_alignment, bool visible)
|
||||
void LLScrollListItem::addColumn(const LLScrollListCell::Params& p)
|
||||
{
|
||||
mColumns.push_back(new LLScrollListText(text, font, width, font_style, font_alignment, LLColor4::black, false, visible));
|
||||
mColumns.push_back(LLScrollListCell::create(p));
|
||||
}
|
||||
|
||||
void LLScrollListItem::setNumColumns(S32 columns)
|
||||
|
||||
Reference in New Issue
Block a user