diff options
author | McCabe Maxsted | 2010-05-25 02:31:47 -0700 |
---|---|---|
committer | Jacek Antonelli | 2010-06-19 02:43:00 -0500 |
commit | 0446a6d1a9db046e7186b2da8b59a71f2dde6b72 (patch) | |
tree | ec2cbd234471266ffeee6f653a8d486ce20ad9ff | |
parent | Cleaned up the Emerald showlookat patch (diff) | |
download | meta-impy-0446a6d1a9db046e7186b2da8b59a71f2dde6b72.zip meta-impy-0446a6d1a9db046e7186b2da8b59a71f2dde6b72.tar.gz meta-impy-0446a6d1a9db046e7186b2da8b59a71f2dde6b72.tar.bz2 meta-impy-0446a6d1a9db046e7186b2da8b59a71f2dde6b72.tar.xz |
Added 'Reload All' button to the notification console for easier debugging (reloads notifications.xml)
3 files changed, 11 insertions, 2 deletions
diff --git a/linden/indra/newview/llfloaternotificationsconsole.cpp b/linden/indra/newview/llfloaternotificationsconsole.cpp index e625006..15ae3d4 100644 --- a/linden/indra/newview/llfloaternotificationsconsole.cpp +++ b/linden/indra/newview/llfloaternotificationsconsole.cpp | |||
@@ -187,6 +187,7 @@ BOOL LLFloaterNotificationConsole::postBuild() | |||
187 | addChannel("NotificationTips"); | 187 | addChannel("NotificationTips"); |
188 | 188 | ||
189 | getChild<LLButton>("add_notification")->setClickedCallback(onClickAdd, this); | 189 | getChild<LLButton>("add_notification")->setClickedCallback(onClickAdd, this); |
190 | getChild<LLButton>("reload_notifications")->setClickedCallback(onClickReload, this); | ||
190 | 191 | ||
191 | LLComboBox* notifications = getChild<LLComboBox>("notification_types"); | 192 | LLComboBox* notifications = getChild<LLComboBox>("notification_types"); |
192 | LLNotifications::TemplateNames names = LLNotifications::instance().getTemplateNames(); | 193 | LLNotifications::TemplateNames names = LLNotifications::instance().getTemplateNames(); |
@@ -244,6 +245,12 @@ void LLFloaterNotificationConsole::onClickAdd(void* user_data) | |||
244 | } | 245 | } |
245 | } | 246 | } |
246 | 247 | ||
248 | void LLFloaterNotificationConsole::onClickReload(void* user_data) | ||
249 | { | ||
250 | // Reload notifications.xml. Old used notifications are preserved in the history for the session -- MC | ||
251 | LLNotifications::instance().loadTemplates(); | ||
252 | } | ||
253 | |||
247 | 254 | ||
248 | //=============== LLFloaterNotification ================ | 255 | //=============== LLFloaterNotification ================ |
249 | 256 | ||
diff --git a/linden/indra/newview/llfloaternotificationsconsole.h b/linden/indra/newview/llfloaternotificationsconsole.h index 1a436b8..67c6191 100644 --- a/linden/indra/newview/llfloaternotificationsconsole.h +++ b/linden/indra/newview/llfloaternotificationsconsole.h | |||
@@ -55,6 +55,7 @@ public: | |||
55 | 55 | ||
56 | private: | 56 | private: |
57 | static void onClickAdd(void* user_data); | 57 | static void onClickAdd(void* user_data); |
58 | static void onClickReload(void* user_data); | ||
58 | }; | 59 | }; |
59 | 60 | ||
60 | 61 | ||
diff --git a/linden/indra/newview/skins/default/xui/en-us/floater_notifications_console.xml b/linden/indra/newview/skins/default/xui/en-us/floater_notifications_console.xml index 7186bb4..7c53696 100644 --- a/linden/indra/newview/skins/default/xui/en-us/floater_notifications_console.xml +++ b/linden/indra/newview/skins/default/xui/en-us/floater_notifications_console.xml | |||
@@ -2,8 +2,9 @@ | |||
2 | <floater bottom="100" can_close="true" can_drag_on_left="false" can_minimize="true" | 2 | <floater bottom="100" can_close="true" can_drag_on_left="false" can_minimize="true" |
3 | can_resize="true" enabled="true" height="500" left="176" title="Notifications Console" min_height="50" | 3 | can_resize="true" enabled="true" height="500" left="176" title="Notifications Console" min_height="50" |
4 | min_width="100" mouse_opaque="true" name="notifications_console" width="500"> | 4 | min_width="100" mouse_opaque="true" name="notifications_console" width="500"> |
5 | <combo_box name="notification_types" left="2" bottom="-40" height="18" width="440" follows="left|right|top" label="Select notification type"/> | 5 | <combo_box name="notification_types" left="2" bottom="-40" height="18" width="345" follows="left|right|top" label="Select notification type"/> |
6 | <button name="add_notification" left="445" bottom="-40" height="18" width="50" follows="right|top" label="Add"/> | 6 | <button name="add_notification" left="352" bottom="-40" height="20" width="50" follows="right|top" label="Add"/> |
7 | <button name="reload_notifications" left="405" bottom="-40" height="20" width="90" follows="right|top" label="Reload All"/> | ||
7 | <layout_stack name="notification_channels" left="5" right="-5" top="-42" bottom="5" follows="left|right|top|bottom" orientation="vertical"> | 8 | <layout_stack name="notification_channels" left="5" right="-5" top="-42" bottom="5" follows="left|right|top|bottom" orientation="vertical"> |
8 | </layout_stack> | 9 | </layout_stack> |
9 | </floater> | 10 | </floater> |