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
665a3975
Commit
665a3975
authored
Feb 05, 2007
by
claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Disable attribute handled
parent
c7ff3962
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
1 deletion
+27
-1
wb/lib/wb/src/wb_nav.cpp
wb/lib/wb/src/wb_nav.cpp
+27
-1
No files found.
wb/lib/wb/src/wb_nav.cpp
View file @
665a3975
/*
* Proview $Id: wb_nav.cpp,v 1.1
0 2007-01-11 11:40:30
claes Exp $
* Proview $Id: wb_nav.cpp,v 1.1
1 2007-02-05 09:33:49
claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
...
...
@@ -320,6 +320,8 @@ int ItemObject::open_attributes( Nav *nav, double x, double y)
int
rows
;
pwr_tClassId
classid
;
char
body
[
20
];
char
parname
[
40
];
pwr_tAttrRef
aref
=
cdh_ObjidToAref
(
objid
);
if
(
brow_IsOpen
(
node
)
&
nav_mOpen_Children
)
{
// Close children first
...
...
@@ -351,10 +353,34 @@ int ItemObject::open_attributes( Nav *nav, double x, double y)
if
(
EVEN
(
sts
)
)
continue
;
for
(
i
=
0
;
i
<
rows
;
i
++
)
{
if
(
aref
.
Flags
.
b
.
Object
)
strcpy
(
parname
,
bodydef
[
i
].
ParName
);
else
{
strcpy
(
parname
,
name
);
strcat
(
parname
,
"."
);
strcat
(
parname
,
bodydef
[
i
].
ParName
);
}
if
(
bodydef
[
i
].
Par
->
Param
.
Info
.
Flags
&
PWR_MASK_INVISIBLE
||
bodydef
[
i
].
Par
->
Param
.
Info
.
Flags
&
PWR_MASK_RTVIRTUAL
)
continue
;
if
(
bodydef
[
i
].
Par
->
Output
.
Info
.
Flags
&
PWR_MASK_DISABLEATTR
&&
i
>
0
)
{
pwr_tDisableAttr
disabled
;
pwr_sAttrRef
aar
;
pwr_sAttrRef
ar
=
cdh_ObjidToAref
(
objid
);
sts
=
ldh_ArefANameToAref
(
nav
->
ldhses
,
&
ar
,
parname
,
&
aar
);
if
(
EVEN
(
sts
))
return
sts
;
sts
=
ldh_AttributeDisabled
(
nav
->
ldhses
,
&
aar
,
&
disabled
);
if
(
EVEN
(
sts
))
return
sts
;
if
(
disabled
)
continue
;
}
if
(
bodydef
[
i
].
Par
->
Param
.
Info
.
Flags
&
PWR_MASK_ARRAY
)
{
attr_exist
=
1
;
item
=
(
Item
*
)
new
ItemAttrArray
(
nav
,
objid
,
node
,
...
...
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