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"?>
  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/ime/smartPinyin/longTable.js"/>
 26 <script type="application/x-javascript" src="chrome://fireinput/content/ime/smartPinyin/encoding.js"/>
 27 <script type="application/x-javascript" src="chrome://fireinput/content/ime/smartPinyin/fullLetter.js"/>
 28 <script type="application/x-javascript" src="chrome://fireinput/content/ime/smartPinyin/schema.js"/>
 29 <script type="application/x-javascript" src="chrome://fireinput/content/ime/smartPinyin/smartPinyin.js"/>
 30 <script type="application/x-javascript" src="chrome://fireinput/content/ime/wubi/wubi.js"/>
 31 <script type="application/x-javascript" src="chrome://fireinput/content/keybinding.js"/>
 32 <script type="application/x-javascript" src="chrome://fireinput/content/fireinputPrefs.js"/>
 33 <script type="application/x-javascript" src="chrome://fireinput/content/fireinput.js"/>
 34 <script type="application/x-javascript" src="chrome://fireinput/content/specialChar.js"/>
 35 <script type="application/x-javascript" src="chrome://fireinput/content/emotion.js"/>
 36 <script type="application/x-javascript" src="chrome://fireinput/content/help.js"/>
 37 
 38 
 39 <commandset id="mainCommandSet">
 40 	<command id="cmd_toggleFireinput" oncommand="Fireinput.toggleFireinput();"/>
 41 	<command id="cmd_toggleFireinputIME" oncommand="Fireinput.toggleIME();"/>
 42 	<command id="cmd_toggleHalfMode" oncommand="Fireinput.toggleHalfMode();"/>
 43 	<command id="cmd_togglePunctMode" oncommand="Fireinput.togglePunctMode();"/>
 44 </commandset>
 45 
 46 <keyset id="mainKeyset">
 47         <key id="key_enableFireinput" keycode="VK_F12" modifiers="control"
 48                 command="cmd_toggleFireinput"/>
 49         <key id="key_toggleFireinputIME" key=" " modifiers="control"
 50                 command="cmd_toggleFireinputIME"/>
 51         <key id="key_toggleHalfMode" key="m" modifiers="control alt"
 52                 command="cmd_toggleHalfMode"/>
 53         <key id="key_togglePunctMode" key="p" modifiers="control alt"
 54                 command="cmd_togglePunctMode"/>
 55 </keyset>
 56 
 57 <popupset id="mainPopupSet">
 58     <popup id="fireinputIMEContainer" ignorekeys="true" onpopuphiding="Fireinput.IMEWindowHiding();" onpopupshown="Fireinput.IMEWindowShown();">
 59       <vbox>
 60         <hbox style="margin: 1px 0px; padding:0">
 61          <hbox id="fireinputComposeField">
 62          </hbox>
 63          <textbox id="fireinputField" rows="1" flex="1"
 64            onmousedown="Fireinput.IMEInputFieldMouseEvent(event)" 
 65            onfocus="Fireinput.IMEInputFieldFocusEvent(event)"
 66            oninput="Fireinput.IMEInputFieldOnInputEvent(event)" />
 67          <image style="cursor:pointer" src="chrome://fireinput/skin/search.png" tooltiptext="Alt+Enter" onclick="FireinputWebSearch.load()"/>
 68         </hbox>
 69         <menuseparator style="margin: 0;"/>
 70         <hbox id="fireinputWordList" style="margin: 0px; padding:0;min-width:500px">
 71            <hbox id="fireinputIMEList" style="margin-top:2px;" flex="100">
 72            </hbox>
 73            <toolbarbutton id="fireinputPrevSelButton" tooltiptext=""
 74                        oncommand="Fireinput.prevSel();" disabled="true"/>
 75            <toolbarbutton id="fireinputNextSelButton" tooltiptext=""
 76                        oncommand="Fireinput.nextSel();" disabled="true"/>
 77         </hbox>
 78         <menuseparator style="margin: 0;"/>
 79         <vbox id="fireinputLongPanel">
 80         </vbox>
 81       </vbox>
 82    </popup>
 83 </popupset>
 84     
 85 <popup id="contentAreaContextMenu">
 86   <menuseparator/>
 87       <menuitem
 88         id="fireinputContextEnableIME"
 89         label=""
 90         oncommand="Fireinput.toggleFireinput(true);"
 91       />
 92       <menuitem
 93         id="fireinputContextSelectImage"
 94         label=""
 95         oncommand="FireinputEmotions.addContextSelectedImage();"
 96       />
 97       <menuitem
 98         id="fireinputContextEnhanceWordTable"
 99         label=""
100         oncommand="FireinputLongTable.addSelectionIntoTable();"
101       />
102       <menu id="fireinputContextSwitchEncoding" label="">
103         <menupopup>
104           <menuitem id="fireinputContextSwitchZHToBG" label="" value="0"
105                    oncommand="FireinputEncoding.switchToBig5()"/>
106           <menuitem id="fireinputContextSwitchBGToZH" label="" value="0"
107                    oncommand="FireinputEncoding.switchToZH()"/>
108         </menupopup>
109       </menu>
110 </popup>
111 
112 
113 <vbox id="appcontent">
114    <toolbar id="fireinputIMEBar" hidden="true" align="center" fullscreentoolbar="true">
115       <toolbarseparator collapsed="true"/> 
116       <hbox id="fireinputOptionBox">
117         <menulist id="inputMethod" label="" onclick="Fireinput.toggleInputMethod();">
118           <menupopup position="before_start">
119               <menuitem id="menuPinyinQuan" label="" value="0" />
120               <menuitem id="menuPinyinShuangZiGuang" label="" value="1"/>
121               <menuitem id="menuPinyinShuangMS" label="" value="2"/>
122               <menuitem id="menuPinyinShuangChineseStar" label="" value="3"/>
123               <menuitem id="menuPinyinShuangSmartABC" label="" value="4"/>
124               <menuitem id="menuWubi86" label="" value="5"/>
125               <menuitem id="menuWubi98" label="" value="6"/>
126           </menupopup>
127         </menulist>
128         <toolbarbutton id="fireinputToggleIMEButton" label="" tooltiptext="" oncommand="Fireinput.toggleInputMode();"/>
129         <toolbarbutton id="fireinputToggleHalfButton" tooltiptext="" oncommand="Fireinput.toggleHalfMode();"/>
130         <toolbarbutton id="fireinputTogglePunctButton" tooltiptext="" oncommand="Fireinput.togglePunctMode();"/>
131 
132         <toolbarbutton id="fireinputSpecialCharMenu" label="" class="toolbarbuttonStyle">
133            <menupopup id="fireinputSpecialCharMenuItems" position="before_start"/>
134         </toolbarbutton>
135 
136         <toolbarbutton id="fireinputEmotionMenu" label="" class="toolbarbuttonStyle">
137            <menupopup id="fireinputEmotionMenuItems" position="before_start"/>
138         </toolbarbutton>
139 
140         <toolbarseparator collapsed="true"/> 
141         <menubar style="display:none">
142         <menu id="inputHistoryList" label="History" onclick="Fireinput.toggleInputMethod();">
143           <menupopup id="inputHistoryListItems">
144           </menupopup>
145         </menu>
146         </menubar>
147         <toolbarbutton id="fireinputHelp" label="" class="toolbarbuttonStyle">
148           <menupopup position="before_start">
149             <menuitem id="helpMenuEditor" label="" oncommand="FireinputHelp.openEditor()"/>
150             <menuseparator/>
151             <menuitem id="helpNewRelease" label="" oncommand="FireinputHelp.showSite('release')" style="display: none"/>
152             <menuitem id="helpMenuHome" label="" oncommand="FireinputHelp.showSite('home')"/>
153             <menuitem id="helpMenuDoc" label="" oncommand="FireinputHelp.showSite('docs')"/>
154             <menuitem id="helpMenuKey" label="" oncommand="FireinputHelp.showSite('shortkey')"/>
155             <menuitem id="helpMenuAbout" label="" oncommand="FireinputHelp.showAbout()"/>
156             <menuseparator/>
157             <menuitem id="helpMenuDonate" label="" oncommand="FireinputHelp.showSite('contribute')"/>
158           </menupopup>
159         </toolbarbutton>
160  
161         <toolbarseparator collapsed="false" style="margin-left:5px; margin-right: 5px"/> 
162         <label id="fireinputSearchButton" value="" onclick="FireinputWebSearch.searchWeb()"/>
163         <textbox id="fireinputSearchbox" class="fireinputSearchbox"
164                      onfocus="FireinputWebSearch.searchboxOnFocus(event)" 
165                      onkeypress="FireinputWebSearch.goSearchbox(event)"/>
166         <toolbarseparator collapsed="false" style="margin-left:5px"/> 
167         <toolbarbutton id="fireinputIMEBarCloseButton" class="toolbarbutton-icon" tooltiptext="" oncommand="Fireinput.toggleFireinput();"/>
168       </hbox>
169     </toolbar>
170 
171 </vbox>
172 
173 <!--<stack id="browser-stack">-->
174     <hbox id="browser">
175         <vbox id="fireinputDebuggerPanel" hidden="true">
176         <toolbarbutton label="clear" oncommand="FireinputLog.clearDebug();"/>
177         <textbox id="fireinputDebugger" value="" multiline="true" width="300" flex="1" overflow="scrolling"/> 
178         </vbox>
179     </hbox>
180 <!--</stack>-->
181 
182 <statusbar id="status-bar">
183   <statusbarpanel
184     class="statusbarpanel-iconic"
185     id="fireinputStatusBar"
186     context="fireinputStatusContextMenu"
187     onmouseup="Fireinput.onClickStatusIcon(event);"
188   />
189   <menupopup id="fireinputStatusContextMenu" onpopupshowing="return fireinputPrefShowing(this);">
190          <menu id="fireinputInterfaceLanguage" label="">
191               <menupopup onpopupshowing="return fireinputPrefShowing(this);">
192                  <menuitem id="fireinputLanguageChinese" type="radio" label="" value="zh"
193                    oncommand="fireinputPrefSave(this)"
194                    option="interfaceLanguage"/>
195 
196                  <menuitem id="fireinputLanguageEnglish" type="radio" label="" value=""
197                    oncommand="fireinputPrefSave(this)"
198                    option="interfaceLanguage"/>
199               </menupopup>
200          </menu>
201          <menu id="fireinputOpenKeyBinding" label="" tooltiptext="">
202               <menupopup onpopupshowing="return fireinputPrefShowing(this);">
203                  <menuitem id="fireinputOpenKeyBindingCtrlF12" type="radio" label="Ctrl+F12" value="control,VK_F12" tooltiptext=""
204                    oncommand="fireinputPrefSave(this)" 
205                    option="fireinputOpenKeyBinding"/>
206                  <menuitem id="fireinputOpenKeyBindingCtrlF11" type="radio" label="Ctrl+F11" value="control,VK_F11" tooltiptext=""
207                    oncommand="fireinputPrefSave(this)"
208                    option="fireinputOpenKeyBinding"/>
209                  <menuitem id="fireinputOpenKeyBindingAltF12" type="radio" label="Alt+F12" value="alt,VK_F12" tooltiptext=""
210                    oncommand="fireinputPrefSave(this)"
211                    option="fireinputOpenKeyBinding"/>
212                  <menuitem id="fireinputOpenKeyBindingAltF11" type="radio" label="Alt+F11" value="alt,VK_F11" tooltiptext=""
213                    oncommand="fireinputPrefSave(this)"
214                    option="fireinputOpenKeyBinding"/>
215               </menupopup>
216          </menu>
217 
218          <menuseparator/>
219 
220          <menu id="fireinputDefaultInputMethod" label="">
221               <menupopup onpopupshowing="return fireinputPrefShowing(this);">
222                  <menuitem id="imePinyinQuan" type="radio" label="" value="0"
223                    oncommand="fireinputPrefSave(this)"
224                    option="defaultInputMethod"/>
225 
226                  <menuitem id="imePinyinShuangZiGuang" type="radio" label="" value="1"
227                    oncommand="fireinputPrefSave(this)"
228                    option="defaultInputMethod"/>
229 
230                  <menuitem id="imePinyinShuangMS" type="radio" label="" value="2"
231                    oncommand="fireinputPrefSave(this)"
232                    option="defaultInputMethod"/>
233 
234                  <menuitem id="imePinyinShuangChineseStar" type="radio" label="" value="3"
235                    oncommand="fireinputPrefSave(this)"
236                    option="defaultInputMethod"/>
237 
238                  <menuitem id="imePinyinShuangSmartABC" type="radio" label="" value="4"
239                    oncommand="fireinputPrefSave(this)"
240                    option="defaultInputMethod"/>
241 
242                  <menuitem id="imeWubi86" type="radio" label="" value="5"
243                    oncommand="fireinputPrefSave(this)"
244                    option="defaultInputMethod"/>
245                  <menuitem id="imeWubi98" type="radio" label="" value="6"
246                    oncommand="fireinputPrefSave(this)"
247                    option="defaultInputMethod"/>
248               </menupopup>
249          </menu>
250 
251          <menu id="fireinputAMB" label="">
252               <menupopup onpopupshowing="return fireinputPrefShowing(this);">
253                  <menuitem id="fireinputAMBZh" type="checkbox" label="zh z" checked="false"
254                    oncommand="fireinputPrefSave(this)"
255                    option="fireinputAMBZh"/>
256                  <menuitem id="fireinputAMBSh" type="checkbox" label="sh s" checked="false"
257                    oncommand="fireinputPrefSave(this)"
258                    option="fireinputAMBSh"/>
259                  <menuitem id="fireinputAMBCh" type="checkbox" label="ch c" checked="false"
260                    oncommand="fireinputPrefSave(this)"
261                    option="fireinputAMBCh"/>
262                  <menuitem id="fireinputAMBAng" type="checkbox" label="ang an" checked="false"
263                    oncommand="fireinputPrefSave(this)"
264                    option="fireinputAMBAng"/>
265                  <menuitem id="fireinputAMBEng" type="checkbox" label="eng en" checked="false"
266                    oncommand="fireinputPrefSave(this)"
267                    option="fireinputAMBEng"/>
268                  <menuitem id="fireinputAMBIng" type="checkbox" label="ing in" checked="false"
269                    oncommand="fireinputPrefSave(this)"
270                    option="fireinputAMBIng"/>
271 
272               </menupopup>
273          </menu>
274 
275          <menuitem id="autoInsert" label="" type="checkbox" checked="false" tooltiptext=""
276                           oncommand="fireinputPrefSave(this)" option="autoInsert"/>
277 
278          <menuitem id="saveHistory" label="" type="checkbox" checked="false"
279                           oncommand="fireinputPrefSave(this)" option="saveHistory"/>
280 
281   </menupopup>
282 </statusbar>
283 
284 </overlay>


syntax highlighted by Code2HTML, v. 0.9.1