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
7bd0340c
Commit
7bd0340c
authored
Feb 21, 2003
by
claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*** empty log message ***
parent
006d7833
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
49 additions
and
0 deletions
+49
-0
src/lib/rt/src/rt_load.x
src/lib/rt/src/rt_load.x
+1
-0
wb/lib/wb/src/wb_erep.cpp
wb/lib/wb/src/wb_erep.cpp
+36
-0
wb/lib/wb/src/wb_erep.h
wb/lib/wb/src/wb_erep.h
+1
-0
wb/lib/wb/src/wb_ldh.h
wb/lib/wb/src/wb_ldh.h
+1
-0
wb/lib/wb/src/wb_vsel.cpp
wb/lib/wb/src/wb_vsel.cpp
+10
-0
No files found.
src/lib/rt/src/rt_load.x
View file @
7bd0340c
...
...
@@ -44,6 +44,7 @@
%# define load_cNameDistribute "$pwrp_root/common/db/pwrp_cnf_distribute.dat"
%# define load_cNameSysObject "$pwrp_root/common/db/pwrp_cnf_sysobject.dat"
%# define load_cNameFilePath "$pwrp_root/common/db/pwrp_cnf_dirlist.dat"
%# define load_cNameLocalWb "$pwrp_root/common/db/wb.wb_load"
%# define load_cNameGblVolumeList "$pwra_db/pwr_volumelist.dat"
%# define load_cNameCmnVolumeList "pwr_volumelist.dat"
%# define load_cNameRttCrr "rtt_crr_%3.3d_%3.3d_%3.3d_%3.3d.dat"
...
...
wb/lib/wb/src/wb_erep.cpp
View file @
7bd0340c
...
...
@@ -89,6 +89,12 @@ wb_vrep *wb_erep::volume(pwr_tStatus *sts, const char *name) // Fix
return
it
->
second
;
}
}
for
(
it
=
m_vrepextern
.
begin
();
it
!=
m_vrepextern
.
end
();
it
++
)
{
if
(
cdh_NoCaseStrcmp
(
it
->
second
->
name
(),
name
)
==
0
)
{
*
sts
=
LDH__SUCCESS
;
return
it
->
second
;
}
}
*
sts
=
LDH__NOSUCHVOL
;
return
0
;
}
...
...
@@ -223,6 +229,7 @@ void wb_erep::load( pwr_tStatus *sts)
if
(
EVEN
(
*
sts
))
return
;
loadMeta
(
sts
);
loadLocalWb
(
sts
);
}
void
wb_erep
::
loadDirList
(
pwr_tStatus
*
status
)
...
...
@@ -425,6 +432,35 @@ void wb_erep::loadMeta( pwr_tStatus *status)
*
status
=
LDH__SUCCESS
;
}
void
wb_erep
::
loadLocalWb
(
pwr_tStatus
*
rsts
)
{
pwr_tStatus
sts
;
char
found_file
[
200
];
sts
=
dcli_search_file
(
load_cNameLocalWb
,
found_file
,
DCLI_DIR_SEARCH_INIT
);
dcli_search_file
(
load_cNameLocalWb
,
found_file
,
DCLI_DIR_SEARCH_END
);
if
(
ODD
(
sts
))
{
try
{
wb_vrepwbl
*
vrep
=
new
wb_vrepwbl
(
this
);
sts
=
vrep
->
load
(
found_file
);
if
(
ODD
(
sts
))
addExtern
(
&
sts
,
vrep
);
else
{
*
rsts
=
sts
;
cout
<<
"** Failiure loading local workbench volume"
<<
endl
;
return
;
}
}
catch
(
wb_error
&
e
)
{
*
rsts
=
e
.
sts
();
cout
<<
"** Failiure loading local workbench volume"
<<
endl
;
return
;
}
cout
<<
"-- Local workbench volume loaded"
<<
endl
;
}
*
rsts
=
LDH__SUCCESS
;
}
wb_cdrep
*
wb_erep
::
cdrep
(
pwr_tStatus
*
sts
,
const
wb_orep
&
o
)
{
wb_vrep
*
vrep
=
volume
(
sts
,
o
.
vid
());
...
...
wb/lib/wb/src/wb_erep.h
View file @
7bd0340c
...
...
@@ -57,6 +57,7 @@ private:
void
loadDirList
(
pwr_tStatus
*
status
);
void
loadCommonMeta
(
pwr_tStatus
*
status
);
void
loadMeta
(
pwr_tStatus
*
status
);
void
loadLocalWb
(
pwr_tStatus
*
sts
);
};
#endif
...
...
wb/lib/wb/src/wb_ldh.h
View file @
7bd0340c
...
...
@@ -23,6 +23,7 @@ extern "C" {
#define ldh_cWbdbVersionStr "V2.7.0"
#define ldh_cWBVol (0 + ((pwr_tVolumeId)254 << 24) + (254 << 16) + (254 << 8) + 254)
#define ldh_cWBVolLocal (0 + ((pwr_tVolumeId)254 << 24) + (254 << 16) + (254 << 8) + 252)
#define ldh_cProjectVolume (0 + ((pwr_tVolumeId)254 << 24) + (254 << 16) + (254 << 8) + 253)
#if 0
...
...
wb/lib/wb/src/wb_vsel.cpp
View file @
7bd0340c
...
...
@@ -518,6 +518,7 @@ pwr_tStatus WVsel::load_volumelist()
XmString
cstr
;
pwr_tStatus
sts
;
int
i
;
bool
local_wbvolume
=
false
;
XmListDeleteAllItems
(
widgets
.
volumelist
);
volume_count
=
0
;
...
...
@@ -575,8 +576,17 @@ pwr_tStatus WVsel::load_volumelist()
volume_count
++
;
if
(
volume_count
>=
VSEL_MAX_VOLUMES
)
break
;
if
(
local_wbvolume
)
break
;
sts
=
ldh_GetNextVolume
(
wbctx
,
volume
,
&
volume
);
if
(
EVEN
(
sts
)
&&
all
)
{
// Look for local workbench volume
volume
=
ldh_cWBVolLocal
;
sts
=
ldh_VolumeIdToName
(
wbctx
,
volume
,
name
,
sizeof
(
name
),
&
size
);
local_wbvolume
=
true
;
}
}
return
1
;
}
...
...
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