Rev 1334 | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1334 | Rev 1335 | ||
---|---|---|---|
1 | <?xml version="1.0"?> |
1 | <?xml version="1.0"?> |
2 | 2 | ||
3 | <?xml-stylesheet href="chrome://latrus/skin/latrus.css" type="text/css"?> |
3 | <?xml-stylesheet href="chrome://latrus/skin/latrus.css" type="text/css"?> |
4 | 4 | ||
5 | <overlay id="latrus" |
5 | <overlay id="latrus" |
6 | xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> |
6 | xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> |
7 | 7 | ||
8 | <script type="application/x-javascript" src="chrome://latrus/content/latrus.js" /> |
8 | <script type="application/x-javascript" src="chrome://latrus/content/latrus.js" /> |
9 | 9 | ||
10 | <window id="main-window"> |
10 | <window id="main-window"> |
11 | <commandset id="latrus-commandset"> |
11 | <commandset id="latrus-commandset"> |
12 | <command id="latrus-command" oncommand="LatRus.toggleEnabled();" /> |
12 | <command id="latrus-command" oncommand="LatRus.toggleEnabled();" /> |
13 | </commandset> |
13 | </commandset> |
14 | 14 | ||
15 | <keyset id="latrus-keyset"> |
15 | <keyset id="latrus-keyset"> |
16 | <key id="latrus-key" modifiers="accel,alt" key="L" command="latrus-command" /> |
16 | <key id="latrus-key" modifiers="accel,alt" key="L" command="latrus-command" /> |
17 | </keyset> |
17 | </keyset> |
18 | </window> |
18 | </window> |
19 | 19 | ||
20 | <popup id="contentAreaContextMenu"> |
20 | <popup id="contentAreaContextMenu"> |
21 | <menu id="context-latrus-submenu" label="LatRus" insertafter="spell-separator"> |
21 | <menu id="context-latrus-submenu" label="LatRus" insertafter="spell-separator"> |
22 | <menupopup id="context-latrus-menupopup" onpopupshowing="LatRus.onMenuPopupShowing()"> |
22 | <menupopup id="context-latrus-menupopup" onpopupshowing="LatRus.onMenuPopupShowing()"> |
23 | <menuitem id="context-latrus-tolat" label="Selected text to LAT" |
23 | <menuitem id="context-latrus-tolat" label="Selected text to LAT" |
24 | oncommand="LatRus.selectedToLat()" /> |
24 | oncommand="LatRus.selectedToLat()" /> |
25 | <menuitem id="context-latrus-torus" label="Selected text to RUS" |
25 | <menuitem id="context-latrus-torus" label="Selected text to RUS" |
26 | oncommand="LatRus.selectedToRus()" /> |
26 | oncommand="LatRus.selectedToRus()" /> |
27 | <menuseparator id="context-latrus-menupopup-sep" /> |
27 | <menuseparator id="context-latrus-menupopup-sep" /> |
28 | <menuitem id="context-latrus-options" label="Options" |
28 | <menuitem id="context-latrus-options" label="Options" |
29 | oncommand="LatRus.showOptions()" /> |
29 | oncommand="LatRus.showOptions()" /> |
30 | </menupopup> |
30 | </menupopup> |
31 | </menu> |
31 | </menu> |
32 | <menuitem id="context-latrus-enabled" type="checkbox" label="Convert lat->rus" |
32 | <menuitem id="context-latrus-enabled" type="checkbox" label="Convert lat->rus" |
33 | oncommand="LatRus.toggleEnabled();" insertafter="spell-separator" |
33 | oncommand="LatRus.toggleEnabled();" insertafter="spell-separator" |
34 | accessKey="L" key="latrus-key" /> |
34 | accessKey="L" key="latrus-key" /> |
35 | </popup> |
35 | </popup> |
36 | 36 | ||
37 | <popupset id="mainPopupSet"> |
37 | <popupset id="mainPopupSet"> |
38 | <popup id="panel-latrus-popup"> |
38 | <popup id="panel-latrus-popup"> |
39 | <menuitem id="panel-latrus-show-hint" type="checkbox" label="Hints" oncommand="LatRus.toggleHint()" /> |
39 | <menuitem id="panel-latrus-show-hint" type="checkbox" label="Hints" oncommand="LatRus.toggleHint()" /> |
- | 40 | <menuitem id="panel-latrus-input" label="Input Box" oncommand="LatRus.openInputBox()" /> |
|
40 | <menuitem id="panel-latrus-options" label="Options" oncommand="LatRus.showOptions()" /> |
41 | <menuitem id="panel-latrus-options" label="Options" oncommand="LatRus.showOptions()" /> |
41 | </popup> |
42 | </popup> |
42 | </popupset> |
43 | </popupset> |
43 | 44 | ||
44 | <statusbar id="status-bar"> |
45 | <statusbar id="status-bar"> |
45 | <statusbarpanel id="latrus-panel" onclick="if(event.button == 0) LatRus.toggleEnabled();" |
46 | <statusbarpanel id="latrus-panel" onclick="if(event.button == 0) LatRus.toggleEnabled();" |
46 | contextmenu="panel-latrus-popup"> |
47 | contextmenu="panel-latrus-popup"> |
47 | </statusbarpanel> |
48 | </statusbarpanel> |
48 | </statusbar> |
49 | </statusbar> |
49 | 50 | ||
50 | <vbox id="appcontent"> |
51 | <vbox id="appcontent"> |
51 | <vbox id="latrus_hint"> |
52 | <vbox id="latrus_hint"> |
52 | </vbox> |
53 | </vbox> |
53 | </vbox> |
54 | </vbox> |
54 | 55 | ||
55 | </overlay> |
56 | </overlay> |
56 | 57 |