#include "linden_common.h"
#include <string>
#include <map>
#include "audioengine.h"
#include "v2math.h"
#include "v4color.h"
#include "llgl.h"
#include "llrect.h"
#include "llimagegl.h"
#include "lldir.h"
#include "llfontgl.h"
#include "llcontrol.h"
#include "llui.h"
#include "llview.h"
#include "llwindow.h"
#include "llglheaders.h"
Include dependency graph for llui.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 llui.cpp.
void gl_arc_2d | ( | F32 | center_x, | |
F32 | center_y, | |||
F32 | radius, | |||
S32 | steps, | |||
BOOL | filled, | |||
F32 | start_angle, | |||
F32 | end_angle | |||
) |
Definition at line 736 of file llui.cpp.
References cosf, f, F_TWO_PI, glBegin, glEnd, glPopMatrix, glTranslatef, glVertex2f, sinf, x, and y.
Referenced by LLManipRotate::renderSnapGuides().
Definition at line 779 of file llui.cpp.
References f, F_TWO_PI, glBegin, glEnd, glPopMatrix, glTranslatef, glVertex2f, x, and y.
Referenced by LLPieMenu::draw(), LLManipRotate::render(), and LLManipRotate::renderSnapGuides().
Definition at line 413 of file llui.cpp.
References LLImageGL::getHeight(), LLImageGL::getWidth(), and gl_draw_scaled_rotated_image().
Referenced by LLToolGun::draw(), LLResizeHandle::draw(), LLNetMap::draw(), LLJoystickCameraZoom::draw(), LLJoystickCameraRotate::draw(), LLFolderViewItem::draw(), LLFloaterColorPicker::draw(), LLButton::draw(), LLWorldMapView::drawAvatar(), drawDot(), LLWorldMapView::drawImage(), LLWorldMapView::drawImageStack(), and LLScrollListIcon::drawToWidth().
Definition at line 605 of file llui.cpp.
References LLImageGL::getHeight(), LLImageGL::getWidth(), and gl_draw_scaled_rotated_image().
void gl_draw_scaled_image | ( | S32 | x, | |
S32 | y, | |||
S32 | width, | |||
S32 | height, | |||
LLImageGL * | image, | |||
const LLColor4 & | color | |||
) |
Definition at line 418 of file llui.cpp.
References f, and gl_draw_scaled_rotated_image().
Referenced by LLTextureCtrl::draw(), LLFloaterTexturePicker::draw(), LLPreviewTexture::draw(), LLPanelLogin::draw(), LLIconCtrl::draw(), LLFloaterSnapshot::draw(), LLFloaterPostcard::draw(), LLFloaterAuction::draw(), LLComboBox::draw(), LLButton::draw(), and LLTextEditor::drawText().
void gl_draw_scaled_image_inverted | ( | S32 | x, | |
S32 | y, | |||
S32 | width, | |||
S32 | height, | |||
LLImageGL * | image, | |||
const LLColor4 & | color | |||
) |
Definition at line 656 of file llui.cpp.
References LLImageGL::bind(), f, glBegin, glColor4fv, glEnd, glPopMatrix, glTranslatef, llendl, llwarns, LLColor4::mV, and NULL.
void gl_draw_scaled_image_with_border | ( | S32 | x, | |
S32 | y, | |||
S32 | border_width, | |||
S32 | border_height, | |||
S32 | width, | |||
S32 | height, | |||
LLImageGL * | image, | |||
const LLColor4 & | color, | |||
BOOL | solid_color | |||
) |
Definition at line 423 of file llui.cpp.
References LLImageGL::bind(), f, LLImageGL::getHeight(), LLImageGL::getWidth(), glBegin, glColor4fv, glEnd, glPopMatrix, glTranslatef, llendl, llfloor(), llmin(), llwarns, LLColor4::mV, NULL, S32, and stop_glerror.
Referenced by LLSlider::draw(), LLScrollbar::draw(), LLProgressView::draw(), LLConsole::draw(), LLButton::draw(), LLButton::drawBorder(), and LLManip::renderXYZ().
void gl_draw_scaled_rotated_image | ( | S32 | x, | |
S32 | y, | |||
S32 | width, | |||
S32 | height, | |||
F32 | degrees, | |||
LLImageGL * | image, | |||
const LLColor4 & | color | |||
) |
Definition at line 610 of file llui.cpp.
References LLImageGL::bind(), f, glBegin, glColor4fv, glEnd, glPopMatrix, glRotatef, glTranslatef, llendl, llwarns, LLColor4::mV, and NULL.
Referenced by LLFolderViewItem::draw(), LLTracker::drawMarker(), LLWorldMapView::drawTrackingArrow(), gl_draw_image(), gl_draw_rotated_image(), and gl_draw_scaled_image().
Definition at line 147 of file llui.cpp.
References glBegin, glColor4fv, glEnd, LLRectBase< Type >::mBottom, LLRectBase< Type >::mLeft, LLRectBase< Type >::mRight, LLRectBase< Type >::mTop, and LLColor4::mV.
Referenced by LLTextureCtrl::draw(), LLFloaterTexturePicker::draw(), and LLColorSwatchCtrl::draw().
void gl_drop_shadow | ( | S32 | left, | |
S32 | top, | |||
S32 | right, | |||
S32 | bottom, | |||
const LLColor4 & | start_color, | |||
S32 | lines | |||
) |
Definition at line 257 of file llui.cpp.
References glBegin, glColor4fv, glEnd, LLColor4::mV, stop_glerror, and VALPHA.
Referenced by LLTextBox::draw(), LLStatusBar::draw(), LLModalDialog::draw(), LLMenuGL::draw(), LLSnapshotLivePreview::draw(), LLFloater::draw(), and LLAlertDialog::draw().
Definition at line 338 of file llui.cpp.
References gGLManager, glBegin, glColor4fv, glEnd, LLGLManager::mATIOffsetVerticalLines, and LLColor4::mV.
Definition at line 319 of file llui.cpp.
Referenced by LLMenuItemBranchDownGL::draw(), LLMenuItemTearOffGL::draw(), LLMenuItemSeparatorGL::draw(), LLMenuItemGL::draw(), LLHorizontalCompass::draw(), LLFloaterColorPicker::draw(), LLFastTimerView::draw(), LLViewBorder::drawOnePixelLines(), LLFloaterColorPicker::drawPalette(), LLViewerWindow::drawPickBuffer(), LLScrollListSeparator::drawToWidth(), and LLViewBorder::drawTwoPixelLines().
Definition at line 248 of file llui.cpp.
References gl_rect_2d(), glColor4fv, LLRectBase< Type >::mBottom, LLRectBase< Type >::mLeft, LLRectBase< Type >::mRight, LLRectBase< Type >::mTop, and LLColor4::mV.
Definition at line 186 of file llui.cpp.
Referenced by LLWorldMapView::draw(), LLVelocityBar::draw(), LLToolSelectRect::draw(), LLGLTexMemBar::draw(), LLTextureBar::draw(), LLTextureCtrl::draw(), LLFloaterTexturePicker::draw(), LLTextBox::draw(), LLStatGraph::draw(), LLStatBar::draw(), LLSlider::draw(), LLScrollListCtrl::draw(), LLScrollableContainerView::draw(), LLScrollbar::draw(), LLProgressView::draw(), LLPreviewTexture::draw(), LLPanelLogin::draw(), LLPanel::draw(), LLNetMap::draw(), LLMenuGL::draw(), LLMenuItemBranchDownGL::draw(), LLMenuItemTearOffGL::draw(), LLMenuItemGL::draw(), LLMemoryView::draw(), LLLineEditor::draw(), LLFrameStatView::draw(), LLFolderViewItem::draw(), LLPanelDeviceSettings::draw(), LLSnapshotLivePreview::draw(), LLFloaterPostcard::draw(), LLFloaterColorPicker::draw(), LLFloaterAuction::draw(), LLFloater::draw(), LLFastTimerView::draw(), LLContainerView::draw(), LLColorSwatchCtrl::draw(), LLButton::draw(), LLTextEditor::drawBackground(), LLMenuGL::drawBackground(), LLButton::drawBorder(), LLTextEditor::drawCursor(), LLScrollListCtrl::drawItems(), LLViewerWindow::drawMouselookInstructions(), LLFloaterColorPicker::drawPalette(), LLViewerWindow::drawPickBuffer(), LLTextEditor::drawSelectionBackground(), gl_rect_2d(), gl_rect_2d_checkerboard(), gl_rect_2d_offset_local(), and render_ui_2d().
Definition at line 861 of file llui.cpp.
References f, FALSE, first, gl_rect_2d(), glPolygonStipple, i, j, S32, and TRUE.
Referenced by LLTextureCtrl::draw(), LLFloaterTexturePicker::draw(), LLPreviewTexture::draw(), LLFloaterImport::draw(), LLFloaterImagePreview::draw(), and LLColorSwatchCtrl::draw().
void gl_rect_2d_offset_local | ( | S32 | left, | |
S32 | top, | |||
S32 | right, | |||
S32 | bottom, | |||
const LLColor4 & | color, | |||
S32 | pixel_offset, | |||
BOOL | filled | |||
) |
Definition at line 162 of file llui.cpp.
Referenced by LLTextBox::draw(), LLFloater::draw(), and gl_rect_2d_offset_local().
Definition at line 1022 of file llui.cpp.
References glBegin, and glEnd.
Referenced by LLTexLayerParamAlpha::render(), LLTexLayer::render(), LLTexLayerSet::render(), LLImagePreviewSculpted::render(), LLImagePreviewAvatar::render(), LLPreviewAnimation::render(), LLTexLayer::renderAlphaMasks(), and LLTexLayerSet::renderBump().
Definition at line 1003 of file llui.cpp.
References f, glBegin, and glEnd.
Referenced by LLProgressView::draw(), LLColorSwatchCtrl::draw(), LLVisualParamHint::render(), LLTexLayerParamAlpha::render(), LLTexLayer::render(), LLTexLayerSet::render(), render_disconnected_background(), LLTexLayer::renderAlphaMasks(), and LLTexLayer::renderImageRaw().
Definition at line 718 of file llui.cpp.
References glBegin, glColor4fv, glEnd, glLogicOp, stop_glerror, and LLColor4::white.
void gl_ring | ( | F32 | radius, | |
F32 | width, | |||
const LLColor4 & | center_color, | |||
const LLColor4 & | side_color, | |||
S32 | steps, | |||
BOOL | render_center | |||
) |
Definition at line 840 of file llui.cpp.
References f, gl_deep_circle(), gl_washer_2d(), glColor4fv, glPopMatrix, glTranslatef, and LLColor4::mV.
Referenced by LLManipRotate::render(), and LLManipRotate::renderActiveRing().
void gl_segmented_rect_2d_fragment_tex | ( | const S32 | left, | |
const S32 | top, | |||
const S32 | right, | |||
const S32 | bottom, | |||
const S32 | texture_width, | |||
const S32 | texture_height, | |||
const S32 | border_size, | |||
const F32 | start_fragment, | |||
const F32 | end_fragment, | |||
const U32 | edges | |||
) |
Definition at line 1190 of file llui.cpp.
References f, glBegin, glEnd, glPopMatrix, glTranslatef, height, llabs(), llclamp(), llmax(), llmin(), LLVector2::mV, ROUNDED_RECT_BOTTOM, ROUNDED_RECT_LEFT, ROUNDED_RECT_RIGHT, ROUNDED_RECT_TOP, S32, VX, VY, width, and LLVector2::zero.
Referenced by LLFastTimerView::draw().
void gl_segmented_rect_2d_tex | ( | const S32 | left, | |
const S32 | top, | |||
const S32 | right, | |||
const S32 | bottom, | |||
const S32 | texture_width, | |||
const S32 | texture_height, | |||
const S32 | border_size, | |||
const U32 | edges | |||
) |
Definition at line 1032 of file llui.cpp.
References f, glBegin, glEnd, glPopMatrix, glTranslatef, glVertex2f, height, llabs(), llmin(), LLVector2::mV, ROUNDED_RECT_BOTTOM, ROUNDED_RECT_LEFT, ROUNDED_RECT_RIGHT, ROUNDED_RECT_TOP, S32, VX, VY, width, and LLVector2::zero.
Referenced by LLOverlayBar::draw(), LLHoverView::draw(), LLFolderViewItem::draw(), LLNotifyBox::drawBackground(), and LLScrollListText::drawToWidth().
void gl_segmented_rect_3d_tex | ( | const LLVector2 & | border_scale, | |
const LLVector3 & | border_width, | |||
const LLVector3 & | border_height, | |||
const LLVector3 & | width_vec, | |||
const LLVector3 & | height_vec, | |||
const U32 | edges | |||
) |
Definition at line 1380 of file llui.cpp.
References f, glBegin, glEnd, LLVector2::mV, LLVector3::mV, ROUNDED_RECT_BOTTOM, ROUNDED_RECT_LEFT, ROUNDED_RECT_RIGHT, ROUNDED_RECT_TOP, VX, VY, and LLVector3::zero.
Referenced by gl_segmented_rect_3d_tex_top(), and LLHUDText::renderText().
void gl_segmented_rect_3d_tex_top | ( | const LLVector2 & | border_scale, | |
const LLVector3 & | border_width, | |||
const LLVector3 & | border_height, | |||
const LLVector3 & | width_vec, | |||
const LLVector3 & | height_vec | |||
) |
Definition at line 1512 of file llui.cpp.
References gl_segmented_rect_3d_tex(), and ROUNDED_RECT_TOP.
Referenced by LLHUDText::renderText().
Definition at line 132 of file llui.cpp.
References f, glOrtho, and stop_glerror.
Referenced by LLViewerWindow::setup2DRender().
void gl_stippled_line_3d | ( | const LLVector3 & | start, | |
const LLVector3 & | end, | |||
const LLColor4 & | color, | |||
F32 | phase | |||
) |
Definition at line 694 of file llui.cpp.
References end, f, glBegin, glColor4f, glEnd, glLineStipple, LLColor4::mV, S32, LLUI::setLineWidth(), start, VALPHA, VBLUE, VGREEN, and VRED.
Referenced by LLManipScale::renderGuidelinesPart().
void gl_triangle_2d | ( | S32 | x1, | |
S32 | y1, | |||
S32 | x2, | |||
S32 | y2, | |||
S32 | x3, | |||
S32 | y3, | |||
const LLColor4 & | color, | |||
BOOL | filled | |||
) |
Definition at line 359 of file llui.cpp.
References glBegin, glColor4fv, glEnd, and LLColor4::mV.
Referenced by LLSlider::draw(), and LLFloaterColorPicker::draw().
void gl_washer_2d | ( | F32 | outer_radius, | |
F32 | inner_radius, | |||
S32 | steps, | |||
const LLColor4 & | inner_color, | |||
const LLColor4 & | outer_color | |||
) |
Definition at line 896 of file llui.cpp.
References COS_DELTA, DELTA, F_TWO_PI, glBegin, glColor4fv, glEnd, glVertex2f, LLColor4::mV, and SIN_DELTA.
Referenced by LLPieMenu::draw(), gl_ring(), and LLManipRotate::render().
void gl_washer_segment_2d | ( | F32 | outer_radius, | |
F32 | inner_radius, | |||
F32 | start_radians, | |||
F32 | end_radians, | |||
S32 | steps, | |||
const LLColor4 & | inner_color, | |||
const LLColor4 & | outer_color | |||
) |
Definition at line 933 of file llui.cpp.
References COS_DELTA, DELTA, glBegin, glColor4fv, glEnd, glVertex2f, LLColor4::mV, and SIN_DELTA.
Referenced by LLPieMenu::draw(), LLPieMenu::drawBackground(), and LLWorldMapView::drawTrackingCircle().
void gl_washer_spokes_2d | ( | F32 | outer_radius, | |
F32 | inner_radius, | |||
S32 | count, | |||
const LLColor4 & | inner_color, | |||
const LLColor4 & | outer_color | |||
) |
Definition at line 968 of file llui.cpp.
References COS_DELTA, DELTA, F_TWO_PI, glBegin, glColor4fv, glEnd, glVertex2f, LLColor4::mV, and SIN_DELTA.
Referenced by LLPieMenu::draw().
Definition at line 87 of file llui.cpp.
References LLUUID::isNull(), llendl, llinfos, llwarns, NULL, LLUI::sAudioCallback, and LLUI::sConfigGroup.
Referenced by add_duplicate(), LLTextEditor::addChar(), LLIMMgr::addMessage(), LLFloater::close(), derez_objects(), LLToolDragAndDrop::dropObject(), LLFloaterWorldMap::fly(), LLModalDialog::handleDoubleClick(), LLPieMenu::handleHover(), LLRadioGroup::handleKeyHere(), LLTextBox::handleMouseDown(), LLSlider::handleMouseDown(), LLModalDialog::handleMouseDown(), LLMenuItemBranchDownGL::handleMouseDown(), LLFolderViewItem::handleMouseDown(), LLButton::handleMouseDown(), LLTextBox::handleMouseUp(), LLSlider::handleMouseUp(), LLPieMenu::handleMouseUp(), LLMenuItemBranchGL::handleMouseUp(), LLMenuItemGL::handleMouseUp(), LLButton::handleMouseUp(), LLFolderViewItem::handleRightMouseDown(), LLPieMenu::hide(), LLTextEditor::insertStringNoUndo(), LLPanelFriends::onClickIM(), LLButton::onCommit(), LLFloaterNewIM::onStart(), LLFloater::open(), process_teleport_start(), LLSelectMgr::repeatDuplicate(), LLTextEditor::reportBadKeystroke(), LLLineEditor::reportBadKeystroke(), LLSpinCtrl::reportInvalidData(), LLSliderCtrl::reportInvalidData(), LLScrollListCtrl::reportInvalidInput(), LLSelectMgr::selectDelete(), LLSelectMgr::selectDuplicate(), LLSelectMgr::selectDuplicateOnRay(), LLStatusBar::setBalance(), LLAgent::setFlying(), LLStatusBar::setHealth(), LLFloater::setMinimized(), LLAlertDialog::setVisible(), LLPieMenu::show(), LLPanelGroups::startIM(), LLFloaterWorldMap::teleport(), and LLAgent::teleportCore().
const LLColor4 UI_VERTEX_COLOR | ( | 1. | f, | |
1. | f, | |||
1. | f, | |||
1. | f | |||
) |
BOOL gShowTextEditCursor = TRUE |
Definition at line 67 of file llui.cpp.
Referenced by LLLineEditor::draw(), LLTextEditor::drawCursor(), LLViewerWindow::handleFocus(), and LLViewerWindow::handleFocusLost().
std::map<LLString, LLString> gTranslation |