LLMenuBarGL Class Reference

#include <llmenugl.h>

Inheritance diagram for LLMenuBarGL:

Inheritance graph
[legend]
Collaboration diagram for LLMenuBarGL:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 LLMenuBarGL (const LLString &name)
virtual ~LLMenuBarGL ()
virtual LLXMLNodePtr getXML (bool save_children=true) const
virtual EWidgetType getWidgetType () const
virtual LLString getWidgetTag () const
virtual BOOL handleAcceleratorKey (KEY key, MASK mask)
virtual BOOL handleKeyHere (KEY key, MASK mask, BOOL called_from_parent)
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 LLViewfromXML (LLXMLNodePtr node, LLView *parent, LLUICtrlFactory *factory)

Protected Member Functions

void checkMenuTrigger ()

Protected Attributes

std::list< LLKeyBinding * > mAccelerators
BOOL mAltKeyTrigger

Detailed Description

Definition at line 712 of file llmenugl.h.


Constructor & Destructor Documentation

LLMenuBarGL::LLMenuBarGL ( const LLString name  ) 

============================================================================ Class LLMenuBarGL ============================================================================

Definition at line 4016 of file llmenugl.cpp.

References FALSE, mAltKeyTrigger, LLMenuGL::mHorizontalLayout, LLMenuGL::mKeepFixedSize, LLMenuGL::setCanTearOff(), and TRUE.

Referenced by fromXML().

LLMenuBarGL::~LLMenuBarGL (  )  [virtual]

Definition at line 4025 of file llmenugl.cpp.

References mAccelerators.


Member Function Documentation

BOOL LLMenuBarGL::appendMenu ( LLMenuGL menu  )  [virtual]

Reimplemented from LLMenuGL.

Definition at line 4294 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().

BOOL LLMenuBarGL::appendSeparator ( const LLString separator_name = "separator"  )  [virtual]

Reimplemented from LLMenuGL.

Definition at line 4287 of file llmenugl.cpp.

References LLMenuGL::append().

void LLMenuBarGL::arrange ( void   )  [virtual]

Reimplemented from LLMenuGL.

Definition at line 4246 of file llmenugl.cpp.

References LLRectBase< Type >::getHeight(), LLMenuGL::mItems, LLView::mRect, and LLView::reshape().

void LLMenuBarGL::checkMenuTrigger (  )  [protected]

Definition at line 4214 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().

void LLMenuBarGL::draw (  )  [virtual]

Reimplemented from LLMenuGL.

Definition at line 4197 of file llmenugl.cpp.

References checkMenuTrigger(), LLMenuGL::clearHoverItem(), LLMenuGL::draw(), LLMenuGL::getHighlightedItem(), LLMenuItemGL::getHover(), LLMenuGL::getKeyboardMode(), and LLMenuItemGL::isOpen().

LLView * LLMenuBarGL::fromXML ( LLXMLNodePtr  node,
LLView parent,
LLUICtrlFactory factory 
) [static]

Reimplemented from LLMenuGL.

Definition at line 4059 of file llmenugl.cpp.

References appendMenu(), LLMenuGL::createJumpKeys(), LLView::createRect(), FALSE, LLMenuGL::fromXML(), LLUICtrlFactory::getAttributeColor(), LLView::getRequiredRect(), LLView::getWidgetType(), LLUICtrl::initFromXML(), LLMenuBarGL(), LLPointer< Type >::notNull(), NULL, LLViewHandle::sDeadHandle, LLMenuGL::setBackgroundColor(), LLMenuGL::setBackgroundVisible(), LLMenuGL::setDropShadowed(), LLView::setRect(), LLMenuGL::sMenuContainer, TRUE, and WIDGET_TYPE_FLOATER.

Referenced by LLUICtrlFactory::buildMenu().

S32 LLMenuBarGL::getRightmostMenuEdge (  ) 

Definition at line 4267 of file llmenugl.cpp.

References LLMenuGL::mItems.

Referenced by LLStatusBar::refresh().

virtual LLString LLMenuBarGL::getWidgetTag (  )  const [inline, virtual]

Reimplemented from LLMenuGL.

Definition at line 725 of file llmenugl.h.

References LL_MENU_BAR_GL_TAG.

virtual EWidgetType LLMenuBarGL::getWidgetType (  )  const [inline, virtual]

Reimplemented from LLMenuGL.

Definition at line 724 of file llmenugl.h.

References WIDGET_TYPE_MENU_BAR.

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

Reimplemented from LLMenuGL.

Definition at line 4032 of file llmenugl.cpp.

References LLMenuItemBranchGL::getBranch(), LLView::getParent(), LLMenuGL::getXML(), LLMenuGL::mItems, NULL, and LLMenuGL::updateParent().

Referenced by handle_export_menus_to_xml().

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

Reimplemented from LLMenuGL.

Definition at line 4132 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().

BOOL LLMenuBarGL::handleHover ( S32  x,
S32  y,
MASK  mask 
) [virtual]

Reimplemented from LLMenuGL.

Definition at line 4312 of file llmenugl.cpp.

References FALSE, LLView::getChildList(), LLMenuGL::getHighlightedItem(), LLMenuGL::getKeyboardMode(), LLView::getWindow(), LLMenuGL::isOpen(), llabs(), LLMenuGL::mLastMouseX, LLMenuGL::mLastMouseY, LLMenuGL::mMouseVelX, LLMenuGL::mMouseVelY, NULL, S32, LLWindow::setCursor(), LLMenuGL::setKeyboardMode(), TRUE, and UI_CURSOR_ARROW.

BOOL LLMenuBarGL::handleJumpKey ( KEY  key  )  [virtual]

Reimplemented from LLMenuGL.

Definition at line 4181 of file llmenugl.cpp.

References LLMenuGL::mJumpKeys, LLMenuGL::setKeyboardMode(), and TRUE.

BOOL LLMenuBarGL::handleKeyHere ( KEY  key,
MASK  mask,
BOOL  called_from_parent 
) [virtual]

Reimplemented from LLView.

Definition at line 4164 of file llmenugl.cpp.

References checkMenuTrigger(), FALSE, LLControlGroup::getBOOL(), LLKeyboard::getKeyRepeated(), gKeyboard, LLView::handleKeyHere(), KEY_ALT, mAltKeyTrigger, LLUI::sConfigGroup, and TRUE.

BOOL LLMenuBarGL::jumpKeysActive (  )  [virtual]

Reimplemented from LLMenuGL.

Definition at line 4238 of file llmenugl.cpp.

References LLMenuGL::getHighlightedItem(), LLMenuGL::getKeyboardMode(), and LLMenuGL::jumpKeysActive().

void LLMenuBarGL::resetMenuTrigger (  )  [inline]

Definition at line 749 of file llmenugl.h.

References FALSE, and mAltKeyTrigger.

Referenced by LLViewerWindow::handleFocusLost(), LLViewerWindow::handleMouseDown(), LLViewerWindow::handleRightMouseDown(), and LLViewerMenuHolderGL::hideMenus().


Member Data Documentation

std::list<LLKeyBinding*> LLMenuBarGL::mAccelerators [protected]

Definition at line 715 of file llmenugl.h.

Referenced by appendMenu(), and ~LLMenuBarGL().

BOOL LLMenuBarGL::mAltKeyTrigger [protected]

Definition at line 716 of file llmenugl.h.

Referenced by checkMenuTrigger(), handleAcceleratorKey(), handleKeyHere(), LLMenuBarGL(), and resetMenuTrigger().


The documentation for this class was generated from the following files:
Generated on Thu Jul 1 06:11:30 2010 for Second Life Viewer by  doxygen 1.4.7