LLMenuItemCheckGL Class Reference

#include <llmenugl.h>

Inheritance diagram for LLMenuItemCheckGL:

Inheritance graph
[legend]
Collaboration diagram for LLMenuItemCheckGL:

Collaboration graph
[legend]
List of all members.

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 EWidgetType getWidgetType () const
virtual LLString getWidgetTag () const
virtual LLString getType () const
virtual void buildDrawLabel (void)
virtual bool handleEvent (LLPointer< LLEvent > event, const LLSD &userdata)

Protected Attributes

check_callback mCheckCallback
BOOL mChecked

Detailed Description

Definition at line 317 of file llmenugl.h.


Constructor & Destructor Documentation

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 1044 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 1057 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 1069 of file llmenugl.cpp.

References LLView::setControlName().


Member Function Documentation

void LLMenuItemCheckGL::buildDrawLabel ( void   )  [virtual]

Reimplemented from LLMenuItemCallGL.

Definition at line 1141 of file llmenugl.cpp.

References BOOLEAN_TRUE_PREFIX, LLMenuItemCallGL::buildDrawLabel(), LLUIString::clear(), mCheckCallback, mChecked, LLMenuItemGL::mDrawBoolLabel, and LLMenuItemCallGL::mUserData.

virtual LLString LLMenuItemCheckGL::getType (  )  const [inline, virtual]

Reimplemented from LLMenuItemCallGL.

Definition at line 354 of file llmenugl.h.

LLString LLMenuItemCheckGL::getWidgetTag (  )  const [virtual]

Reimplemented from LLMenuItemCallGL.

Definition at line 1135 of file llmenugl.cpp.

References LL_MENU_ITEM_CHECK_GL_TAG.

EWidgetType LLMenuItemCheckGL::getWidgetType (  )  const [virtual]

Reimplemented from LLMenuItemCallGL.

Definition at line 1130 of file llmenugl.cpp.

References WIDGET_TYPE_MENU_ITEM_CHECK.

LLXMLNodePtr LLMenuItemCheckGL::getXML ( bool  save_children = true  )  const [virtual]

Reimplemented from LLMenuItemCallGL.

Definition at line 1124 of file llmenugl.cpp.

References LLMenuItemCallGL::getXML().

bool LLMenuItemCheckGL::handleEvent ( LLPointer< LLEvent event,
const LLSD userdata 
) [virtual]

Reimplemented from LLMenuItemCallGL.

Definition at line 1104 of file llmenugl.cpp.

References LLSD::asString(), BOOLEAN_TRUE_PREFIX, LLUIString::clear(), LLMenuItemCallGL::handleEvent(), mChecked, LLMenuItemGL::mDrawBoolLabel, and TRUE.

void LLMenuItemCheckGL::setCheckedControl ( LLString  checked_control,
LLView context 
)

Definition at line 1083 of file llmenugl.cpp.

References LLView::addBoolControl(), LLView::findControl(), mChecked, and LLControlBase::registerListener().

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

Reimplemented from LLMenuItemGL.

Definition at line 350 of file llmenugl.h.

References LLSD::asBoolean(), and mChecked.


Member Data Documentation

check_callback LLMenuItemCheckGL::mCheckCallback [protected]

Definition at line 321 of file llmenugl.h.

Referenced by buildDrawLabel().

BOOL LLMenuItemCheckGL::mChecked [protected]

Definition at line 322 of file llmenugl.h.

Referenced by buildDrawLabel(), handleEvent(), setCheckedControl(), and setValue().


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