3 # ***** BEGIN LICENSE BLOCK *****
4 # Version: MPL
1.1/GPL
2.0/LGPL
2.1
6 # The contents of this file are subject to the Mozilla Public License Version
7 #
1.1 (the
"License"); you may not use this file except in compliance with
8 # the License. You may obtain a copy of the License at
9 # http://www.mozilla.org/MPL/
11 # Software distributed under the License is distributed on an
"AS IS" basis,
12 # WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
13 # for the specific language governing rights and limitations under the
16 # The Original Code is Mozilla Communicator client code, released
19 # The Initial Developer of the Original Code is
20 # Netscape Communications Corporation.
21 # Portions created by the Initial Developer are Copyright (C)
1998-
1999
22 # the Initial Developer. All Rights Reserved.
25 # David Hyatt (hyatt@apple.com)
26 # Blake Ross (blaker@netscape.com)
28 # Alternatively, the contents of this file may be used under the terms of
29 # either the GNU General Public License Version
2 or later (the
"GPL"), or
30 # the GNU Lesser General Public License Version
2.1 or later (the
"LGPL"),
31 # in which case the provisions of the GPL or the LGPL are applicable instead
32 # of those above. If you wish to allow use of your version of this file only
33 # under the terms of either the GPL or the LGPL, and not to allow others to
34 # use your version of this file under the terms of the MPL, indicate your
35 # decision by deleting the provisions above and replace them with the notice
36 # and other provisions required by the GPL or the LGPL. If you do not delete
37 # the provisions above, a recipient may use your version of this file under
38 # the terms of any one of the MPL, the GPL or the LGPL.
40 # ***** END LICENSE BLOCK *****
43 <!ENTITY % customizeToolbarDTD SYSTEM
"chrome://global/locale/customizeToolbar.dtd">
47 <?xml-stylesheet href=
"chrome://global/skin/" type=
"text/css"?>
48 <?xml-stylesheet href=
"chrome://global/content/customizeToolbar.css" type=
"text/css"?>
49 <?xml-stylesheet href=
"chrome://global/skin/customizeToolbar.css" type=
"text/css"?>
51 <window id=
"CustomizeToolbarWindow"
52 title=
"&dialog.title;"
54 onunload=
"finishToolbarCustomization();"
55 style=
"&dialog.style;"
56 persist=
"width height"
57 xmlns=
"http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
59 <script type=
"application/javascript" src=
"chrome://global/content/customizeToolbar.js"/>
60 <script type=
"application/javascript" src=
"chrome://global/content/nsDragAndDrop.js"/>
62 <stringbundle id=
"stringBundle" src=
"chrome://global/locale/customizeToolbar.properties"/>
65 <key id=
"cmd_close_sheet" keycode=
"VK_ESCAPE" oncommand=
"window.close();"/>
66 <key id=
"cmd_close_sheet" keycode=
"VK_RETURN" oncommand=
"window.close();"/>
67 <key id=
"cmd_close_sheet" keycode=
"VK_ENTER" oncommand=
"window.close();"/>
70 <vbox id=
"main-box" flex=
"1">
71 <description id=
"instructions">
72 &instructions.description;
75 <vbox flex=
"1" id=
"palette-box"
76 ondraggesture=
"nsDragAndDrop.startDrag(event, dragStartObserver);"
77 ondragover=
"nsDragAndDrop.dragOver(event, paletteDNDObserver);"
78 ondragdrop=
"nsDragAndDrop.drop(event, paletteDNDObserver);"/>
81 <label value=
"&show.label;"/>
82 <menulist id=
"modelist" value=
"icons" oncommand=
"updateToolbarMode(this.value);">
84 <menuitem value=
"full" label=
"&iconsAndText.label;"/>
85 <menuitem value=
"icons" label=
"&icons.label;"/>
86 <menuitem value=
"text" label=
"&text.label;"/>
90 <checkbox id=
"smallicons" oncommand=
"updateIconSize(this.checked);" label=
"&useSmallIcons.label;"/>
92 <button label=
"&addNewToolbar.label;" oncommand=
"addNewToolbar();" icon=
"add"/>
93 <button label=
"&restoreDefaultSet.label;" oncommand=
"restoreDefaultSet();" icon=
"refresh"/>
96 <separator class=
"groove"/>
98 <hbox align=
"center" pack=
"end">
99 <button id=
"donebutton" label=
"&saveChanges.label;" oncommand=
"window.close();"
100 default=
"true" icon=
"close"/>