#include <llcontrol.h>
Inheritance diagram for LLControl:
Public Types | |
typedef void | tListenerCallback (const LLSD &newValue, S32 listenerID, LLControl &control) |
typedef std::list< tPropertyChangedEvent >::iterator | tPropertyChangedListIter |
Public Member Functions | |
virtual void | updateListeners () |
S32 | addListener (tListenerCallback *cbfn) |
LLControl (const LLString &name, eControlType type, LLSD initial, const LLString &comment, BOOL persist=TRUE) | |
void | set (LLSD val) |
LLSD | get () const |
LLSD | getdefault () const |
LLSD | getValue () const |
BOOL | llsd_compare (const LLSD &a, const LLSD &b) |
void | setValue (LLSD value) |
void | resetToDefault () |
virtual | ~LLControl () |
Public Attributes | |
std::list< tPropertyChangedEvent > | mChangeEvents |
std::list< tListenerCallback * > | mListeners |
std::list< S32 > | mListenerIDs |
Protected Attributes | |
LLSD | mCurrent |
LLSD | mDefault |
Friends | |
class | LLControlGroup |
Classes | |
struct | tPropertyChangedEvent |
Definition at line 131 of file llcontrol.h.
typedef void LLControl::tListenerCallback(const LLSD &newValue, S32 listenerID, LLControl &control) |
Definition at line 141 of file llcontrol.h.
typedef std::list<tPropertyChangedEvent>::iterator LLControl::tPropertyChangedListIter |
Definition at line 148 of file llcontrol.h.
LLControl::LLControl | ( | const LLString & | name, | |
eControlType | type, | |||
LLSD | initial, | |||
const LLString & | comment, | |||
BOOL | persist = TRUE | |||
) |
Definition at line 1346 of file llcontrol.cpp.
virtual LLControl::~LLControl | ( | ) | [inline, virtual] |
Definition at line 184 of file llcontrol.h.
References mListenerIDs, LLControlBase::releaseListenerID(), and S32.
S32 LLControl::addListener | ( | tListenerCallback * | cbfn | ) |
Definition at line 1317 of file llcontrol.cpp.
References LLControlBase::allocateListenerID(), mListenerIDs, mListeners, and S32.
LLSD LLControl::get | ( | ) | const [inline, virtual] |
LLSD LLControl::getdefault | ( | ) | const [inline] |
LLSD LLControl::getValue | ( | ) | const [inline, virtual] |
Implements LLControlBase.
Definition at line 166 of file llcontrol.h.
References mCurrent.
Referenced by get().
Definition at line 74 of file llcontrol.cpp.
References a, b, FALSE, LLControlBase::mType, TYPE_BOOLEAN, TYPE_COL3, TYPE_COL4, TYPE_COL4U, TYPE_F32, TYPE_RECT, TYPE_S32, TYPE_STRING, TYPE_U32, TYPE_VEC3, and TYPE_VEC3D.
Referenced by setValue().
void LLControl::resetToDefault | ( | ) | [inline, virtual] |
Reimplemented from LLControlBase.
Definition at line 179 of file llcontrol.h.
References mDefault, and setValue().
Implements LLControlBase.
Definition at line 169 of file llcontrol.h.
References FALSE, LLControlBase::firePropertyChanged(), llsd_compare(), mCurrent, mDefault, and LLControlBase::mIsDefault.
Referenced by resetToDefault(), and set().
void LLControl::updateListeners | ( | ) | [virtual] |
friend class LLControlGroup [friend] |
LLSD LLControl::mCurrent [protected] |
LLSD LLControl::mDefault [protected] |
Definition at line 137 of file llcontrol.h.
Referenced by getdefault(), resetToDefault(), and setValue().