llmenugl.cpp File Reference

LLMenuItemGL base class. More...

#include "linden_common.h"
#include "llmenugl.h"
#include "llmath.h"
#include "llgl.h"
#include "llglimmediate.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
static LLRegisterWidget< LLMenuGLr1 ("menu")
static LLRegisterWidget
< LLMenuBarGL
r2 ("menu_bar")


Detailed Description

LLMenuItemGL base class.

LicenseInfo
firstyear=2001&license=viewergpl

Copyright (c) 2001-2008, 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://secondlifegrid.net/programs/open_source/licensing/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://secondlifegrid.net/programs/open_source/licensing/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 2911 of file llmenugl.cpp.

References FALSE, and LLView::setVisible().

Here is the call graph for this function:


Variable Documentation

const U32 ACCEL_PAD_PIXELS = 10

Definition at line 94 of file llmenugl.cpp.

Referenced by LLMenuItemGL::getNominalWidth().

Definition at line 128 of file llmenugl.cpp.

Referenced by LLMenuHolderGL::draw().

const LLString ARROW_DOWN("vvvvvvv")

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

const LLString BRANCH_SUFFIX(">")

const U32 BRIEF_PAD_PIXELS = 2

Definition at line 97 of file llmenugl.cpp.

Referenced by LLMenuItemGL::draw(), and LLMenuItemGL::getNominalWidth().

Definition at line 84 of file llmenugl.cpp.

Referenced by LLMenuItemBranchDownGL::draw().

const U32 LEFT_PAD_PIXELS = 3

Definition at line 86 of file llmenugl.cpp.

Referenced by LLMenuItemGL::draw(), and LLMenuItemBranchDownGL::getNominalWidth().

Definition at line 88 of file llmenugl.cpp.

Referenced by LLMenuItemGL::draw().

const U32 LEFT_WIDTH_PIXELS = 15

Definition at line 87 of file llmenugl.cpp.

Referenced by LLMenuItemBranchDownGL::getNominalWidth().

Definition at line 108 of file llmenugl.cpp.

Referenced by LLMenuGL::handleHover().

Definition at line 73 of file llmenugl.cpp.

Referenced by settings_to_globals().

const S32 PIE_CENTER_SIZE = 20

Definition at line 110 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 95 of file llmenugl.cpp.

Referenced by LLMenuGL::arrange(), and LLMenuItemGL::getNominalWidth().

LLRegisterWidget<LLMenuGL> r1("menu") [static]

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

LLRegisterWidget<LLMenuBarGL> r2("menu_bar") [static]

============================================================================ Class LLMenuBarGL ============================================================================

const U32 RIGHT_PAD_PIXELS = 2

Definition at line 90 of file llmenugl.cpp.

Referenced by LLMenuItemGL::draw(), and LLMenuItemBranchDownGL::getNominalWidth().

Definition at line 92 of file llmenugl.cpp.

Referenced by LLMenuItemGL::draw().

const U32 RIGHT_WIDTH_PIXELS = 15

Definition at line 91 of file llmenugl.cpp.

Definition at line 99 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 LLString TEAROFF_SEPARATOR_LABEL("~~~~~~~~~~~")


Generated on Fri May 16 08:35:44 2008 for SecondLife by  doxygen 1.5.5