PageRenderTime 90ms CodeModel.GetById 87ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/indra/llui/llstatview.h

https://bitbucket.org/lindenlab/viewer-beta/
C++ Header | 66 lines | 29 code | 10 blank | 27 comment | 0 complexity | c04763057d14b1b1f62f9575f93b7d0e MD5 | raw file
 1/** 
 2 * @file llstatview.h
 3 * @brief Container for all statistics info.
 4 *
 5 * $LicenseInfo:firstyear=2001&license=viewerlgpl$
 6 * Second Life Viewer Source Code
 7 * Copyright (C) 2010, Linden Research, Inc.
 8 * 
 9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Lesser General Public
11 * License as published by the Free Software Foundation;
12 * version 2.1 of the License only.
13 * 
14 * This library is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17 * Lesser General Public License for more details.
18 * 
19 * You should have received a copy of the GNU Lesser General Public
20 * License along with this library; if not, write to the Free Software
21 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
22 * 
23 * Linden Research, Inc., 945 Battery Street, San Francisco, CA  94111  USA
24 * $/LicenseInfo$
25 */
26
27#ifndef LL_LLSTATVIEW_H
28#define LL_LLSTATVIEW_H
29
30#include "llstatbar.h"
31#include "llcontainerview.h"
32#include <vector>
33
34class LLStatBar;
35
36// widget registrars
37struct StatViewRegistry : public LLChildRegistry<StatViewRegistry>
38{};
39
40class LLStatView : public LLContainerView
41{
42public:
43	struct Params : public LLInitParam::Block<Params, LLContainerView::Params>
44	{
45		Optional<std::string> setting;
46		Params() 
47		:	setting("setting")
48		{
49			changeDefault(follows.flags, FOLLOWS_TOP | FOLLOWS_LEFT);
50		}
51	};
52
53	// my valid children are stored in this registry
54	typedef StatViewRegistry child_registry_t;
55
56	~LLStatView();
57
58protected:
59	LLStatView(const Params&);
60	friend class LLUICtrlFactory;
61
62protected:
63	std::string mSetting;
64
65};
66#endif // LL_STATVIEW_