diff options
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/llviewermenu.cpp | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/linden/indra/newview/llviewermenu.cpp b/linden/indra/newview/llviewermenu.cpp index 308a19d..ace0bcb 100644 --- a/linden/indra/newview/llviewermenu.cpp +++ b/linden/indra/newview/llviewermenu.cpp | |||
@@ -120,6 +120,8 @@ | |||
120 | #include "llfloaterland.h" | 120 | #include "llfloaterland.h" |
121 | #include "llfloaterlandholdings.h" | 121 | #include "llfloaterlandholdings.h" |
122 | #include "llfloatermap.h" | 122 | #include "llfloatermap.h" |
123 | #include "llfloatermessagebuilder.h" | ||
124 | #include "llfloatermessagelog.h" | ||
123 | #include "llfloatermute.h" | 125 | #include "llfloatermute.h" |
124 | #include "llfloateropenobject.h" | 126 | #include "llfloateropenobject.h" |
125 | #include "llfloaterpermissionsmgr.h" | 127 | #include "llfloaterpermissionsmgr.h" |
@@ -394,6 +396,8 @@ void handle_god_mode(void*); | |||
394 | // God menu | 396 | // God menu |
395 | void handle_leave_god_mode(void*); | 397 | void handle_leave_god_mode(void*); |
396 | 398 | ||
399 | void handle_open_message_log(void*); | ||
400 | void handle_open_message_builder(void*); | ||
397 | BOOL is_inventory_visible( void* user_data ); | 401 | BOOL is_inventory_visible( void* user_data ); |
398 | void handle_reset_view(); | 402 | void handle_reset_view(); |
399 | 403 | ||
@@ -778,6 +782,11 @@ void init_client_menu(LLMenuGL* menu) | |||
778 | 782 | ||
779 | sub->appendSeparator(); | 783 | sub->appendSeparator(); |
780 | 784 | ||
785 | sub->append(new LLMenuItemCallGL( "Message Log", &handle_open_message_log, NULL)); | ||
786 | sub->append(new LLMenuItemCallGL( "Message Builder", &handle_open_message_builder, NULL)); | ||
787 | |||
788 | sub->appendSeparator(); | ||
789 | |||
781 | sub->append(new LLMenuItemCallGL("Region Info to Debug Console", | 790 | sub->append(new LLMenuItemCallGL("Region Info to Debug Console", |
782 | &handle_region_dump_settings, NULL)); | 791 | &handle_region_dump_settings, NULL)); |
783 | sub->append(new LLMenuItemCallGL("Group Info to Debug Console", | 792 | sub->append(new LLMenuItemCallGL("Group Info to Debug Console", |
@@ -3289,6 +3298,16 @@ void process_grant_godlike_powers(LLMessageSystem* msg, void**) | |||
3289 | } | 3298 | } |
3290 | } | 3299 | } |
3291 | 3300 | ||
3301 | |||
3302 | void handle_open_message_log(void*) | ||
3303 | { | ||
3304 | LLFloaterMessageLog::show(); | ||
3305 | } | ||
3306 | |||
3307 | void handle_open_message_builder(void*) | ||
3308 | { | ||
3309 | LLFloaterMessageBuilder::show(""); | ||
3310 | } | ||
3292 | /* | 3311 | /* |
3293 | class LLHaveCallingcard : public LLInventoryCollectFunctor | 3312 | class LLHaveCallingcard : public LLInventoryCollectFunctor |
3294 | { | 3313 | { |
@@ -8676,6 +8695,30 @@ class LLAdvancedDumpInfoToConsole : public view_listener_t | |||
8676 | 8695 | ||
8677 | 8696 | ||
8678 | 8697 | ||
8698 | ///////////////////////// | ||
8699 | // MESSAGE LOG/BUILDER // | ||
8700 | ///////////////////////// | ||
8701 | |||
8702 | |||
8703 | class LLMessageLogBuilder : public view_listener_t | ||
8704 | { | ||
8705 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
8706 | { | ||
8707 | std::string info_type = userdata.asString(); | ||
8708 | if ("MessageLog" == info_type) | ||
8709 | { | ||
8710 | handle_open_message_log(NULL); | ||
8711 | } | ||
8712 | else if ("MessageBuilder" == info_type) | ||
8713 | { | ||
8714 | handle_open_message_builder(NULL); | ||
8715 | } | ||
8716 | return true; | ||
8717 | } | ||
8718 | }; | ||
8719 | |||
8720 | |||
8721 | |||
8679 | /////////////////////////////// | 8722 | /////////////////////////////// |
8680 | // RELOAD SETTINGS OVERRIDES // | 8723 | // RELOAD SETTINGS OVERRIDES // |
8681 | /////////////////////////////// | 8724 | /////////////////////////////// |
@@ -11264,6 +11307,8 @@ void initialize_menus() | |||
11264 | addMenu(new LLAdvancedToggleConsole(), "Advanced.ToggleConsole"); | 11307 | addMenu(new LLAdvancedToggleConsole(), "Advanced.ToggleConsole"); |
11265 | addMenu(new LLAdvancedCheckConsole(), "Advanced.CheckConsole"); | 11308 | addMenu(new LLAdvancedCheckConsole(), "Advanced.CheckConsole"); |
11266 | addMenu(new LLAdvancedDumpInfoToConsole(), "Advanced.DumpInfoToConsole"); | 11309 | addMenu(new LLAdvancedDumpInfoToConsole(), "Advanced.DumpInfoToConsole"); |
11310 | addMenu(new LLMessageLogBuilder(), "Advanced.MessageLog"); | ||
11311 | addMenu(new LLMessageLogBuilder(), "Advanced.MessageBuilder"); | ||
11267 | addMenu(new LLAdvancedReloadSettingsOverrides(), "Advanced.ReloadSettingsOverrides"); | 11312 | addMenu(new LLAdvancedReloadSettingsOverrides(), "Advanced.ReloadSettingsOverrides"); |
11268 | addMenu(new LLAdvancedToggleSit(), "Advanced.ToggleSit"); | 11313 | addMenu(new LLAdvancedToggleSit(), "Advanced.ToggleSit"); |
11269 | addMenu(new LLAdvancedCheckSit(), "Advanced.CheckSit"); | 11314 | addMenu(new LLAdvancedCheckSit(), "Advanced.CheckSit"); |