]> SALOME platform Git repositories - tools/siman.git/blob - Workspace/Siman/WebContent/jsp/toolbar.jsp
Salome HOME
Fix for updating the left menu of the "Search knowledge" screen.
[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="/" action="select">
10     <s:param name="menu">search</s:param>
11     <s:param name="item">search-knowledge</s:param>
12 </s:url>
13 <s:url id="back" namespace="/study" action="step-study"></s:url>
14
15 <table width=100% border=0 cellspacing=0 cellpadding=0>
16         <tr height=30 valign=middle>
17
18                 <s:if test="toolBarSettings.isToolStudy">
19                         <td width=30 align=left><s:if test="toolBarSettings.canUserEdit">
20                                 <s:a href="%{#properties}">
21                                         <img src="<s:url value="/skin/tool.property.png"/>" border="none"
22                                                 title="<s:text name="tooltip.property"/>" />
23                                 </s:a>
24                         </s:if> <s:else>
25                                 <s:a href="%{#properties}">
26                                         <img src="<s:url value="/skin/tool.property.png"/>" border="none"
27                                                 title="<s:text name="tooltip.details"/>" />
28                                 </s:a>
29                         </s:else></td>
30                         <td width=30 align=left><s:if
31                                 test="toolBarSettings.isEnabledScript">
32                                 <s:a href="%{#scenario}">
33                                         <img src="<s:url value="/skin/tool.scenario.png"/>" border="none"
34                                                 title="<s:text name="tooltip.scenario"/>" />
35                                 </s:a>
36                         </s:if> <s:else>
37                                 <img src="<s:url value="/skin/disabled.scenario.png"/>"
38                                         border="none" title="" />
39                         </s:else></td>
40                         
41                         <s:set var="mess">
42                                 <s:text name="message.info.data">
43                                         <s:param>/tmp/SimanSalome/<s:property
44                                                         value="openStudy.index" />/<s:property
45                                                         value="openStudy.selectedScenarioId" />/<s:property
46                                                         value="connectedUser.index" /></s:param>
47                                 </s:text>
48                         </s:set>
49                         <%-- URL for refreshing scenario view after checkin --%>
50                         <s:url id="refresh" forceAddSchemeHostAndPort="true"
51                                 namespace="/study" action="open-%{#entitype}" includeParams="none" escapeAmp="no">
52                                 <s:param name="selection" value="titleBarSettings.selectionState" />
53                                 <s:param name="message" value="#mess" />
54                         </s:url>
55                         
56                         <td align=right><img
57                                 src="<s:url value="/skin/image.vseparator.png"/>" border="none" />
58                         <s:if
59                                 test="openStudy.selectedStepRights.canCreateDocument() && (openStudy.moduleBar != null)">
60                                 <applet name="perform" id="perform"
61                                         code="org.splat.launcher.ToolbarApplet"
62                                         archive="../jap/splat-signedlauncher.jar"
63                                         width=<s:property value="openStudy.moduleBar.width"/>
64                                         height=<s:property value="openStudy.moduleBar.height"/>> <%-- Generate applet parameters for each tool button --%>
65                                         <s:iterator var="tool" value="openStudy.moduleBar.items"
66                                                 status="stat">
67                                                 <s:set var="arg" value="#tool.argument" />
68                                                 <param name="icon<s:property value="#stat.index" />"
69                                                         value="<s:property value="#tool.icon" />" />
70                                                 <param name="tool<s:property value="#stat.index" />"
71                                                         value="<s:property value="#tool.action" />" />
72                                                 <s:if test="#tool.action == 'runSalome'">
73                                                         <%-- 
74                         --siman --siman-study=s --siman-scenario=sc --siman-user=u -k
75                         --%>
76                                                         <s:set var="arg">--siman-study=<s:property
77                                                                         value="openStudy.index" /> --siman-scenario=<s:property
78                                                                         value="openStudy.selectedScenarioId" /> --siman-user=<s:property
79                                                                         value="connectedUser.index" />
80                                                         </s:set>
81                                                 </s:if>
82                                                 <s:if test="#arg != null">
83                                                         <param name="file<s:property value="#stat.index" />"
84                                                                 value="<s:property value="#arg" />" />
85                                                 </s:if>
86                                         </s:iterator>
87                                         <param name="refresh" value="<s:property value="%{refresh}"/>">
88                                 </applet>
89                         </s:if></td>
90                         
91             <td width=30 align=right><s:a action="init-study-comparison">
92                 <img src="<s:url value="/skin/tool.compare.png"/>" border="none"
93                     title="<s:text name="tooltip.compare"/>" style="background-color: transparent;"/>
94             </s:a></td>
95             <td align=right><img
96                 src="<s:url value="/skin/image.vseparator.png"/>" border="none" />
97             
98                         <td width=30 align=right><s:a href="%{#idea}">
99                                 <img src="<s:url value="/skin/icon.idea.png"/>" border="none"
100                                         title="<s:text name="tooltip.search"/>" />
101                         </s:a></td>
102                 </s:if>
103
104                 <s:elseif test="toolBarSettings.isToolStandard">
105                         <td width=30 align=left><s:a href="%{#properties}">
106                                 <img src="<s:url value="/skin/tool.property.png"/>" border="none"
107                                         title="<s:text name="tooltip.details"/>" />
108                         </s:a></td>
109                 </s:elseif>
110
111                 <s:elseif test="toolBarSettings.isToolBack">
112                         <td width=30 align=left><s:a href="%{#back}">
113                                 <img src="<s:url value="/skin/icon.back.png"/>" border="none"
114                                         title="<s:text name="tooltip.back"/>" />
115                         </s:a></td>
116                 </s:elseif>
117         </tr>
118 </table>