Commit 20e52e6c authored by Claes Sjofors's avatar Claes Sjofors

Ge command 'set zoom/reset' added

parent 39f3f599
...@@ -124,7 +124,7 @@ dcli_tCmdTable graph_command_table[] = { ...@@ -124,7 +124,7 @@ dcli_tCmdTable graph_command_table[] = {
"SET", "SET",
&graph_set_func, &graph_set_func,
{ "dcli_arg1", "dcli_arg2", "dcli_arg3", "dcli_arg4", { "dcli_arg1", "dcli_arg2", "dcli_arg3", "dcli_arg4",
"/ON", "/OFF", "/ON", "/OFF", "/RESET",
""} ""}
}, },
{ {
...@@ -1296,6 +1296,16 @@ static int graph_set_func( void *client_data, ...@@ -1296,6 +1296,16 @@ static int graph_set_func( void *client_data,
strcpy( graph->java_package, arg2_str); strcpy( graph->java_package, arg2_str);
} }
else if ( cdh_NoCaseStrncmp( arg1_str, "ZOOM", strlen( arg1_str)) == 0)
{
if ( ODD( dcli_get_qualifier( "/RESET", 0, 0))) {
grow_UnZoom( graph->grow->ctx);
}
else {
graph->message('E', "Syntax error");
return GE__SYNTAX;
}
}
else else
{ {
graph->message('E', "Syntax error"); graph->message('E', "Syntax error");
......
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