LLControlVariable Class Reference

#include <llcontrol.h>

Collaboration diagram for LLControlVariable:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 LLControlVariable (const LLString &name, eControlType type, LLSD initial, const LLString &comment, BOOL persist=TRUE)
virtual ~LLControlVariable ()
const LLStringgetName () const
const LLStringgetComment () const
eControlType type ()
BOOL isType (eControlType tp)
void resetToDefault (bool fire_signal=TRUE)
signal_tgetSignal ()
bool isDefault ()
bool isSaveValueDefault ()
bool isPersisted ()
void set (const LLSD &val)
LLSD get () const
LLSD getDefault () const
LLSD getValue () const
LLSD getSaveValue () const
void setValue (const LLSD &value, bool saved_value=TRUE)
void firePropertyChanged ()
BOOL llsd_compare (const LLSD &a, const LLSD &b)

Private Types

typedef boost::signal< void(const
LLSD &)> 
signal_t

Private Attributes

LLString mName
LLString mComment
eControlType mType
BOOL mPersist
std::vector< LLSDmValues
signal_t mSignal

Friends

class LLControlGroup


Detailed Description

Definition at line 86 of file llcontrol.h.


Member Typedef Documentation

typedef boost::signal<void(const LLSD&)> LLControlVariable::signal_t [private]

Definition at line 89 of file llcontrol.h.


Constructor & Destructor Documentation

LLControlVariable::LLControlVariable ( const LLString name,
eControlType  type,
LLSD  initial,
const LLString comment,
BOOL  persist = TRUE 
)

Definition at line 93 of file llcontrol.cpp.

References llendl, llerrs, mComment, mName, mPersist, and mValues.

LLControlVariable::~LLControlVariable (  )  [virtual]

Definition at line 111 of file llcontrol.cpp.


Member Function Documentation

const LLString& LLControlVariable::getName ( void   )  const [inline]

Definition at line 107 of file llcontrol.h.

References mName.

const LLString& LLControlVariable::getComment (  )  const [inline]

Definition at line 108 of file llcontrol.h.

References mComment.

Referenced by LLControlGroup::saveToFile(), and LLFloaterSettingsDebug::updateControl().

Here is the caller graph for this function:

eControlType LLControlVariable::type (  )  [inline]

Definition at line 110 of file llcontrol.h.

References mType.

Referenced by LLControlGroup::saveToFile(), setControlValueCB(), and LLFloaterSettingsDebug::updateControl().

Here is the caller graph for this function:

BOOL LLControlVariable::isType ( eControlType  tp  )  [inline]

void LLControlVariable::resetToDefault ( bool  fire_signal = TRUE  ) 

Definition at line 157 of file llcontrol.cpp.

References firePropertyChanged(), and mValues.

Referenced by LLControlGroup::resetToDefaults(), and setValue().

Here is the call graph for this function:

Here is the caller graph for this function:

signal_t* LLControlVariable::getSignal (  )  [inline]

bool LLControlVariable::isDefault (  )  [inline]

Definition at line 117 of file llcontrol.h.

References mValues.

bool LLControlVariable::isSaveValueDefault (  ) 

Definition at line 165 of file llcontrol.cpp.

References llsd_compare(), and mValues.

Referenced by LLControlGroup::saveToFile().

Here is the call graph for this function:

Here is the caller graph for this function:

bool LLControlVariable::isPersisted (  )  [inline]

Definition at line 119 of file llcontrol.h.

References mPersist.

Referenced by LLControlGroup::loadFromFile(), and LLControlGroup::saveToFile().

Here is the caller graph for this function:

void LLControlVariable::set ( const LLSD val  )  [inline]

LLSD LLControlVariable::get (  )  const [inline]

LLSD LLControlVariable::getDefault (  )  const [inline]

Definition at line 122 of file llcontrol.h.

References mValues.

LLSD LLControlVariable::getValue (  )  const [inline]

LLSD LLControlVariable::getSaveValue (  )  const

Definition at line 171 of file llcontrol.cpp.

References mValues.

Referenced by LLControlGroup::saveToFile().

Here is the caller graph for this function:

void LLControlVariable::setValue ( const LLSD value,
bool  saved_value = TRUE 
)

Definition at line 115 of file llcontrol.cpp.

References FALSE, getValue(), llsd_compare(), mSignal, mValues, and resetToDefault().

Referenced by LLFileEnableCloseAllWindows::handleEvent(), LLFileEnableCloseWindow::handleEvent(), LLFileEnableUpload::handleEvent(), LLFileEnableSaveAs::handleEvent(), LLEditEnableTakeOff::handleEvent(), LLViewCheckHUDAttachments::handleEvent(), LLViewCheckRenderType::handleEvent(), LLViewCheckBeaconEnabled::handleEvent(), LLViewCheckHighlightTransparent::handleEvent(), LLViewCheckShowHoverTips::handleEvent(), LLWorldEnableTeleportHome::handleEvent(), LLWorldEnableSetHomeLocation::handleEvent(), LLWorldEnableCreateLandmark::handleEvent(), LLToolsEnableToolNotPie::handleEvent(), LLViewEnableMouselook::handleEvent(), LLToolsEnableSaveToObjectInventory::handleEvent(), LLToolsEnableSaveToInventory::handleEvent(), LLToolsEnableTakeCopy::handleEvent(), LLEditableSelected::handleEvent(), LLSomethingSelectedNoHUD::handleEvent(), LLSomethingSelected::handleEvent(), LLObjectEnableWear::handleEvent(), LLAttachmentEnableDetach::handleEvent(), LLAttachmentEnableDrop::handleEvent(), LLWorldEnableBuyLand::handleEvent(), LLFloaterVisible::handleEvent(), LLObjectEnableSitOrStand::handleEvent(), LLEnablePayObject::handleEvent(), LLWorldCheckAlwaysRun::handleEvent(), LLEditEnableRedo::handleEvent(), LLEditEnableUndo::handleEvent(), LLEditEnableSelectAll::handleEvent(), LLEditEnableDeselect::handleEvent(), LLViewEnableLastChatter::handleEvent(), LLObjectEnableDelete::handleEvent(), LLEditEnableDelete::handleEvent(), LLEditEnablePaste::handleEvent(), LLEditEnableCopy::handleEvent(), LLEditEnableCut::handleEvent(), LLToolsEnableUnlink::handleEvent(), LLToolsEnableLink::handleEvent(), LLToolsEnableBuyOrTake::handleEvent(), LLObjectEnableReturn::handleEvent(), LLEditEnableDuplicate::handleEvent(), LLWorldEnableFly::handleEvent(), LLEditEnableCustomizeAvatar::handleEvent(), LLAvatarEnableAddFriend::handleEvent(), LLSelfEnableStandUp::handleEvent(), LLObjectEnableBuy::handleEvent(), LLAvatarEnableFreezeEject::handleEvent(), LLAvatarEnableDebug::handleEvent(), LLAvatarVisibleDebug::handleEvent(), LLObjectEnableMute::handleEvent(), LLSelfEnableRemoveAllAttachments::handleEvent(), LLEnableEdit::handleEvent(), LLLandEnableBuyPass::handleEvent(), LLViewCheckJoystickFlycam::handleEvent(), LLViewCheckBuildMode::handleEvent(), LLObjectEnableOpen::handleEvent(), LLObjectEnableTouch::handleEvent(), LLObjectEnableReportAbuse::handleEvent(), LLSetSortBy::handleEvent(), LLAppViewer::initConfiguration(), LLAppViewerWin32::initParseCommandLine(), LLAppViewerMacOSX::initParseCommandLine(), LLAppViewerLinux::initParseCommandLine(), LLControlGroup::loadFromFile(), LLInventoryViewFinder::onClose(), set(), and setControlValueCB().

Here is the call graph for this function:

void LLControlVariable::firePropertyChanged (  )  [inline]

Definition at line 126 of file llcontrol.h.

References mSignal, and mValues.

Referenced by LLViewerWindow::LLViewerWindow(), and resetToDefault().

Here is the caller graph for this function:

BOOL LLControlVariable::llsd_compare ( const LLSD a,
const LLSD b 
)

Definition at line 61 of file llcontrol.cpp.

References LLSD::asBoolean(), LLSD::asInteger(), LLSD::asReal(), LLSD::asString(), FALSE, 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 isSaveValueDefault(), and setValue().

Here is the call graph for this function:

Here is the caller graph for this function:


Friends And Related Function Documentation

friend class LLControlGroup [friend]

Definition at line 88 of file llcontrol.h.


Member Data Documentation

Definition at line 92 of file llcontrol.h.

Referenced by getName(), and LLControlVariable().

Definition at line 93 of file llcontrol.h.

Referenced by getComment(), and LLControlVariable().

Definition at line 95 of file llcontrol.h.

Referenced by isPersisted(), and LLControlVariable().

std::vector<LLSD> LLControlVariable::mValues [private]

Definition at line 98 of file llcontrol.h.

Referenced by firePropertyChanged(), getSignal(), and setValue().


The documentation for this class was generated from the following files:

Generated on Fri May 16 08:43:18 2008 for SecondLife by  doxygen 1.5.5