llstatusbar.cpp File Reference

LLStatusBar class implementation. More...

#include "llviewerprecompiledheaders.h"
#include "llstatusbar.h"
#include <iomanip>
#include "imageids.h"
#include "llfontgl.h"
#include "llrect.h"
#include "llerror.h"
#include "llparcel.h"
#include "llstring.h"
#include "message.h"
#include "llagent.h"
#include "llbutton.h"
#include "llviewercontrol.h"
#include "llfloaterbuycurrency.h"
#include "llfloaterchat.h"
#include "llfloaterdirectory.h"
#include "llfloaterland.h"
#include "llfloaterregioninfo.h"
#include "llfloaterscriptdebug.h"
#include "llhudicon.h"
#include "llinventoryview.h"
#include "llkeyboard.h"
#include "lllineeditor.h"
#include "llmenugl.h"
#include "llnotify.h"
#include "llimview.h"
#include "lltextbox.h"
#include "llui.h"
#include "llviewerparceloverlay.h"
#include "llviewerregion.h"
#include "llviewerstats.h"
#include "llviewerwindow.h"
#include "llframetimer.h"
#include "llvoavatar.h"
#include "llresmgr.h"
#include "llworld.h"
#include "llstatgraph.h"
#include "llviewermenu.h"
#include "llviewerparcelmgr.h"
#include "llviewerthrottle.h"
#include "llvieweruictrlfactory.h"
#include "llvoiceclient.h"
#include "lltoolmgr.h"
#include "llfocusmgr.h"
#include "viewer.h"

Include dependency graph for llstatusbar.cpp:

Go to the source code of this file.

Functions

const LLColor4 SIM_OK_COLOR (0.f, 1.f, 0.f, 1.f)
const LLColor4 SIM_WARN_COLOR (1.f, 1.f, 0.f, 1.f)
const LLColor4 SIM_FULL_COLOR (1.f, 0.f, 0.f, 1.f)
static void onClickParcelInfo (void *)
static void onClickBalance (void *)
static void onClickBuyCurrency (void *)
static void onClickHealth (void *)
static void onClickFly (void *)
static void onClickPush (void *)
static void onClickVoice (void *)
static void onClickBuild (void *)
static void onClickScripts (void *)
static void onClickBuyLand (void *)
static void onClickScriptDebug (void *)
BOOL can_afford_transaction (S32 cost)

Variables

LLStatusBargStatusBar = NULL
S32 STATUS_BAR_HEIGHT = 0
S32 MENU_BAR_HEIGHT
const S32 MENU_PARCEL_SPACING = 1
const S32 SIM_STAT_WIDTH = 8
const F32 SIM_WARN_FRACTION = 0.75f
const F32 SIM_FULL_FRACTION = 0.98f
const F32 ICON_TIMER_EXPIRY = 3.f
const F32 ICON_FLASH_FREQUENCY = 2.f
const S32 GRAPHIC_FUDGE = 4
const S32 TEXT_HEIGHT = 18


Detailed Description

LLStatusBar class implementation.

LicenseInfo
firstyear=2002&license=viewergpl

Copyright (c) 2002-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 llstatusbar.cpp.


Function Documentation

BOOL can_afford_transaction ( S32  cost  ) 

Definition at line 785 of file llstatusbar.cpp.

References LLStatusBar::getBalance(), and gStatusBar.

Referenced by LLFloaterTrustNetRate::draw(), give_money(), LLPanelGroupGeneral::onClickJoin(), and upload_done_callback().

static void onClickBalance ( void  )  [static]

Definition at line 643 of file llstatusbar.cpp.

References LLFloaterBuyCurrency::buyCurrency().

Referenced by LLStatusBar::LLStatusBar().

static void onClickBuild ( void  )  [static]

Definition at line 679 of file llstatusbar.cpp.

References LLNotifyBox::showXml().

Referenced by LLStatusBar::LLStatusBar().

static void onClickBuyCurrency ( void  )  [static]

Definition at line 648 of file llstatusbar.cpp.

References LLFloaterBuyCurrency::buyCurrency().

Referenced by LLStatusBar::LLStatusBar().

static void onClickBuyLand ( void  )  [static]

Definition at line 701 of file llstatusbar.cpp.

References gAgent, LLAgent::getPositionGlobal(), gParcelMgr, LLViewerParcelMgr::selectParcelAt(), and LLViewerParcelMgr::startBuyLand().

Referenced by LLStatusBar::LLStatusBar().

static void onClickFly ( void  )  [static]

Definition at line 663 of file llstatusbar.cpp.

References LLNotifyBox::showXml().

Referenced by LLStatusBar::LLStatusBar().

static void onClickHealth ( void  )  [static]

Definition at line 653 of file llstatusbar.cpp.

References LLNotifyBox::showXml().

Referenced by LLStatusBar::LLStatusBar().

static void onClickParcelInfo ( void  )  [static]

Definition at line 636 of file llstatusbar.cpp.

References gAgent, LLAgent::getPositionGlobal(), gParcelMgr, LLViewerParcelMgr::selectParcelAt(), and LLFloaterLand::show().

Referenced by LLStatusBar::LLStatusBar().

static void onClickPush ( void  )  [static]

Definition at line 668 of file llstatusbar.cpp.

References LLNotifyBox::showXml().

Referenced by LLStatusBar::LLStatusBar().

static void onClickScriptDebug ( void  )  [static]

Definition at line 658 of file llstatusbar.cpp.

References LLUUID::null, and LLFloaterScriptDebug::show().

Referenced by LLStatusBar::LLStatusBar().

static void onClickScripts ( void  )  [static]

Definition at line 684 of file llstatusbar.cpp.

References gAgent, LLAgent::getRegion(), LLViewerRegion::getRegionFlags(), REGION_FLAGS_ESTATE_SKIP_SCRIPTS, REGION_FLAGS_SKIP_SCRIPTS, and LLNotifyBox::showXml().

Referenced by LLStatusBar::LLStatusBar().

static void onClickVoice ( void  )  [static]

Definition at line 673 of file llstatusbar.cpp.

References LLNotifyBox::showXml().

Referenced by LLStatusBar::LLStatusBar().

const LLColor4 SIM_FULL_COLOR ( 1.  f,
0.  f,
0.  f,
1.  f 
)

const LLColor4 SIM_OK_COLOR ( 0.  f,
1.  f,
0.  f,
1.  f 
)

const LLColor4 SIM_WARN_COLOR ( 1.  f,
1.  f,
0.  f,
1.  f 
)


Variable Documentation

const S32 GRAPHIC_FUDGE = 4

Definition at line 103 of file llstatusbar.cpp.

Referenced by LLStatusBar::refresh().

LLStatusBar* gStatusBar = NULL

Definition at line 88 of file llstatusbar.cpp.

Referenced by LLPanelGroupLandMoney::activate(), LLPanelGroupLandMoney::impl::applyContribution(), can_afford_transaction(), LLAgent::endAnimationUpdateUI(), handle_buy_object(), LLFileEnableUpload::handleEvent(), LLViewerWindow::initWorldUI(), LLTaskInvFVBridge::performAction(), LLPanelDirLand::postBuild(), process_health_message(), process_money_balance_reply(), LLFloaterLandHoldings::refreshAggregates(), set_god_level(), LLViewerWindow::setNormalControlsVisible(), LLFloaterBuyCurrencyUI::target(), LLFloaterBuyLandUI::updateAgentInfo(), LLFloaterBuyCurrencyUI::updateUI(), upload_done_callback(), upload_new_resource(), and LLViewerWindow::~LLViewerWindow().

const F32 ICON_FLASH_FREQUENCY = 2.f

Definition at line 102 of file llstatusbar.cpp.

Referenced by LLStatusBar::refresh().

const F32 ICON_TIMER_EXPIRY = 3.f

Definition at line 101 of file llstatusbar.cpp.

Referenced by LLStatusBar::setBalance(), and LLStatusBar::setHealth().

S32 MENU_BAR_HEIGHT

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

const S32 MENU_PARCEL_SPACING = 1

Definition at line 94 of file llstatusbar.cpp.

Referenced by LLStatusBar::refresh().

const F32 SIM_FULL_FRACTION = 0.98f

Definition at line 97 of file llstatusbar.cpp.

const S32 SIM_STAT_WIDTH = 8

Definition at line 95 of file llstatusbar.cpp.

const F32 SIM_WARN_FRACTION = 0.75f

Definition at line 96 of file llstatusbar.cpp.

S32 STATUS_BAR_HEIGHT = 0

Definition at line 89 of file llstatusbar.cpp.

const S32 TEXT_HEIGHT = 18

Definition at line 104 of file llstatusbar.cpp.

Referenced by LLStatusBar::refresh().


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