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
3571d0b0
Commit
3571d0b0
authored
Apr 08, 2003
by
claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Directory volume added
parent
6348fe36
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
9 deletions
+19
-9
wb/lib/wb/src/wb.h
wb/lib/wb/src/wb.h
+1
-1
wb/lib/wb/src/wb_erep.cpp
wb/lib/wb/src/wb_erep.cpp
+11
-1
wb/lib/wb/src/wb_ldh.h
wb/lib/wb/src/wb_ldh.h
+1
-1
wb/lib/wb/src/wb_wtt.cpp
wb/lib/wb/src/wb_wtt.cpp
+6
-6
No files found.
wb/lib/wb/src/wb.h
View file @
3571d0b0
...
...
@@ -16,7 +16,7 @@
typedef
enum
{
wb_eType_Volume
,
wb_eType_
Project
,
wb_eType_
Directory
,
wb_eType_Class
,
wb_eType_Buffer
}
wb_eType
;
...
...
wb/lib/wb/src/wb_erep.cpp
View file @
3571d0b0
...
...
@@ -548,7 +548,17 @@ void wb_erep::loadMeta( pwr_tStatus *status)
}
fpm
.
close
();
if
(
!
vol_cnt
)
// Load directory volume
strcpy
(
vname
,
"$pwrp_db/directory.db"
);
dcli_translate_filename
(
vname
,
vname
);
wb_vrepdb
*
vrepdb
=
new
wb_vrepdb
(
this
,
vname
);
vrepdb
->
name
(
"directory"
);
addDb
(
&
sts
,
vrepdb
);
if
(
EVEN
(
sts
))
*
status
=
LDH__PROJCONFIG
;
else
if
(
!
vol_cnt
)
*
status
=
LDH__PROJCONFIG
;
else
*
status
=
LDH__SUCCESS
;
...
...
wb/lib/wb/src/wb_ldh.h
View file @
3571d0b0
...
...
@@ -24,7 +24,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_c
Project
Volume (0 + ((pwr_tVolumeId)254 << 24) + (254 << 16) + (254 << 8) + 253)
#define ldh_c
Directory
Volume (0 + ((pwr_tVolumeId)254 << 24) + (254 << 16) + (254 << 8) + 253)
#define ldh_cVolatileVolMin (0 + ((pwr_tVolumeId)254 << 24) + (254 << 16) + (254 << 8) + 0)
#define ldh_cVolatileVolMax (0 + ((pwr_tVolumeId)254 << 24) + (254 << 16) + (254 << 8) + 100)
...
...
wb/lib/wb/src/wb_wtt.cpp
View file @
3571d0b0
...
...
@@ -226,7 +226,7 @@ void Wtt::menu_setup()
switch
(
wb_type
)
{
case
wb_eType_
Project
:
case
wb_eType_
Directory
:
if
(
editmode
)
{
XtSetValues
(
menu_save_w
,
sensitive
,
1
);
...
...
@@ -647,7 +647,7 @@ static void wtt_save_cb( void *ctx)
return
;
}
if
(
wtt
->
wb_type
==
wb_eType_
Project
)
if
(
wtt
->
wb_type
==
wb_eType_
Directory
)
{
sts
=
lfu_SaveDirectoryVolume
(
wtt
->
ldhses
,
wtt
->
toplevel
);
if
(
EVEN
(
sts
))
...
...
@@ -919,7 +919,7 @@ int Wtt::set_noedit( wtt_eNoEditMode save, wtt_eNoEditVolMode detach)
if
(
save
==
wtt_eNoEdit_Save
)
{
sts
=
ldh_SaveSession
(
ldhses
);
if
(
ODD
(
sts
)
&&
wb_type
==
wb_eType_
Project
)
if
(
ODD
(
sts
)
&&
wb_type
==
wb_eType_
Directory
)
sts
=
lfu_SaveDirectoryVolume
(
ldhses
,
toplevel
);
}
else
...
...
@@ -3331,7 +3331,7 @@ Wtt::Wtt(
*
status
=
sts
;
return
;
}
if
(
volid
==
ldh_c
Project
Volume
)
volclass
=
pwr_eClass_DirectoryVolume
;
// Fix
if
(
volid
==
ldh_c
Directory
Volume
)
volclass
=
pwr_eClass_DirectoryVolume
;
// Fix
sts
=
ldh_VolumeIdToName
(
wbctx
,
volid
,
volname
,
sizeof
(
volname
),
&
size
);
...
...
@@ -3343,8 +3343,8 @@ Wtt::Wtt(
switch
(
volclass
)
{
case
pwr_eClass_DirectoryVolume
:
wb_type
=
wb_eType_
Project
;
sprintf
(
title
,
"PwR Navigator
Project
%s, %s"
,
volname
,
name
);
wb_type
=
wb_eType_
Directory
;
sprintf
(
title
,
"PwR Navigator
Directory
%s, %s"
,
volname
,
name
);
strcpy
(
layout_w1
,
"ProjectNavigatorW1"
);
strcpy
(
layout_w2
,
"ProjectNavigatorW2"
);
strcpy
(
layout_palette
,
"ProjectNavigatorPalette"
);
...
...
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