toolkit/components/prompts/content/commonDialog.xul

Fri, 16 Jan 2015 18:13:44 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Fri, 16 Jan 2015 18:13:44 +0100
branch
TOR_BUG_9701
changeset 14
925c144e1f1f
permissions
-rw-r--r--

Integrate suggestion from review to improve consistency with existing code.

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

mercurial