LLMenuItemBranchGL Class Reference

#include <llmenugl.h>

Inheritance diagram for LLMenuItemBranchGL:

Inheritance graph
[legend]
Collaboration diagram for LLMenuItemBranchGL:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 LLMenuItemBranchGL (const LLString &name, const LLString &label, LLMenuGL *branch, KEY key=KEY_NONE, MASK mask=MASK_NONE)
virtual LLXMLNodePtr getXML (bool save_children=true) const
virtual LLViewgetChildByName (const LLString &name, BOOL recurse) const
virtual LLString getType () const
virtual EWidgetType getWidgetType () const
virtual LLString getWidgetTag () const
virtual BOOL handleMouseUp (S32 x, S32 y, MASK mask)
virtual BOOL handleAcceleratorKey (KEY key, MASK mask)
virtual BOOL addToAcceleratorList (std::list< LLKeyBinding * > *listp)
virtual void buildDrawLabel (void)
virtual void doIt (void)
virtual BOOL handleKey (KEY key, MASK mask, BOOL called_from_parent)
virtual BOOL handleUnicodeChar (llwchar uni_char, BOOL called_from_parent)
virtual void setHighlight (BOOL highlight)
virtual BOOL handleKeyHere (KEY key, MASK mask, BOOL called_from_parent)
virtual BOOL isActive () const
virtual BOOL isOpen () const
LLMenuGLgetBranch () const
virtual void updateBranchParent (LLView *parentp)
virtual void onVisibilityChange (BOOL curVisibilityIn)
virtual void draw ()
virtual void setEnabledSubMenus (BOOL enabled)
virtual void openMenu ()

Protected Attributes

LLMenuGLmBranch

Detailed Description

Definition at line 579 of file llmenugl.h.


Constructor & Destructor Documentation

LLMenuItemBranchGL::LLMenuItemBranchGL ( const LLString name,
const LLString label,
LLMenuGL branch,
KEY  key = KEY_NONE,
MASK  mask = MASK_NONE 
)

Definition at line 1202 of file llmenugl.cpp.

References FALSE, mBranch, LLMenuGL::setParentMenuItem(), and LLMenuGL::setVisible().


Member Function Documentation

BOOL LLMenuItemBranchGL::addToAcceleratorList ( std::list< LLKeyBinding * > *  listp  )  [virtual]

Reimplemented from LLMenuItemGL.

Definition at line 1266 of file llmenugl.cpp.

References LLMenuItemGL::addToAcceleratorList(), FALSE, LLMenuGL::getItem(), LLMenuGL::getItemCount(), and mBranch.

Referenced by LLMenuBarGL::appendMenu().

void LLMenuItemBranchGL::buildDrawLabel ( void   )  [virtual]

Reimplemented from LLMenuItemGL.

Reimplemented in LLMenuItemBranchDownGL.

Definition at line 1283 of file llmenugl.cpp.

References LLMenuItemGL::appendAcceleratorString(), BRANCH_SUFFIX, LLUIString::clear(), LLMenuItemGL::mDrawAccelLabel, and LLMenuItemGL::mDrawBranchLabel.

void LLMenuItemBranchGL::doIt ( void   )  [virtual]

Reimplemented from LLMenuItemGL.

Definition at line 1293 of file llmenugl.cpp.

References LLMenuGL::getHighlightedItem(), LLMenuGL::getKeyboardMode(), LLMenuGL::highlightNextItem(), mBranch, NULL, and openMenu().

Referenced by LLMenuItemBranchDownGL::handleKeyHere(), LLMenuItemBranchDownGL::handleMouseDown(), and handleMouseUp().

void LLMenuItemBranchGL::draw (  )  [virtual]

Reimplemented from LLMenuItemGL.

Reimplemented in LLMenuItemBranchDownGL.

Definition at line 1388 of file llmenugl.cpp.

References LLMenuItemGL::draw(), LLMenuGL::getTornOff(), LLView::getVisible(), mBranch, setHighlight(), and TRUE.

LLMenuGL* LLMenuItemBranchGL::getBranch (  )  const [inline]

Definition at line 622 of file llmenugl.h.

References mBranch.

Referenced by LLMenuBarGL::getXML().

LLView * LLMenuItemBranchGL::getChildByName ( const LLString name,
BOOL  recurse 
) const [virtual]

Reimplemented from LLView.

Definition at line 1212 of file llmenugl.cpp.

References LLView::getChildByName(), LLView::getName(), and mBranch.

virtual LLString LLMenuItemBranchGL::getType (  )  const [inline, virtual]

Reimplemented from LLMenuItemGL.

Reimplemented in LLMenuItemBranchDownGL.

Definition at line 591 of file llmenugl.h.

LLString LLMenuItemBranchGL::getWidgetTag (  )  const [virtual]

Reimplemented from LLMenuItemGL.

Reimplemented in LLMenuItemBranchDownGL.

Definition at line 1227 of file llmenugl.cpp.

References LL_MENU_ITEM_BRANCH_GL_TAG.

EWidgetType LLMenuItemBranchGL::getWidgetType (  )  const [virtual]

Reimplemented from LLMenuItemGL.

Reimplemented in LLMenuItemBranchDownGL.

Definition at line 1222 of file llmenugl.cpp.

References WIDGET_TYPE_MENU_ITEM_BRANCH.

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

Reimplemented from LLMenuItemGL.

Definition at line 1253 of file llmenugl.cpp.

References LLMenuItemGL::getXML(), LLMenuGL::getXML(), and mBranch.

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

Reimplemented from LLMenuItemGL.

Reimplemented in LLMenuItemBranchDownGL.

Definition at line 1247 of file llmenugl.cpp.

References LLMenuGL::handleAcceleratorKey(), and mBranch.

BOOL LLMenuItemBranchGL::handleKey ( KEY  key,
MASK  mask,
BOOL  called_from_parent 
) [virtual]

Reimplemented from LLMenuItemGL.

Definition at line 1305 of file llmenugl.cpp.

References FALSE, LLMenuItemGL::handleKey(), LLMenuGL::handleKey(), and mBranch.

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

Reimplemented from LLMenuItemGL.

Reimplemented in LLMenuItemBranchDownGL.

Definition at line 1427 of file llmenugl.cpp.

References LLMenuGL::clearHoverItem(), FALSE, LLView::getEnabled(), LLMenuItemGL::getHighlight(), LLMenuGL::getHighlightedItem(), LLMenuItemGL::getMenu(), LLView::getParent(), LLMenuGL::getTornOff(), LLView::getVisible(), LLMenuItemGL::handleKeyHere(), LLMenuGL::highlightNextItem(), isOpen(), KEY_LEFT, KEY_RIGHT, mBranch, NULL, LLMenuGL::setKeyboardMode(), and TRUE.

BOOL LLMenuItemBranchGL::handleMouseUp ( S32  x,
S32  y,
MASK  mask 
) [virtual]

Reimplemented from LLMenuItemGL.

Reimplemented in LLMenuItemBranchDownGL.

Definition at line 1233 of file llmenugl.cpp.

References doIt(), FALSE, make_ui_sound(), LLView::mEnabled, LLMenuGL::setKeyboardMode(), and TRUE.

BOOL LLMenuItemBranchGL::handleUnicodeChar ( llwchar  uni_char,
BOOL  called_from_parent 
) [virtual]

Reimplemented from LLView.

Definition at line 1321 of file llmenugl.cpp.

References FALSE, LLView::handleUnicodeChar(), mBranch, and TRUE.

BOOL LLMenuItemBranchGL::isActive (  )  const [virtual]

Reimplemented from LLMenuItemGL.

Reimplemented in LLMenuItemBranchDownGL.

Definition at line 1399 of file llmenugl.cpp.

References LLMenuGL::getHighlightedItem(), isOpen(), and mBranch.

BOOL LLMenuItemBranchGL::isOpen (  )  const [virtual]

Reimplemented from LLMenuItemGL.

Definition at line 1404 of file llmenugl.cpp.

References LLMenuGL::isOpen(), and mBranch.

Referenced by handleKeyHere(), LLMenuItemBranchDownGL::isActive(), and isActive().

void LLMenuItemBranchGL::onVisibilityChange ( BOOL  curVisibilityIn  )  [virtual]

Reimplemented from LLView.

Definition at line 1418 of file llmenugl.cpp.

References FALSE, LLMenuGL::getTornOff(), mBranch, LLView::onVisibilityChange(), and LLMenuGL::setVisible().

void LLMenuItemBranchGL::openMenu (  )  [virtual]

Reimplemented in LLMenuItemBranchDownGL.

Definition at line 1464 of file llmenugl.cpp.

References LLMenuGL::arrange(), LLFloaterView::bringToFront(), LLMenuGL::getCanTearOff(), LLRectBase< Type >::getHeight(), LLView::getParent(), LLView::getRect(), LLMenuGL::getTornOff(), LLView::getVisible(), LLRectBase< Type >::getWidth(), gFloaterView, LLMenuGL::highlightNextItem(), left, llmax(), LLView::localPointToOtherView(), LLRectBase< Type >::mBottom, mBranch, LLView::mRect, LLRectBase< Type >::mRight, LLRectBase< Type >::mTop, NULL, S32, LLRectBase< Type >::setLeftTopAndSize(), LLView::setRect(), LLMenuGL::setVisible(), LLMenuGL::sMenuContainer, TEAROFF_SEPARATOR_HEIGHT_PIXELS, top, LLView::translate(), LLRectBase< Type >::translate(), TRUE, x, and y.

Referenced by doIt(), and setHighlight().

void LLMenuItemBranchGL::setEnabledSubMenus ( BOOL  enabled  )  [virtual]

Reimplemented from LLMenuItemGL.

Definition at line 1383 of file llmenugl.cpp.

References mBranch, and LLMenuGL::setEnabledSubMenus().

void LLMenuItemBranchGL::setHighlight ( BOOL  highlight  )  [virtual]

Reimplemented from LLMenuItemGL.

Reimplemented in LLMenuItemBranchDownGL.

Definition at line 1339 of file llmenugl.cpp.

References LLMenuGL::clearHoverItem(), FALSE, LLMenuItemGL::getHighlight(), LLMenuItemGL::getMenu(), LLView::getParent(), LLMenuGL::getTornOff(), LLView::getVisible(), mBranch, LLView::mEnabled, LLMenuItemGL::mHighlight, openMenu(), and LLMenuGL::setVisible().

Referenced by draw().

void LLMenuItemBranchGL::updateBranchParent ( LLView parentp  )  [virtual]

Reimplemented from LLMenuItemGL.

Definition at line 1409 of file llmenugl.cpp.

References LLView::getParent(), mBranch, NULL, and LLMenuGL::updateParent().


Member Data Documentation

LLMenuGL* LLMenuItemBranchGL::mBranch [protected]

Definition at line 582 of file llmenugl.h.

Referenced by addToAcceleratorList(), doIt(), LLMenuItemBranchDownGL::draw(), draw(), getBranch(), getChildByName(), getXML(), LLMenuItemBranchDownGL::handleAcceleratorKey(), handleAcceleratorKey(), handleKey(), LLMenuItemBranchDownGL::handleKeyHere(), handleKeyHere(), handleUnicodeChar(), isActive(), isOpen(), LLMenuItemBranchGL(), onVisibilityChange(), LLMenuItemBranchDownGL::openMenu(), openMenu(), setEnabledSubMenus(), LLMenuItemBranchDownGL::setHighlight(), setHighlight(), and updateBranchParent().


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