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

#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()
{ }