llmenugl.cpp File Reference

LLMenuItemGL base class. More...

#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.

Classes

class  LLMenuItemSeparatorGL
class  LLMenuItemVerticalSeparatorGL
class  LLMenuItemBlankGL
class  LLMenuItemBranchDownGL
class  LLPieMenuBranch

Functions

void hide_top_view (LLView *view)

Variables

S32 MENU_BAR_HEIGHT = 0
S32 MENU_BAR_WIDTH = 0
const LLString SEPARATOR_NAME ("separator")
const LLString TEAROFF_SEPARATOR_LABEL ("~~~~~~~~~~~")
const LLString SEPARATOR_LABEL ("-----------")
const LLString VERTICAL_SEPARATOR_LABEL ("|")
const S32 LABEL_BOTTOM_PAD_PIXELS = 2
const U32 LEFT_PAD_PIXELS = 3
const U32 LEFT_WIDTH_PIXELS = 15
const U32 LEFT_PLAIN_PIXELS = LEFT_PAD_PIXELS + LEFT_WIDTH_PIXELS
const U32 RIGHT_PAD_PIXELS = 2
const U32 RIGHT_WIDTH_PIXELS = 15
const U32 RIGHT_PLAIN_PIXELS = RIGHT_PAD_PIXELS + RIGHT_WIDTH_PIXELS
const U32 ACCEL_PAD_PIXELS = 10
const U32 PLAIN_PAD_PIXELS = LEFT_PAD_PIXELS + LEFT_WIDTH_PIXELS + RIGHT_PAD_PIXELS + RIGHT_WIDTH_PIXELS
const U32 BRIEF_PAD_PIXELS = 2
const U32 SEPARATOR_HEIGHT_PIXELS = 8
const S32 TEAROFF_SEPARATOR_HEIGHT_PIXELS = 10
const S32 MENU_ITEM_PADDING = 4
const LLString BOOLEAN_TRUE_PREFIX ("X")
const LLString BRANCH_SUFFIX (">")
const LLString ARROW_UP ("^^^^^^^")
const LLString ARROW_DOWN ("vvvvvvv")
const F32 MAX_MOUSE_SLOPE_SUB_MENU = 0.9f
const S32 PIE_GESTURE_ACTIVATE_DISTANCE = 10
const S32 PIE_CENTER_SIZE = 20
const F32 PIE_SCALE_FACTOR = 1.7f
const F32 PIE_SHRINK_TIME = 0.2f
const F32 ACTIVATE_HIGHLIGHT_TIME = 0.3f


Detailed Description

LLMenuItemGL base class.

LicenseInfo
firstyear=2001&license=viewergpl

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.


Function Documentation

void hide_top_view ( LLView view  ) 

Definition at line 3160 of file llmenugl.cpp.

References FALSE, and LLView::setVisible().


Variable Documentation

const U32 ACCEL_PAD_PIXELS = 10

Definition at line 93 of file llmenugl.cpp.

Referenced by LLMenuItemGL::getNominalWidth().

const F32 ACTIVATE_HIGHLIGHT_TIME = 0.3f

Definition at line 128 of file llmenugl.cpp.

Referenced by LLMenuHolderGL::draw().

const LLString ARROW_DOWN("vvvvvvv")

const LLString ARROW_UP("^^^^^^^")

const LLString BOOLEAN_TRUE_PREFIX("X")

Referenced by LLMenuItemToggleGL::buildDrawLabel(), LLMenuItemCheckGL::buildDrawLabel(), and LLMenuItemCheckGL::handleEvent().

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

Definition at line 83 of file llmenugl.cpp.

Referenced by LLMenuItemBranchDownGL::draw().

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

Definition at line 87 of file llmenugl.cpp.

Referenced by LLMenuItemGL::draw().

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

Definition at line 107 of file llmenugl.cpp.

Referenced by LLMenuGL::handleHover().

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

Definition at line 72 of file llmenugl.cpp.

Referenced by saved_settings_to_globals().

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

Definition at line 125 of file llmenugl.cpp.

Referenced by LLPieMenu::draw().

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_PLAIN_PIXELS = RIGHT_PAD_PIXELS + RIGHT_WIDTH_PIXELS

Definition at line 91 of file llmenugl.cpp.

Referenced by LLMenuItemGL::draw().

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("|")

Referenced by LLMenuItemVerticalSeparatorGL::LLMenuItemVerticalSeparatorGL().


Generated on Thu Jul 1 06:10:33 2010 for Second Life Viewer by  doxygen 1.4.7