home *** CD-ROM | disk | FTP | other *** search
/ Chip 2002 January / 01_02.iso / software / netscape62win / browser.xpi / bin / chrome / comm.jar / content / navigator / turboDialog.xul < prev    next >
Encoding:
Extensible Markup Language  |  2001-10-16  |  3.2 KB  |  95 lines

  1. <?xml version="1.0"?>
  2. <!-- -*- Mode: xml; indent-tabs-mode: nil; -*-
  3.    - The contents of this file are subject to the Mozilla Public License
  4.    - Version 1.1 (the "License"); you may not use this file except in
  5.    - compliance with the License. You may obtain a copy of the License at
  6.    - http://www.mozilla.org/MPL/
  7.   
  8.    - Software distributed under the License is distributed on an "AS IS"
  9.    - basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
  10.    - the License for the specific language governing rights and
  11.    - limitations under the License.
  12.  
  13.    - The Original Code is Mozilla Communicator client code, released
  14.    - March 31, 1998.
  15.  
  16.    - The Initial Developer of the Original Code is Netscape
  17.    - Communications Corporation. Portions created by Netscape are
  18.    - Copyright (C) 1998-1999 Netscape Communications Corporation. All
  19.    - Rights Reserved.
  20.  
  21.    Contributor(s): 
  22.      - Blake Ross <blake@netscape.com> (Original Author)
  23. -->
  24.  
  25. <?xml-stylesheet href="chrome://global/skin/global.css" type="text/css"?> 
  26. <?xml-stylesheet href="chrome://navigator/skin/turbo.css" type="text/css"?>
  27. <?xul-overlay href="chrome://global/content/dialogOverlay.xul"?>
  28. <!DOCTYPE window [
  29.   <!ENTITY % turboDialogDTD SYSTEM "chrome://navigator/locale/turboDialog.dtd" >
  30.   %turboDialogDTD;
  31.   <!ENTITY % dialogOverlayDTD SYSTEM "chrome://global-platform/locale/platformDialogOverlay.dtd" >
  32.   %dialogOverlayDTD;
  33.   <!ENTITY % brandDTD SYSTEM "chrome://global/locale/brand.dtd" >
  34.   %brandDTD;
  35. ]>
  36.  
  37. <window id="turboDialog"
  38.         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  39.         title="&exitWarningTitle.label;"
  40.         class="dialog"
  41.         orient="vertical"
  42.         onload="document.getElementById('okButton').focus();"
  43.         onunload="SetTurboPref();">
  44.   <script type="application/x-javascript">
  45.     <![CDATA[
  46.       function SetTurboPref() {
  47.         var showDialog = document.getElementById("showAgain").checked;
  48.         try {
  49.           var prefs = Components.classes["@mozilla.org/preferences;1"].getService(Components.interfaces.nsIPrefBranch);
  50.           if (prefs)
  51.             prefs.setBoolPref("browser.turbo.showDialog", !showDialog);
  52.         }
  53.         catch(e) {
  54.         }
  55.       }
  56.     ]]>
  57.   </script>
  58.  
  59.   <keyset id="dialogKeys"/>
  60.  
  61.   <hbox flex="1">
  62.     <hbox align="start" valign="top">
  63.       <image class="message-icon"/>
  64.     </hbox>
  65.     <separator orient="vertical" class="thin"/>
  66.     <vbox flex="1">
  67.       <!-- text -->
  68.       <html flex="1">&exitWarningMsg.label;</html>
  69.       <vbox flex="1" style="max-width: 36em;"/>
  70.       <separator/>
  71.       <hbox>
  72.         <spring flex="45%"/>
  73.         <image id="turboTrayImage"/>
  74.         <spring flex="55%"/>
  75.       </hbox>
  76.       <separator class="thin"/>
  77.       <separator class="thin"/>
  78.       <!-- checkbox -->
  79.       <hbox align="start">
  80.         <checkbox id="showAgain" label="&exitWarningCheckbox.label;"
  81.                   accesskey="&exitWarningCheckbox.accesskey;"/>
  82.       </hbox>
  83.     </vbox>
  84.   </hbox>
  85.  
  86.   <separator class="thin"/>
  87.   <separator class="thin"/>
  88.   <hbox>
  89.     <spring flex="1"/>
  90.     <button id="okButton" label="&okButton.label;" oncommand="window.close();" default="true"/>
  91.     <spring flex="1"/>
  92.   </hbox> 
  93.  
  94. </window>
  95.