blob: b5f20ce17263e1c23aa795f873189bbe18e1777b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
/**
* @file llscrollingpanellist.h
*
* Copyright (c) 2006-$CurrentYear$, Linden Research, Inc.
* $License$
*/
#include <vector>
#include "llui.h"
#include "lluictrlfactory.h"
#include "llview.h"
#include "llpanel.h"
// virtual class for scrolling panels
class LLScrollingPanel : public LLPanel
{
public:
LLScrollingPanel(const LLString& name, const LLRect& rect)
: LLPanel(name, rect)
{
}
virtual void updatePanel(BOOL allow_modify) = 0;
};
// A set of panels that are displayed in a vertical sequence inside a scroll container.
class LLScrollingPanelList : public LLUICtrl
{
public:
LLScrollingPanelList(const LLString& name, const LLRect& rect)
: LLUICtrl(name, rect, TRUE, NULL, NULL, FOLLOWS_LEFT | FOLLOWS_BOTTOM ) {}
virtual void setValue(const LLSD& value);
virtual EWidgetType getWidgetType() const;
virtual LLString getWidgetTag() const;
virtual LLXMLNodePtr getXML(bool save_children) const;
virtual void draw();
void clearPanels();
void addPanel( LLScrollingPanel* panel );
void updatePanels(BOOL allow_modify);
static LLView* fromXML(LLXMLNodePtr node, LLView *parent, LLUICtrlFactory *factory);
protected:
void updatePanelVisiblilty();
protected:
std::deque<LLScrollingPanel*> mPanelList;
};
|