Commit bcf0b4cb authored by Claes Sjofors's avatar Claes Sjofors

Xtt command 'show message' added

parent 627871a5
......@@ -1575,6 +1575,7 @@ show graph <t>Show graph-files <LINK> show graph
show time <t>Show current time <LINK> show time
show default<t>Show default directory <LINK> show default
show children<t>Show the children of an object <LINK> show children
show message<t>Show a message <LINK> show message
show objectlist<t>Show all objects of a specific class<LINK> show objectlist
show objid <t>Show object identity <LINK> show objid
show parameter<t>Show an object attribute <LINK> show parameter
......@@ -2548,6 +2549,17 @@ Show the current user and his privileges.
<B>xtt> show user
</TOPIC>
<TOPIC> show message <style> function
Command show message
Open a message window.
<B>xtt> show message /text= [/title=]
/text <t>Message text.
/title <t>Window title.
</TOPIC>
<TOPIC> show objectlist <style> function
Command show objectlist
......
......@@ -1590,6 +1590,7 @@ show graph <t>Visa graf-filer <LINK> show graph
show time <t>Visa aktuell tid <LINK> show time
show default<t>Visa default katalog <LINK> show default
show children<t>Visa ett objekts barn <LINK> show children
show message<t>Visa ett meddelande <LINK> show message
show objectlist<t>Visa alla objects av en specifik klass<LINK> show objectlist
show objid <t>Visa ett objekts identitet <LINK> show objid
show parameter<t>Visa ett objektsattribut <LINK> show parameter
......@@ -1990,6 +1991,17 @@ logout <LINK> logout
show user <LINK> show user
</TOPIC>
<TOPIC> show message <style> function
Command show message
Öppna ett fönster med ett meddelande.
<B>xtt> show message /text= [/title=]
/text <t>Meddelande.
/title <t>Titel på fönstret.
</TOPIC>
<TOPIC> show objectlist <style> function
Command show objectlist
......
......@@ -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,21 @@ 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[256];
if ( EVEN( dcli_get_qualifier( "/TEXT", text_str, sizeof(text_str)))) {
xnav->message('E', "Syntax error");
return XNAV__SUCCESS;
}
if ( EVEN( dcli_get_qualifier( "/TITLE", title_str, sizeof(title_str))))
strncpy( title_str, Lng::translate("Message"), sizeof(title_str));
xnav->wow->DisplayText( title_str, text_str);
}
else if ( cdh_NoCaseStrncmp( arg1_str, "VOLUMES", strlen( arg1_str)) == 0)
{
/* Command is "SHOW VOLUMES" */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment