#include <llmenugl.h>
Definition at line 622 of file llmenugl.h.
Definition at line 3042 of file llmenugl.cpp.
References FALSE, LLMenuGL::setCanTearOff(), and LLMenuGL::setVisible().
Referenced by initXML().
LLPieMenu::LLPieMenu | ( | const LLString & | name | ) |
Definition at line 3057 of file llmenugl.cpp.
References FALSE, LLMenuGL::setCanTearOff(), and LLMenuGL::setVisible().
virtual LLPieMenu::~LLPieMenu | ( | ) | [inline, virtual] |
Definition at line 628 of file llmenugl.h.
void LLPieMenu::initXML | ( | LLXMLNodePtr | node, | |
LLView * | context, | |||
LLUICtrlFactory * | factory | |||
) |
Definition at line 3073 of file llmenugl.cpp.
References appendPieMenu(), initXML(), LL_PIE_MENU_TAG, LLPieMenu(), LLPointer< Type >::notNull(), and LLMenuGL::parseChildXML().
Referenced by LLUICtrlFactory::buildPieMenu(), and initXML().
void LLPieMenu::setVisible | ( | BOOL | visible | ) | [virtual] |
Reimplemented from LLMenuGL.
Definition at line 3098 of file llmenugl.cpp.
Reimplemented from LLMenuGL.
Definition at line 3106 of file llmenugl.cpp.
References FALSE, LLFrameTimer::getElapsedTimeF32(), LLView::getEnabled(), LLView::getName(), LLFrameTimer::getStarted(), LLView::getWindow(), gFocusMgr, LLView::hasMouseCapture(), lldebugst, llendl, make_ui_sound(), mHoveredAnyItem, mHoverItem, mHoverThisFrame, mRightMouseDown, mShrinkBorderTimer, mUseInfiniteRadius, NULL, PIE_SHRINK_TIME, pieItemFromXY(), pieItemIndexFromXY(), LLView::pointInView(), LLWindow::setCursor(), LLMenuItemGL::setHighlight(), LLFocusMgr::setMouseCapture(), TRUE, and UI_CURSOR_ARROW.
Reimplemented from LLView.
Definition at line 3201 of file llmenugl.cpp.
References FALSE, LLView::getParent(), LLMenuItemGL::handleMouseDown(), mRightMouseDown, and pieItemFromXY().
Reimplemented from LLView.
Definition at line 3223 of file llmenugl.cpp.
References FALSE, LLRectBase< Type >::getCenterX(), LLRectBase< Type >::getCenterY(), LLView::getLocalRect(), gFocusMgr, LLMenuItemGL::handleMouseDown(), mCurRadius, mRightMouseDown, mShrinkBorderTimer, mUseInfiniteRadius, pieItemFromXY(), S32, LLFocusMgr::setMouseCapture(), LLFrameTimer::stop(), and TRUE.
Reimplemented from LLView.
Definition at line 3258 of file llmenugl.cpp.
References FALSE, LLRectBase< Type >::getCenterX(), LLRectBase< Type >::getCenterY(), LLFrameTimer::getElapsedTimeF32(), LLView::getLocalRect(), LLFrameTimer::getStarted(), gFocusMgr, handleMouseUp(), LLMenuHolderGL::hideMenus(), mFirstMouseDown, mHoveredAnyItem, mRightMouseDown, mShrinkBorderTimer, mUseInfiniteRadius, NULL, PIE_CENTER_SIZE, PIE_SHRINK_TIME, S32, LLFocusMgr::setMouseCapture(), LLMenuGL::sMenuContainer, and TRUE.
Reimplemented from LLView.
Definition at line 3285 of file llmenugl.cpp.
References FALSE, LLView::getEnabled(), LLView::getParent(), LLFrameTimer::getStarted(), LLMenuItemGL::handleMouseUp(), hide(), LLMenuHolderGL::hideMenus(), make_ui_sound(), mFirstMouseDown, mRightMouseDown, mShrinkBorderTimer, mUseInfiniteRadius, pieItemFromXY(), LLMenuGL::sMenuContainer, LLFrameTimer::start(), and TRUE.
Referenced by handleRightMouseUp().
void LLPieMenu::draw | ( | void | ) | [virtual] |
Reimplemented from LLMenuGL.
Definition at line 3336 of file llmenugl.cpp.
References clamp_rescale(), LLGLImmediate::color4fv(), LLView::draw(), F_PI, FALSE, LLControlGroup::getColor(), LLFrameTimer::getElapsedTimeF32(), LLControlGroup::getF32(), LLRectBase< Type >::getHeight(), LLView::getRect(), LLFrameTimer::getStarted(), LLRectBase< Type >::getWidth(), gGL, gl_circle_2d(), gl_washer_2d(), gl_washer_segment_2d(), gl_washer_spokes_2d(), i, llmax(), mCurRadius, mHoverItem, mHoverThisFrame, LLMenuGL::mItems, mOuterRingAlpha, mShrinkBorderTimer, mUseInfiniteRadius, LLColor4::mV, NULL, PIE_CENTER_SIZE, PIE_SCALE_FACTOR, PIE_SHRINK_TIME, LLGLImmediate::popMatrix(), LLGLImmediate::pushMatrix(), S32, LLUI::sColorsGroup, LLUI::sConfigGroup, LLMenuItemGL::setHighlight(), LLUI::setLineWidth(), LLGLImmediate::translatef(), and VALPHA.
void LLPieMenu::drawBackground | ( | LLMenuItemGL * | itemp, | |
LLColor4 & | color | |||
) | [virtual] |
Reimplemented from LLMenuGL.
Definition at line 3418 of file llmenugl.cpp.
References LLGLImmediate::color4fv(), F_PI, LLRectBase< Type >::getHeight(), LLView::getRect(), LLRectBase< Type >::getWidth(), gGL, gl_washer_segment_2d(), i, LLRectBase< Type >::mBottom, mCurRadius, LLMenuGL::mItems, LLRectBase< Type >::mLeft, mOuterRingAlpha, LLColor4::mV, PIE_CENTER_SIZE, LLGLImmediate::popMatrix(), LLGLImmediate::pushMatrix(), S32, LLGLImmediate::translatef(), and VALPHA.
BOOL LLPieMenu::append | ( | LLMenuItemGL * | item | ) | [virtual] |
Reimplemented from LLMenuGL.
Definition at line 3453 of file llmenugl.cpp.
References LLMenuGL::append(), LLMenuItemGL::setBriefItem(), LLMenuItemGL::setFont(), LLFontGL::sSansSerifSmall, and TRUE.
Referenced by appendPieMenu(), appendSeparator(), and LLVOAvatar::buildCharacter().
Reimplemented from LLMenuGL.
Definition at line 3461 of file llmenugl.cpp.
References append(), LLMenuItemGL::setFont(), and LLFontGL::sSansSerifSmall.
Referenced by LLVOAvatar::buildCharacter().
Definition at line 3469 of file llmenugl.cpp.
References LLView::addChild(), append(), LLPieMenuBranch::getBranch(), LLMenuGL::getLabel(), LLView::getName(), LLView::getParent(), llendl, llerrs, LLMenuItemGL::setFont(), and LLFontGL::sSansSerifSmall.
Referenced by LLVOAvatar::buildCharacter(), and initXML().
void LLPieMenu::arrange | ( | void | ) | [virtual] |
Reimplemented from LLMenuGL.
Definition at line 3483 of file llmenugl.cpp.
References LLMenuItemGL::buildDrawLabel(), LLMenuItemGL::getNominalWidth(), LLView::getRect(), i, LLRectBase< Type >::mBottom, LLMenuGL::mItems, LLRectBase< Type >::mLeft, S32, LLRectBase< Type >::setCenterAndSize(), LLView::setRect(), and LLRectBase< Type >::translate().
Referenced by dialog_refresh_all(), and show().
Definition at line 3620 of file llmenugl.cpp.
References arrange(), FALSE, LLRectBase< Type >::getHeight(), LLMenuHolderGL::getMenuRect(), LLView::getParent(), LLView::getRect(), LLRectBase< Type >::getWidth(), gFocusMgr, make_ui_sound(), LLRectBase< Type >::mBottom, mFirstMouseDown, mHoveredAnyItem, LLRectBase< Type >::mLeft, LLRectBase< Type >::mRight, mRightMouseDown, mShrinkBorderTimer, LLRectBase< Type >::mTop, mUseInfiniteRadius, LLCoord::mX, LLCoord::mY, S32, LLView::screenPointToLocal(), LLUI::setCursorPositionLocal(), LLFocusMgr::setMouseCapture(), LLView::setVisible(), LLFrameTimer::start(), LLFrameTimer::stop(), LLView::translate(), and TRUE.
Referenced by LLPieMenuBranch::doIt(), and LLToolPie::pickAndShowMenu().
void LLPieMenu::hide | ( | BOOL | item_selected | ) |
Definition at line 3713 of file llmenugl.cpp.
References FALSE, LLView::getVisible(), gFocusMgr, make_ui_sound(), mFirstMouseDown, mHoveredAnyItem, mHoverItem, mRightMouseDown, mUseInfiniteRadius, NULL, LLMenuItemGL::setHighlight(), LLFocusMgr::setMouseCapture(), and LLView::setVisible().
Referenced by LLPieMenuBranch::doIt(), LLObjectDelete::handleEvent(), LLEditDelete::handleEvent(), handleMouseUp(), LLPieMenuBranch::LLPieMenuBranch(), and setVisible().
LLMenuItemGL * LLPieMenu::pieItemFromXY | ( | S32 | x, | |
S32 | y | |||
) | [private] |
Definition at line 3540 of file llmenugl.cpp.
References LLRectBase< Type >::getHeight(), LLView::getRect(), LLRectBase< Type >::getWidth(), llmax(), LLMenuGL::mItems, mRightMouseDown, mUseInfiniteRadius, NULL, PIE_CENTER_SIZE, RAD_TO_DEG, and S32.
Referenced by handleHover(), handleMouseDown(), handleMouseUp(), and handleRightMouseDown().
Definition at line 3593 of file llmenugl.cpp.
References LLRectBase< Type >::getHeight(), LLView::getRect(), LLRectBase< Type >::getWidth(), PIE_CENTER_SIZE, RAD_TO_DEG, and S32.
Referenced by handleHover().
BOOL LLPieMenu::mFirstMouseDown [private] |
Definition at line 664 of file llmenugl.h.
Referenced by handleMouseUp(), handleRightMouseUp(), hide(), and show().
BOOL LLPieMenu::mUseInfiniteRadius [private] |
Definition at line 665 of file llmenugl.h.
Referenced by draw(), handleHover(), handleMouseUp(), handleRightMouseDown(), handleRightMouseUp(), hide(), pieItemFromXY(), and show().
LLMenuItemGL* LLPieMenu::mHoverItem [private] |
BOOL LLPieMenu::mHoverThisFrame [private] |
BOOL LLPieMenu::mHoveredAnyItem [private] |
Definition at line 668 of file llmenugl.h.
Referenced by handleHover(), handleRightMouseUp(), hide(), and show().
LLFrameTimer LLPieMenu::mShrinkBorderTimer [private] |
Definition at line 669 of file llmenugl.h.
Referenced by draw(), handleHover(), handleMouseUp(), handleRightMouseDown(), handleRightMouseUp(), and show().
F32 LLPieMenu::mOuterRingAlpha [private] |
F32 LLPieMenu::mCurRadius [private] |
Definition at line 671 of file llmenugl.h.
Referenced by draw(), drawBackground(), and handleRightMouseDown().
BOOL LLPieMenu::mRightMouseDown [private] |
Definition at line 672 of file llmenugl.h.
Referenced by handleHover(), handleMouseDown(), handleMouseUp(), handleRightMouseDown(), handleRightMouseUp(), hide(), pieItemFromXY(), and show().