#include <llcontrol.h>
Inheritance diagram for LLControlBase:


| Public Member Functions | |
| virtual void | updateListeners ()=0 | 
| LLControlBase (const LLString &name, eControlType type, const LLString &comment, BOOL persist) | |
| virtual | ~LLControlBase () | 
| const LLString & | getName () const | 
| const LLString & | getComment () const | 
| eControlType | type () | 
| BOOL | isType (eControlType tp) | 
| virtual void | resetToDefault () | 
| LLSD | registerListener (LLSimpleListenerObservable *listener, LLSD userdata="") | 
| virtual LLSD | get () const =0 | 
| virtual LLSD | getValue () const =0 | 
| virtual void | setValue (LLSD value)=0 | 
| virtual void | set (LLSD value)=0 | 
| virtual bool | handleEvent (LLPointer< LLEvent > event, const LLSD &userdata) | 
| void | firePropertyChanged () | 
| Static Public Member Functions | |
| static void | releaseListenerID (S32 id) | 
| static S32 | allocateListenerID () | 
| static void | updateAllListeners () | 
| Static Public Attributes | |
| static U32 | sMaxControlNameLength = 0 | 
| Protected Member Functions | |
| const char * | name () | 
| const char * | comment () | 
| Protected Attributes | |
| LLString | mName | 
| LLString | mComment | 
| eControlType | mType | 
| BOOL | mHasRange | 
| BOOL | mPersist | 
| BOOL | mIsDefault | 
| Static Protected Attributes | |
| static std::set< LLControlBase * > | mChangedControls | 
| static std::list< S32 > | mFreeIDs | 
| static std::list< S32 > | mUsedIDs | 
| static S32 | mTopID | 
| Friends | |
| class | LLControlGroup | 
Definition at line 64 of file llcontrol.h.
| LLControlBase::LLControlBase | ( | const LLString & | name, | |
| eControlType | type, | |||
| const LLString & | comment, | |||
| BOOL | persist | |||
| ) |  [inline] | 
Definition at line 86 of file llcontrol.h.
References llendl, llerrs, llmax(), mComment, mName, mPersist, and sMaxControlNameLength.
| LLControlBase::~LLControlBase | ( | ) |  [virtual] | 
Definition at line 106 of file llcontrol.cpp.
| S32 LLControlBase::allocateListenerID | ( | ) |  [static] | 
Definition at line 1283 of file llcontrol.cpp.
References mFreeIDs, mTopID, mUsedIDs, S32, and t.
Referenced by LLControl::addListener().
| const char* LLControlBase::comment | ( | ) |  [inline, protected] | 
| void LLControlBase::firePropertyChanged | ( | ) | 
Definition at line 1308 of file llcontrol.cpp.
References LLObservable::fireEvent(), and getValue().
Referenced by LLViewerWindow::LLViewerWindow(), and LLControl::setValue().
| virtual LLSD LLControlBase::get | ( | ) | const  [pure virtual] | 
Implemented in LLControl.
Referenced by LLControlGroup::findString(), LLControlGroup::getBOOL(), LLControlGroup::getColor3(), LLControlGroup::getColor4(), LLControlGroup::getColor4U(), LLControlGroup::getF32(), LLControlGroup::getRect(), LLControlGroup::getS32(), LLControlGroup::getString(), LLControlGroup::getU32(), LLControlGroup::getVector3(), LLControlGroup::getVector3d(), and LLFloaterSettingsDebug::updateControl().
| const LLString& LLControlBase::getComment | ( | ) | const  [inline] | 
Definition at line 104 of file llcontrol.h.
References mComment.
Referenced by LLFloaterSettingsDebug::updateControl().
Definition at line 103 of file llcontrol.h.
References mName.
Referenced by control_insert_before().
| virtual LLSD LLControlBase::getValue | ( | ) | const  [pure virtual] | 
Implements LLSimpleListenerObservable.
Definition at line 1298 of file llcontrol.cpp.
References mValue, setValue(), and TRUE.
| BOOL LLControlBase::isType | ( | eControlType | tp | ) |  [inline] | 
Definition at line 107 of file llcontrol.h.
References mType.
Referenced by LLControlGroup::findString(), LLControlGroup::getBOOL(), LLControlGroup::getColor3(), LLControlGroup::getColor4(), LLControlGroup::getColor4U(), LLControlGroup::getF32(), LLControlGroup::getRect(), LLControlGroup::getS32(), LLControlGroup::getString(), LLControlGroup::getU32(), LLControlGroup::getVector3(), LLControlGroup::getVector3d(), LLControlGroup::setBOOL(), LLControlGroup::setColor4(), LLControlGroup::setColor4U(), LLControlGroup::setF32(), LLControlGroup::setRect(), LLControlGroup::setS32(), LLControlGroup::setString(), LLControlGroup::setU32(), LLControlGroup::setVector3(), and LLControlGroup::setVector3d().
| const char* LLControlBase::name | ( | ) |  [inline, protected] | 
| LLSD LLControlBase::registerListener | ( | LLSimpleListenerObservable * | listener, | |
| LLSD | userdata = "" | |||
| ) | 
Definition at line 124 of file llcontrol.cpp.
References LLObservable::addListener(), and getValue().
Referenced by LLControlGroup::registerListener(), LLMenuItemCheckGL::setCheckedControl(), LLMenuItemCallGL::setEnabledControl(), and LLMenuItemCallGL::setVisibleControl().
Definition at line 1278 of file llcontrol.cpp.
References mFreeIDs.
Referenced by LLControl::~LLControl().
| void LLControlBase::resetToDefault | ( | ) |  [virtual] | 
Reimplemented in LLControl.
Definition at line 111 of file llcontrol.cpp.
Referenced by LLFloaterSettingsDebug::onClickDefault().
Implemented in LLControl.
Referenced by LLControlGroup::loadFromFile(), LLControlGroup::loadFromFileLegacy(), LLFloaterSettingsDebug::onCommitSettings(), LLControlGroup::setBOOL(), LLControlGroup::setColor4(), LLControlGroup::setColor4U(), LLControlGroup::setF32(), LLControlGroup::setRect(), LLControlGroup::setS32(), LLControlGroup::setString(), LLControlGroup::setU32(), LLControlGroup::setValue(), LLControlGroup::setVector3(), and LLControlGroup::setVector3d().
Implemented in LLControl.
Referenced by 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(), 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(), LLEditEnableCustomizeAvatar::handleEvent(), LLAvatarEnableAddFriend::handleEvent(), LLSelfEnableStandUp::handleEvent(), LLObjectEnableBuy::handleEvent(), LLAvatarEnableFreezeEject::handleEvent(), LLAvatarEnableDebug::handleEvent(), LLAvatarVisibleDebug::handleEvent(), LLObjectEnableMute::handleEvent(), LLSelfEnableRemoveAllAttachments::handleEvent(), LLEnableEdit::handleEvent(), LLLandEnableBuyPass::handleEvent(), LLViewCheckBuildMode::handleEvent(), LLObjectEnableOpen::handleEvent(), LLObjectEnableTouch::handleEvent(), LLObjectEnableReportAbuse::handleEvent(), handleEvent(), and LLInventoryViewFinder::onClose().
| eControlType LLControlBase::type | ( | ) |  [inline] | 
Definition at line 106 of file llcontrol.h.
References mType.
Referenced by LLFloaterSettingsDebug::onCommitSettings(), and LLFloaterSettingsDebug::updateControl().
| void LLControlBase::updateAllListeners | ( | ) |  [static] | 
| friend class LLControlGroup  [friend] | 
| std::set< LLControlBase * > LLControlBase::mChangedControls  [static, protected] | 
| LLString LLControlBase::mComment  [protected] | 
Definition at line 69 of file llcontrol.h.
Referenced by comment(), getComment(), and LLControlBase().
| std::list< S32 > LLControlBase::mFreeIDs  [static, protected] | 
Definition at line 76 of file llcontrol.h.
Referenced by allocateListenerID(), and releaseListenerID().
| BOOL LLControlBase::mHasRange  [protected] | 
Definition at line 71 of file llcontrol.h.
| BOOL LLControlBase::mIsDefault  [protected] | 
Definition at line 73 of file llcontrol.h.
Referenced by LLControlGroup::saveToFile(), and LLControl::setValue().
| LLString LLControlBase::mName  [protected] | 
| BOOL LLControlBase::mPersist  [protected] | 
Definition at line 72 of file llcontrol.h.
Referenced by LLControlBase(), and LLControlGroup::saveToFile().
| S32 LLControlBase::mTopID  [static, protected] | 
| eControlType LLControlBase::mType  [protected] | 
Definition at line 70 of file llcontrol.h.
Referenced by isType(), LLControl::llsd_compare(), LLControlGroup::loadFromFile(), LLControlGroup::loadFromFileLegacy(), and type().
| std::list< S32 > LLControlBase::mUsedIDs  [static, protected] | 
| U32 LLControlBase::sMaxControlNameLength = 0  [static] | 
 1.4.7
 1.4.7