#include "linden_common.h"
#include "llmenugl.h"
#include "llmath.h"
#include "llgl.h"
#include "llfocusmgr.h"
#include "llfont.h"
#include "llcoord.h"
#include "llwindow.h"
#include "llcriticaldamp.h"
#include "lluictrlfactory.h"
#include "llfontgl.h"
#include "llresmgr.h"
#include "llui.h"
#include "llglheaders.h"
#include "llstl.h"
#include "v2math.h"
#include <set>
#include <boost/tokenizer.hpp>
Include dependency graph for llmenugl.cpp:
Go to the source code of this file.
Copyright (c) 2001-2007, Linden Research, Inc.
Second Life Viewer Source Code The source code in this file ("Source Code") is provided by Linden Lab to you under the terms of the GNU General Public License, version 2.0 ("GPL"), unless you have obtained a separate licensing agreement ("Other License"), formally executed by you and Linden Lab. Terms of the GPL can be found in doc/GPL-license.txt in this distribution, or online at http://secondlife.com/developers/opensource/gplv2
There are special exceptions to the terms and conditions of the GPL as it is applied to this Source Code. View the full text of the exception in the file doc/FLOSS-exception.txt in this software distribution, or online at http://secondlife.com/developers/opensource/flossexception
By copying, modifying or distributing this software, you acknowledge that you have read and understood your obligations described above, and agree to abide by those obligations.
ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, COMPLETENESS OR PERFORMANCE. $/LicenseInfo$
Definition in file llmenugl.cpp.
const U32 ACCEL_PAD_PIXELS = 10 |
const F32 ACTIVATE_HIGHLIGHT_TIME = 0.3f |
const LLString ARROW_DOWN("vvvvvvv") |
const LLString BOOLEAN_TRUE_PREFIX("X") |
const LLString BRANCH_SUFFIX(">") |
Referenced by LLMenuItemBranchGL::buildDrawLabel().
const U32 BRIEF_PAD_PIXELS = 2 |
Definition at line 96 of file llmenugl.cpp.
Referenced by LLMenuItemGL::draw(), and LLMenuItemGL::getNominalWidth().
const S32 LABEL_BOTTOM_PAD_PIXELS = 2 |
const U32 LEFT_PAD_PIXELS = 3 |
Definition at line 85 of file llmenugl.cpp.
Referenced by LLMenuItemGL::draw(), and LLMenuItemBranchDownGL::getNominalWidth().
const U32 LEFT_PLAIN_PIXELS = LEFT_PAD_PIXELS + LEFT_WIDTH_PIXELS |
const U32 LEFT_WIDTH_PIXELS = 15 |
Definition at line 86 of file llmenugl.cpp.
Referenced by LLMenuItemBranchDownGL::getNominalWidth().
const F32 MAX_MOUSE_SLOPE_SUB_MENU = 0.9f |
S32 MENU_BAR_HEIGHT = 0 |
Definition at line 71 of file llmenugl.cpp.
Referenced by LLViewerMenuHolderGL::getMenuRect(), LLFloaterView::getNewFloaterPosition(), init_menus(), LLViewerWindow::initBase(), LLFloaterView::resetStartingFloaterPosition(), saved_settings_to_globals(), and LLHUDText::updateScreenPos().
S32 MENU_BAR_WIDTH = 0 |
const S32 MENU_ITEM_PADDING = 4 |
Definition at line 100 of file llmenugl.cpp.
Referenced by LLMenuGL::arrange(), LLMenuItemGL::draw(), and LLMenuItemGL::getNominalHeight().
const S32 PIE_CENTER_SIZE = 20 |
Definition at line 124 of file llmenugl.cpp.
Referenced by LLPieMenu::draw(), LLPieMenu::drawBackground(), LLPieMenu::handleRightMouseUp(), LLPieMenu::pieItemFromXY(), and LLPieMenu::pieItemIndexFromXY().
const S32 PIE_GESTURE_ACTIVATE_DISTANCE = 10 |
Definition at line 109 of file llmenugl.cpp.
const F32 PIE_SCALE_FACTOR = 1.7f |
const F32 PIE_SHRINK_TIME = 0.2f |
Definition at line 126 of file llmenugl.cpp.
Referenced by LLPieMenu::draw(), LLPieMenu::handleHover(), and LLPieMenu::handleRightMouseUp().
const U32 PLAIN_PAD_PIXELS = LEFT_PAD_PIXELS + LEFT_WIDTH_PIXELS + RIGHT_PAD_PIXELS + RIGHT_WIDTH_PIXELS |
Definition at line 94 of file llmenugl.cpp.
Referenced by LLMenuGL::arrange(), and LLMenuItemGL::getNominalWidth().
const U32 RIGHT_PAD_PIXELS = 2 |
Definition at line 89 of file llmenugl.cpp.
Referenced by LLMenuItemGL::draw(), and LLMenuItemBranchDownGL::getNominalWidth().
const U32 RIGHT_WIDTH_PIXELS = 15 |
Definition at line 90 of file llmenugl.cpp.
const U32 SEPARATOR_HEIGHT_PIXELS = 8 |
Definition at line 98 of file llmenugl.cpp.
Referenced by LLMenuItemSeparatorGL::getNominalHeight().
const LLString SEPARATOR_LABEL("-----------") |
const LLString SEPARATOR_NAME("separator") |
============================================================================ Local function declarations, constants, enums, and typedefs ============================================================================
Referenced by LLMenuGL::highlightNextItem(), and LLMenuGL::highlightPrevItem().
const S32 TEAROFF_SEPARATOR_HEIGHT_PIXELS = 10 |
Definition at line 99 of file llmenugl.cpp.
Referenced by LLMenuItemTearOffGL::getNominalHeight(), and LLMenuItemBranchGL::openMenu().
const LLString TEAROFF_SEPARATOR_LABEL("~~~~~~~~~~~") |
const LLString VERTICAL_SEPARATOR_LABEL("|") |