toolkit/components/prompts/content/commonDialog.xul

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/toolkit/components/prompts/content/commonDialog.xul	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,93 @@
     1.4 +<?xml version="1.0"?>
     1.5 +<!-- This Source Code Form is subject to the terms of the Mozilla Public
     1.6 +   - License, v. 2.0. If a copy of the MPL was not distributed with this
     1.7 +   - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
     1.8 +
     1.9 +
    1.10 +<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
    1.11 +<?xml-stylesheet href="chrome://global/content/commonDialog.css" type="text/css"?>
    1.12 +<?xml-stylesheet href="chrome://global/skin/commonDialog.css" type="text/css"?>
    1.13 +
    1.14 +<!DOCTYPE dialog SYSTEM "chrome://global/locale/commonDialog.dtd">
    1.15 +
    1.16 +<dialog id="commonDialog"
    1.17 +        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
    1.18 +        aria-describedby="info.body"
    1.19 +        onload="commonDialogOnLoad();"
    1.20 +        onunload="commonDialogOnUnload();"
    1.21 +        ondialogaccept="Dialog.onButton0(); return true;"
    1.22 +        ondialogcancel="Dialog.onButton1(); return true;"
    1.23 +        ondialogextra1="Dialog.onButton2(); window.close();"
    1.24 +        ondialogextra2="Dialog.onButton3(); window.close();"
    1.25 +        buttonpack="center">
    1.26 +
    1.27 +  <script type="application/javascript" src="chrome://global/content/commonDialog.js"/>
    1.28 +  <script type="application/javascript" src="chrome://global/content/globalOverlay.js"/>
    1.29 +
    1.30 +  <commandset id="selectEditMenuItems">
    1.31 +    <command id="cmd_copy" oncommand="goDoCommand('cmd_copy')" disabled="true"/>
    1.32 +    <command id="cmd_selectAll" oncommand="goDoCommand('cmd_selectAll')"/>
    1.33 +  </commandset>
    1.34 +
    1.35 +  <popupset id="contentAreaContextSet">
    1.36 +    <menupopup id="contentAreaContextMenu"
    1.37 +               onpopupshowing="goUpdateCommand('cmd_copy')">
    1.38 +      <menuitem id="context-copy"
    1.39 +                label="&copyCmd.label;"
    1.40 +                accesskey="&copyCmd.accesskey;"
    1.41 +                command="cmd_copy"
    1.42 +                disabled="true"/>
    1.43 +      <menuitem id="context-selectall"
    1.44 +                label="&selectAllCmd.label;"
    1.45 +                accesskey="&selectAllCmd.accesskey;"
    1.46 +                command="cmd_selectAll"/>
    1.47 +    </menupopup>
    1.48 +  </popupset>
    1.49 +
    1.50 +  <hbox id="filler" style="min-width: 0%;">
    1.51 +    <spacer style="width: 29em;"/>
    1.52 +  </hbox>
    1.53 +
    1.54 +  <grid>
    1.55 +    <columns>
    1.56 +      <column/>
    1.57 +      <column flex="1"/>
    1.58 +    </columns>
    1.59 +
    1.60 +    <rows>
    1.61 +      <row>
    1.62 +        <hbox id="iconContainer" align="start">
    1.63 +          <image id="info.icon" class="spaced"/>
    1.64 +        </hbox>
    1.65 +        <vbox id="infoContainer"
    1.66 +#ifndef XP_MACOSX
    1.67 +              pack="center"
    1.68 +#endif
    1.69 +        >
    1.70 +          <!-- Only shown on OS X, since it has no dialog title -->
    1.71 +          <description id="info.title"
    1.72 +#ifndef XP_MACOSX
    1.73 +            style="display: none"
    1.74 +#else
    1.75 +            style="margin-bottom: 1em"
    1.76 +#endif
    1.77 +          />
    1.78 +          <description id="info.body" context="contentAreaContextMenu" noinitialfocus="true"/>
    1.79 +        </vbox>
    1.80 +      </row>
    1.81 +      <row id="loginContainer" hidden="true" align="center">
    1.82 +        <label id="loginLabel" value="&editfield0.label;" control="loginTextbox"/>
    1.83 +        <textbox id="loginTextbox"/>
    1.84 +      </row>
    1.85 +      <row id ="password1Container" hidden="true" align="center">
    1.86 +        <label id="password1Label" value="&editfield1.label;" control="password1Textbox"/>
    1.87 +        <textbox type="password" id="password1Textbox"/>
    1.88 +      </row>
    1.89 +      <row id="checkboxContainer" hidden="true">
    1.90 +        <spacer/>
    1.91 +        <checkbox id="checkbox" oncommand="Dialog.onCheckbox()"/>
    1.92 +      </row>
    1.93 +    </rows>
    1.94 +  </grid>
    1.95 +
    1.96 +</dialog>

mercurial