]> SALOME platform Git repositories - tools/siman.git/blob - Workspace/Siman/WebContent/jsp/toolbar.jsp
Salome HOME
During checkout call run_salome_siman.sh.
[tools/siman.git] / Workspace / Siman / WebContent / jsp / toolbar.jsp
1 <%@ page language="java" contentType="text/html; charset=ISO-8859-1"
2         pageEncoding="ISO-8859-1"%>
3 <%@ taglib prefix="s" uri="/struts-tags"%>
4
5 <s:url id="properties" namespace="/" action="select">
6         <s:param name="menu">configuration</s:param>
7 </s:url>
8 <s:url id="scenario" namespace="/study" action="add-scenario"></s:url>
9 <s:url id="idea" namespace="/study" action="notyetimplemented"></s:url>
10 <s:url id="back" namespace="/study" action="step-study"></s:url>
11
12 <table width=100% border=0 cellspacing=0 cellpadding=0>
13         <tr height=30 valign=middle>
14
15                 <s:if test="toolBarSettings.isToolStudy">
16                         <td width=30 align=left><s:if test="toolBarSettings.canUserEdit">
17                                 <s:a href="%{#properties}">
18                                         <img src="<s:url value="/skin/tool.property.png"/>" border="none"
19                                                 title="<s:text name="tooltip.property"/>" />
20                                 </s:a>
21                         </s:if> <s:else>
22                                 <s:a href="%{#properties}">
23                                         <img src="<s:url value="/skin/tool.property.png"/>" border="none"
24                                                 title="<s:text name="tooltip.details"/>" />
25                                 </s:a>
26                         </s:else></td>
27                         <td width=30 align=left><s:if
28                                 test="toolBarSettings.isEnabledScript">
29                                 <s:a href="%{#scenario}">
30                                         <img src="<s:url value="/skin/tool.scenario.png"/>" border="none"
31                                                 title="<s:text name="tooltip.scenario"/>" />
32                                 </s:a>
33                         </s:if> <s:else>
34                                 <img src="<s:url value="/skin/disabled.scenario.png"/>"
35                                         border="none" title="" />
36                         </s:else></td>
37                         
38                         <s:set var="mess">
39                                 <s:text name="message.info.data">
40                                         <s:param>/tmp/SimanSalome/<s:property
41                                                         value="connectedUser.index" />/download</s:param>
42                                 </s:text>
43                         </s:set>
44                         <%-- URL for refreshing scenario view after checkin --%>
45                         <s:url id="refresh" forceAddSchemeHostAndPort="true"
46                                 namespace="/study" action="open-%{#entitype}" includeParams="none" escapeAmp="no">
47                                 <s:param name="selection" value="titleBarSettings.selectionState" />
48                                 <s:param name="message" value="#mess" />
49                         </s:url>
50                         
51                         <td align=right><img
52                                 src="<s:url value="/skin/image.vseparator.png"/>" border="none" />
53                         <s:if
54                                 test="openStudy.selectedStepRights.canCreateDocument() && (openStudy.moduleBar != null)">
55                                 <applet name="perform" id="perform"
56                                         code="org.splat.launcher.ToolbarApplet"
57                                         archive="../jap/splat-signedlauncher.jar"
58                                         width=<s:property value="openStudy.moduleBar.width"/>
59                                         height=<s:property value="openStudy.moduleBar.height"/>> <%-- Generate applet parameters for each tool button --%>
60                                         <s:iterator var="tool" value="openStudy.moduleBar.items"
61                                                 status="stat">
62                                                 <s:set var="arg" value="#tool.argument" />
63                                                 <param name="icon<s:property value="#stat.index" />"
64                                                         value="<s:property value="#tool.icon" />" />
65                                                 <param name="tool<s:property value="#stat.index" />"
66                                                         value="<s:property value="#tool.action" />" />
67                                                 <s:if test="#tool.action == 'runSalome'">
68                                                         <%-- 
69                         --siman --siman-study=s --siman-scenario=sc --siman-user=u -k
70                         --%>
71                                                         <s:set var="arg">--siman-study=<s:property
72                                                                         value="openStudy.index" /> --siman-scenario=<s:property
73                                                                         value="openStudy.selectedScenarioId" /> --siman-user=<s:property
74                                                                         value="connectedUser.username" />
75                                                         </s:set>
76                                                 </s:if>
77                                                 <s:if test="#arg != null">
78                                                         <param name="file<s:property value="#stat.index" />"
79                                                                 value="<s:property value="#arg" />" />
80                                                 </s:if>
81                                         </s:iterator>
82                                         <param name="refresh" value="<s:property value="%{refresh}"/>">
83                                 </applet>
84                         </s:if></td>
85                         <td width=30 align=right><s:a href="%{#idea}">
86                                 <img src="<s:url value="/skin/icon.idea.png"/>" border="none"
87                                         title="<s:text name="tooltip.search"/>" />
88                         </s:a></td>
89                 </s:if>
90
91                 <s:elseif test="toolBarSettings.isToolStandard">
92                         <td width=30 align=left><s:a href="%{#properties}">
93                                 <img src="<s:url value="/skin/tool.property.png"/>" border="none"
94                                         title="<s:text name="tooltip.details"/>" />
95                         </s:a></td>
96                 </s:elseif>
97
98                 <s:elseif test="toolBarSettings.isToolBack">
99                         <td width=30 align=left><s:a href="%{#back}">
100                                 <img src="<s:url value="/skin/icon.back.png"/>" border="none"
101                                         title="<s:text name="tooltip.back"/>" />
102                         </s:a></td>
103                 </s:elseif>
104         </tr>
105 </table>