diff options
Diffstat (limited to 'linden/indra/newview/llviewerwindow.h')
-rw-r--r-- | linden/indra/newview/llviewerwindow.h | 32 |
1 files changed, 21 insertions, 11 deletions
diff --git a/linden/indra/newview/llviewerwindow.h b/linden/indra/newview/llviewerwindow.h index debe509..e6a9a14 100644 --- a/linden/indra/newview/llviewerwindow.h +++ b/linden/indra/newview/llviewerwindow.h | |||
@@ -4,6 +4,7 @@ | |||
4 | * | 4 | * |
5 | * Copyright (c) 2001-2007, Linden Research, Inc. | 5 | * Copyright (c) 2001-2007, Linden Research, Inc. |
6 | * | 6 | * |
7 | * Second Life Viewer Source Code | ||
7 | * The source code in this file ("Source Code") is provided by Linden Lab | 8 | * The source code in this file ("Source Code") is provided by Linden Lab |
8 | * to you under the terms of the GNU General Public License, version 2.0 | 9 | * to you under the terms of the GNU General Public License, version 2.0 |
9 | * ("GPL"), unless you have obtained a separate licensing agreement | 10 | * ("GPL"), unless you have obtained a separate licensing agreement |
@@ -126,8 +127,8 @@ public: | |||
126 | BOOL getLeftMouseDown() const { return mLeftMouseDown; } | 127 | BOOL getLeftMouseDown() const { return mLeftMouseDown; } |
127 | BOOL getRightMouseDown() const { return mRightMouseDown; } | 128 | BOOL getRightMouseDown() const { return mRightMouseDown; } |
128 | 129 | ||
129 | LLView* getTopView() const; | 130 | LLUICtrl* getTopCtrl() const; |
130 | BOOL hasTopView(LLView* view) const; | 131 | BOOL hasTopCtrl(LLView* view) const; |
131 | 132 | ||
132 | void setupViewport(S32 x_offset = 0, S32 y_offset = 0); | 133 | void setupViewport(S32 x_offset = 0, S32 y_offset = 0); |
133 | void setup3DRender(); | 134 | void setup3DRender(); |
@@ -144,7 +145,9 @@ public: | |||
144 | void getTargetWindow(BOOL& fullscreen, S32& width, S32& height) const; | 145 | void getTargetWindow(BOOL& fullscreen, S32& width, S32& height) const; |
145 | // The 'target' is where the user wants the window to be. It may not be | 146 | // The 'target' is where the user wants the window to be. It may not be |
146 | // there yet, because we may be supressing fullscreen prior to login. | 147 | // there yet, because we may be supressing fullscreen prior to login. |
147 | 148 | ||
149 | const LLString& getInitAlert() { return mInitAlert; } | ||
150 | |||
148 | // | 151 | // |
149 | // MANIPULATORS | 152 | // MANIPULATORS |
150 | // | 153 | // |
@@ -179,17 +182,18 @@ public: | |||
179 | BOOL hasKeyboardFocus( const LLUICtrl* possible_focus ) const; | 182 | BOOL hasKeyboardFocus( const LLUICtrl* possible_focus ) const; |
180 | BOOL childHasKeyboardFocus( const LLView* parent ) const; | 183 | BOOL childHasKeyboardFocus( const LLView* parent ) const; |
181 | 184 | ||
182 | void setMouseCapture(LLMouseHandler* new_captor,void (*on_capture_lost)(LLMouseHandler* old_captor)); // new_captor = NULL to release the mouse. | 185 | void setMouseCapture(LLMouseHandler* new_captor); // new_captor = NULL to release the mouse. |
183 | BOOL hasMouseCapture(const LLMouseHandler* possible_captor ) const; | ||
184 | LLMouseHandler* getMouseCaptor() const; | 186 | LLMouseHandler* getMouseCaptor() const; |
185 | 187 | ||
186 | void setTopView(LLView* new_top, void (*on_top_lost)(LLView* old_top)); // set new_top = NULL to release top_view. | 188 | void setTopCtrl(LLUICtrl* new_top); // set new_top = NULL to release top_view. |
187 | 189 | ||
188 | void reshape(S32 width, S32 height); | 190 | void reshape(S32 width, S32 height); |
189 | void sendShapeToSim(); | 191 | void sendShapeToSim(); |
190 | 192 | ||
191 | void draw(); | 193 | void draw(); |
192 | // void drawSelectedObjects(); | 194 | // void drawSelectedObjects(); |
195 | void updateDebugText(); | ||
196 | void drawDebugText(); | ||
193 | 197 | ||
194 | static void loadUserImage(void **cb_data, const LLUUID &uuid); | 198 | static void loadUserImage(void **cb_data, const LLUUID &uuid); |
195 | 199 | ||
@@ -207,7 +211,7 @@ public: | |||
207 | 211 | ||
208 | BOOL saveSnapshot(const LLString& filename, S32 image_width, S32 image_height, BOOL show_ui = TRUE, BOOL do_rebuild = FALSE, ESnapshotType type = SNAPSHOT_TYPE_COLOR); | 212 | BOOL saveSnapshot(const LLString& filename, S32 image_width, S32 image_height, BOOL show_ui = TRUE, BOOL do_rebuild = FALSE, ESnapshotType type = SNAPSHOT_TYPE_COLOR); |
209 | BOOL rawSnapshot(LLImageRaw *raw, S32 image_width, S32 image_height, BOOL keep_window_aspect = TRUE, | 213 | BOOL rawSnapshot(LLImageRaw *raw, S32 image_width, S32 image_height, BOOL keep_window_aspect = TRUE, |
210 | BOOL show_ui = TRUE, BOOL do_rebuild = FALSE, ESnapshotType type = SNAPSHOT_TYPE_COLOR ); | 214 | BOOL show_ui = TRUE, BOOL do_rebuild = FALSE, ESnapshotType type = SNAPSHOT_TYPE_COLOR ); |
211 | BOOL saveImageNumbered(LLImageRaw *raw, const LLString& extension = ""); | 215 | BOOL saveImageNumbered(LLImageRaw *raw, const LLString& extension = ""); |
212 | 216 | ||
213 | void playSnapshotAnimAndSound(); | 217 | void playSnapshotAnimAndSound(); |
@@ -278,7 +282,7 @@ private: | |||
278 | void stopGL(BOOL save_state = TRUE); | 282 | void stopGL(BOOL save_state = TRUE); |
279 | void restoreGL(const LLString& progress_message = LLString::null); | 283 | void restoreGL(const LLString& progress_message = LLString::null); |
280 | void initFonts(F32 zoom_factor = 1.f); | 284 | void initFonts(F32 zoom_factor = 1.f); |
281 | 285 | ||
282 | void analyzeHit( | 286 | void analyzeHit( |
283 | S32 x, // input | 287 | S32 x, // input |
284 | S32 y_from_bot, // input | 288 | S32 y_from_bot, // input |
@@ -291,6 +295,7 @@ private: | |||
291 | F32* hit_u_coord, // output | 295 | F32* hit_u_coord, // output |
292 | F32* hit_v_coord); // output | 296 | F32* hit_v_coord); // output |
293 | 297 | ||
298 | |||
294 | public: | 299 | public: |
295 | LLWindow* mWindow; // graphical window object | 300 | LLWindow* mWindow; // graphical window object |
296 | 301 | ||
@@ -333,13 +338,18 @@ protected: | |||
333 | 338 | ||
334 | LLString mOverlayTitle; // Used for special titles such as "Second Life - Special E3 2003 Beta" | 339 | LLString mOverlayTitle; // Used for special titles such as "Second Life - Special E3 2003 Beta" |
335 | 340 | ||
341 | BOOL mIgnoreActivate; | ||
342 | U8* mPickBuffer; | ||
343 | |||
344 | LLString mInitAlert; // Window / GL initialization requires an alert | ||
345 | |||
346 | class LLDebugText* mDebugText; // Internal class for debug text | ||
347 | |||
348 | protected: | ||
336 | static char sSnapshotBaseName[LL_MAX_PATH]; /* Flawfinder: ignore */ | 349 | static char sSnapshotBaseName[LL_MAX_PATH]; /* Flawfinder: ignore */ |
337 | static char sSnapshotDir[LL_MAX_PATH]; /* Flawfinder: ignore */ | 350 | static char sSnapshotDir[LL_MAX_PATH]; /* Flawfinder: ignore */ |
338 | 351 | ||
339 | static char sMovieBaseName[LL_MAX_PATH]; /* Flawfinder: ignore */ | 352 | static char sMovieBaseName[LL_MAX_PATH]; /* Flawfinder: ignore */ |
340 | |||
341 | BOOL mIgnoreActivate; | ||
342 | U8* mPickBuffer; | ||
343 | }; | 353 | }; |
344 | 354 | ||
345 | class LLBottomPanel : public LLPanel | 355 | class LLBottomPanel : public LLPanel |