PageRenderTime 10ms CodeModel.GetById 4ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

/indra/newview/lllistview.h

https://bitbucket.org/lindenlab/viewer-beta/
C++ Header | 60 lines | 26 code | 6 blank | 28 comment | 0 complexity | dd4b4b134f982cb51616a13e56a75fb8 MD5 | raw file
 1/** 
 2 * @file lllistview.h
 3 * @brief UI widget containing a scrollable, possibly hierarchical list of 
 4 * folders (LLListViewFolder) and items (LLListViewItem).
 5 *
 6 * $LicenseInfo:firstyear=2009&license=viewerlgpl$
 7 * Second Life Viewer Source Code
 8 * Copyright (C) 2010, Linden Research, Inc.
 9 * 
10 * This library is free software; you can redistribute it and/or
11 * modify it under the terms of the GNU Lesser General Public
12 * License as published by the Free Software Foundation;
13 * version 2.1 of the License only.
14 * 
15 * This library is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
18 * Lesser General Public License for more details.
19 * 
20 * You should have received a copy of the GNU Lesser General Public
21 * License along with this library; if not, write to the Free Software
22 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
23 * 
24 * Linden Research, Inc., 945 Battery Street, San Francisco, CA  94111  USA
25 * $/LicenseInfo$
26 */
27#ifndef LLLISTVIEW_H
28#define LLLISTVIEW_H
29
30#include "llui.h"		// for LLUIColor, *TODO: use more specific header
31#include "lluictrl.h"
32
33class LLTextBox;
34
35class LLListView
36:	public LLUICtrl
37{
38public:
39	struct Params : public LLInitParam::Block<Params, LLUICtrl::Params>
40	{
41		Optional<LLUIColor>	bg_color,
42							fg_selected_color,
43							bg_selected_color;
44		Params();
45	};
46	LLListView(const Params& p);
47	virtual ~LLListView();
48
49	// placeholder for setting a property
50	void setString(const std::string& s);
51
52private:
53	// TODO: scroll container?
54	LLTextBox*	mLabel;		// just for testing
55	LLUIColor	mBgColor;
56	LLUIColor	mFgSelectedColor;
57	LLUIColor	mBgSelectedColor;
58};
59
60#endif // LLLISTVIEW_H