LLControl Class Reference

#include <llcontrol.h>

Inheritance diagram for LLControl:

Inheritance graph
Collaboration diagram for LLControl:

Collaboration graph
List of all members.

Public Types

typedef void tListenerCallback (const LLSD &newValue, S32 listenerID, LLControl &control)
typedef std::list< tPropertyChangedEvent

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< tPropertyChangedEventmChangeEvents
std::list< tListenerCallback * > mListeners
std::list< S32mListenerIDs

Protected Attributes

LLSD mCurrent
LLSD mDefault


class LLControlGroup


struct  tPropertyChangedEvent

Detailed Description

Definition at line 131 of file llcontrol.h.

Member Typedef Documentation

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.

Constructor & Destructor Documentation

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.

Member Function Documentation

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]

Implements LLControlBase.

Definition at line 164 of file llcontrol.h.

References getValue().

LLSD LLControl::getdefault (  )  const [inline]

Definition at line 165 of file llcontrol.h.

References mDefault.

LLSD LLControl::getValue (  )  const [inline, virtual]

Implements LLControlBase.

Definition at line 166 of file llcontrol.h.

References mCurrent.

Referenced by get().

BOOL LLControl::llsd_compare ( const LLSD a,
const LLSD b 

Definition at line 74 of file llcontrol.cpp.


Referenced by setValue().

void LLControl::resetToDefault (  )  [inline, virtual]

Reimplemented from LLControlBase.

Definition at line 179 of file llcontrol.h.

References mDefault, and setValue().

void LLControl::set ( LLSD  val  )  [inline, virtual]

Implements LLControlBase.

Definition at line 163 of file llcontrol.h.

References setValue().

void LLControl::setValue ( LLSD  value  )  [inline, virtual]

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]

Implements LLControlBase.

Definition at line 1325 of file llcontrol.cpp.

References mChangeEvents.

Friends And Related Function Documentation

friend class LLControlGroup [friend]

Reimplemented from LLControlBase.

Definition at line 134 of file llcontrol.h.

Member Data Documentation

std::list<tPropertyChangedEvent> LLControl::mChangeEvents

Definition at line 149 of file llcontrol.h.

Referenced by updateListeners().

LLSD LLControl::mCurrent [protected]

Definition at line 136 of file llcontrol.h.

Referenced by getValue(), and setValue().

LLSD LLControl::mDefault [protected]

Definition at line 137 of file llcontrol.h.

Referenced by getdefault(), resetToDefault(), and setValue().

std::list< S32 > LLControl::mListenerIDs

Definition at line 151 of file llcontrol.h.

Referenced by addListener(), and ~LLControl().

std::list< tListenerCallback* > LLControl::mListeners

Definition at line 150 of file llcontrol.h.

Referenced by addListener().

The documentation for this class was generated from the following files:
Generated on Thu Jul 1 06:11:13 2010 for Second Life Viewer by  doxygen 1.4.7