2
2
<xsl:stylesheet version ="1.0"
3
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"/>
62
<xsl:template match="languages">
63
<xsl:if test="$OS='Windows'">
65
<Title text="_(Language setting)">
67
<Label text="_(Default language: )" gridx="1" gridy="1" anchor="baseline" weightx="0"/>
68
<Panel gridx="2" gridy="1" weightx="1"/>
69
<Select gridx="3" gridy="1" listener="ActionListener">
70
<actionPerformed choose="lang">
71
<xsl:call-template name="context"/>
73
<xsl:variable name="code" select="@lang"/>
74
<xsl:for-each select="language">
75
<option value="{@desc}" key="{@code}">
76
<xsl:if test="@code=$SCILAB_LANGUAGE or @code=$code">
77
<xsl:attribute name="selected">selected</xsl:attribute>
82
<Label text="_((This requires a restart of Scilab))" font-face="bold" gridx="1" gridy="2" anchor="west" weightx="0"/>
83
<Panel gridx="2" gridy="2" weightx="1" fill="both"/>
89
<xsl:template match="java-heap-memory" mode="tooltip"> and java heap size.</xsl:template>
90
<xsl:template match="java-heap-memory">
92
<Title text="_(Java Heap Memory)">
94
<Label text="_(Select the memory (in MB) available in Java: )" gridx="1" gridy="1" anchor="baseline" weightx="0"/>
95
<Panel gridx="2" gridy="1" weightx="1"/>
96
<NumericalSpinner min-value="0"
99
listener="ActionListener"
101
gridx="3" gridy="1" anchor="baseline" weightx="0">
102
<actionPerformed choose="heap-size">
103
<xsl:call-template name="context"/>
106
<Label text="_((This requires a restart of Scilab))" font-face="bold" gridx="1" gridy="2" anchor="west" weightx="0"/>
107
<Panel gridx="2" gridy="2" weightx="1" fill="both"/>
113
<xsl:template match="tools">
114
<Title text="_(Confirmation dialogs)">
116
<xsl:for-each select="tool">
118
gridy="{position() + 1}"
120
listener="ActionListener"
122
text="{@description}">
123
<actionPerformed choose="state">
124
<xsl:call-template name="context"/>
132
<xsl:template match="layouts">
133
<xsl:variable name="id" select="@id"/>
134
<Title text="_(Desktop Layout)">
136
<Label gridx="1" gridy="1" weightx="0" text="_(Select a layout)"/>
137
<Panel gridx="2" gridy="1" gridheight="1" fill="both"/>
138
<Select gridx="3" gridy="1" listener="ActionListener">
139
<actionPerformed choose="id">
140
<xsl:call-template name="context"/>
142
<xsl:for-each select="layout">
143
<option value="{@name}" key="{@id}">
144
<xsl:if test="@id=$id">
145
<xsl:attribute name="selected">selected</xsl:attribute>
150
<Label text="_((Modify the layout requires to restart Scilab))" font-face="bold" gridx="1" gridy="2" anchor="west" weightx="0"/>
151
<Panel gridx="1" gridy="3">
152
<VSpace height="10"/>
154
<Image gridx="1" gridy="4" gridwidth="3">
155
<xsl:attribute name="url">
156
<xsl:value-of select="layout[@id=$id]/@image"/>
164
<xsl:template match="actions">
165
<xsl:variable name="name" select="@name"/>
166
<xsl:variable name="current-item" select="action-folder[@name=$name]/action[number(@item)]"/>
167
<Title text="_(Keys binding)" fixed-height="false">
168
<VBox fixed-height="false">
170
<Label gridy="1" gridx="1" gridwidth="2" text="_(Filter on action name: )"/>
171
<Entry gridy="2" gridx="1" gridwidth="2" text="{@filter}" listener="EntryListener">
172
<entryChanged choose="filter">
173
<xsl:call-template name="context"/>
177
<VSpace height="10"/>
179
<VBox gridx="1" gridy="1" weightx="0" anchor="north">
180
<Label text="_(Component)"/>
181
<List item="{@name}" nb-visible-rows="4" listener="ActionListener">
182
<actionPerformed choose="name">
183
<xsl:call-template name="context"/>
185
<xsl:for-each select="action-folder">
186
<listElement name="{@name}"/>
190
<Panel gridx="2" gridy="1" weightx="0" width="30" height="1" fixed-width="true"/>
191
<Grid gridx="3" gridy="1" weightx="1" anchor="north">
192
<Label gridx="1" gridy="1" weightx="0" weighty="0" anchor="north" text="_(Name: )"/>
193
<Label gridx="2" gridy="1" weightx="0" weighty="0" anchor="west">
194
<xsl:attribute name="text">
195
<xsl:value-of select="$current-item/@name"/>
198
<Label gridx="1" gridy="2" weightx="0" weighty="0" anchor="north" text="_(Description: )"/>
199
<TextArea gridx="2" gridy="2" weightx="1" weighty="0" anchor="west" editable="false" rows="4">
200
<xsl:attribute name="text">
201
<xsl:value-of select="$current-item/@description"/>
204
<Label gridx="1" gridy="3" weightx="0" weighty="0" anchor="baseline" text="_(Binding: )"/>
205
<Entry gridx="2" gridy="3" weightx="0" weighty="0" anchor="baseline" listener="ActionListener">
206
<xsl:attribute name="text">
207
<xsl:value-of select="$current-item/@key"/>
209
<actionPerformed choose="key">
210
<xsl:attribute name="context">
211
<xsl:for-each select="$current-item/ancestor-or-self::*">
212
<xsl:if test="not(.=/)">
213
<xsl:value-of select="count(preceding-sibling::*)+1"/>
214
<xsl:text>/</xsl:text>
222
<VSpace height="10"/>
223
<Table mode="select" listener="TableListener" fixed-height="false">
224
<!-- we change this useless attribute (which is not an actuator) to force the table reload) -->
225
<xsl:attribute name="name">
226
<xsl:value-of select="concat($name,@filter)"/>
228
<tableSelect choose="item">
229
<xsl:call-template name="context"/>
231
<xsl:for-each select="action-folder[@name=$name]/action[contains(
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"/>
62
<xsl:template match="languages">
63
<xsl:if test="$OS='Windows'">
65
<Title text="_(Language setting)">
67
<Label text="_(Default language: )" gridx="1" gridy="1" anchor="baseline" weightx="0"/>
68
<Panel gridx="2" gridy="1" weightx="1"/>
69
<Select gridx="3" gridy="1" listener="ActionListener">
70
<actionPerformed choose="lang">
71
<xsl:call-template name="context"/>
73
<xsl:variable name="code" select="@lang"/>
74
<xsl:for-each select="language">
75
<option value="{@desc}" key="{@code}">
76
<xsl:if test="@code=$SCILAB_LANGUAGE or @code=$code">
77
<xsl:attribute name="selected">selected</xsl:attribute>
82
<Label text="_((This requires a restart of Scilab))" font-face="bold" gridx="1" gridy="2" anchor="west" weightx="0"/>
83
<Panel gridx="2" gridy="2" weightx="1" fill="both"/>
89
<xsl:template match="java-heap-memory" mode="tooltip"> and java heap size.</xsl:template>
90
<xsl:template match="java-heap-memory">
92
<Title text="_(Java Heap Memory)">
94
<Label text="_(Select the memory (in MB) available in Java: )" gridx="1" gridy="1" anchor="baseline" weightx="0"/>
95
<Panel gridx="2" gridy="1" weightx="1"/>
96
<NumericalSpinner min-value="0"
99
listener="ActionListener"
101
gridx="3" gridy="1" anchor="baseline" weightx="0">
102
<actionPerformed choose="heap-size">
103
<xsl:call-template name="context"/>
106
<Label text="_((This requires a restart of Scilab))" font-face="bold" gridx="1" gridy="2" anchor="west" weightx="0"/>
107
<Panel gridx="2" gridy="2" weightx="1" fill="both"/>
113
<xsl:template match="tools">
114
<Title text="_(Confirmation dialogs)">
116
<xsl:for-each select="tool">
118
gridy="{position() + 1}"
120
listener="ActionListener"
122
text="{@description}">
123
<actionPerformed choose="state">
124
<xsl:call-template name="context"/>
132
<xsl:template match="layouts">
133
<xsl:variable name="id" select="@id"/>
134
<Title text="_(Desktop Layout)">
136
<Label gridx="1" gridy="1" weightx="0" text="_(Select a layout)"/>
137
<Panel gridx="2" gridy="1" gridheight="1" fill="both"/>
138
<Select gridx="3" gridy="1" listener="ActionListener">
139
<actionPerformed choose="id">
140
<xsl:call-template name="context"/>
142
<xsl:for-each select="layout">
143
<option value="{@name}" key="{@id}">
144
<xsl:if test="@id=$id">
145
<xsl:attribute name="selected">selected</xsl:attribute>
150
<Label text="_((Modify the layout requires to restart Scilab))" font-face="bold" gridx="1" gridy="2" anchor="west" weightx="0"/>
151
<Panel gridx="1" gridy="3">
152
<VSpace height="10"/>
154
<Image gridx="1" gridy="4" gridwidth="3">
155
<xsl:attribute name="url">
156
<xsl:value-of select="layout[@id=$id]/@image"/>
164
<xsl:template match="actions">
165
<xsl:variable name="name" select="@name"/>
166
<xsl:variable name="current-item" select="action-folder[@name=$name]/action[number(@item)]"/>
167
<Title text="_(Keys binding)" fixed-height="false">
168
<VBox fixed-height="false">
170
<Label gridy="1" gridx="1" gridwidth="2" text="_(Filter on action name: )"/>
171
<Entry gridy="2" gridx="1" gridwidth="2" text="{@filter}" listener="EntryListener">
172
<entryChanged choose="filter">
173
<xsl:call-template name="context"/>
177
<VSpace height="10"/>
179
<VBox gridx="1" gridy="1" weightx="0" anchor="north">
180
<Label text="_(Component)"/>
181
<List item="{@name}" nb-visible-rows="4" listener="ActionListener">
182
<actionPerformed choose="name">
183
<xsl:call-template name="context"/>
185
<xsl:for-each select="action-folder">
186
<listElement name="{@name}"/>
190
<Panel gridx="2" gridy="1" weightx="0" width="30" height="1" fixed-width="true"/>
191
<Grid gridx="3" gridy="1" weightx="1" anchor="north">
192
<Label gridx="1" gridy="1" weightx="0" weighty="0" anchor="north" text="_(Name: )"/>
193
<Label gridx="2" gridy="1" weightx="0" weighty="0" anchor="west">
194
<xsl:attribute name="text">
195
<xsl:value-of select="$current-item/@name"/>
198
<Label gridx="1" gridy="2" weightx="0" weighty="0" anchor="north" text="_(Description: )"/>
199
<TextArea gridx="2" gridy="2" weightx="1" weighty="0" anchor="west" editable="false" rows="4">
200
<xsl:attribute name="text">
201
<xsl:value-of select="$current-item/@description"/>
204
<Label gridx="1" gridy="3" weightx="0" weighty="0" anchor="baseline" text="_(Binding: )"/>
205
<Entry gridx="2" gridy="3" weightx="0" weighty="0" anchor="baseline" listener="EntryListener">
206
<xsl:attribute name="text">
207
<xsl:value-of select="$current-item/@key"/>
209
<entryChanged choose="key">
210
<xsl:attribute name="context">
211
<xsl:for-each select="$current-item/ancestor-or-self::*">
212
<xsl:if test="not(.=/)">
213
<xsl:value-of select="count(preceding-sibling::*)+1"/>
214
<xsl:text>/</xsl:text>
222
<VSpace height="10"/>
223
<Table mode="select" listener="TableListener" fixed-height="false">
224
<!-- we change this useless attribute (which is not an actuator) to force the table reload) -->
225
<xsl:attribute name="name">
226
<xsl:value-of select="concat($name,@filter)"/>
228
<tableSelect choose="item">
229
<xsl:call-template name="context"/>
231
<xsl:for-each select="action-folder[@name=$name]/action[contains(
232
232
translate(@name,'abcdefghijklmnopqrstuvwxyz','ABCDEFGHIJKLMNOPQRSTUVWXYZ'),
233
233
translate(current()/@filter,'abcdefghijklmnopqrstuvwxyz','ABCDEFGHIJKLMNOPQRSTUVWXYZ'))]">
234
<tableRow binding="{@key}" command="{@name}"/>
236
<tableCol title="_(Action name)" attr="command"/>
237
<tableCol title="_(Key binding)" attr="binding"/>
234
<tableRow binding="{@key}" command="{@name}"/>
236
<tableCol title="_(Action name)" attr="command"/>
237
<tableCol title="_(Key binding)" attr="binding"/>
243
243
</xsl:stylesheet>