#include <llmenugl.h>
Inheritance diagram for LLMenuItemGL:
Definition at line 84 of file llmenugl.h.
LLMenuItemGL::LLMenuItemGL | ( | const LLString & | name, | |
const LLString & | label, | |||
KEY | key = KEY_NONE , |
|||
MASK | mask = MASK_NONE | |||
) |
============================================================================ Class LLMenuItemGL ============================================================================
Definition at line 135 of file llmenugl.cpp.
References setLabel().
BOOL LLMenuItemGL::addToAcceleratorList | ( | std::list< LLKeyBinding * > * | listp | ) | [virtual] |
Reimplemented in LLMenuItemBranchGL.
Definition at line 240 of file llmenugl.cpp.
References FALSE, KEY_NONE, mAcceleratorKey, mAcceleratorMask, MASK_NORMALKEYS, LLKeyBinding::mKey, LLKeyBinding::mMask, NULL, and TRUE.
Referenced by LLMenuItemBranchGL::addToAcceleratorList().
Definition at line 285 of file llmenugl.cpp.
References KEY_NONE, mAcceleratorKey, mAcceleratorMask, MASK_ALT, MASK_CONTROL, MASK_MAC_CONTROL, MASK_NORMALKEYS, MASK_SHIFT, and LLKeyboard::stringFromKey().
Referenced by LLPieMenuBranch::buildDrawLabel(), LLMenuItemBranchDownGL::buildDrawLabel(), LLMenuItemBranchGL::buildDrawLabel(), LLMenuItemToggleGL::buildDrawLabel(), buildDrawLabel(), and getNominalWidth().
Reimplemented in LLMenuItemBranchDownGL, LLPieMenuBranch, LLMenuItemCallGL, LLMenuItemCheckGL, LLMenuItemToggleGL, and LLMenuItemBranchGL.
Definition at line 416 of file llmenugl.cpp.
References appendAcceleratorString(), LLUIString::clear(), LLUIString::getString(), and mDrawAccelLabel.
Referenced by LLPieMenuBranch::buildDrawLabel(), LLMenuItemCallGL::buildDrawLabel(), LLMenuHolderGL::draw(), and LLMenuGL::setItemLastSelected().
Reimplemented in LLMenuItemSeparatorGL, LLMenuItemBlankGL, LLPieMenuBranch, LLMenuItemCallGL, LLMenuItemToggleGL, LLMenuItemBranchGL, and LLMenuItemTearOffGL.
Definition at line 424 of file llmenugl.cpp.
References getMenu(), LLView::getVisible(), LLMenuHolderGL::hideMenus(), and LLMenuGL::sMenuContainer.
Referenced by LLMenuItemToggleGL::doIt(), LLMenuItemCallGL::doIt(), LLMenuItemTearOffGL::doIt(), handleAcceleratorKey(), LLMenuItemBranchDownGL::handleKeyHere(), handleKeyHere(), and handleMouseUp().
Reimplemented from LLView.
Reimplemented in LLMenuItemSeparatorGL, LLMenuItemBlankGL, LLMenuItemBranchDownGL, LLMenuItemBranchGL, and LLMenuItemTearOffGL.
Definition at line 522 of file llmenugl.cpp.
References LLFontGL::BOTTOM, BRIEF_PAD_PIXELS, LLFontGL::DROP_SHADOW_SOFT, LLUIString::empty(), f, FALSE, LLView::getEnabled(), LLRectBase< Type >::getHeight(), getHighlight(), LLMenuGL::getKeyboardMode(), getMenu(), LLUIString::getString(), LLFontGL::getWidth(), LLRectBase< Type >::getWidth(), LLUIString::getWString(), gl_line_2d(), gl_rect_2d(), glColor4fv, LLMenuGL::jumpKeysActive(), LLFontGL::LEFT, LEFT_PAD_PIXELS, LEFT_PLAIN_PIXELS, mBriefItem, mDrawAccelLabel, mDrawBoolLabel, mDrawBranchLabel, mDrawTextDisabled, MENU_ITEM_PADDING, mFont, mGotHover, mJumpKey, mLabel, LLView::mRect, LLRectBase< Type >::mRight, mStyle, LLColor4::mV, NULL, LLFontGL::render(), LLFontGL::RIGHT, RIGHT_PAD_PIXELS, RIGHT_PLAIN_PIXELS, S32, S32_MAX, sDisabledColor, sDropShadowText, sEnabledColor, sHighlightBackground, sHighlightForeground, and LLStringBase< char >::toUpper().
Referenced by LLMenuHolderGL::draw(), and LLMenuItemBranchGL::draw().
BOOL LLMenuItemGL::getDrawTextDisabled | ( | ) | const [inline] |
BOOL LLMenuItemGL::getHighlight | ( | ) | const [inline] |
Definition at line 102 of file llmenugl.h.
References mHighlight.
Referenced by LLMenuItemTearOffGL::doIt(), LLMenuItemBranchDownGL::draw(), LLMenuItemTearOffGL::draw(), draw(), LLMenuItemBranchDownGL::handleKeyHere(), LLMenuItemBranchGL::handleKeyHere(), handleKeyHere(), LLMenuItemBranchDownGL::setHighlight(), and LLMenuItemBranchGL::setHighlight().
BOOL LLMenuItemGL::getHover | ( | ) | [inline] |
KEY LLMenuItemGL::getJumpKey | ( | ) |
Definition at line 335 of file llmenugl.cpp.
References mJumpKey.
Referenced by LLMenuBarGL::appendMenu().
LLMenuGL * LLMenuItemGL::getMenu | ( | ) | [virtual] |
Definition at line 382 of file llmenugl.cpp.
References LLView::getParent().
Referenced by LLMenuItemToggleGL::doIt(), LLMenuItemCallGL::doIt(), LLMenuItemTearOffGL::doIt(), doIt(), LLMenuHolderGL::draw(), LLMenuItemBranchDownGL::draw(), draw(), LLMenuItemSeparatorGL::handleHover(), LLMenuItemBranchDownGL::handleKeyHere(), LLMenuItemBranchGL::handleKeyHere(), handleKeyHere(), LLMenuItemSeparatorGL::handleMouseDown(), LLMenuItemSeparatorGL::handleMouseUp(), LLTearOffMenu::onFocusReceived(), LLMenuItemBranchDownGL::setHighlight(), LLMenuItemBranchGL::setHighlight(), and setHighlight().
Reimplemented in LLMenuItemSeparatorGL, and LLMenuItemTearOffGL.
Definition at line 348 of file llmenugl.cpp.
References LLFontGL::getLineHeight(), llround(), MENU_ITEM_PADDING, and mFont.
Referenced by LLMenuGL::arrange().
Reimplemented in LLMenuItemBranchDownGL.
Definition at line 391 of file llmenugl.cpp.
References ACCEL_PAD_PIXELS, appendAcceleratorString(), BRIEF_PAD_PIXELS, LLFontGL::getWidth(), LLUIString::getWString(), KEY_NONE, mAcceleratorKey, mBriefItem, mFont, mLabel, PLAIN_PAD_PIXELS, and width.
Referenced by LLMenuGL::arrange().
virtual LLString LLMenuItemGL::getType | ( | ) | const [inline, virtual] |
Reimplemented in LLMenuItemSeparatorGL, LLMenuItemBranchDownGL, LLMenuItemCallGL, LLMenuItemCheckGL, LLMenuItemToggleGL, LLMenuItemBranchGL, and LLMenuItemTearOffGL.
Definition at line 95 of file llmenugl.h.
Referenced by getXML().
virtual LLString LLMenuItemGL::getWidgetTag | ( | ) | const [inline, virtual] |
Implements LLView.
Reimplemented in LLMenuItemSeparatorGL, LLMenuItemVerticalSeparatorGL, LLMenuItemBlankGL, LLMenuItemBranchDownGL, LLPieMenuBranch, LLMenuItemCallGL, LLMenuItemCheckGL, LLMenuItemBranchGL, and LLMenuItemTearOffGL.
Definition at line 91 of file llmenugl.h.
References LL_MENU_ITEM_TAG.
virtual EWidgetType LLMenuItemGL::getWidgetType | ( | ) | const [inline, virtual] |
Implements LLView.
Reimplemented in LLMenuItemSeparatorGL, LLMenuItemVerticalSeparatorGL, LLMenuItemBlankGL, LLMenuItemBranchDownGL, LLPieMenuBranch, LLMenuItemCallGL, LLMenuItemCheckGL, LLMenuItemBranchGL, and LLMenuItemTearOffGL.
Definition at line 90 of file llmenugl.h.
References WIDGET_TYPE_MENU_ITEM.
LLXMLNodePtr LLMenuItemGL::getXML | ( | bool | save_children = true |
) | const [virtual] |
Reimplemented from LLView.
Reimplemented in LLMenuItemCallGL, LLMenuItemCheckGL, and LLMenuItemBranchGL.
Definition at line 152 of file llmenugl.cpp.
References getType(), LLView::getXML(), KEY_NONE, mAcceleratorKey, mAcceleratorMask, MASK_ALT, MASK_CONTROL, MASK_MAC_CONTROL, MASK_SHIFT, mLabel, LLKeyboard::stringFromKey(), and TRUE.
Referenced by LLMenuGL::getXML(), LLMenuItemBranchGL::getXML(), and LLMenuItemCallGL::getXML().
Reimplemented in LLMenuItemBranchDownGL, LLMenuItemCallGL, and LLMenuItemBranchGL.
Definition at line 216 of file llmenugl.cpp.
References doIt(), FALSE, LLKeyboard::getKeyRepeated(), gKeyboard, mAcceleratorKey, mAcceleratorMask, mAllowKeyRepeat, MASK_NORMALKEYS, LLView::mEnabled, and TRUE.
Referenced by LLMenuItemCallGL::handleAcceleratorKey().
Reimplemented from LLView.
Reimplemented in LLMenuItemSeparatorGL.
Definition at line 226 of file llmenugl.cpp.
References LLView::getWindow(), mGotHover, LLWindow::setCursor(), TRUE, and UI_CURSOR_ARROW.
Reimplemented from LLView.
Reimplemented in LLMenuItemBranchGL.
Definition at line 191 of file llmenugl.cpp.
References LLView::childrenHandleKey(), FALSE, handleKeyHere(), LLView::mEnabled, and NULL.
Referenced by LLMenuItemBranchGL::handleKey().
Reimplemented from LLView.
Reimplemented in LLMenuItemBranchDownGL, and LLMenuItemBranchGL.
Definition at line 457 of file llmenugl.cpp.
References doIt(), FALSE, getHighlight(), getMenu(), LLMenuGL::highlightNextItem(), LLMenuGL::highlightPrevItem(), isOpen(), KEY_DOWN, KEY_RETURN, KEY_UP, MASK_NONE, LLMenuGL::setKeyboardMode(), and TRUE.
Referenced by handleKey(), and LLMenuItemBranchGL::handleKeyHere().
Reimplemented from LLView.
Reimplemented in LLMenuItemSeparatorGL, LLMenuItemVerticalSeparatorGL, and LLMenuItemBranchDownGL.
Definition at line 505 of file llmenugl.cpp.
References FALSE, LLView::mEnabled, setHighlight(), LLMenuGL::setKeyboardMode(), and TRUE.
Referenced by LLPieMenu::handleMouseDown(), and LLPieMenu::handleRightMouseDown().
Reimplemented from LLView.
Reimplemented in LLMenuItemSeparatorGL, LLMenuItemBranchDownGL, and LLMenuItemBranchGL.
Definition at line 491 of file llmenugl.cpp.
References doIt(), FALSE, make_ui_sound(), LLView::mEnabled, LLMenuGL::setKeyboardMode(), and TRUE.
Referenced by LLPieMenu::handleMouseUp().
Reimplemented in LLMenuItemBranchDownGL, and LLMenuItemBranchGL.
Definition at line 446 of file llmenugl.cpp.
References FALSE.
Referenced by LLViewerWindow::handleKey(), and LLMenuGL::jumpKeysActive().
Reimplemented in LLMenuItemBranchGL.
Definition at line 452 of file llmenugl.cpp.
References FALSE.
Referenced by LLMenuBarGL::draw(), handleKeyHere(), and LLMenuGL::isOpen().
Definition at line 233 of file llmenugl.cpp.
References mBriefItem.
Referenced by LLPieMenu::append().
Definition at line 359 of file llmenugl.cpp.
References sDisabledColor.
Referenced by pre_init_menus().
Definition at line 354 of file llmenugl.cpp.
References sEnabledColor.
Referenced by pre_init_menus().
Definition at line 342 of file llmenugl.cpp.
References mFont.
Referenced by LLPieMenu::append(), LLPieMenu::appendMenu(), and LLPieMenu::appendSeparator().
Definition at line 109 of file llmenugl.h.
References mStyle.
Referenced by LLMenuGL::createSpilloverBranch().
Reimplemented in LLMenuItemBranchDownGL, and LLMenuItemBranchGL.
Definition at line 436 of file llmenugl.cpp.
References LLMenuGL::clearHoverItem(), getMenu(), and mHighlight.
Referenced by LLPieMenu::draw(), LLPieMenu::handleHover(), handleMouseDown(), LLPieMenu::hide(), and LLTearOffMenu::onFocusReceived().
Definition at line 364 of file llmenugl.cpp.
References sHighlightBackground.
Referenced by pre_init_menus().
Definition at line 369 of file llmenugl.cpp.
References sHighlightForeground.
Referenced by pre_init_menus().
Definition at line 330 of file llmenugl.cpp.
References mJumpKey, and LLStringOps::toUpper().
Referenced by LLMenuBarGL::appendMenu(), and LLMenuGL::appendMenu().
void LLMenuItemGL::setLabel | ( | const LLStringExplicit & | label | ) |
Definition at line 376 of file llmenugl.cpp.
References mLabel.
Referenced by LLAgent::clearAFK(), LLAgent::clearBusy(), LLMenuItemGL(), LLMenuItemVerticalSeparatorGL::LLMenuItemVerticalSeparatorGL(), LLMenuGL::parseChildXML(), LLAgent::setAFK(), LLAgent::setBusy(), and setValue().
BOOL LLMenuItemGL::setLabelArg | ( | const LLString & | key, | |
const LLStringExplicit & | text | |||
) | [virtual] |
Reimplemented from LLView.
Definition at line 601 of file llmenugl.cpp.
References mLabel, LLUIString::setArg(), and TRUE.
Reimplemented from LLView.
Reimplemented in LLMenuItemCheckGL.
Definition at line 89 of file llmenugl.h.
References LLSD::asString(), and setLabel().
KEY LLMenuItemGL::mAcceleratorKey [protected] |
Definition at line 205 of file llmenugl.h.
Referenced by addToAcceleratorList(), appendAcceleratorString(), getNominalWidth(), getXML(), LLMenuItemCallGL::handleAcceleratorKey(), and handleAcceleratorKey().
MASK LLMenuItemGL::mAcceleratorMask [protected] |
Definition at line 206 of file llmenugl.h.
Referenced by addToAcceleratorList(), appendAcceleratorString(), getXML(), LLMenuItemCallGL::handleAcceleratorKey(), and handleAcceleratorKey().
BOOL LLMenuItemGL::mAllowKeyRepeat [protected] |
Definition at line 207 of file llmenugl.h.
Referenced by LLMenuItemCallGL::handleAcceleratorKey(), handleAcceleratorKey(), and setAllowKeyRepeat().
BOOL LLMenuItemGL::mBriefItem [protected] |
Definition at line 213 of file llmenugl.h.
Referenced by LLMenuItemTearOffGL::draw(), draw(), getNominalWidth(), and setBriefItem().
LLUIString LLMenuItemGL::mDrawAccelLabel [protected] |
Definition at line 200 of file llmenugl.h.
Referenced by LLPieMenuBranch::buildDrawLabel(), LLMenuItemBranchDownGL::buildDrawLabel(), LLMenuItemBranchGL::buildDrawLabel(), LLMenuItemToggleGL::buildDrawLabel(), buildDrawLabel(), and draw().
LLUIString LLMenuItemGL::mDrawBoolLabel [protected] |
Definition at line 199 of file llmenugl.h.
Referenced by LLMenuItemToggleGL::buildDrawLabel(), LLMenuItemCheckGL::buildDrawLabel(), draw(), and LLMenuItemCheckGL::handleEvent().
LLUIString LLMenuItemGL::mDrawBranchLabel [protected] |
Definition at line 201 of file llmenugl.h.
Referenced by LLPieMenuBranch::buildDrawLabel(), LLMenuItemBranchGL::buildDrawLabel(), and draw().
BOOL LLMenuItemGL::mDrawTextDisabled [protected] |
Definition at line 219 of file llmenugl.h.
Referenced by LLPieMenuBranch::buildDrawLabel(), LLMenuItemBranchDownGL::draw(), draw(), and getDrawTextDisabled().
LLFontGL* LLMenuItemGL::mFont [protected] |
Definition at line 216 of file llmenugl.h.
Referenced by LLMenuItemBranchDownGL::draw(), draw(), getNominalHeight(), LLMenuItemBranchDownGL::getNominalWidth(), getNominalWidth(), and setFont().
BOOL LLMenuItemGL::mGotHover [protected] |
Definition at line 209 of file llmenugl.h.
Referenced by LLMenuItemBranchDownGL::draw(), draw(), getHover(), and handleHover().
BOOL LLMenuItemGL::mHighlight [protected] |
Definition at line 208 of file llmenugl.h.
Referenced by getHighlight(), LLMenuItemBranchDownGL::setHighlight(), LLMenuItemBranchGL::setHighlight(), and setHighlight().
KEY LLMenuItemGL::mJumpKey [protected] |
Definition at line 204 of file llmenugl.h.
Referenced by LLMenuItemBranchDownGL::draw(), draw(), getJumpKey(), and setJumpKey().
LLUIString LLMenuItemGL::mLabel [protected] |
Definition at line 194 of file llmenugl.h.
Referenced by LLMenuItemCallGL::buildDrawLabel(), LLMenuItemBranchDownGL::draw(), draw(), getLabel(), LLMenuItemBranchDownGL::getNominalWidth(), getNominalWidth(), getXML(), setLabel(), and setLabelArg().
U8 LLMenuItemGL::mStyle [protected] |
Definition at line 218 of file llmenugl.h.
Referenced by LLMenuItemBranchDownGL::draw(), draw(), and setFontStyle().
LLColor4 LLMenuItemGL::sDisabledColor [static] |
Definition at line 186 of file llmenugl.h.
Referenced by LLMenuItemBranchDownGL::draw(), LLMenuItemTearOffGL::draw(), LLMenuItemSeparatorGL::draw(), draw(), and setDisabledColor().
BOOL LLMenuItemGL::sDropShadowText = TRUE [static, protected] |
Definition at line 191 of file llmenugl.h.
Referenced by LLMenuItemBranchDownGL::draw(), and draw().
LLColor4 LLMenuItemGL::sEnabledColor [static] |
Definition at line 185 of file llmenugl.h.
Referenced by LLMenuItemBranchDownGL::draw(), LLMenuItemTearOffGL::draw(), draw(), and setEnabledColor().
Definition at line 187 of file llmenugl.h.
Referenced by LLMenuHolderGL::draw(), LLMenuItemBranchDownGL::draw(), LLMenuItemTearOffGL::draw(), draw(), and setHighlightBGColor().
Definition at line 188 of file llmenugl.h.
Referenced by LLMenuItemBranchDownGL::draw(), draw(), and setHighlightFGColor().