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
065d44bd
Commit
065d44bd
authored
Nov 24, 2008
by
claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
OpenGraph opens object graph as default
parent
ce3bdf1e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
5 deletions
+27
-5
xtt/lib/ge/src/ge_dyn.cpp
xtt/lib/ge/src/ge_dyn.cpp
+27
-5
No files found.
xtt/lib/ge/src/ge_dyn.cpp
View file @
065d44bd
/*
/*
* Proview $Id: ge_dyn.cpp,v 1.
69 2008-10-31 12:51:34
claes Exp $
* Proview $Id: ge_dyn.cpp,v 1.
70 2008-11-24 15:24:16
claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
* Copyright (C) 2005 SSAB Oxelsund AB.
*
*
* This program is free software; you can redistribute it and/or
* This program is free software; you can redistribute it and/or
...
@@ -11017,11 +11017,33 @@ int GeOpenGraph::action( grow_tObject object, glow_tEvent event)
...
@@ -11017,11 +11017,33 @@ int GeOpenGraph::action( grow_tObject object, glow_tEvent event)
if
(
dyn
->
graph
->
command_cb
)
{
if
(
dyn
->
graph
->
command_cb
)
{
char
command
[
400
];
char
command
[
400
];
char
cmd
[
400
];
char
cmd
[
400
]
=
""
;
sprintf
(
command
,
"open graph/object=%s"
,
graph_object
);
if
(
strcmp
(
graph_object
,
""
)
!=
0
)
dyn
->
graph
->
get_command
(
command
,
cmd
,
dyn
);
sprintf
(
command
,
"open graph/object=%s"
,
graph_object
);
(
dyn
->
graph
->
command_cb
)(
dyn
->
graph
->
parent_ctx
,
cmd
);
else
{
// Open classgraph for popup menu object
if
(
dyn
->
total_action_type
&
ge_mActionType_PopupMenu
)
{
for
(
GeDynElem
*
elem
=
dyn
->
elements
;
elem
;
elem
=
elem
->
next
)
{
if
(
elem
->
action_type
==
ge_mActionType_PopupMenu
)
{
sprintf
(
command
,
"open graph/class/instance=%s"
,
((
GePopupMenu
*
)
elem
)
->
ref_object
);
break
;
}
}
}
else
if
(
dyn
->
total_dyn_type
&
ge_mDynType_HostObject
)
{
for
(
GeDynElem
*
elem
=
dyn
->
elements
;
elem
;
elem
=
elem
->
next
)
{
if
(
elem
->
dyn_type
==
ge_mDynType_HostObject
)
{
sprintf
(
command
,
"open graph/class/instance=%s"
,
((
GeHostObject
*
)
elem
)
->
hostobject
);
break
;
}
}
}
}
if
(
strcmp
(
command
,
""
)
!=
0
)
{
dyn
->
graph
->
get_command
(
command
,
cmd
,
dyn
);
(
dyn
->
graph
->
command_cb
)(
dyn
->
graph
->
parent_ctx
,
cmd
);
}
}
}
break
;
break
;
default:
;
default:
;
...
...
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