Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
proview
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Esteban Blanc
proview
Commits
ab17c070
Commit
ab17c070
authored
May 21, 2015
by
Claes Sjofors
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Xtt fix for 'set subwindow' command in scripts
parent
a5fbba04
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
47 additions
and
6 deletions
+47
-6
src/doc/man/en_us/man_opg.dat
src/doc/man/en_us/man_opg.dat
+14
-1
src/doc/man/sv_se/man_opg.dat
src/doc/man/sv_se/man_opg.dat
+24
-4
xtt/lib/xtt/src/xtt_xnav_command.cpp
xtt/lib/xtt/src/xtt_xnav_command.cpp
+9
-1
No files found.
src/doc/man/en_us/man_opg.dat
View file @
ab17c070
...
...
@@ -1755,7 +1755,20 @@ supplying the object with the /object qualifier.
<t>in a multiview cell, not for window objects.
/y0 <t>Upper left y Ge coordinate for graph border.
/x1 <t>Lower right x Ge coordinate for graph border.
/x1 <t>Lower right y Ge coordinate for graph border.
/y1 <t>Lower right y Ge coordinate for graph border.
/continue <t>By default other actions for the command button are discarded as
<t>the current graph may have replaced itself. To also execute the succeeding
<t>actions for the button, the /continue qualifier is added.
If the 'set subwindow' command is used in a script and replaces the current
graph, the script should be terminated with a call to exit( GLOW__SUBTERMINATED).
<c>main()
<c> set subwindow motor1 /name=subw1 /source=motor1.pwg
<c> ...
<c> exit( GLOW__SUBTERMINATED);
<c>endmain
</TOPIC>
<TOPIC> add menu <style> function
...
...
src/doc/man/sv_se/man_opg.dat
View file @
ab17c070
...
...
@@ -1760,10 +1760,30 @@ att aktuellt objekt med /object.
<B>xtt> set subwindow 'graphname' /name= /source= [/object=]
'graphname' <t>den graf där window objektet ligger.
/name= <t>namn på window objektet.
/source= <t>namn på den Ge graf som ska visas i window objektet.
/object= <t>anger aktuellt objekt när grafen är en objekts-bild.
'graphname' <t>den graf där window objektet ligger.
/name <t>namn på window objektet.
/source <t>namn på den Ge graf som ska visas i window objektet.
/object <t>anger aktuellt objekt när grafen är en objekts-bild.
/x0 <t>Övre vänstra x-koordinaten i Ge för grafens gräns. Om x0, y0, x1, y1
<t>anges kan en annan del av grafen än den som har specificerats i
<t>Graph attribute visas. Implementerad för grafer i multiview celler,
<t>inte för window-objekt.
/y0 <t>Övre vänstra y-koordinaten i Ge för grafen.
/x1 <t>Nedre högra x-koordinaten i Ge för grafen.
/y1 <t>Nedre högra y-koordinaten i Ge för grafen.
/continue <t>Normalt exekveras inte några fler actions i kommando-knappen, eftersom den
<t>nuvarande grafen kan ha bytt ut sig själv. För att också exekvera efterföljande
<t>actions för kappen, adderas /continue.
Om 'set subwindow' kommandot används i ett script, och byter ut den nuvarande
grafen, ska scriptet avslutas med ett anrop till exit( GLOW__SUBTERMINATED).
<c>main()
<c> set subwindow motor1 /name=subw1 /source=motor1.pwg
<c> ...
<c> exit( GLOW__SUBTERMINATED);
<c>endmain
</TOPIC>
<TOPIC> add menu <style> function
...
...
xtt/lib/xtt/src/xtt_xnav_command.cpp
View file @
ab17c070
...
...
@@ -7483,6 +7483,8 @@ int XNav::command( char* input_str)
return
DCLI__SUCCESS
;
}
else
if
(
EVEN
(
sts
))
return
sts
;
command_sts
=
sts
;
return
DCLI__SUCCESS
;
}
// dcli_toupper( input_str, input_str);
...
...
@@ -8080,7 +8082,7 @@ int xnav_externcmd_func( char *cmd, void *client_data)
*
**************************************************************************/
int
XNav
::
readcmdfile
(
char
*
incommand
)
int
XNav
::
readcmdfile
(
char
*
incommand
)
{
char
input_str
[
160
];
int
sts
;
...
...
@@ -8118,9 +8120,13 @@ int XNav::readcmdfile( char *incommand)
if
(
EVEN
(
sts
))
return
sts
;
sts
=
ccm_register_function
(
"ConfirmDialog"
,
xnav_confirmdialog_func
);
if
(
EVEN
(
sts
))
return
sts
;
sts
=
ccm_create_external_var
(
"GLOW__SUBTERMINATED"
,
CCM_DECL_INT
,
0
,
GLOW__SUBTERMINATED
,
0
);
ccm_func_registred
=
1
;
}
strcpy
(
input_str
,
incommand
);
dcli_remove_blank
(
input_str
,
input_str
);
xnav_store_xnav
(
this
);
...
...
@@ -8131,6 +8137,8 @@ int XNav::readcmdfile( char *incommand)
&
appl_sts
,
verify
,
0
,
NULL
,
0
,
0
,
NULL
,
(
void
*
)
this
);
if
(
EVEN
(
sts
))
return
sts
;
if
(
sts
==
CCM__EXITFUNC
)
return
appl_sts
;
return
1
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment