From 9329081834d9a7d9a1a198b69a9ae118cc77f3e5 Mon Sep 17 00:00:00 2001 From: Eduardo Fiss Beloni Date: Tue, 22 Apr 2014 16:51:47 -0300 Subject: [PATCH] Xtt command show message --- xtt/lib/xtt/src/xtt_xnav_command.cpp | 21 ++++++++++++++++++++- 1 files changed, 20 insertions(+), 1 deletions(-) diff --git a/xtt/lib/xtt/src/xtt_xnav_command.cpp b/xtt/lib/xtt/src/xtt_xnav_command.cpp index ebb3032..9dd4e08 100644 --- a/xtt/lib/xtt/src/xtt_xnav_command.cpp +++ b/xtt/lib/xtt/src/xtt_xnav_command.cpp @@ -263,7 +263,7 @@ dcli_tCmdTable xnav_command_table[] = { "/OPTION", "/ENTRY", "/NEW", "/TITLE", "/WINDOW", "/ALARMVIEW", "/WIDTH", "/HEIGHT", "/XPOSITION", "/YPOSITION", "/FULLSCREEN", "/MAXIMIZE", "/FULLMAXIMIZE", - "/SORT", ""} + "/SORT", "/TEXT", ""} }, { "OPEN", @@ -2280,6 +2280,25 @@ static int xnav_show_func( void *client_data, } } } + else if ( cdh_NoCaseStrncmp( arg1_str, "MESSAGE", strlen( arg1_str)) == 0) + { + char text_str[256]; + char title_str[32]; + char *text_ptr; + char *title_ptr; + + if ( ODD( dcli_get_qualifier( "/TEXT", text_str, sizeof(text_str)))) + text_ptr = text_str; + else + text_ptr = ""; + + if ( ODD( dcli_get_qualifier( "/TITLE", title_str, sizeof(title_str)))) + title_ptr = title_str; + else + title_ptr = "Message"; + + xnav->wow->DisplayText( title_ptr, text_ptr); + } else if ( cdh_NoCaseStrncmp( arg1_str, "VOLUMES", strlen( arg1_str)) == 0) { /* Command is "SHOW VOLUMES" */ -- 1.7.4.1