toolkit/content/customizeCharset.xul

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

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

mercurial