1 <?xml version="1.0"?>
  2 
  3 <?xml-stylesheet href="chrome://fireinput/content/browserOverlay.css" type="text/css"?>
  4 <?xml-stylesheet href="chrome://fireinput/skin/fireinput.css" type="text/css"?>
  5 
  6 <overlay id="fireinputOverlay" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
  7 
  8 <stringbundleset id="stringbundleset">
  9         <stringbundle id="strings_fireinput" src="chrome://fireinput/locale/fireinput.properties"/>
 10 </stringbundleset>
 11 
 12 <script type="application/x-javascript" src="chrome://fireinput/content/version.js"/>
 13 <script type="application/x-javascript" src="chrome://fireinput/content/debug.js"/>
 14 <script type="application/x-javascript" src="chrome://fireinput/content/constant.js"/>
 15 <script type="application/x-javascript" src="chrome://fireinput/content/utils.js"/>
 16 <script type="application/x-javascript" src="chrome://fireinput/content/lib.js"/>
 17 <script type="application/x-javascript" src="chrome://fireinput/content/stream.js"/>
 18 <script type="application/x-javascript" src="chrome://fireinput/content/store/storeword.js"/>
 19 <script type="application/x-javascript" src="chrome://fireinput/content/store/storelong.js"/>
 20 <script type="application/x-javascript" src="chrome://fireinput/content/store/storeemotion.js"/>
 21 <script type="application/x-javascript" src="chrome://fireinput/content/fireinputIME.js"/>
 22 <script type="application/x-javascript" src="chrome://fireinput/content/encoder.js"/>
 23 <script type="application/x-javascript" src="chrome://fireinput/content/composer.js"/>
 24 <script type="application/x-javascript" src="chrome://fireinput/content/websearch.js"/>
 25 <script type="application/x-javascript" src="chrome://fireinput/content/theme.js"/>
 26 <script type="application/x-javascript" src="chrome://fireinput/content/ime/smartPinyin/longTable.js"/>
 27 <script type="application/x-javascript" src="chrome://fireinput/content/ime/smartPinyin/encoding.js"/>
 28 <script type="application/x-javascript" src="chrome://fireinput/content/ime/smartPinyin/fullLetter.js"/>
 29 <script type="application/x-javascript" src="chrome://fireinput/content/ime/smartPinyin/schema.js"/>
 30 <script type="application/x-javascript" src="chrome://fireinput/content/ime/smartPinyin/smartPinyin.js"/>
 31 <script type="application/x-javascript" src="chrome://fireinput/content/ime/wubi/wubi.js"/>
 32 <script type="application/x-javascript" src="chrome://fireinput/content/ime/cangjie/cangjie.js"/>
 33 <script type="application/x-javascript" src="chrome://fireinput/content/keybinding.js"/>
 34 <script type="application/x-javascript" src="chrome://fireinput/content/fireinputPrefs.js"/>
 35 <script type="application/x-javascript" src="chrome://fireinput/content/imepanel.js"/>
 36 <script type="application/x-javascript" src="chrome://fireinput/content/fireinput.js"/>
 37 <script type="application/x-javascript" src="chrome://fireinput/content/specialChar.js"/>
 38 <script type="application/x-javascript" src="chrome://fireinput/content/emotion.js"/>
 39 <script type="application/x-javascript" src="chrome://fireinput/content/table.js"/>
 40 <script type="application/x-javascript" src="chrome://fireinput/content/help.js"/>
 41 
 42 <commandset id="mainCommandSet">
 43 	<command id="cmd_focusSearchBox" oncommand="FireinputWebSearch.focusSearchbox();"/>
 44 </commandset>
 45 
 46 <keyset id="mainKeyset">
 47         <key id="key_focusSearchBox" keycode="VK_F4" modifiers=""
 48                 command="cmd_focusSearchBox"/>
 49 </keyset>
 50 
 51 <popupset id="mainPopupSet">
 52     <popup id="fireinputIMEContainer" ignorekeys="true" onpopupshowing="Fireinput.IMEWindowShowing()" onpopuphidden="Fireinput.IMEWindowHidden();" onpopupshown="Fireinput.IMEWindowShown();">
 53       <vbox id="fireinputIMEContainerBox" style="padding: 0px; margin:0px">
 54         <hbox style="margin: 1px 0px; padding:0px;">
 55          <hbox id="fireinputComposeField" style="margin-right:1px">
 56          </hbox>
 57          <textbox id="fireinputField" rows="1" flex="1" value="" 
 58            onmousedown="FireinputIMEPanel.IMEInputFieldMouseEvent(event)" 
 59            onfocus="FireinputIMEPanel.IMEInputFieldFocusEvent(event)" />
 60          <image style="cursor:pointer" src="chrome://fireinput/skin/search.png" tooltiptext="Alt+Enter" onclick="FireinputWebSearch.load()"/>
 61         </hbox>
 62         <hbox style="margin: 1px 0px; padding:0px; border-bottom: 1px solid #AEA48E;"/>
 63         <hbox id="fireinputWordList" style="margin: 0px; padding:0;min-width:500px">
 64            <hbox id="fireinputIMEList" style="margin-top:2px;" flex="10">
 65            </hbox>
 66            <toolbarbutton id="fireinputPrevSelButton" tooltiptext=""
 67                        oncommand="FireinputIMEPanel.prevSel();" disabled="true"/>
 68            <toolbarbutton id="fireinputNextSelButton" tooltiptext=""
 69                        oncommand="FireinputIMEPanel.nextSel();" disabled="true"/>
 70         </hbox>
 71         <vbox id="fireinputLongPanel" style="display: none">
 72            <menuseparator style="margin: 0px; padding: 0px"/>
 73         </vbox>
 74       </vbox>
 75    </popup>
 76 </popupset>
 77     
 78 <popup id="contentAreaContextMenu">
 79   <menuseparator/>
 80       <menuitem
 81         id="fireinputContextEnableIME"
 82         label=""
 83         oncommand="Fireinput.toggleFireinput(true);"
 84       />
 85       <menuitem
 86         id="fireinputContextSelectImage"
 87         label=""
 88         oncommand="FireinputEmotions.addContextSelectedImage();"
 89       />
 90       <menuitem
 91         id="fireinputContextEnhanceWordTable"
 92         label=""
 93         oncommand="FireinputLongTable.addSelectionIntoTable();"
 94       />
 95       <menu id="fireinputContextSwitchEncoding" label="">
 96         <menupopup>
 97           <menuitem id="fireinputContextSwitchZHToBG" label="" value="0"
 98                    oncommand="FireinputEncoding.switchToBig5()"/>
 99           <menuitem id="fireinputContextSwitchBGToZH" label="" value="0"
100                    oncommand="FireinputEncoding.switchToZH()"/>
101         </menupopup>
102       </menu>
103 </popup>
104 
105 <toolbarpalette id="BrowserToolbarPalette">
106       <toolbarbutton id="fireinput-toolbarbutton" label="Fireinput(火输)"
107                      class="chromeclass-toolbar-additional"
108                      observes="Fireinput.toggleFireinput()" tooltiptext="Chinese Input Engine For Firefox"/>
109 </toolbarpalette>
110 
111 <toolbox id="navigator-toolbox">
112    <toolbar id="fireinputIMEBar_top" hidden="true" align="center" fullscreentoolbar="true">
113       <hbox id="fireinputOptionBox">
114         <toolbarbutton id="fireinputMenu" tooltiptext="Fireinput menu">
115             <menupopup id="fireinputMenuItems" position="after_pointer">
116               <menuitem id="helpMenuEditor" label="" oncommand="FireinputHelp.openEditor()"/>
117               <menuseparator/>
118               <menu id="fireinputSettingMenu" label="">
119                  <menupopup position="end_before" onpopupshowing="return fireinputPrefShowing(this);">
120                    <menu id="fireinputDefaultIMEBarPos" label="">
121                       <menupopup onpopupshowing="return fireinputPrefShowing(this);">
122                         <menuitem id="fireinputIMEBarPosTop" type="radio" label="" value="top"
123                             oncommand="fireinputPrefSave(this)" option="IMEBarPosition"/>
124                         <menuitem id="fireinputIMEBarPosBottom" type="radio" label="" value="bottom"
125                             oncommand="fireinputPrefSave(this)" option="IMEBarPosition"/>
126                       </menupopup>
127                    </menu>
128                    <menuseparator/>
129                    <menuitem id="fireinputConfigInputWindow" label="" oncommand="Fireinput.showInputSettingWindow()"/>
130                    <menu id="fireinputDefaultInputMethod" label="">
131                       <menupopup onpopupshowing="return fireinputPrefShowing(this);">
132                         <menuitem id="imePinyinQuan" type="radio" label="" value="1"
133                             oncommand="fireinputPrefSave(this)" option="defaultInputMethod"/>
134 
135                         <menuitem id="imePinyinShuangZiGuang" type="radio" label="" value="2"
136                             oncommand="fireinputPrefSave(this)" option="defaultInputMethod"/>
137 
138                         <menuitem id="imePinyinShuangMS" type="radio" label="" value="3"
139                             oncommand="fireinputPrefSave(this)" option="defaultInputMethod"/>
140 
141                         <menuitem id="imePinyinShuangChineseStar" type="radio" label="" value="4"
142                             oncommand="fireinputPrefSave(this)" option="defaultInputMethod"/>
143 
144                         <menuitem id="imePinyinShuangSmartABC" type="radio" label="" value="5"
145                             oncommand="fireinputPrefSave(this)" option="defaultInputMethod"/>
146 
147                         <menuitem id="imeWubi86" type="radio" label="" value="6"
148                             oncommand="fireinputPrefSave(this)" option="defaultInputMethod"/>
149                         <menuitem id="imeWubi98" type="radio" label="" value="7"
150                             oncommand="fireinputPrefSave(this)" option="defaultInputMethod"/>
151                         <menuitem id="imeCangjie5" type="radio" label="" value="8"
152                             oncommand="fireinputPrefSave(this)" option="defaultInputMethod"/>
153                         <menuitem id="imeAdvancedConfig" label="" oncommand="Fireinput.showInputMethodSetting()"/>
154                       </menupopup>
155                    </menu>
156 
157                    <menu id="fireinputAMB" label="">
158                       <menupopup onpopupshowing="return fireinputPrefShowing(this);">
159                         <menuitem id="fireinputAMBZh" type="checkbox" label="zh z" checked="false"
160                             oncommand="fireinputPrefSave(this)" option="fireinputAMBZh"/>
161                         <menuitem id="fireinputAMBSh" type="checkbox" label="sh s" checked="false"
162                             oncommand="fireinputPrefSave(this)" option="fireinputAMBSh"/>
163                         <menuitem id="fireinputAMBCh" type="checkbox" label="ch c" checked="false"
164                             oncommand="fireinputPrefSave(this)" option="fireinputAMBCh"/>
165                         <menuitem id="fireinputAMBAng" type="checkbox" label="ang an" checked="false"
166                             oncommand="fireinputPrefSave(this)" option="fireinputAMBAng"/>
167                         <menuitem id="fireinputAMBEng" type="checkbox" label="eng en" checked="false"
168                             oncommand="fireinputPrefSave(this)" option="fireinputAMBEng"/>
169                         <menuitem id="fireinputAMBIng" type="checkbox" label="ing in" checked="false"
170                             oncommand="fireinputPrefSave(this)" option="fireinputAMBIng"/>
171                         <menuitem id="fireinputKeyExactMatch" type="checkbox" label="" checked="false"
172                             oncommand="fireinputPrefSave(this)" option="inputKeyExactMatch"/>
173                       </menupopup>
174                    </menu>
175 
176                    <menuitem id="configHotKey" label="" oncommand="Fireinput.showkeyConfigWindow()"/>
177 
178                    <menuseparator/>
179 
180                    <menuitem id="autoInsert" label="" type="checkbox" checked="true" tooltiptext=""
181                            oncommand="fireinputPrefSave(this)" option="autoInsert"/>
182 
183                    <menuitem id="updateFreq" label="" type="checkbox" checked="true" tooltiptext=""
184                            oncommand="fireinputPrefSave(this)" option="updateFreq"/>
185 
186                    <menuitem id="saveHistory" label="" type="checkbox" checked="true"
187                            oncommand="fireinputPrefSave(this)" option="saveHistory"/>
188 
189                    <menuitem id="autoLoad" label="" type="checkbox" checked="true"
190                            oncommand="fireinputPrefSave(this)" option="autoLoad"/>
191                 </menupopup>
192               </menu>
193 
194               <menu id="fireinputThemeMenu" label="">
195                  <menupopup id="fireinputThemeMenus" position="end_before">
196                     <menuitem id="fireinputThemeUser" label="" class="menuitem-non-iconic"
197                            oncommand="FireinputThemes.userChooseTheme()"/>
198                     <menuseparator id="themeOpenSeparator"/>
199                     <menuseparator id="themeCloseSeparator"/>
200                     <menuitem id="fireinputThemeDefault" label="" class="menuitem-non-iconic"
201                            oncommand="FireinputThemes.applyDefault(event)"/>
202                  </menupopup>
203               </menu>
204               <menuitem id="fireinputTableManagement" label="Table management" oncommand="FireinputTable.showDialog()"/>
205               <menuseparator/>
206               <menu id="fireinputHelp" label="">
207                  <menupopup id="fireinputHelpPopup" position="end_before">
208                    <menuitem id="helpNewRelease" label="" oncommand="FireinputHelp.showSite('release')" style="display: none"/>
209                    <menuitem id="helpMenuHome" label="" oncommand="FireinputHelp.showSite('home')"/>
210                    <menuitem id="helpMenuDoc" label="" oncommand="FireinputHelp.showSite('docs')"/>
211                    <menuitem id="helpMenuKey" label="" oncommand="FireinputHelp.showSite('shortkey')"/>
212                    <menuitem id="helpMenuAbout" label="" oncommand="FireinputHelp.showAbout()"/>
213                  </menupopup>
214               </menu>
215               <menuseparator/>
216               <menuitem id="helpMenuDonate" label="" oncommand="FireinputHelp.showSite('contribute')"/>
217             </menupopup>
218         </toolbarbutton>
219         <toolbarseparator collapsed="false"/> 
220         <toolbarbutton id="inputMethod" label="" tooltiptext="" class="toolbarbuttonStyle">
221           <menupopup position="after_pointer">
222               <menuitem id="menuPinyinQuan" label="" value="1" oncommand="fireinputPrefSave('defaultInputMethod', 1)"/>
223               <menuitem id="menuPinyinShuangZiGuang" label="" value="2" oncommand="fireinputPrefSave('defaultInputMethod', 2)"/>
224               <menuitem id="menuPinyinShuangMS" label="" value="3" oncommand="fireinputPrefSave('defaultInputMethod', 3)"/>
225               <menuitem id="menuPinyinShuangChineseStar" label="" value="4" oncommand="fireinputPrefSave('defaultInputMethod', 4)"/>
226               <menuitem id="menuPinyinShuangSmartABC" label="" value="5" oncommand="fireinputPrefSave('defaultInputMethod', 5)"/>
227               <menuitem id="menuWubi86" label="" value="6" oncommand="fireinputPrefSave('defaultInputMethod', 6)"/>
228               <menuitem id="menuWubi98" label="" value="7" oncommand="fireinputPrefSave('defaultInputMethod', 7)"/>
229               <menuitem id="menuCangjie5" label="" value="8" oncommand="fireinputPrefSave('defaultInputMethod', 8)"/>
230           </menupopup>
231         </toolbarbutton>
232         <toolbarbutton id="fireinputToggleIMEButton" label="" tooltiptext="" oncommand="Fireinput.toggleInputMode();"/>
233         <toolbarbutton id="fireinputToggleHalfButton" tooltiptext="" oncommand="Fireinput.toggleHalfMode();"/>
234         <toolbarbutton id="fireinputTogglePunctButton" tooltiptext="" oncommand="Fireinput.togglePunctMode();"/>
235 
236         <toolbarbutton id="fireinputSpecialCharMenu" label="" class="toolbarbuttonStyle">
237            <menupopup id="fireinputSpecialCharMenuItems" position="after_pointer"/>
238         </toolbarbutton>
239 
240         <toolbarbutton id="fireinputEmotionMenu" label="" class="toolbarbuttonStyle">
241            <menupopup id="fireinputEmotionMenuItems" position="after_pointer"/>
242         </toolbarbutton>
243 
244         <toolbarseparator collapsed="true"/> 
245  
246         <toolbarseparator collapsed="false" style="margin-left:5px; margin-right: 5px"/> 
247         <label id="fireinputSearchButton" value="" onclick="FireinputWebSearch.searchWeb()"/>
248         <textbox id="fireinputSearchbox" class="fireinputSearchbox"
249                      onfocus="FireinputWebSearch.searchboxOnFocus(event)" 
250                      onkeypress="FireinputWebSearch.goSearchbox(event)"/>
251         <toolbarseparator collapsed="false" style="margin-left:5px"/> 
252         <toolbarbutton id="fireinputIMEBarCloseButton" class="toolbarbutton-icon" tooltiptext="" oncommand="Fireinput.toggleFireinput();"/>
253         <hbox id="fireinputNewVersionPanel" style="margin-left:5px; display: none">
254           <toolbarseparator collapsed="false"/> 
255           <toolbarbutton id="fireinputNewVersion" label="sss" oncommand="FireinputHelp.showSite('release')"/>
256         </hbox>
257         <hbox id="fireinputTableUpdatePanel" style="margin-left:5px; display: none">
258           <toolbarseparator collapsed="false"/> 
259           <toolbarbutton id="fireinputTableUpdate" label=""/>
260         </hbox>
261       </hbox>
262   </toolbar>
263 </toolbox>
264 
265 
266 <vbox id="appcontent">
267    <toolbar id="fireinputIMEBar_bottom" hidden="true" align="center" fullscreentoolbar="true">
268       <hbox id="fireinputOptionBox">
269         <toolbarbutton id="fireinputMenu" tooltiptext="Fireinput menu">
270             <menupopup id="fireinputMenuItems" position="before_start">
271               <menuitem id="helpMenuEditor" label="" oncommand="FireinputHelp.openEditor()" key="key_openEditor"/>
272               <menuseparator/>
273               <menu id="fireinputSettingMenu" label="">
274                  <menupopup position="end_after" onpopupshowing="return fireinputPrefShowing(this);">
275                    <menu id="fireinputDefaultIMEBarPos" label="">
276                       <menupopup onpopupshowing="return fireinputPrefShowing(this);">
277                         <menuitem id="fireinputIMEBarPosTop" type="radio" label="" value="top"
278                             oncommand="fireinputPrefSave(this)" option="IMEBarPosition"/>
279                         <menuitem id="fireinputIMEBarPosBottom" type="radio" label="" value="bottom"
280                             oncommand="fireinputPrefSave(this)" option="IMEBarPosition"/>
281                       </menupopup>
282                    </menu>
283                    <menuseparator/>
284                    <menuitem id="fireinputConfigInputWindow" label="" oncommand="Fireinput.showInputSettingWindow()"/>
285                    <menu id="fireinputDefaultInputMethod" label="">
286                       <menupopup onpopupshowing="return fireinputPrefShowing(this);">
287                         <menuitem id="imePinyinQuan" type="radio" label="" value="1"
288                             oncommand="fireinputPrefSave(this)" option="defaultInputMethod"/>
289 
290                         <menuitem id="imePinyinShuangZiGuang" type="radio" label="" value="2"
291                             oncommand="fireinputPrefSave(this)" option="defaultInputMethod"/>
292 
293                         <menuitem id="imePinyinShuangMS" type="radio" label="" value="3"
294                             oncommand="fireinputPrefSave(this)" option="defaultInputMethod"/>
295 
296                         <menuitem id="imePinyinShuangChineseStar" type="radio" label="" value="4"
297                             oncommand="fireinputPrefSave(this)" option="defaultInputMethod"/>
298 
299                         <menuitem id="imePinyinShuangSmartABC" type="radio" label="" value="5"
300                             oncommand="fireinputPrefSave(this)" option="defaultInputMethod"/>
301 
302                         <menuitem id="imeWubi86" type="radio" label="" value="6"
303                             oncommand="fireinputPrefSave(this)" option="defaultInputMethod"/>
304                         <menuitem id="imeWubi98" type="radio" label="" value="7"
305                             oncommand="fireinputPrefSave(this)" option="defaultInputMethod"/>
306                         <menuitem id="imeCangjie5" type="radio" label="" value="8"
307                             oncommand="fireinputPrefSave(this)" option="defaultInputMethod"/>
308                         <menuitem id="imeAdvancedConfig" label="" oncommand="Fireinput.showInputMethodSetting()"/>
309                       </menupopup>
310                    </menu>
311 
312                    <menu id="fireinputAMB" label="">
313                       <menupopup onpopupshowing="return fireinputPrefShowing(this);">
314                         <menuitem id="fireinputAMBZh" type="checkbox" label="zh z" checked="false"
315                             oncommand="fireinputPrefSave(this)" option="fireinputAMBZh"/>
316                         <menuitem id="fireinputAMBSh" type="checkbox" label="sh s" checked="false"
317                             oncommand="fireinputPrefSave(this)" option="fireinputAMBSh"/>
318                         <menuitem id="fireinputAMBCh" type="checkbox" label="ch c" checked="false"
319                             oncommand="fireinputPrefSave(this)" option="fireinputAMBCh"/>
320                         <menuitem id="fireinputAMBAng" type="checkbox" label="ang an" checked="false"
321                             oncommand="fireinputPrefSave(this)" option="fireinputAMBAng"/>
322                         <menuitem id="fireinputAMBEng" type="checkbox" label="eng en" checked="false"
323                             oncommand="fireinputPrefSave(this)" option="fireinputAMBEng"/>
324                         <menuitem id="fireinputAMBIng" type="checkbox" label="ing in" checked="false"
325                             oncommand="fireinputPrefSave(this)" option="fireinputAMBIng"/>
326                         <menuitem id="fireinputKeyExactMatch" type="checkbox" label="" checked="false"
327                             oncommand="fireinputPrefSave(this)" option="inputKeyExactMatch"/>
328                       </menupopup>
329                    </menu>
330 
331                    <menuitem id="configHotKey" label="" oncommand="Fireinput.showkeyConfigWindow()"/>
332 
333                    <menuseparator/>
334 
335                    <menuitem id="autoInsert" label="" type="checkbox" checked="true" tooltiptext=""
336                            oncommand="fireinputPrefSave(this)" option="autoInsert"/>
337 
338                    <menuitem id="updateFreq" label="" type="checkbox" checked="true" tooltiptext=""
339                            oncommand="fireinputPrefSave(this)" option="updateFreq"/>
340 
341                    <menuitem id="saveHistory" label="" type="checkbox" checked="true"
342                            oncommand="fireinputPrefSave(this)" option="saveHistory"/>
343 
344                    <menuitem id="autoLoad" label="" type="checkbox" checked="true"
345                            oncommand="fireinputPrefSave(this)" option="autoLoad"/>
346                 </menupopup>
347               </menu>
348 
349               <menu id="fireinputThemeMenu" label="">
350                  <menupopup id="fireinputThemeMenus" position="end_after">
351                     <menuitem id="fireinputThemeUser" label="" class="menuitem-non-iconic"
352                            oncommand="FireinputThemes.userChooseTheme()"/>
353                     <menuseparator id="themeOpenSeparator"/>
354                     <menuseparator id="themeCloseSeparator"/>
355                     <menuitem id="fireinputThemeDefault" label="" class="menuitem-non-iconic"
356                            oncommand="FireinputThemes.applyDefault(event)"/>
357                  </menupopup>
358               </menu>
359               <menuitem id="fireinputTableManagement" label="Table management" oncommand="FireinputTable.showDialog()"/>
360               <menuseparator/>
361               <menu id="fireinputHelp" label="">
362                  <menupopup id="fireinputHelpPopup" position="end_after">
363                    <menuitem id="helpNewRelease" label="" oncommand="FireinputHelp.showSite('release')" style="display: none"/>
364                    <menuitem id="helpMenuHome" label="" oncommand="FireinputHelp.showSite('home')"/>
365                    <menuitem id="helpMenuDoc" label="" oncommand="FireinputHelp.showSite('docs')"/>
366                    <menuitem id="helpMenuKey" label="" oncommand="FireinputHelp.showSite('shortkey')"/>
367                    <menuitem id="helpMenuAbout" label="" oncommand="FireinputHelp.showAbout()"/>
368                  </menupopup>
369               </menu>
370               <menuseparator/>
371               <menuitem id="helpMenuDonate" label="" oncommand="FireinputHelp.showSite('contribute')"/>
372             </menupopup>
373         </toolbarbutton>
374         <toolbarseparator collapsed="false"/> 
375         <toolbarbutton id="inputMethod" label="" tooltiptext="" class="toolbarbuttonStyle">
376           <menupopup position="before_start">
377               <menuitem id="menuPinyinQuan" label="" value="1" oncommand="fireinputPrefSave('defaultInputMethod', 1)"/>
378               <menuitem id="menuPinyinShuangZiGuang" label="" value="2" oncommand="fireinputPrefSave('defaultInputMethod', 2)"/>
379               <menuitem id="menuPinyinShuangMS" label="" value="3" oncommand="fireinputPrefSave('defaultInputMethod', 3)"/>
380               <menuitem id="menuPinyinShuangChineseStar" label="" value="4" oncommand="fireinputPrefSave('defaultInputMethod', 4)"/>
381               <menuitem id="menuPinyinShuangSmartABC" label="" value="5" oncommand="fireinputPrefSave('defaultInputMethod', 5)"/>
382               <menuitem id="menuWubi86" label="" value="6" oncommand="fireinputPrefSave('defaultInputMethod', 6)"/>
383               <menuitem id="menuWubi98" label="" value="7" oncommand="fireinputPrefSave('defaultInputMethod', 7)"/>
384               <menuitem id="menuCangjie5" label="" value="8" oncommand="fireinputPrefSave('defaultInputMethod', 8)"/>
385           </menupopup>
386         </toolbarbutton>
387         <toolbarbutton id="fireinputToggleIMEButton" label="" tooltiptext="" oncommand="Fireinput.toggleInputMode();"/>
388         <toolbarbutton id="fireinputToggleHalfButton" tooltiptext="" oncommand="Fireinput.toggleHalfMode();"/>
389         <toolbarbutton id="fireinputTogglePunctButton" tooltiptext="" oncommand="Fireinput.togglePunctMode();"/>
390 
391         <toolbarbutton id="fireinputSpecialCharMenu" label="" class="toolbarbuttonStyle">
392            <menupopup id="fireinputSpecialCharMenuItems" position="before_start"/>
393         </toolbarbutton>
394 
395         <toolbarbutton id="fireinputEmotionMenu" label="" class="toolbarbuttonStyle">
396            <menupopup id="fireinputEmotionMenuItems" position="before_start"/>
397         </toolbarbutton>
398 
399         <toolbarseparator collapsed="true"/> 
400  
401         <toolbarseparator collapsed="false" style="margin-left:5px; margin-right: 5px"/> 
402         <label id="fireinputSearchButton" value="" onclick="FireinputWebSearch.searchWeb()"/>
403         <textbox id="fireinputSearchbox" class="fireinputSearchbox"
404                      onfocus="FireinputWebSearch.searchboxOnFocus(event)" 
405                      onkeypress="FireinputWebSearch.goSearchbox(event)"/>
406         <toolbarseparator collapsed="false" style="margin-left:5px"/> 
407         <toolbarbutton id="fireinputIMEBarCloseButton" class="toolbarbutton-icon" tooltiptext="" oncommand="Fireinput.toggleFireinput();"/>
408         <hbox id="fireinputNewVersionPanel" style="margin-left:5px; display: none">
409           <toolbarseparator collapsed="false"/> 
410           <toolbarbutton id="fireinputNewVersion" style="cursor: pointer; color: red;" label="" oncommand="FireinputHelp.showSite('release')"/>
411         </hbox>
412         <hbox id="fireinputTableUpdatePanel" style="margin-left:5px; display: none">
413           <toolbarseparator collapsed="false"/> 
414           <toolbarbutton id="fireinputTableUpdate" label=""/>
415         </hbox>
416       </hbox>
417     </toolbar>
418 
419 </vbox>
420 
421 <!-- <stack id="browser-stack">  -->
422     <hbox id="browser" flex="1">
423         <splitter id="fireinputDebuggerSplitter" class="chromeclass-extrachrome" hidden="true"/>
424         <vbox id="fireinputDebuggerPanel" hidden="true" style="width: 2em; max-width: 32em;">
425         <hbox> 
426           <button label="Close" oncommand="FireinputLog.closeDebug();"/>
427           <button label="Clear" oncommand="FireinputLog.clearDebug();"/>
428         </hbox>
429         <textbox id="fireinputDebugger" _no_cjk_input="true" value="" style="font-size: 9px" multiline="true" width="150" flex="1" overflow="scrolling"/> 
430         </vbox>
431     </hbox>
432 <!-- </stack> -->
433 
434 <statusbar id="status-bar">
435   <statusbarpanel
436     class="statusbarpanel-iconic"
437     id="fireinputStatusBar"
438     context="fireinputStatusContextMenu"
439     onmouseup="Fireinput.onClickStatusIcon(event);"
440   />
441   <menupopup id="fireinputStatusContextMenu" onpopupshowing="return fireinputPrefShowing(this);">
442          <menu id="fireinputInterfaceLanguage" label="">
443               <menupopup onpopupshowing="return fireinputPrefShowing(this);">
444                  <menuitem id="fireinputLanguageChinese" type="radio" label="" value="zh"
445                    oncommand="fireinputPrefSave(this)"
446                    option="interfaceLanguage"/>
447 
448                  <menuitem id="fireinputLanguageEnglish" type="radio" label="" value=""
449                    oncommand="fireinputPrefSave(this)"
450                    option="interfaceLanguage"/>
451               </menupopup>
452          </menu>
453   </menupopup>
454 </statusbar>
455 
456 </overlay>


syntax highlighted by Code2HTML, v. 0.9.1