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