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
f07a18ab
Commit
f07a18ab
authored
Jul 12, 2011
by
Claes Sjofors
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wb option -s to open dbs-file for volume instead of db
parent
622f5737
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
6 deletions
+13
-6
wb/exe/wb/gtk/wb_gtk.cpp
wb/exe/wb/gtk/wb_gtk.cpp
+7
-2
wb/exe/wb/src/wb_main.cpp
wb/exe/wb/src/wb_main.cpp
+2
-1
wb/lib/wb/src/wb_erep.cpp
wb/lib/wb/src/wb_erep.cpp
+2
-2
wb/lib/wb/src/wb_ldh.h
wb/lib/wb/src/wb_ldh.h
+2
-1
No files found.
wb/exe/wb/gtk/wb_gtk.cpp
View file @
f07a18ab
...
...
@@ -137,6 +137,7 @@ WbGtk::WbGtk( int argc, char *argv[]) : mainwindow(0)
char
filename
[
200
];
int
i
;
int
quiet
=
0
;
unsigned
int
options
=
0
;
Wb
::
main_wb
=
this
;
...
...
@@ -160,9 +161,13 @@ WbGtk::WbGtk( int argc, char *argv[]) : mainwindow(0)
volumename_p
=
0
;
break
;
case
'q'
:
//
Load all volumes
//
Quiet
quiet
=
1
;
break
;
case
's'
:
// Open dbs file
options
|=
ldh_mWbOption_OpenDbs
;
break
;
case
'l'
:
if
(
i
+
1
>=
argc
)
{
usage
();
...
...
@@ -238,7 +243,7 @@ WbGtk::WbGtk( int argc, char *argv[]) : mainwindow(0)
CoXHelpGtk
*
xhelp
=
new
CoXHelpGtk
(
mainwindow
,
0
,
xhelp_eUtility_Wtt
,
&
sts
);
CoXHelp
::
set_default
(
xhelp
);
sts
=
ldh_OpenWB
(
&
wbctx
,
volumename_p
,
0
);
sts
=
ldh_OpenWB
(
&
wbctx
,
volumename_p
,
options
);
psts
(
sts
,
NULL
);
if
(
EVEN
(
sts
))
exit
(
sts
);
...
...
wb/exe/wb/src/wb_main.cpp
View file @
f07a18ab
...
...
@@ -83,10 +83,11 @@ Wb *Wb::main_wb = 0;
void
Wb
::
usage
()
{
printf
(
"
\n
\
Usage: wb [-a][-q][-c][-p] [-l language] [username] [password] [volume]
\n
\
Usage: wb [-a][-q][-
s][-
c][-p] [-l language] [username] [password] [volume]
\n
\
\n
\
-a Attach all databases.
\n
\
-q Quiet. Hide license information.
\n
\
-s Open dbs file for volume.
\n
\
-c Start class editor.
\n
\
-p Open project list.
\n
\
-l Language specification, sv_se or en_us.
\n
\
...
...
wb/lib/wb/src/wb_erep.cpp
View file @
f07a18ab
...
...
@@ -780,9 +780,9 @@ void wb_erep::loadMeta( pwr_tStatus *status, char *db)
MsgWindow
::
message
(
'E'
,
"Database not found"
,
vname
);
}
else
{
int
open_loadfile
=
0
;
int
open_loadfile
=
m_options
&
ldh_mWbOption_OpenDbs
?
1
:
0
;
if
(
wb_dblock
::
is_locked
(
vname
,
uname
))
{
if
(
wb_dblock
::
is_locked
(
vname
,
uname
)
&&
!
open_loadfile
)
{
char
msg
[
120
];
sprintf
(
msg
,
"Database %s is locked by user %s"
,
vol_array
[
0
],
uname
);
...
...
wb/lib/wb/src/wb_ldh.h
View file @
f07a18ab
...
...
@@ -152,7 +152,8 @@ typedef enum {
}
ldh_eDId
;
typedef
enum
{
ldh_mWbOption_IgnoreDLoadError
=
1
<<
0
ldh_mWbOption_IgnoreDLoadError
=
1
<<
0
,
ldh_mWbOption_OpenDbs
=
1
<<
1
}
ldh_mWbOption
;
typedef
enum
{
...
...
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