1 <?xml version="1.0"?>
2 <?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
3 <?xml-stylesheet href="chrome://fireinput/skin/fireinput.css" type="text/css"?>
4
5 <window
6 id="fireinputConfigWindow"
7 title="Fireinput Config"
8 orient="horizontal"
9 persist="screenX screenY"
10 onload="FireinputConfig.loadWindow();"
11 xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
12
13 <stringbundleset id="stringbundleset">
14 <stringbundle id="strings_fireinput" src="chrome://fireinput/locale/fireinput.properties"/>
15 </stringbundleset>
16
17 <script type="application/x-javascript" src="chrome://fireinput/content/version.js"/>
18 <script type="application/x-javascript" src="chrome://fireinput/content/debug.js"/>
19 <script type="application/x-javascript" src="chrome://fireinput/content/constant.js"/>
20 <script type="application/x-javascript" src="chrome://fireinput/content/utils.js"/>
21 <script type="application/x-javascript" src="chrome://fireinput/content/lib.js"/>
22 <script type="application/x-javascript" src="chrome://fireinput/content/fireinputPrefs.js"/>
23 <script type="application/x-javascript" src="chrome://fireinput/content/keybinding.js"/>
24 <script type="application/x-javascript" src="chrome://fireinput/content/fireinputConfig.js" />
25
26 <vbox flex="1">
27
28 <tabbox id="fireinputConfigTabbox">
29 <tabs>
30 <tab id="inputwindow" label="输入窗口设置"/>
31 <tab id="inputmethod" label="输入法管理"/>
32 <tab id="keyconfig" label="热键管理"/>
33 </tabs>
34
35 <tabpanels>
36 <tabpanel id="interfacepanel" orient="vertical">
37
38 <description>
39 修改输入框的大小,颜色和候选词的数量
40 </description>
41
42 <spacer style="height: 10px"/>
43
44 <groupbox orient="horizontal">
45 <caption label="输入框外观"/>
46 <grid id="fontsGrid">
47 <columns>
48 <column flex="1"/>
49 <column/>
50 </columns>
51 <rows id="fontsRows">
52 <row id="fontRow">
53 <hbox align="center">
54 <label control="fireinput.inputbox.fontsize" value="字体大小"/>
55 <menulist id="fireinput.inputbox.fontsize" option="inputboxFontsize">
56 <menupopup onpopuphidden=''>
57 <menuitem value="9" label="9"/>
58 <menuitem value="10" label="10"/>
59 <menuitem value="11" label="11"/>
60 <menuitem value="12" label="12"/>
61 <menuitem value="13" label="13"/>
62 <menuitem value="14" label="14"/>
63 <menuitem value="15" label="15"/>
64 <menuitem value="16" label="16"/>
65 <menuitem value="17" label="17"/>
66 <menuitem value="18" label="18"/>
67 <menuitem value="19" label="19"/>
68 <menuitem value="20" label="20"/>
69 <menuitem value="21" label="21"/>
70 </menupopup>
71 </menulist>
72 <label value="颜色" control="fireinput.inputbox.fontcolor"/>
73 <spacer flex="1"/>
74 <colorpicker type="button" id="fireinput.inputbox.fontcolor" palettename="standard" color="#999999"
75 option="inputboxFontcolor"/>
76 </hbox>
77 </row>
78 </rows>
79 </grid>
80 </groupbox>
81
82 <groupbox orient="horizontal">
83 <caption label="候选词的字体大小和颜色"/>
84 <grid id="fontsGrid">
85 <columns>
86 <column flex="1"/>
87 <column/>
88 </columns>
89 <rows id="fontsRows">
90 <row id="fontRow">
91 <hbox align="center">
92 <label control="fireinput.wordselection.fontsize" value="字体大小"/>
93 <menulist id="fireinput.wordselection.fontsize" option="wordselectionFontsize">
94 <menupopup onpopuphidden=''>
95 <menuitem value="9" label="9"/>
96 <menuitem value="10" label="10"/>
97 <menuitem value="11" label="11"/>
98 <menuitem value="12" label="12"/>
99 <menuitem value="13" label="13"/>
100 <menuitem value="14" label="14"/>
101 <menuitem value="15" label="15"/>
102 <menuitem value="16" label="16"/>
103 <menuitem value="17" label="17"/>
104 <menuitem value="18" label="18"/>
105 <menuitem value="19" label="19"/>
106 <menuitem value="20" label="20"/>
107 <menuitem value="21" label="21"/>
108 </menupopup>
109 </menulist>
110 <label value="颜色" control="fireinput.wordselection.fontcolor"/>
111 <spacer flex="1"/>
112 <colorpicker type="button" id="fireinput.wordselection.fontcolor" palettename="standard" color="#999999"
113 option="wordselectionFontcolor"/>
114 </hbox>
115 </row>
116 </rows>
117 </grid>
118 </groupbox>
119
120 <groupbox orient="horizontal">
121 <caption label="候选词数量"/>
122 <rows id="fontsRows">
123 <row id="fontRow">
124 <hbox>
125 <label control="fireinput.wordselection.num" value="显示个数"/>
126 <menulist id="fireinput.wordselection.num" option="wordselectionNum">
127 <menupopup>
128 <menuitem value="3" label="3"/>
129 <menuitem value="4" label="4"/>
130 <menuitem value="5" label="5"/>
131 <menuitem value="6" label="6"/>
132 <menuitem value="7" label="7"/>
133 <menuitem value="8" label="8"/>
134 <menuitem value="9" label="9"/>
135 </menupopup>
136 </menulist>
137 </hbox>
138 </row>
139 </rows>
140 </groupbox>
141 </tabpanel>
142
143 <tabpanel id="inputpanel" orient="vertical">
144
145 <description>
146 如不想使用某一中输入法,在下列框中点击此输入法使其不被选中。
147 </description>
148
149 <spacer style="height: 10px"/>
150
151 <groupbox orient="horizontal">
152 <caption label="输入法列表"/>
153 <listbox id="inputMethodList" flex="1">
154 <listhead>
155 <listheader label="输入法" style="min-width: 120px"/>
156 <listheader label="显示?" style="min-width: 50px"/>
157 </listhead>
158 <listcols>
159 <listcol/>
160 <listcol flex="1"/>
161 </listcols>
162 </listbox>
163
164 <spacer style="width: 10px;"/>
165 </groupbox>
166
167 <groupbox orient="horizontal" id="customizeShuangping" style="display: none">
168 <caption label="自定义双拼"/>
169 <rows id="customizeShuangpingList">
170 <row>
171 <hbox>
172 <label control="shuangpingList" value="Select Shuangping template"/>
173 <menulist>
174 <menupopup id="shuangpingList">
175 </menupopup>
176 </menulist>
177 </hbox>
178 </row>
179 </rows>
180 <rows id="customizeShuangpingList">
181 <row></row>
182 </rows>
183
184 </groupbox>
185 </tabpanel>
186
187
188 <tabpanel id="shortkey" orient="vertical">
189 <description>
190 要想选择不同的热键设置,到该输入框按下想要用的热键。
191 </description>
192
193 <spacer style="height: 10px"/>
194
195 <groupbox orient="horizontal">
196 <caption label="热键列表"/>
197 <grid>
198 <columns>
199 <column flex="1"/>
200 <column flex="2"/>
201 </columns>
202 <rows id="fireinputShortKeyList">
203 <row align="center">
204 <label value="打开或关闭火输输入法:"/>
205 <keyinputbox id="shortcut.openKey" option="openKey" defaultValue="1970" maxlength="1" size="20" allowmodifiers="true"/>
206 </row>
207 <row align="center">
208 <label value="打开或关闭中文输入:"/>
209 <keyinputbox id="shortcut.toggleIMEKey" option="toggleIMEKey" maxlength="1" size="20" allowmodifiers="true"/>
210 </row>
211 <row align="center">
212 <label value="快速打开或关闭中文输入:"/>
213 <keyinputbox id="shortcut.quickToggleIMEKey" option="quickToggleIMEKey" maxlength="1" size="20" allowmodifiers="false"/>
214 <description>(只支持单键)</description>
215 </row>
216 <row align="center">
217 <label value="转换中文输入法:"/>
218 <keyinputbox id="shortcut.switchInputMethodKey" option="switchInputMethodKey" maxlength="1" size="20" allowmodifiers="true"/>
219 </row>
220 <row align="center">
221 <label value="切换全/半角:"/>
222 <keyinputbox id="shortcut.toggleHalfKey" option="toggleHalfKey" maxlength="1" size="20" allowmodifiers="true"/>
223 </row>
224 <row align="center">
225 <label value="切换标点符号:"/>
226 <keyinputbox id="shortcut.togglePuncKey" option="togglePuncKey" maxlength="1" size="20" allowmodifiers="true"/>
227 </row>
228 <row align="center">
229 <label value="切换输入模式(简/繁):"/>
230 <keyinputbox id="shortcut.toggleEncodingKey" option="toggleEncodingKey" maxlength="1" size="20" allowmodifiers="true"/>
231 </row>
232 <row align="center">
233 <label value="打开火输离线编辑器:"/>
234 <keyinputbox id="shortcut.openEditorKey" option="openEditorKey" maxlength="1" size="20" allowmodifiers="true"/>
235 </row>
236 <row align="center">
237 <label value="可选词上翻页:"/>
238 <keyinputbox id="shortcut.pageUpKey" option="pageUpKey" maxlength="1" size="20" allowmodifiers="false"/>
239 <description>(只支持单键)</description>
240 </row>
241 <row align="center">
242 <label value="可选词下翻页:"/>
243 <keyinputbox id="shortcut.pageDownKey" option="pageDownKey" maxlength="1" size="20" allowmodifiers="false"/>
244 <description>(只支持单键)</description>
245 </row>
246 <row align="center">
247 <label value="选中第一个字词:"/>
248 <keyinputbox id="shortcut.selectFirstKey" option="selectFirstKey" maxlength="1" size="20" allowmodifiers="false"/>
249 <description>(只支持单键)</description>
250 </row>
251 <row align="center">
252 <label value="选中第二个字词:"/>
253 <keyinputbox id="shortcut.selectSecondKey" option="selectSecondKey" maxlength="1" size="20" allowmodifiers="false"/>
254 <description>(只支持单键)</description>
255 </row>
256 <row align="center">
257 <label value="选中第三个字词:"/>
258 <keyinputbox id="shortcut.selectThirdKey" option="selectThirdKey" maxlength="1" size="20" allowmodifiers="false"/>
259 <description>(只支持单键)</description>
260 </row>
261
262 </rows>
263 </grid>
264
265 <spacer style="width: 10px;"/>
266 </groupbox>
267 </tabpanel>
268 </tabpanels>
269 </tabbox>
270
271 <spacer style="height: 10px"/>
272
273 <hbox>
274 <spacer flex="1"/>
275 <button id="saveButton" label="保存" default="true" oncommand="FireinputConfig.save()"/>
276 <button id="cancelButton" label="取消" oncommand="window.close();"/>
277 </hbox>
278
279 </vbox>
280
281 </window>
syntax highlighted by Code2HTML, v. 0.9.1