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
da02f8c6
Commit
da02f8c6
authored
Jan 23, 2004
by
claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Display volume representation
parent
fbd156f4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
10 deletions
+32
-10
wb/lib/wb/src/wb_vsel.cpp
wb/lib/wb/src/wb_vsel.cpp
+32
-10
No files found.
wb/lib/wb/src/wb_vsel.cpp
View file @
da02f8c6
...
...
@@ -522,6 +522,8 @@ pwr_tStatus WVsel::load_volumelist()
pwr_tStatus
sts
;
int
i
;
bool
local_wbvolume
=
false
;
ldh_sVolumeInfo
info
;
char
str
[
120
];
XmListDeleteAllItems
(
widgets
.
volumelist
);
volume_count
=
0
;
...
...
@@ -548,32 +550,52 @@ pwr_tStatus WVsel::load_volumelist()
&
size
);
if
(
EVEN
(
sts
))
return
sts
;
strcat
(
name
,
" "
);
for
(
i
=
strlen
(
name
);
i
<
20
;
i
++
)
strcat
(
name
,
" "
);
strcpy
(
str
,
name
);
strcat
(
str
,
" "
);
for
(
i
=
strlen
(
str
);
i
<
20
;
i
++
)
strcat
(
str
,
" "
);
sts
=
ldh_GetVidInfo
(
wbctx
,
volume
,
&
info
);
if
(
EVEN
(
sts
))
return
sts
;
switch
(
info
.
VolRep
)
{
case
ldh_eVolRep_Db
:
strcat
(
str
,
"Db "
);
break
;
case
ldh_eVolRep_Dbs
:
strcat
(
str
,
"Dbs "
);
break
;
case
ldh_eVolRep_Wbl
:
strcat
(
str
,
"Wbl "
);
break
;
case
ldh_eVolRep_Mem
:
strcat
(
str
,
"Mem "
);
break
;
}
switch
(
classid
)
{
case
pwr_eClass_RootVolume
:
strcat
(
name
,
"RootVolume"
);
strcat
(
str
,
"RootVolume"
);
break
;
case
pwr_eClass_SubVolume
:
strcat
(
name
,
"SubVolume"
);
strcat
(
str
,
"SubVolume"
);
break
;
case
pwr_eClass_SharedVolume
:
strcat
(
name
,
"SharedVolume"
);
strcat
(
str
,
"SharedVolume"
);
break
;
case
pwr_eClass_ClassVolume
:
strcat
(
name
,
"ClassVolume"
);
strcat
(
str
,
"ClassVolume"
);
break
;
case
pwr_eClass_WorkBenchVolume
:
strcat
(
name
,
"WorkBenchVolume"
);
strcat
(
str
,
"WorkBenchVolume"
);
break
;
case
pwr_eClass_DirectoryVolume
:
strcat
(
name
,
"DirectoryVolume"
);
strcat
(
str
,
"DirectoryVolume"
);
break
;
}
cstr
=
XmStringCreateSimple
(
name
);
cstr
=
XmStringCreateSimple
(
str
);
XmListAddItemUnselected
(
widgets
.
volumelist
,
cstr
,
0
);
XmStringFree
(
cstr
);
...
...
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