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
b89657ba
Commit
b89657ba
authored
Jun 25, 2008
by
claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wb_login moved to co
parent
83dc0b7a
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
20 deletions
+20
-20
wb/exe/wb/src/wb_main.cpp
wb/exe/wb/src/wb_main.cpp
+14
-14
wb/exe/wb_cmd/gtk/wb_cmd_gtk.cpp
wb/exe/wb_cmd/gtk/wb_cmd_gtk.cpp
+2
-2
wb/exe/wb_cmd/motif/wb_cmd_motif.cpp
wb/exe/wb_cmd/motif/wb_cmd_motif.cpp
+2
-2
wb/exe/wb_cmd/src/wb_cmd_main.cpp
wb/exe/wb_cmd/src/wb_cmd_main.cpp
+2
-2
No files found.
wb/exe/wb/src/wb_main.cpp
View file @
b89657ba
/*
* Proview $Id: wb_main.cpp,v 1.
1 2007-01-04 07:29:02
claes Exp $
* Proview $Id: wb_main.cpp,v 1.
2 2008-06-25 07:53:34
claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
...
...
@@ -39,8 +39,8 @@
#include "wb.h"
#include "wb_ldhld.h"
#include "wb_ldh.h"
#include "
wb
_login.h"
#include "
wb
_login_msg.h"
#include "
co
_login.h"
#include "
co
_login_msg.h"
#include "wb_gre.h"
#include "wb_dir.h"
#include "wb_utl_api.h"
...
...
@@ -143,7 +143,7 @@ void Wb::find_wnav_cb( void *ctx, pwr_tOid oid)
}
else
{
utl_get_projectname
(
projectname
);
strcpy
(
title
,
login_prv
.
username
);
strcpy
(
title
,
CoLogin
::
username
()
);
strcat
(
title
,
" on "
);
strcat
(
title
,
projectname
);
...
...
@@ -173,7 +173,7 @@ void Wb::find_plc_cb( void *ctx, pwr_tOid oid)
}
else
{
utl_get_projectname
(
projectname
);
strcpy
(
title
,
login_prv
.
username
);
strcpy
(
title
,
CoLogin
::
username
()
);
strcat
(
title
,
" on "
);
strcat
(
title
,
projectname
);
...
...
@@ -189,7 +189,7 @@ void Wb::find_plc_cb( void *ctx, pwr_tOid oid)
}
}
void
Wb
::
login_success
()
void
Wb
::
login_success
(
void
*
ctx
)
{
Wb
*
wb
=
main_wb
;
char
title
[
80
];
...
...
@@ -199,16 +199,16 @@ void Wb::login_success()
char
msg
[
80
];
printf
(
"-- Successfull login
\n
"
);
sprintf
(
msg
,
"User %s logged in"
,
login_prv
.
username
);
sprintf
(
msg
,
"User %s logged in"
,
CoLogin
::
username
()
);
MsgWindow
::
message
(
'I'
,
msg
);
/* Successfull login, start the volume selection */
if
(
login_prv
.
priv
&
pwr_mPrv_DevRead
)
if
(
CoLogin
::
privilege
()
&
pwr_mPrv_DevRead
)
{
utl_get_systemname
(
systemname
,
systemgroup
);
strcpy
(
title
,
"PwR Navigator: "
);
strcat
(
title
,
login_prv
.
username
);
strcat
(
title
,
CoLogin
::
username
()
);
strcat
(
title
,
" on "
);
strcat
(
title
,
systemname
);
wb
->
appl_count
++
;
...
...
@@ -252,12 +252,12 @@ void Wb::wtt_open_volume( void *wttctx, wb_eType type, char *filename, wow_eFile
char
systemgroup
[
80
];
pwr_tStatus
sts
;
if
(
login_prv
.
priv
&
pwr_mPrv_DevRead
||
login_prv
.
priv
&
pwr_mPrv_Administrator
)
if
(
CoLogin
::
privilege
()
&
pwr_mPrv_DevRead
||
CoLogin
::
privilege
()
&
pwr_mPrv_Administrator
)
{
if
(
!
filename
)
{
utl_get_systemname
(
systemname
,
systemgroup
);
strcpy
(
title
,
"PwR Navigator: "
);
strcat
(
title
,
login_prv
.
username
);
strcat
(
title
,
CoLogin
::
username
()
);
strcat
(
title
,
" on "
);
strcat
(
title
,
systemname
);
wb
->
appl_count
++
;
...
...
@@ -436,13 +436,13 @@ int Wb::vsel_success( void *vselctx, pwr_tVolumeId *volumelist, int volume_count
pwr_tStatus
status
;
sts
=
1
;
if
(
login_prv
.
priv
&
pwr_mPrv_DevRead
)
if
(
CoLogin
::
privilege
()
&
pwr_mPrv_DevRead
)
{
for
(
i
=
0
;
i
<
volume_count
;
i
++
)
{
volume
=
*
volumelist
++
;
utl_get_projectname
(
projectname
);
strcpy
(
title
,
login_prv
.
username
);
strcpy
(
title
,
CoLogin
::
username
()
);
strcat
(
title
,
" on "
);
strcat
(
title
,
projectname
);
wtt
=
wb
->
wtt_new
(
title
,
"Navigator"
,
wb
->
wbctx
,
volume
,
0
,
0
,
&
status
);
...
...
@@ -478,7 +478,7 @@ void Wb::vsel_cancel()
}
}
void
Wb
::
login_cancel
()
void
Wb
::
login_cancel
(
void
*
ctx
)
{
printf
(
"-- Login canceled
\n
"
);
/* Not successfull login, exit */
...
...
wb/exe/wb_cmd/gtk/wb_cmd_gtk.cpp
View file @
b89657ba
/*
* Proview $Id: wb_cmd_gtk.cpp,v 1.
1 2007-01-04 07:29:02
claes Exp $
* Proview $Id: wb_cmd_gtk.cpp,v 1.
2 2008-06-25 07:54:54
claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
...
...
@@ -38,7 +38,7 @@
#include "flow_browapi.h"
#include "wb_utl.h"
#include "wb_lfu.h"
#include "
wb
_login.h"
#include "
co
_login.h"
#include "wb_wnav_gtk.h"
#include "wb_wnav_item.h"
#include "wb_pal.h"
...
...
wb/exe/wb_cmd/motif/wb_cmd_motif.cpp
View file @
b89657ba
/*
* Proview $Id: wb_cmd_motif.cpp,v 1.
1 2007-01-04 07:29:02
claes Exp $
* Proview $Id: wb_cmd_motif.cpp,v 1.
2 2008-06-25 07:54:54
claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
...
...
@@ -53,7 +53,7 @@
#include "flow_browapi.h"
#include "wb_utl.h"
#include "wb_lfu.h"
#include "
wb
_login.h"
#include "
co
_login.h"
#include "wb_wnav_motif.h"
#include "wb_wnav_item.h"
#include "wb_pal.h"
...
...
wb/exe/wb_cmd/src/wb_cmd_main.cpp
View file @
b89657ba
/*
* Proview $Id: wb_cmd_main.cpp,v 1.
2 2008-04-01 10:35:32
claes Exp $
* Proview $Id: wb_cmd_main.cpp,v 1.
3 2008-06-25 07:55:13
claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
...
...
@@ -39,7 +39,7 @@
#include "flow_browapi.h"
#include "wb_utl.h"
#include "wb_lfu.h"
#include "
wb
_login.h"
#include "
co
_login.h"
#include "wb_wnav.h"
#include "wb_wnav_item.h"
#include "wb_pal.h"
...
...
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