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
ca534c4d
Commit
ca534c4d
authored
Jan 30, 2007
by
claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Possibility to configure which jar-files to load in menu applet
parent
f859d8bc
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
109 additions
and
16 deletions
+109
-16
src/wbl/pwrb/src/pwrb_c_webhandler.wb_load
src/wbl/pwrb/src/pwrb_c_webhandler.wb_load
+14
-1
src/wbl/pwrb/src/pwrb_td_webloadarchivemask.wb_load
src/wbl/pwrb/src/pwrb_td_webloadarchivemask.wb_load
+62
-0
xtt/lib/ge/src/ge_graph_web.cpp
xtt/lib/ge/src/ge_graph_web.cpp
+33
-15
No files found.
src/wbl/pwrb/src/pwrb_c_webhandler.wb_load
View file @
ca534c4d
!
! Proview $Id: pwrb_c_webhandler.wb_load,v 1.1
0 2007-01-30 07:04:32
claes Exp $
! Proview $Id: pwrb_c_webhandler.wb_load,v 1.1
1 2007-01-30 13:00:18
claes Exp $
! Copyright (C) 2005 SSAB Oxelsund AB.
!
! This program is free software; you can redistribute it and/or
...
...
@@ -79,6 +79,7 @@ SObject pwrb:Class
EndObject
!/**
! Name of the html-file for the start page.
! Default index.html
!*/
Object FileName $Attribute 3
Body SysBody
...
...
@@ -164,6 +165,18 @@ SObject pwrb:Class
Attr TypeRef = "pwrs:Type-$String80"
EndBody
EndObject
!/**
! @Summary Web archives that is loaded when the menu applet is opened.
! Web archives that is loaded when the menu applet is opened.
! Object graphs for some classvolumes are not loaded as default, as
! they are quite large and timeconsuming. They will be loaded if the
! corresponding bit is set in this mask.
!*/
Object LoadArchives $Attribute 13
Body SysBody
Attr TypeRef = "pwrb:Type-WebLoadArchiveMask"
EndBody
EndObject
EndObject
!
! Template for WebHandler
...
...
src/wbl/pwrb/src/pwrb_td_webloadarchivemask.wb_load
0 → 100644
View file @
ca534c4d
!
! Proview $Id: pwrb_td_webloadarchivemask.wb_load,v 1.1 2007-01-30 13:00:18 claes Exp $
! Copyright (C) 2005 SSAB Oxelsund AB.
!
! This program is free software; you can redistribute it and/or
! modify it under the terms of the GNU General Public License as
! published by the Free Software Foundation, either version 2 of
! the License, or (at your option) any later version.
!
! This program is distributed in the hope that it will be useful
! but WITHOUT ANY WARRANTY; without even the implied warranty of
! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
! GNU General Public License for more details.
!
! You should have received a copy of the GNU General Public License
! along with the program, if not, write to the Free Software
! Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
!
! pwrb_webloadarchivemask.wb_load -- Defines the mask type WebLoadArchive
!
SObject pwrb:Type
!/**
! @Version 1.0
! @Group Types
! Bitmask for loading web archives.
!
! @b See also
! @classlink WebHandler pwrb_webhandler.html
!*/
Object WebLoadArchiveMask $TypeDef 38
Body SysBody
Attr Type = pwr_eType_Mask
Attr Size = 4
Attr TypeRef = "pwrs:Type-$Mask"
Attr Elements = 1
EndBody
!/**
! pwr_bcomp.jar.
!*/
Object BaseComponent $Bit
Body SysBody
Attr PgmName = "BaseComponent"
Attr Text = "BaseComponent"
Attr Value = 1
EndBody
EndObject
!/**
! pwr_abb.jar.
!*/
Object ABB $Bit
Body SysBody
Attr PgmName = "ABB"
Attr Text = "ABB"
Attr Value = 2
EndBody
EndObject
EndObject
EndSObject
xtt/lib/ge/src/ge_graph_web.cpp
View file @
ca534c4d
/*
* Proview $Id: ge_graph_web.cpp,v 1.1
0 2007-01-11 12:00:05
claes Exp $
* Proview $Id: ge_graph_web.cpp,v 1.1
1 2007-01-30 13:00:18
claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
...
...
@@ -97,8 +97,9 @@ int Graph::generate_web( ldh_tSesContext ldhses)
pwr_tString80
file_name
;
pwr_tBoolean
enable_login
;
pwr_tBoolean
enable_alarmlist
;
pwr_tBoolean
enable_eventl
ist
;
pwr_tBoolean
enable_eventl
og
;
pwr_tBoolean
enable_navigator
;
pwr_tMask
load_archives
;
char
style_sheet
[
80
];
char
start_URL
[
80
];
char
name
[
80
];
...
...
@@ -118,6 +119,7 @@ int Graph::generate_web( ldh_tSesContext ldhses)
pwr_tEnum
web_target
;
char
target_str
[
80
];
char
sname
[
80
];
char
arlist
[
400
];
ge_get_systemname
(
sname
);
...
...
@@ -159,7 +161,10 @@ int Graph::generate_web( ldh_tSesContext ldhses)
sts
=
ldh_GetObjectPar
(
ldhses
,
webhandler_objid
,
"RtBody"
,
"FileName"
,
&
value_p
,
&
size
);
if
(
EVEN
(
sts
))
return
sts
;
strcpy
(
file_name
,
value_p
);
if
(
strcmp
(
value_p
,
""
)
==
0
)
strcpy
(
file_name
,
"index.html"
);
else
strcpy
(
file_name
,
value_p
);
free
(
value_p
);
// Attribute Title
...
...
@@ -190,11 +195,11 @@ int Graph::generate_web( ldh_tSesContext ldhses)
enable_alarmlist
=
*
(
pwr_tBoolean
*
)
value_p
;
free
(
value_p
);
// Attribute EnableEventL
ist
sts
=
ldh_GetObjectPar
(
ldhses
,
webhandler_objid
,
"RtBody"
,
"EnableEventL
ist
"
,
// Attribute EnableEventL
og
sts
=
ldh_GetObjectPar
(
ldhses
,
webhandler_objid
,
"RtBody"
,
"EnableEventL
og
"
,
&
value_p
,
&
size
);
if
(
EVEN
(
sts
))
return
sts
;
enable_eventl
ist
=
*
(
pwr_tBoolean
*
)
value_p
;
enable_eventl
og
=
*
(
pwr_tBoolean
*
)
value_p
;
free
(
value_p
);
// Attribute EnableNavigator
...
...
@@ -218,6 +223,20 @@ int Graph::generate_web( ldh_tSesContext ldhses)
strcpy
(
start_URL
,
value_p
);
free
(
value_p
);
// Attribute LoadArchives
sts
=
ldh_GetObjectPar
(
ldhses
,
webhandler_objid
,
"RtBody"
,
"LoadArchives"
,
&
value_p
,
&
size
);
if
(
EVEN
(
sts
))
return
sts
;
load_archives
=
*
(
pwr_tMask
*
)
value_p
;
free
(
value_p
);
strcpy
(
arlist
,
"pwr_rt_client.jar,pwr_jop.jar,pwr_jopc.jar"
);
if
(
load_archives
&
pwr_mWebLoadArchiveMask_BaseComponent
)
strcat
(
arlist
,
",pwr_bcomp.jar"
);
if
(
load_archives
&
pwr_mWebLoadArchiveMask_ABB
)
strcat
(
arlist
,
",pwr_abb.jar"
);
// Login applet as default start URL
if
(
strcmp
(
start_URL
,
""
)
==
0
&&
enable_login
)
strcpy
(
start_URL
,
"pwr_login.html"
);
...
...
@@ -238,7 +257,7 @@ int Graph::generate_web( ldh_tSesContext ldhses)
*
s
=
0
;
strcpy
(
menu_file_name
,
name
);
strcat
(
menu_file_name
,
"_menu.html"
);
strcat
(
menu_file_name
,
"_menu
_as
.html"
);
// Generate html-file for login applet
strcpy
(
fname
,
"$pwrp_web/pwr_login.html"
);
...
...
@@ -265,9 +284,8 @@ int Graph::generate_web( ldh_tSesContext ldhses)
"</html>"
<<
endl
;
fp_login
.
close
();
// Generate html-file for start page
sprintf
(
fname
,
"$pwrp_web/%s.html"
,
name
);
// Generate html-file for start page applet style
sprintf
(
fname
,
"$pwrp_web/%s_as.html"
,
name
);
dcli_translate_filename
(
fname
,
fname
);
fp_start
.
open
(
fname
);
...
...
@@ -355,7 +373,7 @@ int Graph::generate_web( ldh_tSesContext ldhses)
web_target
=
*
(
pwr_tEnum
*
)
value_p
;
free
(
value_p
);
if
(
(
s
=
=
strrchr
(
graph_name
,
'.'
)))
if
(
(
s
=
strrchr
(
graph_name
,
'.'
)))
*
s
=
0
;
// Attribute Text
...
...
@@ -483,12 +501,12 @@ graph_text << "'," << resize << "," << width+20 << "," << height+20
" <object classid=
\"
clsid:8AD9C840-044E-11D1-B3E9-00805F499D93
\"
"
<<
endl
<<
" width=100% height=100% codebase=
\"
"
<<
codebase
<<
"
\"
>"
<<
endl
<<
" <param name = code value=jpwr.jop.JopOpWindowApplet.class >"
<<
endl
<<
" <param name =
\"
archive
\"
value=
\"
pwr_rt_client.jar,pwr_jop.jar,pwr_jopc.jar
,pwrp_"
<<
sname
<<
"_web.jar
\"
>"
<<
endl
<<
" <param name =
\"
archive
\"
value=
\"
"
<<
arlist
<<
"
,pwrp_"
<<
sname
<<
"_web.jar
\"
>"
<<
endl
<<
" <param name=
\"
type
\"
value=
\"
application/x-java-applet;version=1.3
\"
>"
<<
endl
<<
" <param name=
\"
scriptable
\"
value=
\"
false
\"
>"
<<
endl
<<
" <embed type=
\"
application/x-java-applet;version=1.4
\"
"
<<
endl
<<
" code = jpwr.jop.JopOpWindowApplet.class "
<<
endl
<<
" archive=
\"
pwr_jop.jar,pwr_jopc.jar,pwr_rt_client.jar
,pwrp_"
<<
sname
<<
"_web.jar
\"
"
<<
endl
<<
" archive=
\"
"
<<
arlist
<<
"
,pwrp_"
<<
sname
<<
"_web.jar
\"
"
<<
endl
<<
" width = 100% height = 100% scriptable=false "
<<
endl
<<
" pluginspage=
\"
http://java.sun.com/products/plugin/index.html#download
\"
>"
<<
endl
<<
" </body>"
<<
endl
<<
...
...
@@ -497,7 +515,7 @@ graph_text << "'," << resize << "," << width+20 << "," << height+20
// Generate html-file for start page for opwindow applet
sprintf
(
fname
,
"$pwrp_web/%s
_opwin
.html"
,
name
);
sprintf
(
fname
,
"$pwrp_web/%s.html"
,
name
);
dcli_translate_filename
(
fname
,
fname
);
fp_ows
.
open
(
fname
);
...
...
@@ -517,7 +535,7 @@ graph_text << "'," << resize << "," << width+20 << "," << height+20
fp_ows
.
close
();
printf
(
"-- Web startpage
s generated $pwrp_web/%s.html and %s_opwin.html
\n
"
,
name
,
name
);
printf
(
"-- Web startpage
generated $pwrp_web/%s.html
\n
"
,
name
);
#endif
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