added the menu entry for the message log and builder

This commit is contained in:
Hazim Gazov
2010-05-05 17:13:33 -03:00
parent 25fe391f07
commit eec8f534a7

View File

@@ -229,7 +229,10 @@
#include "lltexlayer.h" #include "lltexlayer.h"
// <edit> // <edit>
#include "dofloaterhex.h" #include "dofloaterhex.h"
#include "hgfloatertexteditor.h"
#include "llfloatermessagelog.h"
#include "llfloatermessagebuilder.h"
// </edit> // </edit>
using namespace LLVOAvatarDefines; using namespace LLVOAvatarDefines;
@@ -393,7 +396,9 @@ void handle_leave_god_mode(void*);
// <edit> // <edit>
void handle_close_all_notifications(void*); void handle_close_all_notifications(void*);
void handle_reopen_with_hex_editor(void*); void handle_reopen_with_hex_editor(void*);
void handle_open_message_log(void*);
void handle_open_message_builder(void*);
// </edit> // </edit>
BOOL is_inventory_visible( void* user_data ); BOOL is_inventory_visible( void* user_data );
@@ -1036,6 +1041,9 @@ void init_client_menu(LLMenuGL* menu)
menu->append(new LLMenuItemCallGL( "Reopen with Hex Editor", menu->append(new LLMenuItemCallGL( "Reopen with Hex Editor",
&handle_reopen_with_hex_editor, NULL)); &handle_reopen_with_hex_editor, NULL));
menu->append(new LLMenuItemCallGL( "Message Log", &handle_open_message_log, NULL));
menu->append(new LLMenuItemCallGL( "Message Builder", &handle_open_message_builder, NULL));
// </edit> // </edit>
@@ -3031,6 +3039,16 @@ void handle_reopen_with_hex_editor(void*)
} }
} }
void handle_open_message_log(void*)
{
LLFloaterMessageLog::show();
}
void handle_open_message_builder(void*)
{
LLFloaterMessageBuilder::show("");
}
void handle_close_all_notifications(void*) void handle_close_all_notifications(void*)
{ {
LLView::child_list_t child_list(*(gNotifyBoxView->getChildList())); LLView::child_list_t child_list(*(gNotifyBoxView->getChildList()));