#include <llmenugl.h>
Public Member Functions | |
LLMenuBarGL (const LLString &name) | |
virtual | ~LLMenuBarGL () |
virtual LLXMLNodePtr | getXML (bool save_children=true) const |
virtual BOOL | handleAcceleratorKey (KEY key, MASK mask) |
virtual BOOL | handleKeyHere (KEY key, MASK mask) |
virtual BOOL | handleJumpKey (KEY key) |
virtual void | arrange (void) |
virtual void | draw () |
virtual BOOL | jumpKeysActive () |
virtual BOOL | appendSeparator (const LLString &separator_name="separator") |
virtual BOOL | appendMenu (LLMenuGL *menu) |
virtual BOOL | handleHover (S32 x, S32 y, MASK mask) |
S32 | getRightmostMenuEdge () |
void | resetMenuTrigger () |
Static Public Member Functions | |
static LLView * | fromXML (LLXMLNodePtr node, LLView *parent, LLUICtrlFactory *factory) |
Private Member Functions | |
void | checkMenuTrigger () |
Private Attributes | |
std::list< LLKeyBinding * > | mAccelerators |
BOOL | mAltKeyTrigger |
Definition at line 682 of file llmenugl.h.
LLMenuBarGL::LLMenuBarGL | ( | const LLString & | name | ) |
Definition at line 3742 of file llmenugl.cpp.
References FALSE, mAltKeyTrigger, LLMenuGL::mHorizontalLayout, LLMenuGL::mKeepFixedSize, LLMenuGL::setCanTearOff(), and TRUE.
Referenced by fromXML().
LLMenuBarGL::~LLMenuBarGL | ( | ) | [virtual] |
LLXMLNodePtr LLMenuBarGL::getXML | ( | bool | save_children = true |
) | const [virtual] |
Reimplemented from LLMenuGL.
Definition at line 3758 of file llmenugl.cpp.
References LLMenuItemBranchGL::getBranch(), LLView::getParent(), LLMenuGL::getXML(), LLMenuGL::mItems, NULL, and LLMenuGL::updateParent().
Referenced by handle_export_menus_to_xml().
LLView * LLMenuBarGL::fromXML | ( | LLXMLNodePtr | node, | |
LLView * | parent, | |||
LLUICtrlFactory * | factory | |||
) | [static] |
Reimplemented from LLMenuGL.
Definition at line 3785 of file llmenugl.cpp.
References appendMenu(), LLMenuGL::createJumpKeys(), LLView::createRect(), FALSE, LLMenuGL::fromXML(), LLUICtrlFactory::getAttributeColor(), LLMenuGL::getCanTearOff(), LLFloater::getHandle(), LLView::getRequiredRect(), LLUICtrl::initFromXML(), LLMenuBarGL(), LLPointer< Type >::notNull(), NULL, LLMenuGL::setBackgroundColor(), LLMenuGL::setBackgroundVisible(), LLMenuGL::setCanTearOff(), LLMenuGL::setDropShadowed(), LLView::setRect(), TRUE, and LLMenuGL::updateParent().
Referenced by LLUICtrlFactory::buildMenu().
Reimplemented from LLMenuGL.
Definition at line 3859 of file llmenugl.cpp.
References LLMenuGL::clearHoverItem(), FALSE, LLMenuGL::getHighlightedItem(), LLKeyboard::getKeyRepeated(), gKeyboard, LLMenuGL::handleAcceleratorKey(), LLMenuGL::highlightNextItem(), KEY_F10, mAltKeyTrigger, MASK_ALT, MASK_CONTROL, MASK_NONE, NULL, LLMenuGL::setKeyboardMode(), and TRUE.
Referenced by LLViewerWindow::handleKey().
Reimplemented from LLView.
Definition at line 3891 of file llmenugl.cpp.
References checkMenuTrigger(), FALSE, LLControlGroup::getBOOL(), LLKeyboard::getKeyRepeated(), gKeyboard, LLView::handleKeyHere(), KEY_ALT, mAltKeyTrigger, LLUI::sConfigGroup, and TRUE.
Reimplemented from LLMenuGL.
Definition at line 3908 of file llmenugl.cpp.
References LLMenuGL::mJumpKeys, LLMenuGL::setKeyboardMode(), and TRUE.
void LLMenuBarGL::arrange | ( | void | ) | [virtual] |
Reimplemented from LLMenuGL.
Definition at line 3973 of file llmenugl.cpp.
References LLMenuItemGL::buildDrawLabel(), LLRectBase< Type >::getHeight(), LLMenuItemGL::getNominalWidth(), LLView::getRect(), LLView::getVisible(), LLMenuGL::mItems, LLRectBase< Type >::mLeft, LLRectBase< Type >::mRight, LLView::reshape(), and LLView::setRect().
Referenced by init_menus(), LLFloaterTools::onClose(), LLFloaterTools::onOpen(), and show_debug_menus().
void LLMenuBarGL::draw | ( | void | ) | [virtual] |
Reimplemented from LLMenuGL.
Definition at line 3924 of file llmenugl.cpp.
References checkMenuTrigger(), LLMenuGL::clearHoverItem(), LLMenuGL::draw(), LLMenuGL::getHighlightedItem(), LLMenuItemGL::getHover(), LLMenuGL::getKeyboardMode(), and LLMenuItemGL::isOpen().
BOOL LLMenuBarGL::jumpKeysActive | ( | ) | [virtual] |
Reimplemented from LLMenuGL.
Definition at line 3965 of file llmenugl.cpp.
References LLMenuGL::getHighlightedItem(), LLMenuGL::getKeyboardMode(), and LLMenuGL::jumpKeysActive().
Reimplemented from LLMenuGL.
Definition at line 4014 of file llmenugl.cpp.
References LLMenuGL::append().
Reimplemented from LLMenuGL.
Definition at line 4021 of file llmenugl.cpp.
References LLMenuItemBranchGL::addToAcceleratorList(), LLMenuGL::append(), LLMenuItemGL::getJumpKey(), LLMenuGL::getLabel(), LLView::getName(), llendl, llerrs, mAccelerators, NULL, LLMenuItemGL::setJumpKey(), and TRUE.
Referenced by fromXML(), and init_menus().
Reimplemented from LLMenuGL.
Definition at line 4039 of file llmenugl.cpp.
References FALSE, LLView::getChildList(), LLView::getEnabled(), LLMenuGL::getHighlightedItem(), LLMenuGL::getKeyboardMode(), LLView::getRect(), LLView::getVisible(), LLView::getWindow(), LLView::handleHover(), llabs(), LLRectBase< Type >::mBottom, LLMenuGL::mLastMouseX, LLMenuGL::mLastMouseY, LLRectBase< Type >::mLeft, LLMenuGL::mMouseVelX, LLMenuGL::mMouseVelY, NULL, LLView::pointInView(), S32, LLWindow::setCursor(), LLMenuGL::setKeyboardMode(), TRUE, and UI_CURSOR_ARROW.
S32 LLMenuBarGL::getRightmostMenuEdge | ( | ) |
Definition at line 3994 of file llmenugl.cpp.
References LLMenuGL::mItems.
Referenced by LLStatusBar::refresh().
void LLMenuBarGL::resetMenuTrigger | ( | ) | [inline] |
Definition at line 712 of file llmenugl.h.
References FALSE, and mAltKeyTrigger.
Referenced by LLViewerWindow::handleFocusLost(), LLViewerWindow::handleMouseDown(), LLViewerWindow::handleRightMouseDown(), and LLViewerMenuHolderGL::hideMenus().
void LLMenuBarGL::checkMenuTrigger | ( | ) | [private] |
Definition at line 3941 of file llmenugl.cpp.
References LLMenuGL::clearHoverItem(), FALSE, LLControlGroup::getF32(), LLMenuGL::getHighlightedItem(), LLKeyboard::getKeyDown(), LLKeyboard::getKeyElapsedFrameCount(), LLKeyboard::getKeyElapsedTime(), gKeyboard, LLMenuGL::highlightNextItem(), KEY_ALT, mAltKeyTrigger, NULL, LLUI::sConfigGroup, LLMenuGL::setKeyboardMode(), and TRUE.
Referenced by draw(), and handleKeyHere().
std::list<LLKeyBinding*> LLMenuBarGL::mAccelerators [private] |
BOOL LLMenuBarGL::mAltKeyTrigger [private] |
Definition at line 718 of file llmenugl.h.
Referenced by checkMenuTrigger(), handleAcceleratorKey(), handleKeyHere(), LLMenuBarGL(), and resetMenuTrigger().