|
1 <?xml version="1.0"?> |
|
2 |
|
3 <!-- This Source Code Form is subject to the terms of the Mozilla Public |
|
4 - License, v. 2.0. If a copy of the MPL was not distributed with this |
|
5 - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> |
|
6 |
|
7 <?xml-stylesheet href="chrome://global/skin/" type="text/css"?> |
|
8 |
|
9 <!DOCTYPE dialog SYSTEM "chrome://global/locale/customizeCharset.dtd"> |
|
10 |
|
11 <dialog xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" |
|
12 title="&title.label;" |
|
13 onload="Init();" |
|
14 ondialogaccept="return Save();" |
|
15 persist="width height"> |
|
16 |
|
17 <script type="application/javascript" src="chrome://global/content/customizeCharset.js"/> |
|
18 <script type="application/javascript"> |
|
19 <![CDATA[ |
|
20 var observerService = Components.classes["@mozilla.org/observer-service;1"].getService(Components.interfaces.nsIObserverService); |
|
21 observerService.notifyObservers(null, "charsetmenu-selected", "other"); |
|
22 ]]> |
|
23 </script> |
|
24 |
|
25 <!-- The two-pane --> |
|
26 <hbox flex="1"> |
|
27 <vbox flex="1"> |
|
28 <label value="&additional.label;" control="available_charsets"/> |
|
29 <!-- Available Charsets Tree --> |
|
30 <listbox id="available_charsets" flex="1" seltype="multiple" |
|
31 onfocus = "document.getElementById('active_charsets').clearSelection(); this.selectItem(this.currentItem || this.getItemAtIndex(0));" |
|
32 onselect="update_buttons();" |
|
33 ondblclick="AddAvailableCharset();"/> |
|
34 |
|
35 <separator class="thin"/> |
|
36 |
|
37 <hbox align="center"> |
|
38 <button id="add_button" oncommand="AddAvailableCharset();" |
|
39 label="&add.label;" icon="add" accesskey="&add.accessKey;"/> |
|
40 </hbox> |
|
41 </vbox> |
|
42 |
|
43 <separator orient="vertical"/> |
|
44 |
|
45 <vbox flex="1"> |
|
46 <label value="¤t.label;" control="active_charsets"/> |
|
47 <listbox id="active_charsets" flex="1" seltype="multiple" |
|
48 onfocus = "document.getElementById('available_charsets').clearSelection(); this.selectItem(this.currentItem || this.getItemAtIndex(0));" |
|
49 onselect="update_buttons();" |
|
50 ondblclick="RemoveActiveCharset();"/> |
|
51 |
|
52 <separator class="thin"/> |
|
53 <hbox align="center"> |
|
54 <button id="up_button" label="&moveUp.label;" icon="go-up" |
|
55 accesskey="&moveUp.accessKey;" oncommand="MoveUp();"/> |
|
56 <button id="down_button" label="&moveDown.label;" icon="go-down" |
|
57 accesskey="&moveDown.accessKey;" oncommand="MoveDown();"/> |
|
58 <button id="remove_button" oncommand="RemoveActiveCharset();" icon="remove" |
|
59 label="&remove.label;" accesskey="&remove.accessKey;"/> |
|
60 </hbox> |
|
61 </vbox> |
|
62 </hbox> |
|
63 </dialog> |