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
81fc08cd
Commit
81fc08cd
authored
Mar 21, 2011
by
Claes Sjofors
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Xtt open object graph fix for SevHist and PlotGroup objects
parent
a9f26d23
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
76 additions
and
9 deletions
+76
-9
src/lib/co/src/co_cdh.c
src/lib/co/src/co_cdh.c
+8
-4
xtt/exe/rt_xtt/src/xtt_main.cpp
xtt/exe/rt_xtt/src/xtt_main.cpp
+51
-4
xtt/lib/xtt/src/xtt_c_object.cpp
xtt/lib/xtt/src/xtt_c_object.cpp
+17
-1
No files found.
src/lib/co/src/co_cdh.c
View file @
81fc08cd
...
...
@@ -309,10 +309,14 @@ cdh_ArefIsEqual (
pwr_sAttrRef
*
arp2
)
{
return
(
arp1
->
Objid
.
vid
==
arp2
->
Objid
.
vid
&&
arp1
->
Objid
.
oix
==
arp2
->
Objid
.
oix
&&
arp1
->
Offset
==
arp2
->
Offset
&&
(
arp1
->
Size
==
0
||
arp2
->
Size
==
0
||
arp1
->
Size
==
arp2
->
Size
));
if
(
arp1
->
Flags
.
b
.
Object
&&
arp2
->
Flags
.
b
.
Object
)
return
(
arp1
->
Objid
.
vid
==
arp2
->
Objid
.
vid
&&
arp1
->
Objid
.
oix
==
arp2
->
Objid
.
oix
);
else
return
(
arp1
->
Objid
.
vid
==
arp2
->
Objid
.
vid
&&
arp1
->
Objid
.
oix
==
arp2
->
Objid
.
oix
&&
arp1
->
Offset
==
arp2
->
Offset
&&
(
arp1
->
Size
==
0
||
arp2
->
Size
==
0
||
arp1
->
Size
==
arp2
->
Size
));
}
...
...
xtt/exe/rt_xtt/src/xtt_main.cpp
View file @
81fc08cd
...
...
@@ -349,15 +349,62 @@ void Xtt::activate_opengraph()
if
(
EVEN
(
sts
))
return
;
if
(
cdh_tidIsCid
(
classid
))
{
if
(
classid
==
pwr_cClass_DsTrend
||
classid
==
pwr_cClass_PlotGroup
)
{
switch
(
classid
)
{
case
pwr_cClass_DsTrend
:
// Open trend
sprintf
(
cmd
,
"open trend /name=%s /title=
\"
%s
\"
"
,
vname
,
name
);
xnav
->
command
(
cmd
);
return
;
case
pwr_cClass_DsFast
:
// Open fast
sprintf
(
cmd
,
"open fast /name=%s /title=
\"
%s
\"
"
,
vname
,
name
);
xnav
->
command
(
cmd
);
return
;
case
pwr_cClass_SevHist
:
case
pwr_cClass_SevHistObject
:
// Open history
sprintf
(
cmd
,
"open history /name=%s /title=
\"
%s
\"
"
,
vname
,
name
);
xnav
->
command
(
cmd
);
return
;
case
pwr_cClass_PlotGroup
:
{
pwr_tAName
aname
;
pwr_tAttrRef
yo
;
strcpy
(
aname
,
vname
);
strcat
(
aname
,
".YObjectName[0]"
);
sts
=
gdh_GetObjectInfo
(
aname
,
(
void
*
)
&
yo
,
sizeof
(
yo
));
if
(
ODD
(
sts
)
&&
cdh_ObjidIsNotNull
(
yo
.
Objid
))
{
sts
=
gdh_GetAttrRefTid
(
&
yo
,
&
classid
);
if
(
EVEN
(
sts
))
return
;
switch
(
classid
)
{
case
pwr_cClass_DsTrend
:
// Open trend
sprintf
(
cmd
,
"open trend /name=%s /title=
\"
%s
\"
"
,
vname
,
name
);
xnav
->
command
(
cmd
);
return
;
case
pwr_cClass_DsFast
:
// Open fast
sprintf
(
cmd
,
"open fast /name=%s /title=
\"
%s
\"
"
,
vname
,
name
);
xnav
->
command
(
cmd
);
return
;
case
pwr_cClass_SevHist
:
case
pwr_cClass_SevHistObject
:
// Open history
sprintf
(
cmd
,
"open history /name=%s /title=
\"
%s
\"
"
,
vname
,
name
);
xnav
->
command
(
cmd
);
return
;
}
return
;
}
return
;
}
default:
sprintf
(
cmd
,
"open graph /class/inst=%s/name=
\"
%s
\"
"
,
vname
,
name
);
xnav
->
command
(
cmd
);
return
;
}
sprintf
(
cmd
,
"open graph /class/inst=%s/name=
\"
%s
\"
"
,
vname
,
name
);
xnav
->
command
(
cmd
);
}
else
{
switch
(
classid
)
{
...
...
xtt/lib/xtt/src/xtt_c_object.cpp
View file @
81fc08cd
...
...
@@ -361,8 +361,24 @@ static pwr_tStatus OpenTrendFilter( xmenu_sMenuCall *ip)
sts
=
gdh_GetAttrRefTid
(
objar
,
&
cid
);
if
(
EVEN
(
sts
))
return
sts
;
if
(
cid
==
pwr_cClass_DsTrend
||
cid
==
pwr_cClass_PlotGroup
)
{
switch
(
cid
)
{
case
pwr_cClass_DsTrend
:
return
XNAV__SUCCESS
;
case
pwr_cClass_PlotGroup
:
{
sts
=
gdh_AttrrefToName
(
objar
,
name
,
sizeof
(
name
),
cdh_mName_volumeStrict
);
if
(
EVEN
(
sts
))
return
sts
;
strcat
(
name
,
".YObjectName[0]"
);
sts
=
gdh_GetObjectInfo
(
name
,
(
void
*
)
&
deftrend
,
sizeof
(
deftrend
));
if
(
ODD
(
sts
)
&&
cdh_ObjidIsNotNull
(
deftrend
.
Objid
))
{
// Default XttGraph found
sts
=
gdh_GetAttrRefTid
(
&
deftrend
,
&
classid
);
if
(
ODD
(
sts
)
&&
classid
==
pwr_cClass_DsTrend
)
return
XNAV__SUCCESS
;
}
return
XNAV__INVISIBLE
;
}
}
// Check if attribute DefTrend exist
...
...
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