toolkit/components/prompts/content/commonDialog.xul

branch
TOR_BUG_9701
changeset 15
b8a032363ba2
equal deleted inserted replaced
-1:000000000000 0:f3613c05ecb4
1 <?xml version="1.0"?>
2 <!-- This Source Code Form is subject to the terms of the Mozilla Public
3 - License, v. 2.0. If a copy of the MPL was not distributed with this
4 - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
5
6
7 <?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
8 <?xml-stylesheet href="chrome://global/content/commonDialog.css" type="text/css"?>
9 <?xml-stylesheet href="chrome://global/skin/commonDialog.css" type="text/css"?>
10
11 <!DOCTYPE dialog SYSTEM "chrome://global/locale/commonDialog.dtd">
12
13 <dialog id="commonDialog"
14 xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
15 aria-describedby="info.body"
16 onload="commonDialogOnLoad();"
17 onunload="commonDialogOnUnload();"
18 ondialogaccept="Dialog.onButton0(); return true;"
19 ondialogcancel="Dialog.onButton1(); return true;"
20 ondialogextra1="Dialog.onButton2(); window.close();"
21 ondialogextra2="Dialog.onButton3(); window.close();"
22 buttonpack="center">
23
24 <script type="application/javascript" src="chrome://global/content/commonDialog.js"/>
25 <script type="application/javascript" src="chrome://global/content/globalOverlay.js"/>
26
27 <commandset id="selectEditMenuItems">
28 <command id="cmd_copy" oncommand="goDoCommand('cmd_copy')" disabled="true"/>
29 <command id="cmd_selectAll" oncommand="goDoCommand('cmd_selectAll')"/>
30 </commandset>
31
32 <popupset id="contentAreaContextSet">
33 <menupopup id="contentAreaContextMenu"
34 onpopupshowing="goUpdateCommand('cmd_copy')">
35 <menuitem id="context-copy"
36 label="&copyCmd.label;"
37 accesskey="&copyCmd.accesskey;"
38 command="cmd_copy"
39 disabled="true"/>
40 <menuitem id="context-selectall"
41 label="&selectAllCmd.label;"
42 accesskey="&selectAllCmd.accesskey;"
43 command="cmd_selectAll"/>
44 </menupopup>
45 </popupset>
46
47 <hbox id="filler" style="min-width: 0%;">
48 <spacer style="width: 29em;"/>
49 </hbox>
50
51 <grid>
52 <columns>
53 <column/>
54 <column flex="1"/>
55 </columns>
56
57 <rows>
58 <row>
59 <hbox id="iconContainer" align="start">
60 <image id="info.icon" class="spaced"/>
61 </hbox>
62 <vbox id="infoContainer"
63 #ifndef XP_MACOSX
64 pack="center"
65 #endif
66 >
67 <!-- Only shown on OS X, since it has no dialog title -->
68 <description id="info.title"
69 #ifndef XP_MACOSX
70 style="display: none"
71 #else
72 style="margin-bottom: 1em"
73 #endif
74 />
75 <description id="info.body" context="contentAreaContextMenu" noinitialfocus="true"/>
76 </vbox>
77 </row>
78 <row id="loginContainer" hidden="true" align="center">
79 <label id="loginLabel" value="&editfield0.label;" control="loginTextbox"/>
80 <textbox id="loginTextbox"/>
81 </row>
82 <row id ="password1Container" hidden="true" align="center">
83 <label id="password1Label" value="&editfield1.label;" control="password1Textbox"/>
84 <textbox type="password" id="password1Textbox"/>
85 </row>
86 <row id="checkboxContainer" hidden="true">
87 <spacer/>
88 <checkbox id="checkbox" oncommand="Dialog.onCheckbox()"/>
89 </row>
90 </rows>
91 </grid>
92
93 </dialog>

mercurial