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
d3a465fd
Commit
d3a465fd
authored
Dec 11, 2014
by
Claes Sjofors
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Attribute flag DevHideValue added for password attriubtes
parent
755a618a
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
24 additions
and
6 deletions
+24
-6
src/wbl/pwrs/src/pwrs_td_adefflags.wb_load
src/wbl/pwrs/src/pwrs_td_adefflags.wb_load
+10
-0
wb/lib/wb/src/wb_wattnav.cpp
wb/lib/wb/src/wb_wattnav.cpp
+4
-2
wb/lib/wb/src/wb_wblnode.cpp
wb/lib/wb/src/wb_wblnode.cpp
+1
-0
wb/lib/wb/src/wb_wnav.cpp
wb/lib/wb/src/wb_wnav.cpp
+5
-4
wb/lib/wb/src/wb_wnav_item.cpp
wb/lib/wb/src/wb_wnav_item.cpp
+4
-0
No files found.
src/wbl/pwrs/src/pwrs_td_adefflags.wb_load
View file @
d3a465fd
...
...
@@ -321,6 +321,16 @@ SObject pwrs:Type
Attr Value = 16777216
EndBody
EndObject
!/**
! The attribute value is hidden in the configurator.
!*/
Object DevHideValue $Bit
Body SysBody
Attr PgmName = "DevHideValue"
Attr Text = "DevHideValue"
Attr Value = 33554432
EndBody
EndObject
EndObject
EndSObject
...
...
wb/lib/wb/src/wb_wattnav.cpp
View file @
d3a465fd
...
...
@@ -146,9 +146,11 @@ int WAttNav::check_attr( int *multiline, brow_tObject *node,
else
sts
=
item
->
get_value
(
(
char
**
)
&
p
);
wnav_attrvalue_to_string
(
ldhses
,
item
->
type_id
,
p
,
init_value
,
if
(
!
(
item
->
flags
&
PWR_MASK_DEVHIDEVALUE
))
{
wnav_attrvalue_to_string
(
ldhses
,
item
->
type_id
,
p
,
init_value
,
&
len
);
free
(
p
);
free
(
p
);
}
*
size
=
cdh_TypeToMaxStrSize
(
(
pwr_eType
)
item
->
type_id
,
item
->
size
,
1
);
if
(
item
->
type_id
==
pwr_eType_Text
)
...
...
wb/lib/wb/src/wb_wblnode.cpp
View file @
d3a465fd
...
...
@@ -330,6 +330,7 @@ static wbl_sSym attr_flags[] =
,{
"PWR_MASK_ALWAYSWBL"
,
PWR_MASK_ALWAYSWBL
}
,{
"PWR_MASK_DISABLEATTR"
,
PWR_MASK_DISABLEATTR
}
,{
"PWR_MASK_RTHIDE"
,
PWR_MASK_RTHIDE
}
,{
"PWR_MASK_DEVHIDEVALUE"
,
PWR_MASK_DEVHIDEVALUE
}
,{
"pwr_mClassDef_DevOnly"
,
pwr_mClassDef_DevOnly
}
,{
"pwr_mClassDef_System"
,
pwr_mClassDef_System
}
...
...
wb/lib/wb/src/wb_wnav.cpp
View file @
d3a465fd
...
...
@@ -827,11 +827,12 @@ int WNav::check_attr_value( brow_tObject node, int *multiline,
if
(
item
->
flags
&
PWR_MASK_STATE
&&
!
gbl
.
bypass
)
return
WNAV__FLAGSTATE
;
sts
=
item
->
get_value
(
(
char
**
)
&
p
);
wnav_attrvalue_to_string
(
ldhses
,
item
->
type_id
,
p
,
init_value
,
if
(
!
(
item
->
flags
&
PWR_MASK_DEVHIDEVALUE
))
{
sts
=
item
->
get_value
(
(
char
**
)
&
p
);
wnav_attrvalue_to_string
(
ldhses
,
item
->
type_id
,
p
,
init_value
,
&
len
);
free
(
p
);
free
(
p
);
}
*
size
=
cdh_TypeToMaxStrSize
(
(
pwr_eType
)
item
->
type_id
,
item
->
size
,
1
);
if
(
item
->
type_id
==
pwr_eType_Text
)
...
...
wb/lib/wb/src/wb_wnav_item.cpp
View file @
d3a465fd
...
...
@@ -1467,6 +1467,10 @@ int WItemAttr::update()
wnav_attrvalue_to_string
(
ldhses
,
type_id
,
value
,
&
buff
,
&
len
);
}
if
(
flags
&
PWR_MASK_DEVHIDEVALUE
)
for
(
int
i
=
0
;
i
<
len
;
i
++
)
buff
[
i
]
=
'*'
;
brow_SetAnnotation
(
node
,
1
,
buff
,
len
);
free
(
(
char
*
)
value
);
return
WNAV__SUCCESS
;
...
...
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