Bug 496271, automation config for Tb2.0.0.22 build1, p=joduinn, r=me
[mozilla-1.9.git] / toolkit / content / commonDialog.xul
blobdf05687978af23af418a956f5b7e0b5eabded915
1 <?xml version="1.0"?>
3 <?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
4 <?xml-stylesheet href="chrome://global/content/commonDialog.css" type="text/css"?>
6 <!DOCTYPE dialog SYSTEM "chrome://global/locale/commonDialog.dtd">
8 <dialog id="commonDialog"
9 xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
10 role="alert"
11 onload="commonDialogOnLoad();"
12 ondialogaccept="return commonDialogOnAccept();"
13 ondialogextra1="return commonDialogOnExtra1();"
14 ondialogextra2="return commonDialogOnExtra2();"
15 buttonpack="center"
16 style="min-width: 29em; min-height: 8.5em; -moz-user-focus: ignore;">
18 <script type="application/javascript" src="chrome://global/content/commonDialog.js"/>
19 <script type="application/x-javascript" src="chrome://global/content/globalOverlay.js"/>
21 <commandset id="selectEditMenuItems">
22 <command id="cmd_copy" oncommand="goDoCommand('cmd_copy')" disabled="true"/>
23 <command id="cmd_selectAll" oncommand="goDoCommand('cmd_selectAll')"/>
24 </commandset>
26 <popupset id="contentAreaContextSet">
27 <popup id="contentAreaContextMenu"
28 onpopupshowing="goUpdateCommand('cmd_copy')">
29 <menuitem id="context-copy"
30 label="&copyCmd.label;"
31 accesskey="&copyCmd.accesskey;"
32 command="cmd_copy"
33 disabled="true"/>
34 <menuitem id="context-selectall"
35 label="&selectAllCmd.label;"
36 accesskey="&selectAllCmd.accesskey;"
37 command="cmd_selectAll"/>
38 </popup>
39 </popupset>
42 <grid>
43 <columns>
44 <column/>
45 <column flex="1"/>
46 </columns>
48 <rows>
49 <row>
50 <hbox align="start">
51 <image id="info.icon" class="spaced"/>
52 </hbox>
53 <vbox id="infoContainer">
54 #ifdef XP_MACOSX
55 <!-- Dialog title is inside dialog for OS X -->
56 <description id="info.title" class="dialogTitle"/>
57 #endif
58 <description id="info.header" class="header"/>
59 <description id="info.body" context="contentAreaContextMenu" tabindex="-1"/>
60 </vbox>
61 </row>
62 <row id="loginContainer" hidden="true" align="center">
63 <label id="loginLabel" value="&editfield0.label;" control="loginTextbox"/>
64 <textbox id="loginTextbox"/>
65 </row>
66 <row id ="password1Container" hidden="true" align="center">
67 <label id="password1Label" value="&editfield1.label;" control="password1Textbox"/>
68 <textbox type="password" id="password1Textbox"/>
69 </row>
70 <row id="password2Container" hidden="true" align="center">
71 <label id="password2Label" value="&editfield2.label;" control="password2Textbox"/>
72 <textbox type="password" id="password2Textbox"/>
73 </row>
74 <row id="checkboxContainer" hidden="true">
75 <spacer/>
76 <checkbox id="checkbox" oncommand="onCheckboxClick(this);"/>
77 </row>
78 </rows>
79 </grid>
82 <!-- This method is called inline because it may unset hidden="true" on the
83 above boxes, causing their frames to be build and bindings to load.
84 So, by calling this inline, we guarantee the textboxes and checkboxes
85 above will have their bindings before initButtons is called, and the
86 dialog will be intrinsically sized correctly. -->
87 <script type="application/javascript">showControls();</script>
88 </dialog>