diff options
author | Jacek Antonelli | 2008-08-15 23:45:11 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:45:11 -0500 |
commit | 215f423cbe18fe9ca14a26caef918d303bad28ff (patch) | |
tree | 0743442b286216cc8e19aa487c26f4e9345ffd64 /linden/indra/newview/viewer.h | |
parent | Second Life viewer sources 1.18.3.5-RC (diff) | |
download | meta-impy-215f423cbe18fe9ca14a26caef918d303bad28ff.zip meta-impy-215f423cbe18fe9ca14a26caef918d303bad28ff.tar.gz meta-impy-215f423cbe18fe9ca14a26caef918d303bad28ff.tar.bz2 meta-impy-215f423cbe18fe9ca14a26caef918d303bad28ff.tar.xz |
Second Life viewer sources 1.18.4.0-RC
Diffstat (limited to 'linden/indra/newview/viewer.h')
-rw-r--r-- | linden/indra/newview/viewer.h | 40 |
1 files changed, 5 insertions, 35 deletions
diff --git a/linden/indra/newview/viewer.h b/linden/indra/newview/viewer.h index e6392f5..c2ec173 100644 --- a/linden/indra/newview/viewer.h +++ b/linden/indra/newview/viewer.h | |||
@@ -2,6 +2,8 @@ | |||
2 | * @file viewer.h | 2 | * @file viewer.h |
3 | * @brief Main file for viewer. | 3 | * @brief Main file for viewer. |
4 | * | 4 | * |
5 | * $LicenseInfo:firstyear=2000&license=viewergpl$ | ||
6 | * | ||
5 | * Copyright (c) 2000-2007, Linden Research, Inc. | 7 | * Copyright (c) 2000-2007, Linden Research, Inc. |
6 | * | 8 | * |
7 | * Second Life Viewer Source Code | 9 | * Second Life Viewer Source Code |
@@ -24,6 +26,7 @@ | |||
24 | * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO | 26 | * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO |
25 | * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, | 27 | * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, |
26 | * COMPLETENESS OR PERFORMANCE. | 28 | * COMPLETENESS OR PERFORMANCE. |
29 | * $/LicenseInfo$ | ||
27 | */ | 30 | */ |
28 | 31 | ||
29 | #ifndef LL_VIEWER_H | 32 | #ifndef LL_VIEWER_H |
@@ -83,6 +86,7 @@ extern LLString gCmdLineLastName; | |||
83 | extern LLString gCmdLinePassword; | 86 | extern LLString gCmdLinePassword; |
84 | extern BOOL gAutoLogin; | 87 | extern BOOL gAutoLogin; |
85 | extern U32 gFrameCount; | 88 | extern U32 gFrameCount; |
89 | extern U32 gForegroundFrameCount; | ||
86 | extern BOOL gRequestInventoryLibrary; | 90 | extern BOOL gRequestInventoryLibrary; |
87 | extern BOOL gAcceptTOS; | 91 | extern BOOL gAcceptTOS; |
88 | extern BOOL gAcceptCriticalMessage; | 92 | extern BOOL gAcceptCriticalMessage; |
@@ -92,6 +96,7 @@ extern LLUUID gInventoryLibraryRoot; | |||
92 | extern BOOL gLastExecFroze; | 96 | extern BOOL gLastExecFroze; |
93 | extern F32 gLogoutMaxTime; | 97 | extern F32 gLogoutMaxTime; |
94 | extern LLTimer gRenderStartTime; | 98 | extern LLTimer gRenderStartTime; |
99 | extern LLFrameTimer gForegroundTime; | ||
95 | extern LLTimer gLogoutTimer; | 100 | extern LLTimer gLogoutTimer; |
96 | extern BOOL gInProductionGrid; | 101 | extern BOOL gInProductionGrid; |
97 | extern S32 gCrashBehavior; | 102 | extern S32 gCrashBehavior; |
@@ -158,40 +163,6 @@ extern LLTextureCache* gTextureCache; | |||
158 | 163 | ||
159 | extern LLPumpIO* gServicePump; | 164 | extern LLPumpIO* gServicePump; |
160 | 165 | ||
161 | class LLURLSimString | ||
162 | { | ||
163 | public: | ||
164 | enum { NOT_SET=0, NOT_PARSED=1, PARSE_OK=2, PARSE_FAIL=-1 }; | ||
165 | static void setString(const LLString& url); | ||
166 | static bool parse(); | ||
167 | static bool unpack_data(void* data); | ||
168 | static bool send_to_other_instance(); | ||
169 | |||
170 | LLURLSimString() : mX(128), mY(128), mZ(0), mParseState(NOT_PARSED) {} | ||
171 | |||
172 | private: | ||
173 | static S32 parseGridIdx(const LLString& in_string, S32 idx0, S32* res, S32 max); | ||
174 | struct llurl_data | ||
175 | { | ||
176 | char mSimName[DB_SIM_NAME_BUF_SIZE]; /*Flawfinder: ignore*/ | ||
177 | S32 mSimX; | ||
178 | S32 mSimY; | ||
179 | S32 mSimZ; | ||
180 | }; | ||
181 | |||
182 | |||
183 | public: | ||
184 | static LLURLSimString sInstance; | ||
185 | static LLString sLocationStringHome; | ||
186 | static LLString sLocationStringLast; | ||
187 | |||
188 | public: | ||
189 | LLString mSimString; // "name/x/y/z" | ||
190 | LLString mSimName; | ||
191 | S32 mX,mY,mZ; | ||
192 | S32 mParseState; | ||
193 | }; | ||
194 | |||
195 | extern LLUUID gSunTextureID; | 166 | extern LLUUID gSunTextureID; |
196 | extern LLUUID gMoonTextureID; | 167 | extern LLUUID gMoonTextureID; |
197 | 168 | ||
@@ -213,7 +184,6 @@ const S32 AGENT_UPDATES_PER_SECOND = 10; | |||
213 | // Global because multiple functions need to identify the window | 184 | // Global because multiple functions need to identify the window |
214 | // by its name. | 185 | // by its name. |
215 | extern LLString gWindowTitle; | 186 | extern LLString gWindowTitle; |
216 | extern LLString gWindowName; | ||
217 | extern LLString gDisabledMessage; | 187 | extern LLString gDisabledMessage; |
218 | extern BOOL gHideLinks; | 188 | extern BOOL gHideLinks; |
219 | 189 | ||