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
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)
void * getUserData () const
virtual void buildDrawLabel (void)
virtual void doIt (void)
virtual BOOL handleAcceleratorKey (KEY key, MASK mask)

Private Attributes

menu_callback mCallback
enabled_callback mEnabledCallback
label_callback mLabelCallback
void * mUserData
on_disabled_callback mOnDisabledCallback


Detailed Description

Definition at line 225 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 730 of file llmenugl.cpp.

References FALSE, and LLView::setEnabled().

Here is the call graph for this function:

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 712 of file llmenugl.cpp.

References FALSE, and LLView::setEnabled().

Here is the call graph for this function:

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 747 of file llmenugl.cpp.

References FALSE, and LLView::setEnabled().

Here is the call graph for this function:

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 766 of file llmenugl.cpp.

References FALSE, and LLView::setEnabled().

Here is the call graph for this function:


Member Function Documentation

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

Reimplemented from LLMenuItemGL.

Reimplemented in LLMenuItemCheckGL.

Definition at line 819 of file llmenugl.cpp.

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

Referenced by LLMenuItemCheckGL::getXML().

Here is the call graph for this function:

Here is the caller graph for this function:

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

Reimplemented from LLMenuItemGL.

Reimplemented in LLMenuItemCheckGL.

Definition at line 265 of file llmenugl.h.

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

Definition at line 784 of file llmenugl.cpp.

References LLView::addBoolControl(), LLView::controlListener(), LLView::findControl(), LLView::getEnabled(), LLView::getHandle(), LLControlVariable::getSignal(), LLControlVariable::getValue(), llassert_always, and LLView::setEnabled().

Referenced by LLMenuGL::parseChildXML().

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 801 of file llmenugl.cpp.

References LLView::addBoolControl(), LLView::controlListener(), LLView::findControl(), LLView::getHandle(), LLControlVariable::getSignal(), LLControlVariable::getValue(), LLView::getVisible(), llassert_always, and LLView::setVisible().

Referenced by LLMenuGL::parseChildXML().

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 271 of file llmenugl.h.

References mCallback, and mUserData.

Referenced by LLScriptEdCore::initMenu().

Here is the caller graph for this function:

menu_callback LLMenuItemCallGL::getMenuCallback (  )  const [inline]

Definition at line 272 of file llmenugl.h.

References mCallback.

Referenced by clear_landmark_menu().

Here is the caller graph for this function:

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

Definition at line 274 of file llmenugl.h.

References mEnabledCallback.

Referenced by LLScriptEdCore::initMenu().

Here is the caller graph for this function:

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

Definition at line 276 of file llmenugl.h.

References mUserData.

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

Definition at line 277 of file llmenugl.h.

References mUserData.

Referenced by LLMenuItemCheckGL::buildDrawLabel(), and clear_landmark_menu().

Here is the caller graph for this function:

void LLMenuItemCallGL::buildDrawLabel ( void   )  [virtual]

Reimplemented from LLMenuItemGL.

Reimplemented in LLMenuItemCheckGL.

Definition at line 857 of file llmenugl.cpp.

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

Referenced by LLMenuItemCheckGL::buildDrawLabel().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLMenuItemCallGL::doIt ( void   )  [virtual]

Reimplemented from LLMenuItemGL.

Definition at line 843 of file llmenugl.cpp.

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

Here is the call graph for this function:

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


Member Data Documentation

Definition at line 291 of file llmenugl.h.

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

Definition at line 293 of file llmenugl.h.

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

Definition at line 294 of file llmenugl.h.

Referenced by buildDrawLabel().

void* LLMenuItemCallGL::mUserData [private]

Definition at line 296 of file llmenugl.h.

Referenced by handleAcceleratorKey().


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

Generated on Fri May 16 08:52:51 2008 for SecondLife by  doxygen 1.5.5