#include <llmenugl.h>
Definition at line 78 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().
static void LLMenuItemGL::setEnabledColor | ( | const LLColor4 & | color | ) | [inline, static] |
Definition at line 82 of file llmenugl.h.
References sEnabledColor.
Referenced by pre_init_menus().
static const LLColor4& LLMenuItemGL::getEnabledColor | ( | ) | [inline, static] |
Definition at line 83 of file llmenugl.h.
References sEnabledColor.
Referenced by LLMenuItemBranchDownGL::draw(), and LLMenuItemTearOffGL::draw().
static void LLMenuItemGL::setDisabledColor | ( | const LLColor4 & | color | ) | [inline, static] |
Definition at line 84 of file llmenugl.h.
References sDisabledColor.
Referenced by pre_init_menus().
static const LLColor4& LLMenuItemGL::getDisabledColor | ( | ) | [inline, static] |
Definition at line 85 of file llmenugl.h.
References sDisabledColor.
Referenced by LLMenuItemBranchDownGL::draw(), LLMenuItemTearOffGL::draw(), and LLMenuItemSeparatorGL::draw().
static void LLMenuItemGL::setHighlightBGColor | ( | const LLColor4 & | color | ) | [inline, static] |
Definition at line 86 of file llmenugl.h.
References sHighlightBackground.
Referenced by pre_init_menus().
static const LLColor4& LLMenuItemGL::getHighlightBGColor | ( | ) | [inline, static] |
Definition at line 87 of file llmenugl.h.
References sHighlightBackground.
Referenced by LLMenuHolderGL::draw(), LLMenuItemBranchDownGL::draw(), and LLMenuItemTearOffGL::draw().
static void LLMenuItemGL::setHighlightFGColor | ( | const LLColor4 & | color | ) | [inline, static] |
Definition at line 88 of file llmenugl.h.
References sHighlightForeground.
Referenced by pre_init_menus().
static const LLColor4& LLMenuItemGL::getHighlightFGColor | ( | ) | [inline, static] |
Definition at line 89 of file llmenugl.h.
References sHighlightForeground.
Referenced by LLMenuItemBranchDownGL::draw().
virtual void LLMenuItemGL::setValue | ( | const LLSD & | value | ) | [inline, virtual] |
Reimplemented from LLView.
Reimplemented in LLMenuItemCheckGL.
Definition at line 93 of file llmenugl.h.
References LLSD::asString(), and setLabel().
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().
virtual LLString LLMenuItemGL::getType | ( | ) | const [inline, virtual] |
Reimplemented in LLMenuItemSeparatorGL, LLMenuItemBranchDownGL, LLMenuItemCallGL, LLMenuItemCheckGL, LLMenuItemToggleGL, LLMenuItemBranchGL, and LLMenuItemTearOffGL.
Definition at line 97 of file llmenugl.h.
Referenced by getXML().
Reimplemented from LLView.
Reimplemented in LLMenuItemSeparatorGL.
Definition at line 201 of file llmenugl.cpp.
References LLView::getWindow(), LLWindow::setCursor(), setHover(), TRUE, and UI_CURSOR_ARROW.
Reimplemented in LLMenuItemBranchDownGL, LLMenuItemCallGL, and LLMenuItemBranchGL.
Definition at line 191 of file llmenugl.cpp.
References doIt(), FALSE, LLView::getEnabled(), LLKeyboard::getKeyRepeated(), gKeyboard, mAcceleratorKey, mAcceleratorMask, mAllowKeyRepeat, MASK_NORMALKEYS, and TRUE.
Referenced by LLMenuGL::handleAcceleratorKey(), and LLMenuItemCallGL::handleAcceleratorKey().
void LLMenuItemGL::setJumpKey | ( | KEY | key | ) |
Definition at line 300 of file llmenugl.cpp.
References mJumpKey, and LLStringOps::toUpper().
Referenced by LLMenuBarGL::appendMenu(), LLMenuGL::appendMenu(), and LLMenuGL::parseChildXML().
KEY LLMenuItemGL::getJumpKey | ( | ) | const [inline] |
Definition at line 104 of file llmenugl.h.
References mJumpKey.
Referenced by LLMenuBarGL::appendMenu(), and LLMenuItemBranchDownGL::draw().
void LLMenuItemGL::setFont | ( | const LLFontGL * | font | ) | [inline] |
Definition at line 107 of file llmenugl.h.
References mFont.
Referenced by LLPieMenu::append(), LLPieMenu::appendPieMenu(), and LLPieMenu::appendSeparator().
const LLFontGL* LLMenuItemGL::getFont | ( | ) | const [inline] |
Definition at line 108 of file llmenugl.h.
References mFont.
Referenced by LLMenuItemBranchDownGL::draw(), and LLMenuItemBranchDownGL::getNominalWidth().
void LLMenuItemGL::setFontStyle | ( | U8 | style | ) | [inline] |
Definition at line 109 of file llmenugl.h.
References mStyle.
Referenced by LLMenuGL::createSpilloverBranch().
U8 LLMenuItemGL::getFontStyle | ( | ) | const [inline] |
Definition at line 110 of file llmenugl.h.
References mStyle.
Referenced by LLMenuItemBranchDownGL::draw().
U32 LLMenuItemGL::getNominalHeight | ( | void | ) | const [virtual] |
Reimplemented in LLMenuItemSeparatorGL, and LLMenuItemTearOffGL.
Definition at line 307 of file llmenugl.cpp.
References LLFontGL::getLineHeight(), llround(), MENU_ITEM_PADDING, and mFont.
Referenced by LLMenuGL::arrange().
virtual void LLMenuItemGL::setBriefItem | ( | BOOL | brief | ) | [inline, virtual] |
Definition at line 116 of file llmenugl.h.
References mBriefItem.
Referenced by LLPieMenu::append().
virtual BOOL LLMenuItemGL::isBriefItem | ( | ) | const [inline, virtual] |
Definition at line 117 of file llmenugl.h.
References mBriefItem.
Referenced by LLMenuItemTearOffGL::draw().
BOOL LLMenuItemGL::addToAcceleratorList | ( | std::list< LLKeyBinding * > * | listp | ) | [virtual] |
Reimplemented in LLMenuItemBranchGL.
Definition at line 210 of file llmenugl.cpp.
References FALSE, KEY_NONE, mAcceleratorKey, mAcceleratorMask, MASK_NORMALKEYS, LLKeyBinding::mKey, LLKeyBinding::mMask, NULL, and TRUE.
Referenced by LLMenuItemBranchGL::addToAcceleratorList().
void LLMenuItemGL::setAllowKeyRepeat | ( | BOOL | allow | ) | [inline] |
BOOL LLMenuItemGL::getAllowKeyRepeat | ( | ) | const [inline] |
Definition at line 121 of file llmenugl.h.
References mAllowKeyRepeat.
Referenced by LLMenuItemCallGL::handleAcceleratorKey().
void LLMenuItemGL::setLabel | ( | const LLStringExplicit & | label | ) | [inline] |
Definition at line 124 of file llmenugl.h.
References mLabel.
Referenced by LLTaskSoundBridge::buildContextMenu(), LLTaskInvFVBridge::buildContextMenu(), LLAgent::clearAFK(), LLAgent::clearBusy(), LLMenuItemGL(), LLMenuItemVerticalSeparatorGL::LLMenuItemVerticalSeparatorGL(), LLMenuGL::parseChildXML(), LLAgent::setAFK(), LLAgent::setBusy(), and setValue().
LLString LLMenuItemGL::getLabel | ( | void | ) | const [inline] |
Definition at line 125 of file llmenugl.h.
References LLUIString::getString(), and mLabel.
BOOL LLMenuItemGL::setLabelArg | ( | const LLString & | key, | |
const LLStringExplicit & | text | |||
) | [virtual] |
Reimplemented from LLView.
Definition at line 511 of file llmenugl.cpp.
References mLabel, LLUIString::setArg(), and TRUE.
LLMenuGL * LLMenuItemGL::getMenu | ( | ) | [virtual] |
Definition at line 314 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(), LLMenuItemBranchGL::setHighlight(), and setHighlight().
U32 LLMenuItemGL::getNominalWidth | ( | void | ) | const [virtual] |
Reimplemented in LLMenuItemBranchDownGL.
Definition at line 323 of file llmenugl.cpp.
References ACCEL_PAD_PIXELS, appendAcceleratorString(), BRIEF_PAD_PIXELS, LLFontGL::getWidth(), LLUIString::getWString(), KEY_NONE, mAcceleratorKey, mBriefItem, mFont, mLabel, and PLAIN_PAD_PIXELS.
Referenced by LLMenuBarGL::arrange(), LLPieMenu::arrange(), and LLMenuGL::arrange().
void LLMenuItemGL::buildDrawLabel | ( | void | ) | [virtual] |
Reimplemented in LLMenuItemBranchDownGL, LLPieMenuBranch, LLMenuItemCallGL, LLMenuItemCheckGL, LLMenuItemToggleGL, and LLMenuItemBranchGL.
Definition at line 348 of file llmenugl.cpp.
References appendAcceleratorString(), LLUIString::clear(), LLUIString::getString(), and mDrawAccelLabel.
Referenced by LLMenuBarGL::arrange(), LLPieMenu::arrange(), LLPieMenuBranch::buildDrawLabel(), LLMenuItemCallGL::buildDrawLabel(), LLMenuHolderGL::draw(), and LLMenuGL::setItemLastSelected().
virtual void LLMenuItemGL::updateBranchParent | ( | LLView * | parentp | ) | [inline, virtual] |
void LLMenuItemGL::doIt | ( | void | ) | [virtual] |
Reimplemented in LLMenuItemSeparatorGL, LLMenuItemBlankGL, LLPieMenuBranch, LLMenuItemCallGL, LLMenuItemToggleGL, LLMenuItemBranchGL, and LLMenuItemTearOffGL.
Definition at line 356 of file llmenugl.cpp.
References getMenu(), LLView::getVisible(), and LLMenuHolderGL::hideMenus().
Referenced by LLMenuItemToggleGL::doIt(), LLMenuItemCallGL::doIt(), LLMenuItemTearOffGL::doIt(), handleAcceleratorKey(), LLMenuItemBranchDownGL::handleKeyHere(), handleKeyHere(), and handleMouseUp().
void LLMenuItemGL::setHighlight | ( | BOOL | highlight | ) | [virtual] |
Reimplemented in LLMenuItemBranchDownGL, and LLMenuItemBranchGL.
Definition at line 368 of file llmenugl.cpp.
References LLMenuGL::clearHoverItem(), getMenu(), and mHighlight.
Referenced by LLMenuGL::clearHoverItem(), LLPieMenu::draw(), LLPieMenu::handleHover(), handleMouseDown(), LLPieMenu::hide(), LLMenuGL::highlightNextItem(), LLTearOffMenu::onFocusReceived(), LLMenuItemBranchDownGL::setHighlight(), and LLMenuItemBranchGL::setHighlight().
virtual BOOL LLMenuItemGL::getHighlight | ( | ) | const [inline, virtual] |
Definition at line 154 of file llmenugl.h.
References mHighlight.
Referenced by LLMenuGL::clearHoverItem(), LLMenuItemTearOffGL::doIt(), LLMenuItemBranchDownGL::draw(), LLMenuItemTearOffGL::draw(), draw(), LLMenuItemBranchDownGL::handleKeyHere(), LLMenuItemBranchGL::handleKeyHere(), handleKeyHere(), LLMenuItemBranchDownGL::setHighlight(), and LLMenuItemBranchGL::setHighlight().
virtual BOOL LLMenuItemGL::isActive | ( | void | ) | const [inline, virtual] |
Reimplemented in LLMenuItemBranchDownGL, and LLMenuItemBranchGL.
Definition at line 157 of file llmenugl.h.
References FALSE.
Referenced by LLViewerWindow::handleKey(), and LLMenuGL::jumpKeysActive().
virtual BOOL LLMenuItemGL::isOpen | ( | void | ) | const [inline, virtual] |
Reimplemented in LLMenuItemBranchGL.
Definition at line 160 of file llmenugl.h.
References FALSE.
Referenced by LLMenuBarGL::draw(), handleKeyHere(), and LLMenuGL::isOpen().
virtual void LLMenuItemGL::setEnabledSubMenus | ( | BOOL | enable | ) | [inline, virtual] |
Reimplemented from LLView.
Reimplemented in LLMenuItemBranchDownGL, and LLMenuItemBranchGL.
Definition at line 378 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 LLMenuItemBranchGL::handleKeyHere().
Reimplemented from LLView.
Reimplemented in LLMenuItemSeparatorGL, LLMenuItemVerticalSeparatorGL, and LLMenuItemBranchDownGL.
Definition at line 422 of file llmenugl.cpp.
References FALSE, setHighlight(), LLMenuGL::setKeyboardMode(), and TRUE.
Referenced by LLPieMenu::handleMouseDown(), and LLPieMenu::handleRightMouseDown().
Reimplemented from LLView.
Reimplemented in LLMenuItemSeparatorGL, LLMenuItemBranchDownGL, and LLMenuItemBranchGL.
Definition at line 412 of file llmenugl.cpp.
References doIt(), FALSE, make_ui_sound(), LLMenuGL::setKeyboardMode(), and TRUE.
Referenced by LLPieMenu::handleMouseUp().
void LLMenuItemGL::draw | ( | void | ) | [virtual] |
Reimplemented from LLView.
Reimplemented in LLMenuItemSeparatorGL, LLMenuItemBlankGL, LLMenuItemBranchDownGL, LLMenuItemBranchGL, and LLMenuItemTearOffGL.
Definition at line 432 of file llmenugl.cpp.
References LLFontGL::BOTTOM, BRIEF_PAD_PIXELS, LLGLImmediate::color4fv(), LLFontGL::DROP_SHADOW_SOFT, LLUIString::empty(), FALSE, LLView::getEnabled(), getHighlight(), LLMenuGL::getKeyboardMode(), getMenu(), LLView::getRect(), LLUIString::getString(), LLFontGL::getWidth(), LLUIString::getWString(), gGL, gl_line_2d(), gl_rect_2d(), LLMenuGL::jumpKeysActive(), LLFontGL::LEFT, LEFT_PAD_PIXELS, LEFT_PLAIN_PIXELS, mBriefItem, mDrawAccelLabel, mDrawBoolLabel, mDrawBranchLabel, mDrawTextDisabled, MENU_ITEM_PADDING, mFont, mJumpKey, mLabel, LLRectBase< Type >::mRight, mStyle, LLColor4::mV, NULL, LLFontGL::render(), LLFontGL::RIGHT, RIGHT_PAD_PIXELS, RIGHT_PLAIN_PIXELS, S32, S32_MAX, sDisabledColor, sEnabledColor, setHover(), sHighlightBackground, sHighlightForeground, and LLStringBase< char >::toUpper().
Referenced by LLMenuHolderGL::draw(), and LLMenuItemBranchGL::draw().
BOOL LLMenuItemGL::getHover | ( | ) | const [inline] |
Definition at line 170 of file llmenugl.h.
References mGotHover.
Referenced by LLMenuBarGL::draw().
void LLMenuItemGL::setDrawTextDisabled | ( | BOOL | disabled | ) | [inline] |
Definition at line 172 of file llmenugl.h.
References mDrawTextDisabled.
Referenced by LLPieMenuBranch::buildDrawLabel().
BOOL LLMenuItemGL::getDrawTextDisabled | ( | ) | const [inline] |
Definition at line 173 of file llmenugl.h.
References mDrawTextDisabled.
Referenced by LLPieMenuBranch::buildDrawLabel(), and LLMenuItemBranchDownGL::draw().
void LLMenuItemGL::setHover | ( | BOOL | hover | ) | [inline, protected] |
Definition at line 176 of file llmenugl.h.
References mGotHover.
Referenced by LLMenuItemBranchDownGL::draw(), draw(), and handleHover().
void LLMenuItemGL::appendAcceleratorString | ( | LLString & | st | ) | const [protected] |
Definition at line 255 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().
KEY LLMenuItemGL::mAcceleratorKey [protected] |
Definition at line 182 of file llmenugl.h.
Referenced by addToAcceleratorList(), appendAcceleratorString(), getNominalWidth(), getXML(), LLMenuItemCallGL::handleAcceleratorKey(), and handleAcceleratorKey().
MASK LLMenuItemGL::mAcceleratorMask [protected] |
Definition at line 183 of file llmenugl.h.
Referenced by addToAcceleratorList(), appendAcceleratorString(), getXML(), LLMenuItemCallGL::handleAcceleratorKey(), and handleAcceleratorKey().
LLUIString LLMenuItemGL::mLabel [protected] |
Definition at line 185 of file llmenugl.h.
Referenced by LLMenuItemCallGL::buildDrawLabel(), LLMenuItemBranchDownGL::draw(), draw(), getLabel(), LLMenuItemBranchDownGL::getNominalWidth(), getNominalWidth(), getXML(), setLabel(), and setLabelArg().
LLUIString LLMenuItemGL::mDrawBoolLabel [protected] |
Definition at line 190 of file llmenugl.h.
Referenced by LLMenuItemToggleGL::buildDrawLabel(), LLMenuItemCheckGL::buildDrawLabel(), draw(), and LLMenuItemCheckGL::setValue().
LLUIString LLMenuItemGL::mDrawAccelLabel [protected] |
Definition at line 191 of file llmenugl.h.
Referenced by LLPieMenuBranch::buildDrawLabel(), LLMenuItemBranchDownGL::buildDrawLabel(), LLMenuItemBranchGL::buildDrawLabel(), LLMenuItemToggleGL::buildDrawLabel(), buildDrawLabel(), and draw().
LLUIString LLMenuItemGL::mDrawBranchLabel [protected] |
Definition at line 192 of file llmenugl.h.
Referenced by LLPieMenuBranch::buildDrawLabel(), LLMenuItemBranchGL::buildDrawLabel(), and draw().
BOOL LLMenuItemGL::mHighlight [protected] |
LLColor4 LLMenuItemGL::sEnabledColor [static, private] |
Definition at line 196 of file llmenugl.h.
Referenced by draw(), getEnabledColor(), and setEnabledColor().
LLColor4 LLMenuItemGL::sDisabledColor [static, private] |
Definition at line 197 of file llmenugl.h.
Referenced by draw(), getDisabledColor(), and setDisabledColor().
LLColor4 LLMenuItemGL::sHighlightBackground [static, private] |
Definition at line 198 of file llmenugl.h.
Referenced by draw(), getHighlightBGColor(), and setHighlightBGColor().
LLColor4 LLMenuItemGL::sHighlightForeground [static, private] |
Definition at line 199 of file llmenugl.h.
Referenced by draw(), getHighlightFGColor(), and setHighlightFGColor().
BOOL LLMenuItemGL::mAllowKeyRepeat [private] |
Definition at line 202 of file llmenugl.h.
Referenced by getAllowKeyRepeat(), handleAcceleratorKey(), and setAllowKeyRepeat().
BOOL LLMenuItemGL::mGotHover [private] |
BOOL LLMenuItemGL::mBriefItem [private] |
Definition at line 207 of file llmenugl.h.
Referenced by draw(), getNominalWidth(), isBriefItem(), and setBriefItem().
const LLFontGL* LLMenuItemGL::mFont [private] |
Definition at line 210 of file llmenugl.h.
Referenced by draw(), getFont(), getNominalHeight(), getNominalWidth(), and setFont().
U8 LLMenuItemGL::mStyle [private] |
Definition at line 211 of file llmenugl.h.
Referenced by draw(), getFontStyle(), and setFontStyle().
BOOL LLMenuItemGL::mDrawTextDisabled [private] |
Definition at line 212 of file llmenugl.h.
Referenced by draw(), getDrawTextDisabled(), and setDrawTextDisabled().
KEY LLMenuItemGL::mJumpKey [private] |