LLMenuHolderGL Class Reference

#include <llmenugl.h>

Inheritance diagram for LLMenuHolderGL:

Inheritance graph
[legend]
Collaboration diagram for LLMenuHolderGL:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 LLMenuHolderGL ()
 LLMenuHolderGL (const LLString &name, const LLRect &rect, BOOL mouse_opaque, U32 follows=FOLLOWS_NONE)
virtual ~LLMenuHolderGL ()
virtual EWidgetType getWidgetType () const
virtual LLString getWidgetTag () const
virtual BOOL hideMenus ()
void reshape (S32 width, S32 height, BOOL called_from_parent)
void setCanHide (BOOL can_hide)
virtual void draw ()
virtual BOOL handleMouseDown (S32 x, S32 y, MASK mask)
virtual BOOL handleRightMouseDown (S32 x, S32 y, MASK mask)
virtual const LLRect getMenuRect () const
virtual BOOL hasVisibleMenu () const

Static Public Member Functions

static void setActivatedItem (LLMenuItemGL *item)

Protected Attributes

BOOL mCanHide

Static Protected Attributes

static LLViewHandle sItemLastSelectedHandle
static LLFrameTimer sItemActivationTimer

Detailed Description

Definition at line 761 of file llmenugl.h.


Constructor & Destructor Documentation

LLMenuHolderGL::LLMenuHolderGL (  ) 

============================================================================ Class LLMenuHolderGL ============================================================================

Definition at line 4385 of file llmenugl.cpp.

References FALSE, mCanHide, LLView::setMouseOpaque(), sItemActivationTimer, LLFrameTimer::stop(), and TRUE.

LLMenuHolderGL::LLMenuHolderGL ( const LLString name,
const LLRect rect,
BOOL  mouse_opaque,
U32  follows = FOLLOWS_NONE 
)

Definition at line 4393 of file llmenugl.cpp.

References mCanHide, LLView::setMouseOpaque(), sItemActivationTimer, LLFrameTimer::stop(), and TRUE.

LLMenuHolderGL::~LLMenuHolderGL (  )  [virtual]

Definition at line 4401 of file llmenugl.cpp.


Member Function Documentation

void LLMenuHolderGL::draw (  )  [virtual]

Reimplemented from LLPanel.

Definition at line 4415 of file llmenugl.cpp.

References ACTIVATE_HIGHLIGHT_TIME, LLMenuItemGL::buildDrawLabel(), LLMenuItemGL::draw(), LLView::draw(), LLMenuGL::drawBackground(), f, LLFrameTimer::getElapsedTimeF32(), LLView::getLocalRect(), LLMenuItemGL::getMenu(), LLFrameTimer::getStarted(), LLView::getViewByHandle(), lerp(), LLView::localRectToOtherView(), LLRectBase< Type >::mBottom, LLRectBase< Type >::mLeft, LLUI::popMatrix(), LLUI::pushMatrix(), LLMenuItemGL::sHighlightBackground, sItemActivationTimer, sItemLastSelectedHandle, LLUI::translate(), VALPHA, VBLUE, VGREEN, and VRED.

const LLRect LLMenuHolderGL::getMenuRect (  )  const [virtual]

Reimplemented in LLViewerMenuHolderGL.

Definition at line 4489 of file llmenugl.cpp.

References LLView::getLocalRect().

Referenced by LLPieMenu::show(), and LLMenuGL::showPopup().

LLString LLMenuHolderGL::getWidgetTag (  )  const [virtual]

Reimplemented from LLPanel.

Definition at line 4410 of file llmenugl.cpp.

References LL_MENU_HOLDER_GL_TAG.

EWidgetType LLMenuHolderGL::getWidgetType (  )  const [virtual]

Reimplemented from LLPanel.

Definition at line 4405 of file llmenugl.cpp.

References WIDGET_TYPE_MENU_HOLDER.

BOOL LLMenuHolderGL::handleMouseDown ( S32  x,
S32  y,
MASK  mask 
) [virtual]

Reimplemented from LLView.

Definition at line 4445 of file llmenugl.cpp.

References LLView::childrenHandleMouseDown(), hideMenus(), and NULL.

BOOL LLMenuHolderGL::handleRightMouseDown ( S32  x,
S32  y,
MASK  mask 
) [virtual]

Reimplemented from LLView.

Definition at line 4456 of file llmenugl.cpp.

References LLView::childrenHandleRightMouseDown(), hideMenus(), and NULL.

BOOL LLMenuHolderGL::hasVisibleMenu (  )  const [virtual]

Definition at line 4476 of file llmenugl.cpp.

References FALSE, LLView::getChildList(), TRUE, and WIDGET_TYPE_MENU_BAR.

Referenced by hideMenus().

BOOL LLMenuHolderGL::hideMenus (  )  [virtual]

Reimplemented in LLViewerMenuHolderGL.

Definition at line 4494 of file llmenugl.cpp.

References FALSE, LLView::getChildList(), hasVisibleMenu(), mCanHide, LLMenuGL::setKeyboardMode(), and WIDGET_TYPE_MENU_BAR.

Referenced by LLMenuItemGL::doIt(), handleMouseDown(), LLPieMenu::handleMouseUp(), handleRightMouseDown(), LLPieMenu::handleRightMouseUp(), LLViewerMenuHolderGL::hideMenus(), and reshape().

void LLMenuHolderGL::reshape ( S32  width,
S32  height,
BOOL  called_from_parent 
) [virtual]

Reimplemented from LLView.

Definition at line 4467 of file llmenugl.cpp.

References LLRectBase< Type >::getHeight(), LLRectBase< Type >::getWidth(), hideMenus(), LLView::mRect, and LLView::reshape().

void LLMenuHolderGL::setActivatedItem ( LLMenuItemGL item  )  [static]

Definition at line 4523 of file llmenugl.cpp.

References LLView::mViewHandle, sItemActivationTimer, sItemLastSelectedHandle, and LLFrameTimer::start().

Referenced by LLMenuItemBranchDownGL::handleAcceleratorKey(), and LLMenuGL::setItemLastSelected().

void LLMenuHolderGL::setCanHide ( BOOL  can_hide  )  [inline]

Definition at line 773 of file llmenugl.h.

References mCanHide.


Member Data Documentation

BOOL LLMenuHolderGL::mCanHide [protected]

Definition at line 789 of file llmenugl.h.

Referenced by hideMenus(), LLMenuHolderGL(), and setCanHide().

LLFrameTimer LLMenuHolderGL::sItemActivationTimer [static, protected]

Definition at line 787 of file llmenugl.h.

Referenced by draw(), LLMenuHolderGL(), and setActivatedItem().

LLViewHandle LLMenuHolderGL::sItemLastSelectedHandle [static, protected]

Definition at line 786 of file llmenugl.h.

Referenced by draw(), and setActivatedItem().


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