home *** CD-ROM | disk | FTP | other *** search
/ PC World 2007 March / PCWorld_2007-03_cd.bin / komunikace / nvu / nvu-1.0-cs-CZ.win32.installer.exe / chrome / toolkit.jar / content / global / commonDialog.xul < prev    next >
Extensible Markup Language  |  2003-08-18  |  2KB  |  61 lines

  1. <?xml version="1.0"?> 
  2.  
  3. <?xml-stylesheet href="chrome://global/skin/" type="text/css"?> 
  4.  
  5. <!DOCTYPE dialog SYSTEM "chrome://global/locale/commonDialog.dtd">
  6.  
  7. <dialog id="commonDialog"
  8.         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" 
  9.         onload="commonDialogOnLoad();"
  10.         ondialogaccept="return commonDialogOnAccept();"
  11.         ondialogextra1="return commonDialogOnExtra1();"
  12.         ondialogextra2="return commonDialogOnExtra2();"
  13.         buttonpack="center"
  14.         style="min-width: 29em; min-height: 8.5em; -moz-user-focus: ignore;"> 
  15.     
  16.   <script type="application/x-javascript" src="chrome://global/content/commonDialog.js"/>
  17.  
  18.   <hbox flex="1">
  19.     <hbox align="start">
  20.       <image id="info.icon" class="spaced"/>
  21.     </hbox>
  22.     
  23.     <vbox flex="1" style="max-width: 45em;">
  24.       <!-- text -->
  25.       <description id="info.header" class="header"/>
  26.       <vbox id="info.box"/>
  27.  
  28.       <!-- textboxes -->
  29.       <vbox id="loginContainer" hidden="true">
  30.         <label id="loginLabel" value="&editfield0.label;" control="loginTextbox"/>
  31.         <textbox id="loginTextbox"/>
  32.         <separator class="thin"/>
  33.       </vbox>
  34.       <vbox id ="password1Container" hidden="true">
  35.         <label id="password1Label" value="&editfield1.label;" control="password1Textbox"/>
  36.         <textbox type="password" id="password1Textbox"/>
  37.         <separator class="thin"/>
  38.       </vbox>
  39.       <vbox id="password2Container" hidden="true">
  40.         <label id="password2Label" value="&editfield2.label;" control="password2Textbox"/>
  41.         <textbox type="password" id="password2Textbox"/>
  42.         <separator class="thin"/>
  43.       </vbox>
  44.   
  45.       <!-- checkbox -->
  46.       <hbox id="checkboxContainer" collapsed="true">
  47.         <checkbox id="checkbox" oncommand="onCheckboxClick(this);"/>
  48.       </hbox>
  49.     </vbox>
  50.   </hbox>
  51.  
  52.   <separator class="thin"/>
  53.   
  54.   <!-- This method is called inline because it may unset hidden="true" on the
  55.        above boxes, causing their frames to be build and bindings to load.  
  56.        So, by calling this inline, we guarantee the textboxes and checkboxes 
  57.        above will have their bindings before initButtons is called, and the
  58.        dialog will be intrinsically sized correctly. -->
  59.   <script type="application/x-javascript">showControls();</script>
  60. </dialog>
  61.