llappviewer.cpp File Reference

The LLAppViewer class definitions. More...

#include "llviewerprecompiledheaders.h"
#include "llappviewer.h"
#include "llprimitive.h"
#include "llversionviewer.h"
#include "llfeaturemanager.h"
#include "lluictrlfactory.h"
#include "llalertdialog.h"
#include "llerrorcontrol.h"
#include "llviewerimagelist.h"
#include "llgroupmgr.h"
#include "llagent.h"
#include "llwindow.h"
#include "llviewerstats.h"
#include "llmd5.h"
#include "llpumpio.h"
#include "llimpanel.h"
#include "llmimetypes.h"
#include "llstartup.h"
#include "llfocusmgr.h"
#include "llviewerjoystick.h"
#include "llfloaterjoystick.h"
#include "llares.h"
#include "llcurl.h"
#include "llfloatersnapshot.h"
#include "llviewerwindow.h"
#include "llviewerdisplay.h"
#include "llviewermessage.h"
#include "llviewerobjectlist.h"
#include "llworldmap.h"
#include "llmutelist.h"
#include "llurldispatcher.h"
#include "llurlhistory.h"
#include "llfirstuse.h"
#include "llglimmediate.h"
#include "llweb.h"
#include "llsecondlifeurls.h"
#include <boost/bind.hpp>
#include <sys/file.h>
#include "llnotify.h"
#include "llviewerkeyboard.h"
#include "lllfsthread.h"
#include "llworkerthread.h"
#include "lltexturecache.h"
#include "lltexturefetch.h"
#include "llimageworker.h"
#include "llkeyframemotion.h"
#include "llhudmanager.h"
#include "lltoolmgr.h"
#include "llassetstorage.h"
#include "llpolymesh.h"
#include "llcachename.h"
#include "audioengine.h"
#include "llviewermenu.h"
#include "llselectmgr.h"
#include "lltrans.h"
#include "lltracker.h"
#include "llviewerparcelmgr.h"
#include "llworldmapview.h"
#include "llpostprocess.h"
#include "llwlparammanager.h"
#include "llwaterparammanager.h"
#include "lldebugview.h"
#include "llconsole.h"
#include "llcontainerview.h"
#include "llfloaterstats.h"
#include "llhoverview.h"
#include "llsdserialize.h"
#include "llworld.h"
#include "llhudeffecttrail.h"
#include "llvectorperfoptions.h"
#include "llurlsimstring.h"
#include "llwatchdog.h"
#include "llbutton.h"
#include "llcombobox.h"
#include "llstatusbar.h"
#include "llsurface.h"
#include "llvosky.h"
#include "llvotree.h"
#include "llvoavatar.h"
#include "llfolderview.h"
#include "lltoolbar.h"
#include "llframestats.h"
#include "llagentpilot.h"
#include "llsrv.h"
#include "llvovolume.h"
#include "llflexibleobject.h"
#include "llvosurfacepatch.h"
#include "llviewercontrol.h"
#include "lleventnotifier.h"
#include "llcallbacklist.h"
#include "pipeline.h"
#include "llgesturemgr.h"
#include "llsky.h"
#include "llvlmanager.h"
#include "llviewercamera.h"
#include "lldrawpoolbump.h"
#include "llvieweraudio.h"
#include "llimview.h"
#include "llviewerthrottle.h"
#include "llparcel.h"
#include "llinventoryview.h"
#include "llcommandlineparser.h"
#include "llviewernetwork.h"

Go to the source code of this file.

Classes

class  LLFrameStatsTimer
 This class is an LLFrameTimer that can be created with an elapsed time that starts counting up from the given value rather than 0.0. More...

Defines

#define LL_DYNAMIC_FONT_DISCOVERY   0
#define TIME_THROTTLE_MESSAGES
#define CHECK_MESSAGES_DEFAULT_MAX_TIME   .020f

Functions

void disable_win_error_reporting ()
void idle_afk_check ()
static void ui_audio_callback (const LLUUID &uuid)
void request_initial_instant_messages ()
static void settings_to_globals ()
static void settings_modify ()
void initGridChoice ()
bool send_url_to_other_instance (const std::string &url)
void errorCallback (const std::string &error_string)
static void finish_quit (S32 option, void *userdata)
static void finish_early_exit (S32 option, void *userdata)
void finish_disconnect (S32 option, void *userdata)
void finish_forced_disconnect (S32, void *)

Variables

static EGridInfo GridDefaultChoice = GRID_INFO_NONE
BOOL gRandomizeFramerate = FALSE
BOOL gPeriodicSlowFrame = FALSE
BOOL gDebugGL
BOOL gHandleKeysAsync = FALSE
const F32 DEFAULT_AFK_TIMEOUT = 5.f * 60.f
F32 gSimLastTime
F32 gSimFrames
LLString gDisabledMessage
BOOL gHideLinks = FALSE
BOOL gAllowIdleAFK = TRUE
BOOL gAllowTapTapHoldRun = TRUE
BOOL gShowObjectUpdates = FALSE
BOOL gUseQuickTime = TRUE
BOOL gAcceptTOS = FALSE
BOOL gAcceptCriticalMessage = FALSE
eLastExecEvent gLastExecEvent = LAST_EXEC_NORMAL
LLSD gDebugInfo
U32 gFrameCount = 0
U32 gForegroundFrameCount = 0
LLPumpIOgServicePump = NULL
BOOL gPacificDaylightTime = FALSE
U64 gFrameTime = 0
F32 gFrameTimeSeconds = 0.f
F32 gFrameIntervalSeconds = 0.f
F32 gFPSClamped = 10.f
F32 gFrameDTClamped = 0.f
U64 gStartTime = 0
LLTimer gRenderStartTime
LLFrameTimer gForegroundTime
LLTimer gLogoutTimer
static const F32 LOGOUT_REQUEST_TIME = 6.f
F32 gLogoutMaxTime = LOGOUT_REQUEST_TIME
LLUUID gInventoryLibraryOwner
LLUUID gInventoryLibraryRoot
BOOL gDisconnected = FALSE
F32 gMapScale = 128.f
F32 gMiniMapScale = 128.f
LLFrameTimer gRestoreGLTimer
BOOL gRestoreGL = FALSE
BOOL gUseWireframe = FALSE
LLVFSgStaticVFS = NULL
LLMemoryInfo gSysMemory
LLString gLastVersionChannel
LLVector3 gWindVec (3.0, 3.0, 0.0)
LLVector3 gRelativeWindVec (0.0, 0.0, 0.0)
U32 gPacketsIn = 0
BOOL gPrintMessagesThisFrame = FALSE
BOOL gCrashOnStartup = FALSE
BOOL gLLErrorActivated = FALSE
BOOL gLogoutInProgress = FALSE
static LLString gArgs
const char * MARKER_FILE_NAME = "SecondLife.exec_marker"
const char * ERROR_MARKER_FILE_NAME = "SecondLife.error_marker"
const char * LLERROR_MARKER_FILE_NAME = "SecondLife.llerror_marker"
const char * LOGOUT_MARKER_FILE_NAME = "SecondLife.logout_marker"
static BOOL gDoDisconnect = FALSE
static LLString gLaunchFileOnQuit
const char * VFS_DATA_FILE_BASE = "data.db2.x."
const char * VFS_INDEX_FILE_BASE = "index.db2.x."
static LLString gSecondLife
static LLString gWindowTitle
std::string gLoginPage
std::vector< std::string > gLoginURIs
static std::string gHelperURI
static F32 CheckMessagesMaxTime = CHECK_MESSAGES_DEFAULT_MAX_TIME


Detailed Description

The LLAppViewer class definitions.

LicenseInfo
firstyear=2007&license=viewergpl

Copyright (c) 2007-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 llappviewer.cpp.


Define Documentation

#define CHECK_MESSAGES_DEFAULT_MAX_TIME   .020f

Definition at line 3527 of file llappviewer.cpp.

Referenced by LLAppViewer::idleNetwork().

#define LL_DYNAMIC_FONT_DISCOVERY   0

Definition at line 169 of file llappviewer.cpp.

#define TIME_THROTTLE_MESSAGES

Definition at line 3524 of file llappviewer.cpp.


Function Documentation

void disable_win_error_reporting (  ) 

void errorCallback ( const std::string &  error_string  ) 

Definition at line 1419 of file llappviewer.cpp.

References LLError::crashAndLoop(), gLLErrorActivated, OSMB_OK, and OSMessageBox().

Referenced by LLAppViewer::initLogging().

Here is the call graph for this function:

Here is the caller graph for this function:

void finish_disconnect ( S32  option,
void *  userdata 
)

Definition at line 2880 of file llappviewer.cpp.

References LLAppViewer::forceQuit(), and LLAppViewer::instance().

Referenced by LLAppViewer::forceDisconnect().

Here is the call graph for this function:

Here is the caller graph for this function:

static void finish_early_exit ( S32  option,
void *  userdata 
) [static]

Definition at line 2551 of file llappviewer.cpp.

References LLAppViewer::forceQuit(), and LLAppViewer::instance().

Referenced by LLAppViewer::earlyExit().

Here is the call graph for this function:

Here is the caller graph for this function:

void finish_forced_disconnect ( S32  ,
void *   
)

Definition at line 2889 of file llappviewer.cpp.

References LLAppViewer::forceQuit(), and LLAppViewer::instance().

Referenced by LLAppViewer::forceDisconnect().

Here is the call graph for this function:

Here is the caller graph for this function:

static void finish_quit ( S32  option,
void *  userdata 
) [static]

Definition at line 2538 of file llappviewer.cpp.

References LLAppViewer::instance(), and LLAppViewer::requestQuit().

Referenced by LLAppViewer::userQuit().

Here is the call graph for this function:

Here is the caller graph for this function:

void idle_afk_check (  ) 

Definition at line 332 of file llappviewer.cpp.

References gAgent, gAllowIdleAFK, gAwayTriggerTimer, LLFrameTimer::getElapsedTimeF32(), LLControlGroup::getF32(), gSavedSettings, and LLAgent::setAFK().

Referenced by LLAppViewer::idle().

Here is the call graph for this function:

Here is the caller graph for this function:

void initGridChoice (  ) 

void request_initial_instant_messages (  ) 

bool send_url_to_other_instance ( const std::string &  url  ) 

Definition at line 536 of file llappviewer.cpp.

References lldebugs, llendl, NULL, and S32.

Referenced by LLAppViewer::initConfiguration().

Here is the caller graph for this function:

static void settings_modify (  )  [static]

static void settings_to_globals (  )  [static]

static void ui_audio_callback ( const LLUUID uuid  )  [static]

Definition at line 342 of file llappviewer.cpp.

References gAgent, gAudiop, LLControlGroup::getBOOL(), LLControlGroup::getF32(), LLAgent::getID(), gSavedSettings, and LLAudioEngine::triggerSound().

Referenced by LLAppViewer::init().

Here is the call graph for this function:

Here is the caller graph for this function:


Variable Documentation

F32 CheckMessagesMaxTime = CHECK_MESSAGES_DEFAULT_MAX_TIME [static]

Definition at line 3528 of file llappviewer.cpp.

const F32 DEFAULT_AFK_TIMEOUT = 5.f * 60.f

Definition at line 232 of file llappviewer.cpp.

const char* ERROR_MARKER_FILE_NAME = "SecondLife.error_marker"

Definition at line 311 of file llappviewer.cpp.

Referenced by LLAppViewer::handleViewerCrash(), and LLAppViewer::initMarkerFile().

Definition at line 247 of file llappviewer.cpp.

Referenced by idle_startup(), and LLFloaterTOS::onContinue().

BOOL gAcceptTOS = FALSE

Definition at line 246 of file llappviewer.cpp.

Referenced by idle_startup(), and LLFloaterTOS::onContinue().

LLString gArgs [static]

Definition at line 308 of file llappviewer.cpp.

Definition at line 303 of file llappviewer.cpp.

Referenced by LLAppViewer::initConfiguration(), and LLAppViewer::initWindow().

Definition at line 58 of file llgl.cpp.

Definition at line 251 of file llappviewer.cpp.

Referenced by idle_startup(), and write_debug_dx().

Definition at line 237 of file llappviewer.cpp.

Referenced by idle_startup().

BOOL gDoDisconnect = FALSE [static]

Definition at line 254 of file llappviewer.cpp.

Referenced by display(), and send_stats().

F32 gFPSClamped = 10.f

std::string gHelperURI [static]

BOOL gHideLinks = FALSE

Definition at line 272 of file llappviewer.cpp.

Referenced by idle_startup().

eLastExecEvent gLastExecEvent = LAST_EXEC_NORMAL

Definition at line 315 of file llappviewer.cpp.

Definition at line 304 of file llappviewer.cpp.

Referenced by errorCallback(), and LLAppViewer::handleViewerCrash().

std::string gLoginPage

Definition at line 328 of file llappviewer.cpp.

std::vector<std::string> gLoginURIs

Definition at line 268 of file llappviewer.cpp.

Referenced by display().

F32 gMapScale = 128.f

F32 gMiniMapScale = 128.f

Definition at line 296 of file llappviewer.cpp.

Referenced by LLAppViewer::idleNetwork(), and LLFloaterAbout::LLFloaterAbout().

Definition at line 301 of file llappviewer.cpp.

Referenced by init_debug_rendering_menu(), and LLAppViewer::mainLoop().

Definition at line 298 of file llappviewer.cpp.

Referenced by LLAppViewer::idleNetwork().

Definition at line 300 of file llappviewer.cpp.

Referenced by init_debug_rendering_menu(), and LLAppViewer::mainLoop().

LLVector3 gRelativeWindVec(0.0, 0.0, 0.0)

BOOL gRestoreGL = FALSE

Definition at line 283 of file llappviewer.cpp.

Referenced by display(), and LLViewerWindow::restoreGL().

Definition at line 282 of file llappviewer.cpp.

Referenced by display(), and LLViewerWindow::restoreGL().

EGridInfo GridDefaultChoice = GRID_INFO_NONE [static]

Definition at line 205 of file llappviewer.cpp.

Referenced by initGridChoice().

Definition at line 322 of file llappviewer.cpp.

Definition at line 255 of file llappviewer.cpp.

Definition at line 235 of file llappviewer.cpp.

Referenced by LLAppViewer::init(), and send_stats().

Definition at line 234 of file llappviewer.cpp.

Referenced by LLAppViewer::init(), and send_stats().

LLVFS* gStaticVFS = NULL

Definition at line 287 of file llappviewer.cpp.

Referenced by LLVOAvatar::LLVOAvatar().

Definition at line 244 of file llappviewer.cpp.

Definition at line 323 of file llappviewer.cpp.

LLVector3 gWindVec(3.0, 3.0, 0.0)

const char* LLERROR_MARKER_FILE_NAME = "SecondLife.llerror_marker"

Definition at line 312 of file llappviewer.cpp.

Referenced by LLAppViewer::handleViewerCrash(), and LLAppViewer::initMarkerFile().

const char* LOGOUT_MARKER_FILE_NAME = "SecondLife.logout_marker"

Definition at line 313 of file llappviewer.cpp.

Referenced by LLAppViewer::initMarkerFile(), and LLAppViewer::sendLogoutRequest().

const F32 LOGOUT_REQUEST_TIME = 6.f [static]

Definition at line 269 of file llappviewer.cpp.

Referenced by LLAppViewer::sendLogoutRequest().

const char* MARKER_FILE_NAME = "SecondLife.exec_marker"

const char* VFS_DATA_FILE_BASE = "data.db2.x."

Definition at line 319 of file llappviewer.cpp.

Referenced by LLAppViewer::initCache().

const char* VFS_INDEX_FILE_BASE = "index.db2.x."

Definition at line 320 of file llappviewer.cpp.

Referenced by LLAppViewer::initCache().


Generated on Fri May 16 08:36:17 2008 for SecondLife by  doxygen 1.5.5