summaryrefslogtreecommitdiff
path: root/indra/llui/llctrlselectioninterface.cpp
blob: 917250e0ddbaa58c66fca583805ef3c7fda44911 (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
/** 
 * @file llctrlselectioninterface.cpp
 * @brief Programmatic selection of items in a list.
 *
 * Copyright (c) 2006-$CurrentYear$, Linden Research, Inc.
 * $License$
 */
#include "linden_common.h"

#include "llctrlselectioninterface.h"

#include "llsd.h"

// virtual
LLCtrlSelectionInterface::~LLCtrlSelectionInterface()
{ }

BOOL LLCtrlSelectionInterface::selectByValue(LLSD value)
{
	return setSelectedByValue(value, TRUE);
}

BOOL LLCtrlSelectionInterface::deselectByValue(LLSD value)
{ 
	return setSelectedByValue(value, FALSE); 
}


// virtual
LLCtrlListInterface::~LLCtrlListInterface()
{ }

LLScrollListItem* LLCtrlListInterface::addSimpleElement(const LLString& value)
{
	return addSimpleElement(value, ADD_BOTTOM, LLSD());
}

LLScrollListItem* LLCtrlListInterface::addSimpleElement(const LLString& value, EAddPosition pos)
{
	return addSimpleElement(value, pos, LLSD());
}

// virtual
LLCtrlScrollInterface::~LLCtrlScrollInterface()
{ }