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
8517ac9f
Commit
8517ac9f
authored
Sep 03, 2013
by
Claes Sjofors
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Multiview command 'set subwindow on own graph bugfix (refs #163)
parent
f5325312
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
27 additions
and
9 deletions
+27
-9
src/doc/man/en_us/man_dg.dat
src/doc/man/en_us/man_dg.dat
+8
-2
src/doc/man/sv_se/man_dg.dat
src/doc/man/sv_se/man_dg.dat
+6
-1
xtt/lib/xtt/gtk/xtt_multiview_gtk.cpp
xtt/lib/xtt/gtk/xtt_multiview_gtk.cpp
+6
-2
xtt/lib/xtt/gtk/xtt_multiview_gtk.h
xtt/lib/xtt/gtk/xtt_multiview_gtk.h
+1
-1
xtt/lib/xtt/src/xtt_multiview.h
xtt/lib/xtt/src/xtt_multiview.h
+1
-1
xtt/lib/xtt/src/xtt_xnav_command.cpp
xtt/lib/xtt/src/xtt_xnav_command.cpp
+5
-2
No files found.
src/doc/man/en_us/man_dg.dat
View file @
8517ac9f
...
...
@@ -9122,12 +9122,18 @@ plant and node hierarchy.
<TOPIC> set subwindow <style> function
Command set subwindow
Open a graph in a window object in a previously opened graph.
Open a graph in a window object in a previously opened graph, or
exchange a graph in a multiview cell.
<B>wtt> set subwindow 'graph' /name= /source=
<B>wtt> set subwindow 'multiview-object' /name= /source= [/continue]
/name <t>Name of the window object.
/source <t>Name of graph that is to be opened in the window object.
/source <t>Name of graph that is to be opened in the window object or
<t>in the multiview cell.
/continue <t>Can be used if the command is executed from a Ge button with
<t>other dynamics to execute. Should not be used if the graph
<t>with the button itself is exchanged.
</TOPIC>
<TOPIC> set template <style> function
...
...
src/doc/man/sv_se/man_dg.dat
View file @
8517ac9f
...
...
@@ -9009,12 +9009,17 @@ nod hierarkin.
<TOPIC> set subwindow <style> function
Kommando set subwindow
Öppna en graf i ett window objekt i en tidigare öppnad graf.
Öppna en graf i ett window objekt i en tidigare öppnad graf, eller
skifta graf i en multiwindow cell.
<B>wtt> set subwindow 'graph' /name= /source=
<B>wtt> set subwindow 'multiview-object' /name= /source= [/continue]
/name <t>Namn på window objektet.
/source <t>Namn på grafen som ska öppnas i window objektet.
/continue <t>Kan användas om kommandot exekveras från en Ge knapp
<t>med annan dynamik som ska exekveras. Ska inte användas
<t>om grafen med knappen själv skiftas.
</TOPIC>
<TOPIC> set template <style> function
...
...
xtt/lib/xtt/gtk/xtt_multiview_gtk.cpp
View file @
8517ac9f
...
...
@@ -63,6 +63,7 @@ typedef void *Widget;
#include "xtt_log.h"
#include "pwr_baseclasses.h"
#include "rt_xnav_msg.h"
#include "glow_msg.h"
gboolean
XttMultiViewGtk
::
action_inputfocus
(
GtkWidget
*
w
,
GdkEvent
*
event
,
gpointer
data
)
{
...
...
@@ -406,7 +407,7 @@ void *XttMultiViewGtk::get_widget()
}
int
XttMultiViewGtk
::
set_subwindow_source
(
const
char
*
name
,
char
*
source
,
char
*
object
,
int
insert
)
int
insert
,
int
cont
)
{
pwr_sClass_XttMultiView
mv
;
pwr_tStatus
sts
;
...
...
@@ -546,6 +547,9 @@ int XttMultiViewGtk::set_subwindow_source( const char *name, char *source, char
}
}
}
return
1
;
if
(
cont
)
return
1
;
else
return
GLOW__TERMINATED
;
}
xtt/lib/xtt/gtk/xtt_multiview_gtk.h
View file @
8517ac9f
...
...
@@ -72,7 +72,7 @@ class XttMultiViewGtk : public XttMultiView {
void
create_confirm_dialog
();
void
confirm_reply
(
int
ok
);
void
*
get_widget
();
int
set_subwindow_source
(
const
char
*
name
,
char
*
source
,
char
*
object
,
int
insert
=
1
);
int
set_subwindow_source
(
const
char
*
name
,
char
*
source
,
char
*
object
,
int
insert
=
1
,
int
more
=
0
);
static
void
ge_change_value_cb
(
void
*
ge_ctx
,
void
*
value_object
,
char
*
text
);
static
void
confirm_cb
(
void
*
ge_ctx
,
void
*
confirm_object
,
char
*
text
);
...
...
xtt/lib/xtt/src/xtt_multiview.h
View file @
8517ac9f
...
...
@@ -104,7 +104,7 @@ class XttMultiView {
virtual
void
pop
()
{}
virtual
void
set_size
(
int
width
,
int
height
)
{}
virtual
void
*
get_widget
()
{
return
0
;}
virtual
int
set_subwindow_source
(
const
char
*
name
,
char
*
source
,
char
*
object
,
int
insert
=
1
)
{
return
0
;}
virtual
int
set_subwindow_source
(
const
char
*
name
,
char
*
source
,
char
*
object
,
int
insert
=
1
,
int
cont
=
0
)
{
return
0
;}
void
message
(
char
severity
,
const
char
*
msg
);
int
set_object_focus
(
const
char
*
name
,
int
empty
);
...
...
xtt/lib/xtt/src/xtt_xnav_command.cpp
View file @
8517ac9f
...
...
@@ -354,7 +354,7 @@ dcli_tCmdTable xnav_command_table[] = {
"SET"
,
&
xnav_set_func
,
{
"dcli_arg1"
,
"dcli_arg2"
,
"/NAME"
,
"/VALUE"
,
"/BYPASS"
,
"/INDEX"
,
"/SOURCE"
,
"/OBJECT"
,
""
}
"/BYPASS"
,
"/INDEX"
,
"/SOURCE"
,
"/OBJECT"
,
"
/CONTINUE"
,
"
"
}
},
{
"SETUP"
,
...
...
@@ -842,6 +842,7 @@ static int xnav_set_func( void *client_data,
pwr_tOName
object_str
;
char
*
object_p
;
pwr_tOName
source_str
;
int
cont
;
if
(
EVEN
(
dcli_get_qualifier
(
"dcli_arg2"
,
graph_str
,
sizeof
(
graph_str
))))
{
xnav
->
message
(
'E'
,
"Graph name is missing"
);
...
...
@@ -866,6 +867,8 @@ static int xnav_set_func( void *client_data,
if
(
object_p
)
xnav_replace_node_str
(
object_p
,
object_p
);
cont
=
ODD
(
dcli_get_qualifier
(
"/CONTINUE"
,
0
,
0
));
if
(
xnav
->
appl
.
find_graph
(
graph_str
,
0
,
(
void
**
)
&
gectx
))
{
return
gectx
->
set_subwindow_source
(
name_str
,
source_str
,
object_p
);
}
...
...
@@ -877,7 +880,7 @@ static int xnav_set_func( void *client_data,
sts
=
gdh_NameToAttrref
(
pwr_cNObjid
,
graph_str
,
&
aref
);
if
(
ODD
(
sts
)
&&
xnav
->
appl
.
find
(
applist_eType_MultiView
,
&
aref
,
(
void
**
)
&
mvctx
))
{
return
mvctx
->
set_subwindow_source
(
name_str
,
source_str
,
object_p
);
return
mvctx
->
set_subwindow_source
(
name_str
,
source_str
,
object_p
,
cont
);
}
else
{
xnav
->
message
(
'E'
,
"Graph is not open"
);
...
...
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