home *** CD-ROM | disk | FTP | other *** search
/ ftp.swcp.com / ftp.swcp.com.zip / ftp.swcp.com / mac / mozilla-macos9-1.3.1.sea.bin / Mozilla1.3.1 / Chrome / comm.jar / content / editor / EdInputProps.xul < prev    next >
Extensible Markup Language  |  2003-06-08  |  6KB  |  157 lines

  1. <?xml version="1.0"?>
  2. <!-- ***** BEGIN LICENSE BLOCK *****
  3.    - Version: MPL 1.1/GPL 2.0/LGPL 2.1
  4.    -
  5.    - The contents of this file are subject to the Mozilla Public License Version
  6.    - 1.1 (the "License"); you may not use this file except in compliance with
  7.    - the License. You may obtain a copy of the License at
  8.    - http://www.mozilla.org/MPL/
  9.    -
  10.    - Software distributed under the License is distributed on an "AS IS" basis,
  11.    - WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
  12.    - for the specific language governing rights and limitations under the
  13.    - License.
  14.    -
  15.    - The Original Code is Input Tag Properties Dialog.
  16.    -
  17.    - The Initial Developer of the Original Code is
  18.    - Neil Rashbrook.
  19.    - Portions created by the Initial Developer are Copyright (C) 2001
  20.    - the Initial Developer. All Rights Reserved.
  21.    -
  22.    - Contributor(s): Neil Rashbrook <neil@parkwaycc.co.uk>
  23.    -
  24.    - Alternatively, the contents of this file may be used under the terms of
  25.    - either the GNU General Public License Version 2 or later (the "GPL"), or
  26.    - the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
  27.    - in which case the provisions of the GPL or the LGPL are applicable instead
  28.    - of those above. If you wish to allow use of your version of this file only
  29.    - under the terms of either the GPL or the LGPL, and not to allow others to
  30.    - use your version of this file under the terms of the MPL, indicate your
  31.    - decision by deleting the provisions above and replace them with the notice
  32.    - and other provisions required by the LGPL or the GPL. If you do not delete
  33.    - the provisions above, a recipient may use your version of this file under
  34.    - the terms of any one of the MPL, the GPL or the LGPL.
  35.    -
  36.    - ***** END LICENSE BLOCK ***** -->
  37.  
  38. <?xml-stylesheet href="chrome://editor/skin/editor.css" type="text/css"?>
  39. <?xml-stylesheet href="chrome://editor/skin/EditorDialog.css" type="text/css"?>
  40.  
  41. <?xul-overlay href="chrome://editor/content/EdDialogOverlay.xul"?> 
  42.  
  43. <!DOCTYPE window SYSTEM "chrome://editor/locale/EditorInputProperties.dtd">
  44. <dialog title="&windowTitle.label;"
  45.         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  46.         onload="Startup();"
  47.         buttons="accept,cancel"
  48.         ondialogaccept="return onAccept();"
  49.         ondialogcancel="return onCancel();">
  50.  
  51.   <!-- Methods common to all editor dialogs -->
  52.   <script type="application/x-javascript" src="chrome://editor/content/editorUtilities.js"/>
  53.   <script type="application/x-javascript" src="chrome://editor/content/EdDialogCommon.js"/>
  54.   <script type="application/x-javascript" src="chrome://editor/content/EdInputProps.js"/>
  55.  
  56.   <broadcaster id="args" value=""/>
  57.   <spacer id="location" offsetY="50" persist="offsetX offsetY"/>
  58.  
  59.   <groupbox orient="vertical"><caption label="&InputType.label;"/>
  60.     <menulist id="InputType" oncommand="SelectInputType();">
  61.       <menupopup>
  62.         <menuitem label="&text.value;"/>
  63.         <menuitem label="&password.value;"/>
  64.         <menuitem label="&checkbox.value;"/>
  65.         <menuitem label="&radio.value;"/>
  66.         <menuitem label="&submit.value;"/>
  67.         <menuitem label="&reset.value;"/>
  68.         <menuitem label="&file.value;"/>
  69.         <menuitem label="&hidden.value;"/>
  70.         <menuitem label="&image.value;"/>
  71.         <menuitem label="&button.value;"/>
  72.       </menupopup>
  73.     </menulist>
  74.   </groupbox>
  75.  
  76.   <groupbox orient="vertical"><caption label="&InputSettings.label;"/>
  77.     <grid><columns><column/><column/></columns>
  78.       <rows>
  79.         <row align="center">
  80.           <deck id="InputNameDeck">
  81.             <label value="&InputName.label;"/>
  82.             <label value="&GroupName.label;"/>
  83.           </deck>
  84.           <textbox id="InputName" oninput="onInput();"/>
  85.         </row>
  86.         <row align="center">
  87.           <deck id="InputValueDeck">
  88.             <label value="&InputValue.label;"/>
  89.             <label value="&InitialValue.label;"/>
  90.           </deck>
  91.           <textbox id="InputValue" oninput="onInput();"/>
  92.         </row>
  93.         <row>
  94.           <spacer/>
  95.           <deck id="InputDeck" persist="index">
  96.             <checkbox id="InputChecked" label="&InputChecked.label;"/>
  97.             <checkbox id="InputSelected" label="&InputSelected.label;"/>
  98.             <checkbox id="InputReadOnly" label="&InputReadOnly.label;"/>
  99.           </deck>
  100.         </row>
  101.       </rows>
  102.     </grid>
  103.     <hbox>
  104.       <button id="MoreFewerButton" oncommand="onMoreFewer();" persist="more"/>
  105.     </hbox>
  106.     <grid id="MoreSection" align="start">
  107.       <columns><column/><column/></columns>
  108.       <rows>
  109.         <row>
  110.           <spacer/>
  111.           <checkbox id="InputDisabled" label="&InputDisabled.label;"/>
  112.         </row>
  113.         <row align="center">
  114.           <label value="&tabIndex.label;"/>
  115.           <hbox>
  116.             <textbox id="InputTabIndex" class="narrow" oninput="forceInteger(this.id);"/>
  117.           </hbox>
  118.         </row>
  119.         <row align="center">
  120.           <label value="&AccessKey.label;"/>
  121.           <hbox>
  122.             <textbox id="InputAccessKey" class="narrow"/>
  123.           </hbox>
  124.         </row>
  125.         <row align="center">
  126.           <label value="&TextSize.label;"/>
  127.           <hbox>
  128.             <textbox id="InputSize" class="narrow" oninput="forceInteger(this.id);"/>
  129.           </hbox>
  130.         </row>
  131.         <row align="center">
  132.           <label value="&TextLength.label;"/>
  133.           <hbox>
  134.             <textbox id="InputMaxLength" class="narrow" oninput="forceInteger(this.id);"/>
  135.           </hbox>
  136.         </row>
  137.         <row align="center">
  138.           <label value="&Accept.label;"/>
  139.           <textbox id="InputAccept"/>
  140.         </row>
  141.       </rows>
  142.     </grid>
  143.   </groupbox>
  144.  
  145.   <!-- from EdDialogOverlay -->
  146.   <hbox flex="1" style="margin-top: 0.2em">
  147.     <!-- This will right-align the button -->
  148.     <spacer flex="1"/>
  149.     <deck id="AdvancedEditDeck">
  150.       <button id="AdvancedEditButton"/>
  151.       <button label="&ImageProperties.label;" oncommand="doImageProperties();"/>
  152.     </deck>
  153.   </hbox>
  154.   <separator class="groove"/>
  155.  
  156. </dialog>
  157.