diff options
author | Jacek Antonelli | 2008-08-15 23:44:59 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:44:59 -0500 |
commit | a408bac29378072fbf36864164149458c978cfcc (patch) | |
tree | 67feccf1a5d3816611ba48d6762f86f0f7f4b1f6 /linden/indra/newview/llnotify.h | |
parent | Second Life viewer sources 1.17.0.12 (diff) | |
download | meta-impy-a408bac29378072fbf36864164149458c978cfcc.zip meta-impy-a408bac29378072fbf36864164149458c978cfcc.tar.gz meta-impy-a408bac29378072fbf36864164149458c978cfcc.tar.bz2 meta-impy-a408bac29378072fbf36864164149458c978cfcc.tar.xz |
Second Life viewer sources 1.17.1.0
Diffstat (limited to 'linden/indra/newview/llnotify.h')
-rw-r--r-- | linden/indra/newview/llnotify.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/linden/indra/newview/llnotify.h b/linden/indra/newview/llnotify.h index 8136cfc..eec27ec 100644 --- a/linden/indra/newview/llnotify.h +++ b/linden/indra/newview/llnotify.h | |||
@@ -46,7 +46,8 @@ public: | |||
46 | 46 | ||
47 | static void showXml( const LLString& xml_desc, | 47 | static void showXml( const LLString& xml_desc, |
48 | notify_callback_t callback = NULL, void *user_data = NULL); | 48 | notify_callback_t callback = NULL, void *user_data = NULL); |
49 | 49 | static void showXml( const LLString& xml_desc, const LLString::format_map_t& args, BOOL is_caution, | |
50 | notify_callback_t callback = NULL, void *user_data = NULL); | ||
50 | static void showXml( const LLString& xml_desc, const LLString::format_map_t& args, | 51 | static void showXml( const LLString& xml_desc, const LLString::format_map_t& args, |
51 | notify_callback_t callback = NULL, void *user_data = NULL); | 52 | notify_callback_t callback = NULL, void *user_data = NULL); |
52 | // For script notifications: | 53 | // For script notifications: |
@@ -57,8 +58,10 @@ public: | |||
57 | 58 | ||
58 | static bool parseNotify(const LLString& xml_filename); | 59 | static bool parseNotify(const LLString& xml_filename); |
59 | static const LLString& getTemplateMessage(const LLString& xml_desc); | 60 | static const LLString& getTemplateMessage(const LLString& xml_desc); |
61 | static BOOL getTemplateIsCaution(const LLString& xml_desc); | ||
60 | 62 | ||
61 | BOOL isTip() const { return mIsTip; } | 63 | BOOL isTip() const { return mIsTip; } |
64 | BOOL isCaution() const { return mIsCaution; } | ||
62 | /*virtual*/ void setVisible(BOOL visible); | 65 | /*virtual*/ void setVisible(BOOL visible); |
63 | 66 | ||
64 | notify_callback_t getNotifyCallback() { return mCallback; } | 67 | notify_callback_t getNotifyCallback() { return mCallback; } |
@@ -69,6 +72,7 @@ public: | |||
69 | protected: | 72 | protected: |
70 | LLNotifyBox(const LLString& xml_desc, const LLString::format_map_t& args, | 73 | LLNotifyBox(const LLString& xml_desc, const LLString::format_map_t& args, |
71 | notify_callback_t callback, void* user_data, | 74 | notify_callback_t callback, void* user_data, |
75 | BOOL is_caution = FALSE, | ||
72 | const option_list_t& extra_options = option_list_t(), | 76 | const option_list_t& extra_options = option_list_t(), |
73 | BOOL layout_script_dialog = FALSE); | 77 | BOOL layout_script_dialog = FALSE); |
74 | /*virtual*/ ~LLNotifyBox(); | 78 | /*virtual*/ ~LLNotifyBox(); |
@@ -86,7 +90,7 @@ protected: | |||
86 | 90 | ||
87 | // Returns the rect, relative to gNotifyView, where this | 91 | // Returns the rect, relative to gNotifyView, where this |
88 | // notify box should be placed. | 92 | // notify box should be placed. |
89 | static LLRect getNotifyRect(S32 num_options, BOOL layout_script_dialog); | 93 | static LLRect getNotifyRect(S32 num_options, BOOL layout_script_dialog, BOOL is_caution); |
90 | static LLRect getNotifyTipRect(const LLString &message); | 94 | static LLRect getNotifyTipRect(const LLString &message); |
91 | 95 | ||
92 | // internal handler for button being clicked | 96 | // internal handler for button being clicked |
@@ -102,6 +106,7 @@ private: | |||
102 | 106 | ||
103 | protected: | 107 | protected: |
104 | BOOL mIsTip; | 108 | BOOL mIsTip; |
109 | BOOL mIsCaution; // is this a caution notification? | ||
105 | BOOL mAnimating; // Are we sliding onscreen? | 110 | BOOL mAnimating; // Are we sliding onscreen? |
106 | 111 | ||
107 | // Time since this notification was displayed. | 112 | // Time since this notification was displayed. |
@@ -149,7 +154,7 @@ extern LLNotifyBoxView* gNotifyBoxView; | |||
149 | class LLNotifyBoxTemplate : public LLRefCount | 154 | class LLNotifyBoxTemplate : public LLRefCount |
150 | { | 155 | { |
151 | public: | 156 | public: |
152 | LLNotifyBoxTemplate() : mIsTip(FALSE), mDefaultOption(0) {} | 157 | LLNotifyBoxTemplate() : mIsTip(FALSE), mIsCaution(FALSE), mDefaultOption(0) {} |
153 | 158 | ||
154 | void setMessage(const LLString& message) | 159 | void setMessage(const LLString& message) |
155 | { | 160 | { |
@@ -169,6 +174,7 @@ public: | |||
169 | LLString mLabel; // Handle for access from code, etc | 174 | LLString mLabel; // Handle for access from code, etc |
170 | LLString mMessage; // Message to display | 175 | LLString mMessage; // Message to display |
171 | BOOL mIsTip; | 176 | BOOL mIsTip; |
177 | BOOL mIsCaution; | ||
172 | LLNotifyBox::option_list_t mOptions; | 178 | LLNotifyBox::option_list_t mOptions; |
173 | S32 mDefaultOption; | 179 | S32 mDefaultOption; |
174 | }; | 180 | }; |