LLMenuItemCallGL Class Reference

#include <llmenugl.h>

Inheritance diagram for LLMenuItemCallGL:

Inheritance graph
[legend]
Collaboration diagram for LLMenuItemCallGL:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 LLMenuItemCallGL (const LLString &name, menu_callback clicked_cb, enabled_callback enabled_cb=NULL, void *user_data=NULL, KEY key=KEY_NONE, MASK mask=MASK_NONE, BOOL enabled=TRUE, on_disabled_callback on_disabled_cb=NULL)
 LLMenuItemCallGL (const LLString &name, const LLString &label, menu_callback clicked_cb, enabled_callback enabled_cb=NULL, void *user_data=NULL, KEY key=KEY_NONE, MASK mask=MASK_NONE, BOOL enabled=TRUE, on_disabled_callback on_disabled_cb=NULL)
 LLMenuItemCallGL (const LLString &name, const LLString &label, menu_callback clicked_cb, enabled_callback enabled_cb, label_callback label_cb, void *user_data, KEY key=KEY_NONE, MASK mask=MASK_NONE, BOOL enabled=TRUE, on_disabled_callback on_disabled_c=NULL)
 LLMenuItemCallGL (const LLString &name, menu_callback clicked_cb, enabled_callback enabled_cb, label_callback label_cb, void *user_data, KEY key=KEY_NONE, MASK mask=MASK_NONE, BOOL enabled=TRUE, on_disabled_callback on_disabled_c=NULL)
virtual LLXMLNodePtr getXML (bool save_children=true) const
virtual LLString getType () const
virtual EWidgetType getWidgetType () const
virtual LLString getWidgetTag () const
void setEnabledControl (LLString enabled_control, LLView *context)
void setVisibleControl (LLString enabled_control, LLView *context)
void setMenuCallback (menu_callback callback, void *data)
menu_callback getMenuCallback () const
void setEnabledCallback (enabled_callback callback)
void setUserData (void *userdata)
voidgetUserData () const
virtual void buildDrawLabel (void)
virtual void doIt (void)
virtual BOOL handleAcceleratorKey (KEY key, MASK mask)
virtual bool handleEvent (LLPointer< LLEvent > event, const LLSD &userdata)

Protected Attributes

menu_callback mCallback
enabled_callback mEnabledCallback
label_callback mLabelCallback
voidmUserData
on_disabled_callback mOnDisabledCallback

Detailed Description

Definition at line 230 of file llmenugl.h.


Constructor & Destructor Documentation

LLMenuItemCallGL::LLMenuItemCallGL ( const LLString name,
menu_callback  clicked_cb,
enabled_callback  enabled_cb = NULL,
void user_data = NULL,
KEY  key = KEY_NONE,
MASK  mask = MASK_NONE,
BOOL  enabled = TRUE,
on_disabled_callback  on_disabled_cb = NULL 
)

Definition at line 841 of file llmenugl.cpp.

References FALSE, and LLView::setEnabled().

LLMenuItemCallGL::LLMenuItemCallGL ( const LLString name,
const LLString label,
menu_callback  clicked_cb,
enabled_callback  enabled_cb = NULL,
void user_data = NULL,
KEY  key = KEY_NONE,
MASK  mask = MASK_NONE,
BOOL  enabled = TRUE,
on_disabled_callback  on_disabled_cb = NULL 
)

============================================================================ Class LLMenuItemCallGL ============================================================================

Definition at line 823 of file llmenugl.cpp.

References FALSE, and LLView::setEnabled().

LLMenuItemCallGL::LLMenuItemCallGL ( const LLString name,
const LLString label,
menu_callback  clicked_cb,
enabled_callback  enabled_cb,
label_callback  label_cb,
void user_data,
KEY  key = KEY_NONE,
MASK  mask = MASK_NONE,
BOOL  enabled = TRUE,
on_disabled_callback  on_disabled_c = NULL 
)

Definition at line 858 of file llmenugl.cpp.

References FALSE, and LLView::setEnabled().

LLMenuItemCallGL::LLMenuItemCallGL ( const LLString name,
menu_callback  clicked_cb,
enabled_callback  enabled_cb,
label_callback  label_cb,
void user_data,
KEY  key = KEY_NONE,
MASK  mask = MASK_NONE,
BOOL  enabled = TRUE,
on_disabled_callback  on_disabled_c = NULL 
)

Definition at line 877 of file llmenugl.cpp.

References FALSE, and LLView::setEnabled().


Member Function Documentation

void LLMenuItemCallGL::buildDrawLabel ( void   )  [virtual]

Reimplemented from LLMenuItemGL.

Reimplemented in LLMenuItemCheckGL.

Definition at line 1002 of file llmenugl.cpp.

References LLMenuItemGL::buildDrawLabel(), LLObservable::fireEvent(), mEnabledCallback, LLMenuItemGL::mLabel, mLabelCallback, mUserData, and LLView::setEnabled().

Referenced by LLMenuItemCheckGL::buildDrawLabel().

void LLMenuItemCallGL::doIt ( void   )  [virtual]

Reimplemented from LLMenuItemGL.

Definition at line 978 of file llmenugl.cpp.

References LLMenuItemGL::doIt(), LLObservable::fireEvent(), LLMenuItemGL::getMenu(), mCallback, mUserData, and LLMenuGL::setItemLastSelected().

menu_callback LLMenuItemCallGL::getMenuCallback (  )  const [inline]

Definition at line 287 of file llmenugl.h.

References mCallback.

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

Reimplemented from LLMenuItemGL.

Reimplemented in LLMenuItemCheckGL.

Definition at line 278 of file llmenugl.h.

void* LLMenuItemCallGL::getUserData (  )  const [inline]

Definition at line 292 of file llmenugl.h.

References mUserData.

LLString LLMenuItemCallGL::getWidgetTag (  )  const [virtual]

Reimplemented from LLMenuItemGL.

Reimplemented in LLMenuItemCheckGL.

Definition at line 997 of file llmenugl.cpp.

References LL_MENU_ITEM_CALL_GL_TAG.

EWidgetType LLMenuItemCallGL::getWidgetType (  )  const [virtual]

Reimplemented from LLMenuItemGL.

Reimplemented in LLMenuItemCheckGL.

Definition at line 992 of file llmenugl.cpp.

References WIDGET_TYPE_MENU_ITEM_CALL.

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

Reimplemented from LLMenuItemGL.

Reimplemented in LLMenuItemCheckGL.

Definition at line 954 of file llmenugl.cpp.

References FALSE, LLView::findEventListener(), LLMenuItemGL::getXML(), LLObservable::mDispatcher, and TRUE.

Referenced by LLMenuItemCheckGL::getXML().

BOOL LLMenuItemCallGL::handleAcceleratorKey ( KEY  key,
MASK  mask 
) [virtual]

Reimplemented from LLMenuItemGL.

Definition at line 1019 of file llmenugl.cpp.

References LLObservable::fireEvent(), LLKeyboard::getKeyRepeated(), gKeyboard, LLMenuItemGL::handleAcceleratorKey(), LLMenuItemGL::mAcceleratorKey, LLMenuItemGL::mAcceleratorMask, LLMenuItemGL::mAllowKeyRepeat, MASK_NORMALKEYS, LLView::mEnabled, mEnabledCallback, mOnDisabledCallback, mUserData, and LLView::setEnabled().

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

Reimplemented from LLView.

Reimplemented in LLMenuItemCheckGL.

Definition at line 936 of file llmenugl.cpp.

References LLSD::asString(), LLView::handleEvent(), LLView::setEnabled(), LLView::setVisible(), and TRUE.

Referenced by LLMenuItemCheckGL::handleEvent().

void LLMenuItemCallGL::setEnabledCallback ( enabled_callback  callback  )  [inline]

Definition at line 289 of file llmenugl.h.

References mEnabledCallback.

Referenced by LLScriptEdCore::initMenu().

void LLMenuItemCallGL::setEnabledControl ( LLString  enabled_control,
LLView context 
)

Definition at line 895 of file llmenugl.cpp.

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

Referenced by LLMenuGL::parseChildXML().

void LLMenuItemCallGL::setMenuCallback ( menu_callback  callback,
void data 
) [inline]

Definition at line 286 of file llmenugl.h.

References mCallback, and mUserData.

Referenced by LLScriptEdCore::initMenu().

void LLMenuItemCallGL::setUserData ( void userdata  )  [inline]

Definition at line 291 of file llmenugl.h.

References mUserData.

void LLMenuItemCallGL::setVisibleControl ( LLString  enabled_control,
LLView context 
)

Definition at line 915 of file llmenugl.cpp.

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

Referenced by LLMenuGL::parseChildXML().


Member Data Documentation

menu_callback LLMenuItemCallGL::mCallback [protected]

Definition at line 233 of file llmenugl.h.

Referenced by doIt(), getMenuCallback(), and setMenuCallback().

enabled_callback LLMenuItemCallGL::mEnabledCallback [protected]

Definition at line 235 of file llmenugl.h.

Referenced by buildDrawLabel(), handleAcceleratorKey(), and setEnabledCallback().

label_callback LLMenuItemCallGL::mLabelCallback [protected]

Definition at line 236 of file llmenugl.h.

Referenced by buildDrawLabel().

on_disabled_callback LLMenuItemCallGL::mOnDisabledCallback [protected]

Definition at line 238 of file llmenugl.h.

Referenced by handleAcceleratorKey().

void* LLMenuItemCallGL::mUserData [protected]

Definition at line 237 of file llmenugl.h.

Referenced by LLMenuItemCheckGL::buildDrawLabel(), buildDrawLabel(), doIt(), getUserData(), handleAcceleratorKey(), setMenuCallback(), and setUserData().


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