#include <llmenugl.h>


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 |
Definition at line 225 of file llmenugl.h.
| 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().

| 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().

| 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().

| 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().

| 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().


| virtual LLString LLMenuItemCallGL::getType | ( | ) | const [inline, virtual] |
Reimplemented from LLMenuItemGL.
Reimplemented in LLMenuItemCheckGL.
Definition at line 265 of file llmenugl.h.
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().


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().


| 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().

| menu_callback LLMenuItemCallGL::getMenuCallback | ( | ) | const [inline] |
Definition at line 272 of file llmenugl.h.
References mCallback.
Referenced by clear_landmark_menu().

| void LLMenuItemCallGL::setEnabledCallback | ( | enabled_callback | callback | ) | [inline] |
Definition at line 274 of file llmenugl.h.
References mEnabledCallback.
Referenced by LLScriptEdCore::initMenu().

| void LLMenuItemCallGL::setUserData | ( | void * | userdata | ) | [inline] |
| void* LLMenuItemCallGL::getUserData | ( | ) | const [inline] |
Definition at line 277 of file llmenugl.h.
References mUserData.
Referenced by LLMenuItemCheckGL::buildDrawLabel(), and clear_landmark_menu().

| 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().


| 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().

Reimplemented from LLMenuItemGL.
Definition at line 874 of file llmenugl.cpp.
References LLObservable::fireEvent(), LLMenuItemGL::getAllowKeyRepeat(), LLView::getEnabled(), LLKeyboard::getKeyRepeated(), gKeyboard, LLMenuItemGL::handleAcceleratorKey(), LLMenuItemGL::mAcceleratorKey, LLMenuItemGL::mAcceleratorMask, MASK_NORMALKEYS, mEnabledCallback, mOnDisabledCallback, mUserData, and LLView::setEnabled().

menu_callback LLMenuItemCallGL::mCallback [private] |
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().
void* LLMenuItemCallGL::mUserData [private] |
Definition at line 295 of file llmenugl.h.
Referenced by buildDrawLabel(), doIt(), getUserData(), handleAcceleratorKey(), setMenuCallback(), and setUserData().
1.5.5