2 # ***** BEGIN LICENSE BLOCK *****
3 # Version: MPL
1.1/GPL
2.0/LGPL
2.1
5 # The contents of this file are subject to the Mozilla Public License Version
6 #
1.1 (the
"License"); you may not use this file except in compliance with
7 # the License. You may obtain a copy of the License at
8 # http://www.mozilla.org/MPL/
10 # Software distributed under the License is distributed on an
"AS IS" basis,
11 # WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
12 # for the specific language governing rights and limitations under the
15 # The Original Code is the Browser Search Service.
17 # The Initial Developer of the Original Code is
19 # Portions created by the Initial Developer are Copyright (C)
2005
20 # the Initial Developer. All Rights Reserved.
23 # Ben Goodger
<beng@google.com
> (Original author)
24 # Gavin Sharp
<gavin@gavinsharp.com
>
26 # Alternatively, the contents of this file may be used under the terms of
27 # either the GNU General Public License Version
2 or later (the
"GPL"), or
28 # the GNU Lesser General Public License Version
2.1 or later (the
"LGPL"),
29 # in which case the provisions of the GPL or the LGPL are applicable instead
30 # of those above. If you wish to allow use of your version of this file only
31 # under the terms of either the GPL or the LGPL, and not to allow others to
32 # use your version of this file under the terms of the MPL, indicate your
33 # decision by deleting the provisions above and replace them with the notice
34 # and other provisions required by the GPL or the LGPL. If you do not delete
35 # the provisions above, a recipient may use your version of this file under
36 # the terms of any one of the MPL, the GPL or the LGPL.
38 # ***** END LICENSE BLOCK *****
40 <?xml-stylesheet href=
"chrome://global/skin/"?>
41 <?xml-stylesheet href=
"chrome://browser/skin/engineManager.css"?>
43 <!DOCTYPE dialog SYSTEM
"chrome://browser/locale/engineManager.dtd">
45 <dialog id=
"engineManager"
46 xmlns=
"http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
47 buttons=
"accept,cancel,extra2"
48 buttonlabelextra2=
"&restoreDefaults.label;"
49 buttonaccesskeyextra2=
"&restoreDefaults.accesskey;"
50 onload=
"gEngineManagerDialog.init();"
51 ondialogaccept=
"gEngineManagerDialog.onOK();"
52 ondialogcancel=
"gEngineManagerDialog.onCancel();"
53 ondialogextra2=
"gEngineManagerDialog.onRestoreDefaults();"
54 title=
"&engineManager.title;"
55 style=
"&engineManager.style;"
56 persist=
"screenX screenY"
57 windowtype=
"Browser:SearchManager">
59 <script type=
"application/x-javascript"
60 src=
"chrome://browser/content/search/engineManager.js"/>
61 <script type=
"application/x-javascript"
62 src=
"chrome://global/content/nsDragAndDrop.js"/>
64 <commandset id=
"engineManagerCommandSet">
65 <command id=
"cmd_remove"
66 oncommand=
"gEngineManagerDialog.remove();"
68 <command id=
"cmd_moveup"
69 oncommand=
"gEngineManagerDialog.bump(1);"
71 <command id=
"cmd_movedown"
72 oncommand=
"gEngineManagerDialog.bump(-1);"
74 <command id=
"cmd_editkeyword"
75 oncommand=
"gEngineManagerDialog.editKeyword();"
79 <keyset id=
"engineManagerKeyset">
80 <key id=
"delete" keycode=
"VK_DELETE" command=
"cmd_remove"/>
83 <stringbundleset id=
"engineManagerBundleset">
84 <stringbundle id=
"engineManagerBundle" src=
"chrome://browser/locale/engineManager.properties"/>
87 <description>&engineManager.intro;
</description>
88 <separator class=
"thin"/>
90 <tree id=
"engineList" flex=
"1" rows=
"10" hidecolumnpicker=
"true"
91 seltype=
"single" onselect=
"gEngineManagerDialog.onSelect();">
92 <treechildren id=
"engineChildren" flex=
"1"
93 ondraggesture=
"nsDragAndDrop.startDrag(event, gDragObserver);"/>
95 <treecol id=
"engineName" flex=
"4" label=
"&columnLabel.name;"/>
96 <treecol id=
"engineKeyword" flex=
"1" label=
"&columnLabel.keyword;"/>
103 accesskey=
"&edit.accesskey;"
104 command=
"cmd_editkeyword"/>
107 accesskey=
"&up.accesskey;"
108 command=
"cmd_moveup"/>
111 accesskey=
"&dn.accesskey;"
112 command=
"cmd_movedown"/>
115 label=
"&remove.label;"
116 accesskey=
"&remove.accesskey;"
117 command=
"cmd_remove"/>
121 <checkbox id=
"enableSuggest"
122 label=
"&enableSuggest.label;"
123 accesskey=
"&enableSuggest.accesskey;"/>
127 <label id=
"addEngines" class=
"text-link" value=
"&addEngine.label;"
128 onclick=
"if (event.button == 0) { gEngineManagerDialog.loadAddEngines(); }"/>