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 "llfloaterlagmeter.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 "lluictrlfactory.h"
#include "llvoiceclient.h"
#include "lltoolmgr.h"
#include "llfocusmgr.h"
#include "llappviewer.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 TEXT_HEIGHT = 18


Detailed Description

LLStatusBar class implementation.

LicenseInfo
firstyear=2002&license=viewergpl

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


Function Documentation

BOOL can_afford_transaction ( S32  cost  ) 

Definition at line 904 of file llstatusbar.cpp.

References LLStatusBar::getBalance().

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

Here is the call graph for this function:

Here is the caller graph for this function:

static void onClickBalance ( void *  data  )  [static]

Definition at line 757 of file llstatusbar.cpp.

References LLFloaterBuyCurrency::buyCurrency().

Referenced by LLStatusBar::LLStatusBar().

Here is the call graph for this function:

Here is the caller graph for this function:

static void onClickBuild ( void *   )  [static]

Definition at line 792 of file llstatusbar.cpp.

References LLNotifyBox::showXml().

Referenced by LLStatusBar::LLStatusBar().

Here is the call graph for this function:

Here is the caller graph for this function:

static void onClickBuyCurrency ( void *  data  )  [static]

Definition at line 762 of file llstatusbar.cpp.

References LLFloaterBuyCurrency::buyCurrency().

Referenced by LLStatusBar::LLStatusBar().

Here is the call graph for this function:

Here is the caller graph for this function:

static void onClickBuyLand ( void *   )  [static]

Definition at line 814 of file llstatusbar.cpp.

References gAgent, LLSingleton< LLViewerParcelMgr >::getInstance(), LLAgent::getPositionGlobal(), LLViewerParcelMgr::selectParcelAt(), and LLViewerParcelMgr::startBuyLand().

Referenced by LLStatusBar::LLStatusBar().

Here is the call graph for this function:

Here is the caller graph for this function:

static void onClickFly ( void *   )  [static]

Definition at line 777 of file llstatusbar.cpp.

References LLNotifyBox::showXml().

Referenced by LLStatusBar::LLStatusBar().

Here is the call graph for this function:

Here is the caller graph for this function:

static void onClickHealth ( void *   )  [static]

Definition at line 767 of file llstatusbar.cpp.

References LLNotifyBox::showXml().

Referenced by LLStatusBar::LLStatusBar().

Here is the call graph for this function:

Here is the caller graph for this function:

static void onClickParcelInfo ( void *  data  )  [static]

static void onClickPush ( void *   )  [static]

Definition at line 782 of file llstatusbar.cpp.

References LLNotifyBox::showXml().

Referenced by LLStatusBar::LLStatusBar().

Here is the call graph for this function:

Here is the caller graph for this function:

static void onClickScriptDebug ( void *   )  [static]

Definition at line 772 of file llstatusbar.cpp.

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

Referenced by LLStatusBar::LLStatusBar().

Here is the call graph for this function:

Here is the caller graph for this function:

static void onClickScripts ( void *   )  [static]

Definition at line 797 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().

Here is the call graph for this function:

Here is the caller graph for this function:

static void onClickVoice ( void *   )  [static]

Definition at line 787 of file llstatusbar.cpp.

References LLNotifyBox::showXml().

Referenced by LLStatusBar::LLStatusBar().

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 103 of file llstatusbar.cpp.

Referenced by LLStatusBar::refresh().

const F32 ICON_TIMER_EXPIRY = 3.f

Definition at line 102 of file llstatusbar.cpp.

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

Definition at line 95 of file llstatusbar.cpp.

Referenced by LLStatusBar::refresh().

const F32 SIM_FULL_FRACTION = 0.98f

Definition at line 98 of file llstatusbar.cpp.

const S32 SIM_STAT_WIDTH = 8

Definition at line 96 of file llstatusbar.cpp.

const F32 SIM_WARN_FRACTION = 0.75f

Definition at line 97 of file llstatusbar.cpp.

const S32 TEXT_HEIGHT = 18

Definition at line 104 of file llstatusbar.cpp.

Referenced by LLStatusBar::refresh().


Generated on Fri May 16 08:37:12 2008 for SecondLife by  doxygen 1.5.5