1 <?xml version='1.0' encoding='utf-8'?>
2 <xsl:stylesheet version ="1.0"
3 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
5 <!-- = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
7 :: M A I N P A N E L : G E N E R A L
10 <xsl:template match="environment" mode="tooltip">Settings environment</xsl:template>
11 <xsl:template match="environment">
12 <Title text="_(Environment)">
14 <Label gridx="1" gridy="1" weightx="0" text="_(Floating point exception (ieee): )"/>
15 <Panel gridx="2" gridy="1" weightx="1"/>
16 <Select gridx="3" gridy="1" listener="ActionListener">
17 <xsl:variable name="fpe" select="@fpe"/>
18 <actionPerformed choose="fpe">
19 <xsl:call-template name="context"/>
21 <xsl:for-each select="fpe">
22 <option value="{@floating-point-exception}" key="{@code}">
23 <xsl:if test="@code=$fpe">
24 <xsl:attribute name="selected">selected</xsl:attribute>
30 <Label gridx="1" gridy="2" weightx="0" text="_(Printing format: )"/>
31 <Select gridx="3" gridy="2" listener="ActionListener">
32 <xsl:variable name="pf" select="@printing-format"/>
33 <actionPerformed choose="printing-format">
34 <xsl:call-template name="context"/>
36 <xsl:for-each select="printing-format">
37 <option value="{@format}" key="{@code}">
38 <xsl:if test="@code=$pf">
39 <xsl:attribute name="selected">selected</xsl:attribute>
44 <Label gridx="1" gridy="3" weightx="0" text="_(Width: )"/>
45 <NumericalSpinner gridx="3"
52 listener="ActionListener"
54 <actionPerformed choose="width">
55 <xsl:call-template name="context"/>
58 <Label gridx="1" gridy="4" weightx="0" text="_(Recursion limit: )"/>
59 <Panel gridx="2" gridy="1" weightx="1"/>
60 <NumericalSpinner gridx="3" gridy="4" weightx="0" length="3"
63 listener="ActionListener"
64 value="{@recursion-limit}">
65 <actionPerformed choose="recursion-limit">
66 <xsl:call-template name="context"/>
73 <xsl:template match="languages">
74 <xsl:if test="$OS='Windows'">
76 <Title text="_(Language setting)">
78 <Label text="_(Default language: )" gridx="1" gridy="1" anchor="baseline" weightx="0"/>
79 <Panel gridx="2" gridy="1" weightx="1"/>
80 <Select gridx="3" gridy="1" listener="ActionListener">
81 <actionPerformed choose="lang">
82 <xsl:call-template name="context"/>
84 <xsl:variable name="code" select="@lang"/>
85 <xsl:for-each select="language">
86 <option value="{@desc}" key="{@code}">
87 <xsl:if test="@code=$SCILAB_LANGUAGE or @code=$code">
88 <xsl:attribute name="selected">selected</xsl:attribute>
93 <Label text="_((This requires a restart of Scilab))" font-face="bold" gridx="1" gridy="2" anchor="west" weightx="0"/>
94 <Panel gridx="2" gridy="2" weightx="1" fill="both"/>
100 <xsl:template match="java-heap-memory" mode="tooltip"> and java heap size.</xsl:template>
101 <xsl:template match="java-heap-memory">
102 <VSpace height="10"/>
103 <Title text="_(Java Heap Memory)">
105 <Label text="_(Select the memory (in MB) available in Java: )" gridx="1" gridy="1" anchor="baseline" weightx="0"/>
106 <Panel gridx="2" gridy="1" weightx="1"/>
107 <NumericalSpinner min-value="0"
110 listener="ActionListener"
112 gridx="3" gridy="1" anchor="baseline" weightx="0">
113 <actionPerformed choose="heap-size">
114 <xsl:call-template name="context"/>
117 <Label text="_((This requires a restart of Scilab))" font-face="bold" gridx="1" gridy="2" anchor="west" weightx="0"/>
118 <Panel gridx="2" gridy="2" weightx="1" fill="both"/>
123 <xsl:template match="startup">
124 <VSpace height="10"/>
125 <Title text="_(Start-up directory)">
127 <Radiobutton value="{@use}" expected-value="current" listener="ActionListener" text="_(Use current working directory)" gridx="1" gridy="1" fill="none" weightx="0" anchor="west">
128 <actionPerformed choose="use">
129 <xsl:call-template name="context"/>
133 <Radiobutton value="{@use}" expected-value="previous" listener="ActionListener" text="_(Use previous working directory)" gridx="1" gridy="2" fill="none" weightx="0" anchor="west">
134 <actionPerformed choose="use">
135 <xsl:call-template name="context"/>
139 <Radiobutton value="{@use}" expected-value="default" listener="ActionListener" text="_(Use default directory)" gridx="1" gridy="3" fill="none" weightx="0" anchor="west">
140 <actionPerformed choose="use">
141 <xsl:call-template name="context"/>
145 <FileSelector gridx="2" gridy="3" weightx="1" anchor="above_baseline"
146 listener="EntryListener"
148 desc="_(Default startup directory)"
151 <xsl:attribute name="enable">
152 <xsl:if test="@use='default'">
153 <xsl:text>true</xsl:text>
156 <entryChanged choose="default">
157 <xsl:call-template name="context"/>
164 <xsl:template match="tools">
165 <Title text="_(Confirmation dialogs)">
167 <xsl:for-each select="tool">
169 gridy="{position() + 1}"
171 listener="ActionListener"
173 text="{@description}">
174 <actionPerformed choose="state">
175 <xsl:call-template name="context"/>
183 <xsl:template match="layouts">
184 <xsl:variable name="id" select="@id"/>
185 <Title text="_(Desktop Layout)">
187 <Label gridx="1" gridy="1" weightx="0" text="_(Select a layout)"/>
188 <Panel gridx="2" gridy="1" gridheight="1" fill="both"/>
189 <Select gridx="3" gridy="1" listener="ActionListener">
190 <actionPerformed choose="id">
191 <xsl:call-template name="context"/>
193 <xsl:for-each select="layout">
194 <option value="{@name}" key="{@id}">
195 <xsl:if test="@id=$id">
196 <xsl:attribute name="selected">selected</xsl:attribute>
201 <Label text="_((Modifying the layout requires to restart Scilab))" font-face="bold" gridx="1" gridy="2" anchor="west" weightx="0"/>
202 <Panel gridx="1" gridy="3">
203 <VSpace height="10"/>
205 <Image gridx="1" gridy="4" gridwidth="3">
206 <xsl:attribute name="url">
207 <xsl:value-of select="layout[@id=$id]/@image"/>
210 <Panel gridx="1" gridy="5">
211 <VSpace height="10"/>
213 <Checkbox gridx="1" gridy="6" weightx="0" text="_(Save layout on exiting)" checked="{@save-desktop}" selected-value="true" unselected-value="false" listener="ActionListener">
214 <actionPerformed choose="save-desktop">
215 <xsl:call-template name="context"/>
218 <Button gridx="3" gridy="6" weightx="0" text="_(Reset layout)" listener="ActionListener">
219 <actionPerformed callback="Reset layout"/>
225 <xsl:template match="actions">
226 <xsl:variable name="name" select="@name"/>
227 <xsl:variable name="current-item" select="action-folder[@name=$name]/action[number(@item)]"/>
228 <Title text="_(Keys binding)" fixed-height="false">
229 <VBox fixed-height="false">
231 <Label gridy="1" gridx="1" gridwidth="2" text="_(Filter on action name: )"/>
232 <Entry gridy="2" gridx="1" gridwidth="2" text="{@filter}" listener="EntryListener">
233 <entryChanged choose="filter">
234 <xsl:call-template name="context"/>
238 <VSpace height="10"/>
240 <VBox gridx="1" gridy="1" weightx="0" anchor="north">
241 <Label text="_(Component)"/>
242 <List item="{@name}" nb-visible-rows="4" listener="ActionListener">
243 <actionPerformed choose="name">
244 <xsl:call-template name="context"/>
246 <xsl:for-each select="action-folder">
247 <listElement name="{@name}"/>
251 <Panel gridx="2" gridy="1" weightx="0" width="30" height="1" fixed-width="true"/>
252 <Grid gridx="3" gridy="1" weightx="1" anchor="north">
253 <Label gridx="1" gridy="1" weightx="0" weighty="0" anchor="north" text="_(Name: )"/>
254 <Label gridx="2" gridy="1" weightx="0" weighty="0" anchor="west">
255 <xsl:attribute name="text">
256 <xsl:value-of select="$current-item/@name"/>
259 <Label gridx="1" gridy="2" weightx="0" weighty="0" anchor="north" text="_(Description: )"/>
260 <TextArea gridx="2" gridy="2" weightx="1" weighty="0" anchor="west" editable="false" rows="4">
261 <xsl:attribute name="text">
262 <xsl:value-of select="$current-item/@description"/>
265 <Label gridx="1" gridy="3" weightx="0" weighty="0" anchor="baseline" text="_(Binding: )"/>
266 <Entry gridx="2" gridy="3" weightx="0" weighty="0" anchor="baseline" listener="EntryListener">
267 <xsl:attribute name="text">
268 <xsl:value-of select="$current-item/@key"/>
270 <entryChanged choose="key">
271 <xsl:attribute name="context">
272 <xsl:for-each select="$current-item/ancestor-or-self::*">
273 <xsl:if test="not(.=/)">
274 <xsl:value-of select="count(preceding-sibling::*)+1"/>
275 <xsl:text>/</xsl:text>
283 <VSpace height="10"/>
284 <Table mode="select" listener="TableListener" fixed-height="false">
285 <!-- we change this useless attribute (which is not an actuator) to force the table reload) -->
286 <xsl:attribute name="name">
287 <xsl:value-of select="concat($name,@filter)"/>
289 <tableSelect choose="item">
290 <xsl:call-template name="context"/>
292 <xsl:for-each select="action-folder[@name=$name]/action[contains(
293 translate(@name,'abcdefghijklmnopqrstuvwxyz','ABCDEFGHIJKLMNOPQRSTUVWXYZ'),
294 translate(current()/@filter,'abcdefghijklmnopqrstuvwxyz','ABCDEFGHIJKLMNOPQRSTUVWXYZ'))]">
295 <tableRow binding="{@key}" command="{@name}"/>
297 <tableCol title="_(Action name)" attr="command"/>
298 <tableCol title="_(Key binding)" attr="binding"/>
305 <xsl:template match="demos">
306 <Title text="_(Demos)">
311 listener="ActionListener"
312 checked="{@demoGUIisDockable}"
313 text="_(The demo interface is dockable)"
315 <actionPerformed choose="demoGUIisDockable">
316 <xsl:call-template name="context"/>