LLMenuGL Class Reference

#include <llmenugl.h>

Inheritance diagram for LLMenuGL:

Inheritance graph
[legend]
Collaboration diagram for LLMenuGL:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 LLMenuGL (const LLString &name, const LLString &label, LLViewHandle parent_floater=LLViewHandle::sDeadHandle)
 LLMenuGL (const LLString &label, LLViewHandle parent_floater=LLViewHandle::sDeadHandle)
virtual ~LLMenuGL (void)
virtual LLXMLNodePtr getXML (bool save_children=true) const
void parseChildXML (LLXMLNodePtr child, LLView *parent, LLUICtrlFactory *factory)
virtual EWidgetType getWidgetType () const
virtual LLString getWidgetTag () const
virtual BOOL handleKey (KEY key, MASK mask, BOOL called_from_parent)
virtual BOOL handleUnicodeCharHere (llwchar uni_char, BOOL called_from_parent)
virtual BOOL handleHover (S32 x, S32 y, MASK mask)
virtual void draw (void)
virtual void drawBackground (LLMenuItemGL *itemp, LLColor4 &color)
virtual void setVisible (BOOL visible)
virtual BOOL handleAcceleratorKey (KEY key, MASK mask)
LLMenuGLgetChildMenuByName (const LLString &name, BOOL recurse) const
BOOL clearHoverItem ()
const LLStringgetLabel (void) const
void setLabel (const LLStringExplicit &label)
void setBackgroundColor (const LLColor4 &color)
LLColor4 getBackgroundColor ()
void setBackgroundVisible (BOOL b)
void setCanTearOff (BOOL tear_off, LLViewHandle parent_floater_handle=LLViewHandle::sDeadHandle)
virtual BOOL append (LLMenuItemGL *item)
virtual BOOL appendSeparator (const LLString &separator_name="separator")
virtual BOOL appendMenu (LLMenuGL *menu)
virtual void updateParent (LLView *parentp)
void setItemEnabled (const LLString &name, BOOL enable)
void setEnabledSubMenus (BOOL enable)
void setItemVisible (const LLString &name, BOOL visible)
void setLeftAndBottom (S32 left, S32 bottom)
virtual BOOL handleJumpKey (KEY key)
virtual BOOL jumpKeysActive ()
virtual BOOL isOpen ()
virtual void arrange (void)
void empty (void)
void setItemLastSelected (LLMenuItemGL *item)
U32 getItemCount ()
LLMenuItemGLgetItem (S32 number)
LLMenuItemGLgetHighlightedItem ()
LLMenuItemGLhighlightNextItem (LLMenuItemGL *cur_item, BOOL skip_disabled=TRUE)
LLMenuItemGLhighlightPrevItem (LLMenuItemGL *cur_item, BOOL skip_disabled=TRUE)
void buildDrawLabels ()
void createJumpKeys ()
void setDropShadowed (const BOOL shadowed)
void setParentMenuItem (LLMenuItemGL *parent_menu_item)
LLMenuItemGLgetParentMenuItem ()
void setTornOff (BOOL torn_off)
BOOL getTornOff ()
BOOL getCanTearOff ()
KEY getJumpKey ()
void setJumpKey (KEY key)

Static Public Member Functions

static LLViewfromXML (LLXMLNodePtr node, LLView *parent, LLUICtrlFactory *factory)
static void setDefaultBackgroundColor (const LLColor4 &color)
static void showPopup (LLMenuGL *menu)
static void showPopup (LLView *spawning_view, LLMenuGL *menu, S32 x, S32 y)
static void setKeyboardMode (BOOL mode)
static BOOL getKeyboardMode ()
static void onFocusLost (LLView *old_focus)

Static Public Attributes

static LLMenuHolderGLsMenuContainer = NULL

Protected Types

typedef std::list< LLMenuItemGL * > item_list_t
typedef std::map< KEY, LLMenuItemGL * > navigation_key_map_t

Protected Member Functions

void createSpilloverBranch ()
void cleanupSpilloverBranch ()

Protected Attributes

LLColor4 mBackgroundColor
BOOL mBgVisible
item_list_t mItems
navigation_key_map_t mJumpKeys
LLMenuItemGLmParentMenuItem
LLUIString mLabel
BOOL mDropShadowed
BOOL mHorizontalLayout
BOOL mKeepFixedSize
BOOL mHasSelection
LLFrameTimer mFadeTimer
S32 mLastMouseX
S32 mLastMouseY
S32 mMouseVelX
S32 mMouseVelY
BOOL mTornOff
LLMenuItemTearOffGLmTearOffItem
LLMenuItemBranchGLmSpilloverBranch
LLMenuGLmSpilloverMenu
LLViewHandle mParentFloaterHandle
KEY mJumpKey

Static Protected Attributes

static LLColor4 sDefaultBackgroundColor
static BOOL sKeyboardMode = FALSE

Detailed Description

Definition at line 415 of file llmenugl.h.


Member Typedef Documentation

typedef std::list< LLMenuItemGL* > LLMenuGL::item_list_t [protected]

Definition at line 547 of file llmenugl.h.

typedef std::map<KEY, LLMenuItemGL*> LLMenuGL::navigation_key_map_t [protected]

Definition at line 549 of file llmenugl.h.


Constructor & Destructor Documentation

LLMenuGL::LLMenuGL ( const LLString name,
const LLString label,
LLViewHandle  parent_floater_handle = LLViewHandle::sDeadHandle 
)

============================================================================ Class LLMenuGL ============================================================================

Definition at line 1823 of file llmenugl.cpp.

References FALSE, mFadeTimer, setCanTearOff(), LLUICtrl::setTabStop(), LLFrameTimer::stop(), and TRUE.

Referenced by createSpilloverBranch(), and fromXML().

LLMenuGL::LLMenuGL ( const LLString label,
LLViewHandle  parent_floater = LLViewHandle::sDeadHandle 
)

Definition at line 1848 of file llmenugl.cpp.

References FALSE, mFadeTimer, setCanTearOff(), LLUICtrl::setTabStop(), LLFrameTimer::stop(), and TRUE.

LLMenuGL::~LLMenuGL ( void   )  [virtual]

Definition at line 1874 of file llmenugl.cpp.

References mJumpKeys, and mSpilloverBranch.


Member Function Documentation

BOOL LLMenuGL::append ( LLMenuItemGL item  )  [virtual]

Reimplemented in LLPieMenu.

Definition at line 2655 of file llmenugl.cpp.

References LLView::addChild(), arrange(), mItems, and TRUE.

Referenced by LLPieMenu::append(), LLMenuBarGL::appendMenu(), appendMenu(), LLMenuBarGL::appendSeparator(), appendSeparator(), arrange(), LLVOAvatar::buildCharacter(), LLObjectBridge::buildContextMenu(), init_client_menu(), init_debug_avatar_menu(), init_debug_baked_texture_menu(), init_debug_rendering_menu(), init_debug_ui_menu(), init_debug_world_menu(), init_debug_xui_menu(), init_landmark_menu(), init_server_menu(), LLNetMap::LLNetMap(), and parseChildXML().

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

Reimplemented in LLMenuBarGL.

Definition at line 2671 of file llmenugl.cpp.

References append(), getJumpKey(), getLabel(), LLView::getName(), llendl, llerrs, mBackgroundColor, NULL, setBackgroundColor(), LLMenuItemGL::setJumpKey(), and TRUE.

Referenced by init_client_menu(), init_debug_avatar_menu(), init_debug_rendering_menu(), init_server_menu(), and parseChildXML().

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

Reimplemented in LLPieMenu, and LLMenuBarGL.

Definition at line 2664 of file llmenugl.cpp.

References append().

Referenced by LLVOAvatar::buildCharacter(), init_client_menu(), init_debug_rendering_menu(), init_debug_ui_menu(), init_landmark_menu(), init_server_menu(), LLNetMap::LLNetMap(), and parseChildXML().

void LLMenuGL::arrange ( void   )  [virtual]

Reimplemented in LLPieMenu, and LLMenuBarGL.

Definition at line 2338 of file llmenugl.cpp.

References LLView::addChild(), append(), cleanupSpilloverBranch(), createSpilloverBranch(), LLRectBase< Type >::getHeight(), LLMenuItemGL::getNominalHeight(), LLMenuItemGL::getNominalWidth(), getTornOff(), LLRectBase< Type >::getWidth(), LLFontGL::getWidth(), height, llmax(), llmin(), llround(), LLRectBase< Type >::mBottom, MENU_ITEM_PADDING, mHorizontalLayout, mItems, mKeepFixedSize, LLRectBase< Type >::mLeft, LLView::mRect, LLRectBase< Type >::mRight, mSpilloverBranch, mSpilloverMenu, LLRectBase< Type >::mTop, PLAIN_PAD_PIXELS, LLView::removeChild(), LLView::reshape(), S32, S32_MAX, sMenuContainer, LLFontGL::sSansSerif, and width.

Referenced by append(), LLMenuItemTearOffGL::doIt(), LLTearOffMenu::draw(), LLViewerTextEditor::handleRightMouseDown(), LLFolderView::handleRightMouseDown(), LLMenuItemBranchDownGL::openMenu(), LLMenuItemBranchGL::openMenu(), setCanTearOff(), and setLeftAndBottom().

void LLMenuGL::buildDrawLabels (  ) 

Definition at line 2927 of file llmenugl.cpp.

References mItems.

Referenced by LLWornItemFetchedObserver::done(), and LLNetMap::handleRightMouseDown().

void LLMenuGL::cleanupSpilloverBranch (  )  [protected]

Definition at line 2484 of file llmenugl.cpp.

References LLView::addChild(), cleanupSpilloverBranch(), getItem(), getItemCount(), LLView::getParent(), mItems, mSpilloverBranch, mSpilloverMenu, NULL, and LLView::removeChild().

Referenced by arrange(), cleanupSpilloverBranch(), and empty().

BOOL LLMenuGL::clearHoverItem (  ) 

Definition at line 3146 of file llmenugl.cpp.

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

Referenced by LLMenuBarGL::checkMenuTrigger(), LLMenuBarGL::draw(), LLMenuBarGL::handleAcceleratorKey(), LLMenuItemBranchGL::handleKeyHere(), LLViewerMenuHolderGL::hideMenus(), LLTearOffMenu::onClose(), LLTearOffMenu::onFocusLost(), LLMenuItemBranchDownGL::setHighlight(), LLMenuItemBranchGL::setHighlight(), LLMenuItemGL::setHighlight(), setVisible(), and LLTearOffMenu::translate().

void LLMenuGL::createJumpKeys (  ) 

Definition at line 2515 of file llmenugl.cpp.

References FALSE, i, LLStringOps::isDigit(), LLStringOps::isUpper(), KEY_NONE, mItems, mJumpKeys, S32, LLStringBase< char >::toUpper(), and TRUE.

Referenced by LLMenuBarGL::fromXML(), fromXML(), init_client_menu(), init_debug_avatar_menu(), init_debug_baked_texture_menu(), init_debug_rendering_menu(), init_debug_ui_menu(), init_debug_world_menu(), init_debug_xui_menu(), init_menus(), and init_server_menu().

void LLMenuGL::createSpilloverBranch (  )  [protected]

Definition at line 2465 of file llmenugl.cpp.

References FALSE, LLFontGL::ITALIC, LLMenuGL(), mBackgroundColor, mParentFloaterHandle, mSpilloverBranch, mSpilloverMenu, setBackgroundColor(), setCanTearOff(), LLMenuItemGL::setFontStyle(), sMenuContainer, and updateParent().

Referenced by arrange().

void LLMenuGL::draw ( void   )  [virtual]

Reimplemented from LLView.

Reimplemented in LLPieMenu, and LLMenuBarGL.

Definition at line 3079 of file llmenugl.cpp.

References LLView::draw(), LLControlGroup::getColor(), LLRectBase< Type >::getHeight(), LLControlGroup::getS32(), LLRectBase< Type >::getWidth(), gl_drop_shadow(), gl_rect_2d(), mBackgroundColor, mBgVisible, mDropShadowed, LLView::mRect, mTornOff, LLUI::sColorsGroup, and LLUI::sConfigGroup.

Referenced by LLMenuBarGL::draw().

void LLMenuGL::drawBackground ( LLMenuItemGL itemp,
LLColor4 color 
) [virtual]

Reimplemented in LLPieMenu.

Definition at line 3097 of file llmenugl.cpp.

References LLRectBase< Type >::getHeight(), LLView::getRect(), LLRectBase< Type >::getWidth(), gl_rect_2d(), glColor4fv, and LLColor4::mV.

Referenced by LLMenuHolderGL::draw().

void LLMenuGL::empty ( void   ) 

Definition at line 2612 of file llmenugl.cpp.

References cleanupSpilloverBranch(), LLView::deleteAllChildren(), and mItems.

Referenced by clear_landmark_menu().

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

Reimplemented in LLMenuBarGL.

Definition at line 2251 of file llmenugl.cpp.

References createJumpKeys(), FALSE, LLUICtrlFactory::getAttributeColor(), KEY_NONE, LLMenuGL(), LLPointer< Type >::notNull(), parseChildXML(), S32, setBackgroundColor(), setBackgroundVisible(), setCanTearOff(), setDropShadowed(), and setJumpKey().

Referenced by LLUICtrlFactory::buildMenu(), LLMenuBarGL::fromXML(), and parseChildXML().

LLColor4 LLMenuGL::getBackgroundColor (  ) 

Definition at line 2331 of file llmenugl.cpp.

References mBackgroundColor.

Referenced by LLViewerWindow::initWorldUI().

BOOL LLMenuGL::getCanTearOff (  )  [inline]

Definition at line 525 of file llmenugl.h.

References mTearOffItem, and NULL.

Referenced by LLMenuItemBranchGL::openMenu().

LLMenuGL * LLMenuGL::getChildMenuByName ( const LLString name,
BOOL  recurse 
) const

Definition at line 3127 of file llmenugl.cpp.

References LLView::getChildByName(), LLView::getWidgetType(), llendl, llwarns, LLView::mName, NULL, WIDGET_TYPE_MENU, WIDGET_TYPE_MENU_ITEM_BRANCH, and WIDGET_TYPE_PIE_MENU.

Referenced by LLObjectBridge::buildContextMenu(), and init_menus().

LLMenuItemGL * LLMenuGL::getHighlightedItem (  ) 

Definition at line 2774 of file llmenugl.cpp.

References mItems, and NULL.

Referenced by LLMenuBarGL::checkMenuTrigger(), LLMenuItemBranchGL::doIt(), LLMenuBarGL::draw(), LLMenuBarGL::handleAcceleratorKey(), LLMenuBarGL::handleHover(), LLViewerWindow::handleKey(), LLTearOffMenu::handleKey(), LLMenuItemBranchGL::handleKeyHere(), LLMenuItemBranchGL::isActive(), isOpen(), LLMenuBarGL::jumpKeysActive(), jumpKeysActive(), and LLTearOffMenu::onFocusReceived().

LLMenuItemGL * LLMenuGL::getItem ( S32  number  ) 

Definition at line 2757 of file llmenugl.cpp.

References mItems, NULL, and S32.

Referenced by LLMenuItemBranchGL::addToAcceleratorList(), LLPieMenuBranch::buildDrawLabel(), and cleanupSpilloverBranch().

U32 LLMenuGL::getItemCount (  ) 

Definition at line 2752 of file llmenugl.cpp.

References mItems.

Referenced by LLMenuItemBranchGL::addToAcceleratorList(), LLPieMenuBranch::buildDrawLabel(), and cleanupSpilloverBranch().

KEY LLMenuGL::getJumpKey (  )  [inline]

Definition at line 527 of file llmenugl.h.

References mJumpKey.

Referenced by appendMenu().

static BOOL LLMenuGL::getKeyboardMode (  )  [inline, static]

Definition at line 531 of file llmenugl.h.

References sKeyboardMode.

Referenced by LLMenuItemBranchGL::doIt(), LLMenuBarGL::draw(), LLMenuItemBranchDownGL::draw(), LLMenuItemGL::draw(), LLMenuBarGL::handleHover(), LLViewerWindow::handleKey(), LLMenuItemBranchDownGL::handleKeyHere(), and LLMenuBarGL::jumpKeysActive().

const LLString& LLMenuGL::getLabel ( void   )  const [inline]

Definition at line 446 of file llmenugl.h.

References LLUIString::getString(), and mLabel.

Referenced by LLMenuBarGL::appendMenu(), LLPieMenu::appendMenu(), and appendMenu().

LLMenuItemGL* LLMenuGL::getParentMenuItem (  )  [inline]

Definition at line 520 of file llmenugl.h.

References mParentMenuItem.

Referenced by jumpKeysActive(), and LLTearOffMenu::onFocusReceived().

BOOL LLMenuGL::getTornOff (  )  [inline]

Definition at line 523 of file llmenugl.h.

References mTornOff.

Referenced by arrange(), LLMenuItemBranchDownGL::draw(), LLMenuItemBranchGL::draw(), LLMenuItemBranchGL::handleKeyHere(), highlightNextItem(), highlightPrevItem(), isOpen(), jumpKeysActive(), LLMenuItemBranchGL::onVisibilityChange(), LLMenuItemBranchDownGL::openMenu(), LLMenuItemBranchGL::openMenu(), LLMenuItemBranchDownGL::setHighlight(), and LLMenuItemBranchGL::setHighlight().

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

Implements LLView.

Reimplemented in LLPieMenu, and LLMenuBarGL.

Definition at line 428 of file llmenugl.h.

References LL_MENU_GL_TAG.

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

Implements LLView.

Reimplemented in LLPieMenu, and LLMenuBarGL.

Definition at line 427 of file llmenugl.h.

References WIDGET_TYPE_MENU.

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

Reimplemented from LLUICtrl.

Reimplemented in LLMenuBarGL.

Definition at line 1902 of file llmenugl.cpp.

References LLMenuItemGL::getXML(), LLView::getXML(), mBackgroundColor, mBgVisible, mDropShadowed, mItems, mTearOffItem, LLColor4::mV, NULL, and TRUE.

Referenced by LLMenuBarGL::getXML(), and LLMenuItemBranchGL::getXML().

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

Reimplemented in LLMenuBarGL.

Definition at line 2981 of file llmenugl.cpp.

References FALSE, LLView::mEnabled, mItems, and TRUE.

Referenced by LLMenuBarGL::handleAcceleratorKey(), LLMenuItemBranchDownGL::handleAcceleratorKey(), and LLMenuItemBranchGL::handleAcceleratorKey().

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

Reimplemented from LLView.

Reimplemented in LLPieMenu, and LLMenuBarGL.

Definition at line 3012 of file llmenugl.cpp.

References f, FALSE, LLView::getChildList(), LLView::getWindow(), lerp(), llabs(), llclamp(), llround(), MAX_MOUSE_SLOPE_SUB_MENU, mHasSelection, mLastMouseX, mLastMouseY, mMouseVelX, mMouseVelY, LLVector2::normVec(), S32, LLWindow::setCursor(), setKeyboardMode(), TRUE, and UI_CURSOR_ARROW.

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

Reimplemented in LLMenuBarGL.

Definition at line 2630 of file llmenugl.cpp.

References mJumpKeys, setKeyboardMode(), and TRUE.

Referenced by handleUnicodeCharHere().

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

Reimplemented from LLView.

Definition at line 2951 of file llmenugl.cpp.

References FALSE, LLView::getChildList(), LLView::getName(), LLView::handleKeyHere(), llendl, llinfos, LLView::mEnabled, LLView::sDebugKeys, and TRUE.

Referenced by LLViewerWindow::handleKey(), LLTearOffMenu::handleKey(), and LLMenuItemBranchGL::handleKey().

BOOL LLMenuGL::handleUnicodeCharHere ( llwchar  uni_char,
BOOL  called_from_parent 
) [virtual]

Reimplemented from LLView.

Definition at line 3003 of file llmenugl.cpp.

References FALSE, handleJumpKey(), and jumpKeysActive().

LLMenuItemGL * LLMenuGL::highlightNextItem ( LLMenuItemGL cur_item,
BOOL  skip_disabled = TRUE 
)

Definition at line 2787 of file llmenugl.cpp.

References FALSE, LLView::getParent(), getTornOff(), mItems, mTearOffItem, NULL, SEPARATOR_NAME, LLUICtrl::setFocus(), and TRUE.

Referenced by LLMenuBarGL::checkMenuTrigger(), LLMenuItemBranchGL::doIt(), LLMenuItemTearOffGL::doIt(), LLMenuBarGL::handleAcceleratorKey(), LLMenuItemSeparatorGL::handleHover(), LLTearOffMenu::handleKey(), LLMenuItemBranchDownGL::handleKeyHere(), LLMenuItemBranchGL::handleKeyHere(), LLMenuItemGL::handleKeyHere(), LLTearOffMenu::LLTearOffMenu(), LLTearOffMenu::onFocusReceived(), and LLMenuItemBranchGL::openMenu().

LLMenuItemGL * LLMenuGL::highlightPrevItem ( LLMenuItemGL cur_item,
BOOL  skip_disabled = TRUE 
)

Definition at line 2865 of file llmenugl.cpp.

References LLView::getParent(), getTornOff(), mItems, NULL, SEPARATOR_NAME, LLUICtrl::setFocus(), and TRUE.

Referenced by LLMenuItemSeparatorGL::handleHover(), LLTearOffMenu::handleKey(), LLMenuItemBranchDownGL::handleKeyHere(), and LLMenuItemGL::handleKeyHere().

BOOL LLMenuGL::isOpen (  )  [virtual]

Definition at line 2229 of file llmenugl.cpp.

References getHighlightedItem(), LLView::getParent(), getTornOff(), LLView::getVisible(), LLMenuItemGL::isOpen(), and TRUE.

Referenced by LLMenuBarGL::handleHover(), LLFolderView::handleKeyHere(), and LLMenuItemBranchGL::isOpen().

BOOL LLMenuGL::jumpKeysActive (  )  [virtual]

Reimplemented in LLMenuBarGL.

Definition at line 2208 of file llmenugl.cpp.

References LLView::getEnabled(), getHighlightedItem(), LLView::getParent(), getParentMenuItem(), getTornOff(), LLView::getVisible(), LLUICtrl::hasFocus(), and LLMenuItemGL::isActive().

Referenced by LLMenuItemBranchDownGL::draw(), LLMenuItemGL::draw(), handleUnicodeCharHere(), and LLMenuBarGL::jumpKeysActive().

static void LLMenuGL::onFocusLost ( LLView old_focus  )  [static]

void LLMenuGL::parseChildXML ( LLXMLNodePtr  child,
LLView parent,
LLUICtrlFactory factory 
)

Definition at line 1935 of file llmenugl.cpp.

References LLView::addBoolControl(), LLObservable::addListener(), append(), appendMenu(), appendSeparator(), FALSE, LLView::findControl(), fromXML(), LLView::getListenerByName(), KEY_NONE, LLKeyboard::keyFromString(), LL_MENU_GL_TAG, LL_MENU_ITEM_CALL_GL_TAG, LL_MENU_ITEM_CHECK_GL_TAG, LL_MENU_ITEM_SEPARATOR_GL_TAG, llformat(), mask, MASK_ALT, MASK_CONTROL, MASK_MAC_CONTROL, MASK_SHIFT, LLPointer< Type >::notNull(), NULL, S32, LLMenuItemCallGL::setEnabledControl(), LLMenuItemGL::setLabel(), LLMenuItemCallGL::setVisibleControl(), sMenuContainer, and type.

Referenced by fromXML(), and LLPieMenu::initXML().

void LLMenuGL::setBackgroundColor ( const LLColor4 color  ) 

Definition at line 2326 of file llmenugl.cpp.

References mBackgroundColor.

Referenced by appendMenu(), createSpilloverBranch(), LLMenuBarGL::fromXML(), fromXML(), init_menus(), LLFolderView::LLFolderView(), LLViewerTextEditor::LLViewerTextEditor(), and set_god_level().

void LLMenuGL::setBackgroundVisible ( BOOL  b  )  [inline]

Definition at line 452 of file llmenugl.h.

References mBgVisible.

Referenced by LLTearOffMenu::draw(), LLMenuBarGL::fromXML(), fromXML(), and LLTearOffMenu::onClose().

void LLMenuGL::setCanTearOff ( BOOL  tear_off,
LLViewHandle  parent_floater_handle = LLViewHandle::sDeadHandle 
)

Definition at line 1882 of file llmenugl.cpp.

References LLView::addChildAtEnd(), arrange(), mItems, mTearOffItem, NULL, and LLView::removeChild().

Referenced by createSpilloverBranch(), fromXML(), LLMenuBarGL::LLMenuBarGL(), LLMenuGL(), LLNetMap::LLNetMap(), and LLPieMenu::LLPieMenu().

void LLMenuGL::setDefaultBackgroundColor ( const LLColor4 color  )  [static]

Definition at line 2321 of file llmenugl.cpp.

References sDefaultBackgroundColor.

Referenced by pre_init_menus().

void LLMenuGL::setDropShadowed ( const BOOL  shadowed  ) 

Definition at line 2742 of file llmenugl.cpp.

References mDropShadowed.

Referenced by LLMenuBarGL::fromXML(), fromXML(), LLTearOffMenu::LLTearOffMenu(), and LLTearOffMenu::onClose().

void LLMenuGL::setEnabledSubMenus ( BOOL  enable  ) 

Definition at line 2691 of file llmenugl.cpp.

References mItems, and LLView::setEnabled().

Referenced by LLMenuItemBranchGL::setEnabledSubMenus().

void LLMenuGL::setItemEnabled ( const LLString name,
BOOL  enable 
)

Definition at line 2703 of file llmenugl.cpp.

References mItems.

Referenced by LLSelectMgr::processObjectProperties(), and show_debug_menus().

void LLMenuGL::setItemLastSelected ( LLMenuItemGL item  ) 

Definition at line 2730 of file llmenugl.cpp.

References LLMenuItemGL::buildDrawLabel(), LLView::getVisible(), and LLMenuHolderGL::setActivatedItem().

Referenced by LLMenuItemToggleGL::doIt(), and LLMenuItemCallGL::doIt().

void LLMenuGL::setItemVisible ( const LLString name,
BOOL  visible 
)

Definition at line 2717 of file llmenugl.cpp.

References mItems.

Referenced by show_debug_menus().

void LLMenuGL::setJumpKey ( KEY  key  )  [inline]

Definition at line 528 of file llmenugl.h.

References mJumpKey.

Referenced by fromXML().

static void LLMenuGL::setKeyboardMode ( BOOL  mode  )  [inline, static]

Definition at line 530 of file llmenugl.h.

References sKeyboardMode.

Referenced by LLMenuBarGL::checkMenuTrigger(), LLMenuBarGL::handleAcceleratorKey(), LLMenuBarGL::handleHover(), handleHover(), LLMenuBarGL::handleJumpKey(), handleJumpKey(), LLMenuItemBranchDownGL::handleKeyHere(), LLMenuItemBranchGL::handleKeyHere(), LLMenuItemGL::handleKeyHere(), LLMenuItemBranchDownGL::handleMouseDown(), LLMenuItemGL::handleMouseDown(), LLMenuItemBranchGL::handleMouseUp(), LLMenuItemGL::handleMouseUp(), and LLMenuHolderGL::hideMenus().

void LLMenuGL::setLabel ( const LLStringExplicit label  )  [inline]

Definition at line 447 of file llmenugl.h.

References mLabel.

void LLMenuGL::setLeftAndBottom ( S32  left,
S32  bottom 
)

Definition at line 2623 of file llmenugl.cpp.

References arrange(), LLRectBase< Type >::mBottom, LLRectBase< Type >::mLeft, and LLView::mRect.

void LLMenuGL::setParentMenuItem ( LLMenuItemGL parent_menu_item  )  [inline]

Definition at line 519 of file llmenugl.h.

References mParentMenuItem.

Referenced by LLMenuItemBranchGL::LLMenuItemBranchGL(), and LLPieMenuBranch::LLPieMenuBranch().

void LLMenuGL::setTornOff ( BOOL  torn_off  ) 

Definition at line 2747 of file llmenugl.cpp.

References mTornOff.

Referenced by LLTearOffMenu::LLTearOffMenu(), and LLTearOffMenu::onClose().

void LLMenuGL::setVisible ( BOOL  visible  )  [virtual]

Reimplemented from LLView.

Reimplemented in LLPieMenu.

Definition at line 3104 of file llmenugl.cpp.

References clearHoverItem(), FALSE, LLView::getVisible(), mFadeTimer, mHasSelection, mLastMouseX, mLastMouseY, LLView::setVisible(), LLFrameTimer::start(), and LLFrameTimer::stop().

Referenced by LLAgent::endAnimationUpdateUI(), LLViewerTextEditor::handleRightMouseDown(), LLFolderView::handleRightMouseDown(), init_menus(), LLFolderView::LLFolderView(), LLMenuItemBranchGL::LLMenuItemBranchGL(), LLNetMap::LLNetMap(), LLPieMenu::LLPieMenu(), LLTearOffMenu::LLTearOffMenu(), LLTearOffMenu::onClose(), LLMenuItemBranchGL::onVisibilityChange(), LLMenuItemBranchDownGL::openMenu(), LLMenuItemBranchGL::openMenu(), LLMenuItemBranchDownGL::setHighlight(), LLMenuItemBranchGL::setHighlight(), LLViewerWindow::setNormalControlsVisible(), and showPopup().

void LLMenuGL::showPopup ( LLView spawning_view,
LLMenuGL menu,
S32  x,
S32  y 
) [static]

Definition at line 3167 of file llmenugl.cpp.

References bottom, LLRectBase< Type >::getHeight(), LLMenuHolderGL::getMenuRect(), LLView::getParent(), LLView::getRect(), LLRectBase< Type >::getWidth(), HPAD, left, LLView::localPointToOtherView(), LLRectBase< Type >::mBottom, LLRectBase< Type >::mLeft, LLRectBase< Type >::mRight, S32, LLRectBase< Type >::setLeftTopAndSize(), LLView::setRect(), setVisible(), sMenuContainer, top, LLView::translate(), and TRUE.

static void LLMenuGL::showPopup ( LLMenuGL menu  )  [static]

Referenced by LLViewerTextEditor::handleRightMouseDown(), LLNetMap::handleRightMouseDown(), and LLFolderView::handleRightMouseDown().

void LLMenuGL::updateParent ( LLView parentp  )  [virtual]

Definition at line 2936 of file llmenugl.cpp.

References LLView::addChild(), LLView::getParent(), mItems, and LLView::removeChild().

Referenced by createSpilloverBranch(), LLMenuBarGL::getXML(), LLViewerTextEditor::handleRightMouseDown(), LLNetMap::handleRightMouseDown(), LLFolderView::handleRightMouseDown(), init_menus(), and LLMenuItemBranchGL::updateBranchParent().


Member Data Documentation

LLColor4 LLMenuGL::mBackgroundColor [protected]

Definition at line 545 of file llmenugl.h.

Referenced by appendMenu(), createSpilloverBranch(), draw(), getBackgroundColor(), getXML(), and setBackgroundColor().

BOOL LLMenuGL::mBgVisible [protected]

Definition at line 546 of file llmenugl.h.

Referenced by draw(), getXML(), and setBackgroundVisible().

BOOL LLMenuGL::mDropShadowed [protected]

Definition at line 553 of file llmenugl.h.

Referenced by draw(), getXML(), and setDropShadowed().

LLFrameTimer LLMenuGL::mFadeTimer [protected]

Definition at line 557 of file llmenugl.h.

Referenced by LLMenuGL(), and setVisible().

BOOL LLMenuGL::mHasSelection [protected]

Definition at line 556 of file llmenugl.h.

Referenced by handleHover(), and setVisible().

BOOL LLMenuGL::mHorizontalLayout [protected]

Definition at line 554 of file llmenugl.h.

Referenced by arrange(), and LLMenuBarGL::LLMenuBarGL().

item_list_t LLMenuGL::mItems [protected]

Definition at line 548 of file llmenugl.h.

Referenced by append(), LLMenuBarGL::arrange(), LLPieMenu::arrange(), arrange(), buildDrawLabels(), cleanupSpilloverBranch(), createJumpKeys(), LLPieMenu::draw(), LLPieMenu::drawBackground(), empty(), getHighlightedItem(), getItem(), getItemCount(), LLMenuBarGL::getRightmostMenuEdge(), LLMenuBarGL::getXML(), getXML(), handleAcceleratorKey(), highlightNextItem(), highlightPrevItem(), LLPieMenu::pieItemFromXY(), setCanTearOff(), setEnabledSubMenus(), setItemEnabled(), setItemVisible(), and updateParent().

KEY LLMenuGL::mJumpKey [protected]

Definition at line 567 of file llmenugl.h.

Referenced by getJumpKey(), and setJumpKey().

navigation_key_map_t LLMenuGL::mJumpKeys [protected]

Definition at line 550 of file llmenugl.h.

Referenced by createJumpKeys(), LLMenuBarGL::handleJumpKey(), handleJumpKey(), and ~LLMenuGL().

BOOL LLMenuGL::mKeepFixedSize [protected]

Definition at line 555 of file llmenugl.h.

Referenced by arrange(), and LLMenuBarGL::LLMenuBarGL().

LLUIString LLMenuGL::mLabel [protected]

Definition at line 552 of file llmenugl.h.

Referenced by getLabel(), and setLabel().

S32 LLMenuGL::mLastMouseX [protected]

Definition at line 558 of file llmenugl.h.

Referenced by LLMenuBarGL::handleHover(), handleHover(), and setVisible().

S32 LLMenuGL::mLastMouseY [protected]

Definition at line 559 of file llmenugl.h.

Referenced by LLMenuBarGL::handleHover(), handleHover(), and setVisible().

S32 LLMenuGL::mMouseVelX [protected]

Definition at line 560 of file llmenugl.h.

Referenced by LLMenuBarGL::handleHover(), and handleHover().

S32 LLMenuGL::mMouseVelY [protected]

Definition at line 561 of file llmenugl.h.

Referenced by LLMenuBarGL::handleHover(), and handleHover().

LLViewHandle LLMenuGL::mParentFloaterHandle [protected]

Definition at line 566 of file llmenugl.h.

Referenced by createSpilloverBranch().

LLMenuItemGL* LLMenuGL::mParentMenuItem [protected]

Definition at line 551 of file llmenugl.h.

Referenced by getParentMenuItem(), and setParentMenuItem().

LLMenuItemBranchGL* LLMenuGL::mSpilloverBranch [protected]

Definition at line 564 of file llmenugl.h.

Referenced by arrange(), cleanupSpilloverBranch(), createSpilloverBranch(), and ~LLMenuGL().

LLMenuGL* LLMenuGL::mSpilloverMenu [protected]

Definition at line 565 of file llmenugl.h.

Referenced by arrange(), cleanupSpilloverBranch(), and createSpilloverBranch().

LLMenuItemTearOffGL* LLMenuGL::mTearOffItem [protected]

Definition at line 563 of file llmenugl.h.

Referenced by getCanTearOff(), getXML(), highlightNextItem(), and setCanTearOff().

BOOL LLMenuGL::mTornOff [protected]

Definition at line 562 of file llmenugl.h.

Referenced by draw(), getTornOff(), and setTornOff().

LLColor4 LLMenuGL::sDefaultBackgroundColor [static, protected]

Definition at line 542 of file llmenugl.h.

Referenced by setDefaultBackgroundColor().

BOOL LLMenuGL::sKeyboardMode = FALSE [static, protected]

Definition at line 543 of file llmenugl.h.

Referenced by getKeyboardMode(), and setKeyboardMode().

LLMenuHolderGL * LLMenuGL::sMenuContainer = NULL [static]

Definition at line 535 of file llmenugl.h.

Referenced by arrange(), createSpilloverBranch(), LLMenuItemGL::doIt(), LLMenuBarGL::fromXML(), LLFolderView::handleKeyHere(), LLPieMenu::handleMouseUp(), LLViewerTextEditor::handleRightMouseDown(), LLNetMap::handleRightMouseDown(), LLFolderView::handleRightMouseDown(), LLPieMenu::handleRightMouseUp(), init_menus(), LLMenuItemBranchGL::openMenu(), parseChildXML(), LLPieMenu::show(), and showPopup().


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