diff options
author | Jacek Antonelli | 2008-08-15 23:44:46 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:44:46 -0500 |
commit | 38d6d37f2d982fa959e9e8a4a3f7e1ccfad7b5d4 (patch) | |
tree | adca584755d22ca041a2dbfc35d4eca01f70b32c /linden/indra/llui/llscrollingpanellist.h | |
parent | README.txt (diff) | |
download | meta-impy-38d6d37f2d982fa959e9e8a4a3f7e1ccfad7b5d4.zip meta-impy-38d6d37f2d982fa959e9e8a4a3f7e1ccfad7b5d4.tar.gz meta-impy-38d6d37f2d982fa959e9e8a4a3f7e1ccfad7b5d4.tar.bz2 meta-impy-38d6d37f2d982fa959e9e8a4a3f7e1ccfad7b5d4.tar.xz |
Second Life viewer sources 1.13.2.12
Diffstat (limited to 'linden/indra/llui/llscrollingpanellist.h')
-rw-r--r-- | linden/indra/llui/llscrollingpanellist.h | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/linden/indra/llui/llscrollingpanellist.h b/linden/indra/llui/llscrollingpanellist.h new file mode 100644 index 0000000..94e34e6 --- /dev/null +++ b/linden/indra/llui/llscrollingpanellist.h | |||
@@ -0,0 +1,72 @@ | |||
1 | /** | ||
2 | * @file llscrollingpanellist.h | ||
3 | * | ||
4 | * Copyright (c) 2006-2007, Linden Research, Inc. | ||
5 | * | ||
6 | * The source code in this file ("Source Code") is provided by Linden Lab | ||
7 | * to you under the terms of the GNU General Public License, version 2.0 | ||
8 | * ("GPL"), unless you have obtained a separate licensing agreement | ||
9 | * ("Other License"), formally executed by you and Linden Lab. Terms of | ||
10 | * the GPL can be found in doc/GPL-license.txt in this distribution, or | ||
11 | * online at http://secondlife.com/developers/opensource/gplv2 | ||
12 | * | ||
13 | * There are special exceptions to the terms and conditions of the GPL as | ||
14 | * it is applied to this Source Code. View the full text of the exception | ||
15 | * in the file doc/FLOSS-exception.txt in this software distribution, or | ||
16 | * online at http://secondlife.com/developers/opensource/flossexception | ||
17 | * | ||
18 | * By copying, modifying or distributing this software, you acknowledge | ||
19 | * that you have read and understood your obligations described above, | ||
20 | * and agree to abide by those obligations. | ||
21 | * | ||
22 | * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO | ||
23 | * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, | ||
24 | * COMPLETENESS OR PERFORMANCE. | ||
25 | */ | ||
26 | |||
27 | #include <vector> | ||
28 | |||
29 | #include "llui.h" | ||
30 | #include "lluictrlfactory.h" | ||
31 | #include "llview.h" | ||
32 | #include "llpanel.h" | ||
33 | |||
34 | // virtual class for scrolling panels | ||
35 | class LLScrollingPanel : public LLPanel | ||
36 | { | ||
37 | public: | ||
38 | LLScrollingPanel(const LLString& name, const LLRect& rect) | ||
39 | : LLPanel(name, rect) | ||
40 | { | ||
41 | } | ||
42 | virtual void updatePanel(BOOL allow_modify) = 0; | ||
43 | |||
44 | }; | ||
45 | |||
46 | // A set of panels that are displayed in a vertical sequence inside a scroll container. | ||
47 | class LLScrollingPanelList : public LLUICtrl | ||
48 | { | ||
49 | public: | ||
50 | LLScrollingPanelList(const LLString& name, const LLRect& rect) | ||
51 | : LLUICtrl(name, rect, TRUE, NULL, NULL, FOLLOWS_LEFT | FOLLOWS_BOTTOM ) {} | ||
52 | |||
53 | virtual void setValue(const LLSD& value); | ||
54 | virtual EWidgetType getWidgetType() const; | ||
55 | virtual LLString getWidgetTag() const; | ||
56 | |||
57 | virtual LLXMLNodePtr getXML(bool save_children) const; | ||
58 | |||
59 | virtual void draw(); | ||
60 | |||
61 | void clearPanels(); | ||
62 | void addPanel( LLScrollingPanel* panel ); | ||
63 | void updatePanels(BOOL allow_modify); | ||
64 | |||
65 | static LLView* fromXML(LLXMLNodePtr node, LLView *parent, LLUICtrlFactory *factory); | ||
66 | |||
67 | protected: | ||
68 | void updatePanelVisiblilty(); | ||
69 | |||
70 | protected: | ||
71 | std::deque<LLScrollingPanel*> mPanelList; | ||
72 | }; | ||