#include <llmenugl.h>
Public Member Functions | |
LLMenuItemCheckGL (const LLString &name, const LLString &label, menu_callback callback, enabled_callback enabled_cb, check_callback check, void *user_data, KEY key=KEY_NONE, MASK mask=MASK_NONE) | |
LLMenuItemCheckGL (const LLString &name, menu_callback callback, enabled_callback enabled_cb, check_callback check, void *user_data, KEY key=KEY_NONE, MASK mask=MASK_NONE) | |
LLMenuItemCheckGL (const LLString &name, const LLString &label, menu_callback callback, enabled_callback enabled_cb, LLString control_name, LLView *context, void *user_data, KEY key=KEY_NONE, MASK mask=MASK_NONE) | |
virtual LLXMLNodePtr | getXML (bool save_children=true) const |
void | setCheckedControl (LLString checked_control, LLView *context) |
virtual void | setValue (const LLSD &value) |
virtual LLString | getType () const |
virtual void | buildDrawLabel (void) |
Private Attributes | |
check_callback | mCheckCallback |
BOOL | mChecked |
Definition at line 309 of file llmenugl.h.
LLMenuItemCheckGL::LLMenuItemCheckGL | ( | const LLString & | name, | |
const LLString & | label, | |||
menu_callback | clicked_cb, | |||
enabled_callback | enabled_cb, | |||
check_callback | check_cb, | |||
void * | user_data, | |||
KEY | key = KEY_NONE , |
|||
MASK | mask = MASK_NONE | |||
) |
============================================================================ Class LLMenuItemCheckGL ============================================================================
Definition at line 899 of file llmenugl.cpp.
LLMenuItemCheckGL::LLMenuItemCheckGL | ( | const LLString & | name, | |
menu_callback | callback, | |||
enabled_callback | enabled_cb, | |||
check_callback | check, | |||
void * | user_data, | |||
KEY | key = KEY_NONE , |
|||
MASK | mask = MASK_NONE | |||
) |
Definition at line 912 of file llmenugl.cpp.
LLMenuItemCheckGL::LLMenuItemCheckGL | ( | const LLString & | name, | |
const LLString & | label, | |||
menu_callback | callback, | |||
enabled_callback | enabled_cb, | |||
LLString | control_name, | |||
LLView * | context, | |||
void * | user_data, | |||
KEY | key = KEY_NONE , |
|||
MASK | mask = MASK_NONE | |||
) |
Definition at line 924 of file llmenugl.cpp.
References LLView::setControlName().
LLXMLNodePtr LLMenuItemCheckGL::getXML | ( | bool | save_children = true |
) | const [virtual] |
Reimplemented from LLMenuItemCallGL.
Definition at line 970 of file llmenugl.cpp.
References LLMenuItemCallGL::getXML().
Definition at line 952 of file llmenugl.cpp.
References LLView::addBoolControl(), LLView::controlListener(), LLView::findControl(), LLView::getHandle(), LLControlVariable::getSignal(), LLControlVariable::getValue(), llassert_always, and mChecked.
void LLMenuItemCheckGL::setValue | ( | const LLSD & | value | ) | [virtual] |
Reimplemented from LLMenuItemGL.
Definition at line 939 of file llmenugl.cpp.
References LLSD::asBoolean(), BOOLEAN_TRUE_PREFIX, LLUIString::clear(), mChecked, and LLMenuItemGL::mDrawBoolLabel.
virtual LLString LLMenuItemCheckGL::getType | ( | ) | const [inline, virtual] |
void LLMenuItemCheckGL::buildDrawLabel | ( | void | ) | [virtual] |
Reimplemented from LLMenuItemCallGL.
Definition at line 977 of file llmenugl.cpp.
References BOOLEAN_TRUE_PREFIX, LLMenuItemCallGL::buildDrawLabel(), LLUIString::clear(), LLMenuItemCallGL::getUserData(), mCheckCallback, mChecked, and LLMenuItemGL::mDrawBoolLabel.
BOOL LLMenuItemCheckGL::mChecked [private] |
Definition at line 347 of file llmenugl.h.
Referenced by buildDrawLabel(), setCheckedControl(), and setValue().