diff options
Diffstat (limited to 'linden/indra/newview/llviewerwindow.h')
-rw-r--r-- | linden/indra/newview/llviewerwindow.h | 21 |
1 files changed, 7 insertions, 14 deletions
diff --git a/linden/indra/newview/llviewerwindow.h b/linden/indra/newview/llviewerwindow.h index ab2dd4e..79828f1 100644 --- a/linden/indra/newview/llviewerwindow.h +++ b/linden/indra/newview/llviewerwindow.h | |||
@@ -17,7 +17,8 @@ | |||
17 | * There are special exceptions to the terms and conditions of the GPL as | 17 | * There are special exceptions to the terms and conditions of the GPL as |
18 | * it is applied to this Source Code. View the full text of the exception | 18 | * it is applied to this Source Code. View the full text of the exception |
19 | * in the file doc/FLOSS-exception.txt in this software distribution, or | 19 | * in the file doc/FLOSS-exception.txt in this software distribution, or |
20 | * online at http://secondlifegrid.net/programs/open_source/licensing/flossexception | 20 | * online at |
21 | * http://secondlifegrid.net/programs/open_source/licensing/flossexception | ||
21 | * | 22 | * |
22 | * By copying, modifying or distributing this software, you acknowledge | 23 | * By copying, modifying or distributing this software, you acknowledge |
23 | * that you have read and understood your obligations described above, | 24 | * that you have read and understood your obligations described above, |
@@ -47,6 +48,7 @@ | |||
47 | #include "lltimer.h" | 48 | #include "lltimer.h" |
48 | #include "llstat.h" | 49 | #include "llstat.h" |
49 | #include "llalertdialog.h" | 50 | #include "llalertdialog.h" |
51 | #include "llnotifications.h" | ||
50 | 52 | ||
51 | class LLView; | 53 | class LLView; |
52 | class LLViewerObject; | 54 | class LLViewerObject; |
@@ -123,7 +125,7 @@ private: | |||
123 | 125 | ||
124 | }; | 126 | }; |
125 | 127 | ||
126 | #define MAX_IMAGE_SIZE 6144 //6 * 1024, max snapshot image size 6144 * 6144 | 128 | static const U32 MAX_SNAPSHOT_IMAGE_SIZE = 6 * 1024; // max snapshot image size 6144 * 6144 |
127 | 129 | ||
128 | class LLViewerWindow : public LLWindowCallbacks | 130 | class LLViewerWindow : public LLWindowCallbacks |
129 | { | 131 | { |
@@ -357,20 +359,10 @@ public: | |||
357 | 359 | ||
358 | void drawPickBuffer() const; | 360 | void drawPickBuffer() const; |
359 | 361 | ||
360 | LLAlertDialog* alertXml(const std::string& xml_filename, | ||
361 | LLAlertDialog::alert_callback_t callback = NULL, void* user_data = NULL); | ||
362 | LLAlertDialog* alertXml(const std::string& xml_filename, const LLStringUtil::format_map_t& args, | ||
363 | LLAlertDialog::alert_callback_t callback = NULL, void* user_data = NULL); | ||
364 | LLAlertDialog* alertXmlEditText(const std::string& xml_filename, const LLStringUtil::format_map_t& args, | ||
365 | LLAlertDialog::alert_callback_t callback, void* user_data, | ||
366 | LLAlertDialog::alert_text_callback_t text_callback, void *text_data, | ||
367 | const LLStringUtil::format_map_t& edit_args = LLStringUtil::format_map_t(), | ||
368 | BOOL draw_asterixes = FALSE); | ||
369 | |||
370 | static bool alertCallback(S32 modal); | ||
371 | |||
372 | private: | 362 | private: |
373 | bool shouldShowToolTipFor(LLMouseHandler *mh); | 363 | bool shouldShowToolTipFor(LLMouseHandler *mh); |
364 | static bool onAlert(const LLSD& notify); | ||
365 | |||
374 | void switchToolByMask(MASK mask); | 366 | void switchToolByMask(MASK mask); |
375 | void destroyWindow(); | 367 | void destroyWindow(); |
376 | void drawMouselookInstructions(); | 368 | void drawMouselookInstructions(); |
@@ -379,6 +371,7 @@ private: | |||
379 | void initFonts(F32 zoom_factor = 1.f); | 371 | void initFonts(F32 zoom_factor = 1.f); |
380 | void schedulePick(LLPickInfo& pick_info); | 372 | void schedulePick(LLPickInfo& pick_info); |
381 | S32 getChatConsoleBottomPad(); // Vertical padding for child console rect, varied by bottom clutter | 373 | S32 getChatConsoleBottomPad(); // Vertical padding for child console rect, varied by bottom clutter |
374 | LLRect getChatConsoleRect(); // Get optimal cosole rect. | ||
382 | 375 | ||
383 | public: | 376 | public: |
384 | LLWindow* mWindow; // graphical window object | 377 | LLWindow* mWindow; // graphical window object |