2
<!-- ***** BEGIN LICENSE BLOCK *****
3
- Version: MPL 1.1/GPL 2.0/LGPL 2.1
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/
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
15
- The Original Code is Selection List Properties Dialog.
17
- The Initial Developer of the Original Code is
19
- Portions created by the Initial Developer are Copyright (C) 2001
20
- the Initial Developer. All Rights Reserved.
22
- Contributor(s): Neil Rashbrook <neil@parkwaycc.co.uk>
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.
36
- ***** END LICENSE BLOCK ***** -->
38
<?xml-stylesheet href="chrome://editor/skin/editor.css" type="text/css"?>
39
<?xml-stylesheet href="chrome://editor/skin/EditorDialog.css" type="text/css"?>
41
<?xul-overlay href="chrome://editor/content/EdDialogOverlay.xul"?>
43
<!DOCTYPE dialog SYSTEM "chrome://editor/locale/EditorSelectProperties.dtd">
44
<dialog title="&windowTitle.label;"
45
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
47
buttons="accept,cancel"
48
ondialogaccept="return onAccept();"
49
ondialogcancel="return onCancel();">
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/EdSelectProps.js"/>
56
<broadcaster id="args" value=""/>
57
<spacer id="location" offsetY="50" persist="offsetX offsetY"/>
59
<!-- Setting rows="7" on tree isn't working, equalsize vbox sets tree height. -->
60
<vbox equalsize="always">
61
<tree id="SelectTree" onselect="treeBoxObject.view.selectionChanged();" onkeyup="onTreeKeyUp(event);">
62
<treecols id="SelectCols">
63
<treecol id="SelectTextCol" flex="3" label="&TextHeader.label;" primary="true"/>
64
<splitter class="tree-splitter"/>
65
<treecol id="SelectValCol" flex="2" label="&ValueHeader.label;"/>
66
<treecol id="SelectSelCol" label="&SelectedHeader.label;" cycler="true"/>
69
<treechildren id="SelectTreeChildren"/>
73
<deck flex="1" id="SelectDeck" index="0">
74
<groupbox flex="1"><caption label="&Select.label;"/>
75
<grid flex="1"><columns><column flex="1"/><column/></columns>
78
<label control="SelectName" value="&SelectName.label;" accesskey="&SelectName.accesskey;"/>
79
<textbox id="SelectName" flex="1" oninput="onNameInput();"/>
82
<label control="SelectSize" value="&SelectSize.label;" accesskey="&SelectSize.accesskey;"/>
84
<textbox id="SelectSize" class="narrow" oninput="forceInteger(this.id);"/>
89
<checkbox id="SelectMultiple" flex="1" label="&SelectMultiple.label;" accesskey="&SelectMultiple.accesskey;" oncommand="onSelectMultipleClick();"/>
93
<checkbox id="SelectDisabled" flex="1" label="&SelectDisabled.label;" accesskey="&SelectDisabled.accesskey;"/>
96
<label control="SelectTabIndex" value="&SelectTabIndex.label;" accesskey="&SelectTabIndex.accesskey;"/>
98
<textbox id="SelectTabIndex" class="narrow" oninput="forceInteger(this.id);"/>
105
<groupbox flex="1"><caption label="&OptGroup.label;"/>
106
<grid flex="1"><columns><column flex="1"/><column/></columns>
109
<label control="OptGroupLabel" value="&OptGroupLabel.label;" accesskey="&OptGroupLabel.accesskey;"/>
110
<textbox id="OptGroupLabel" oninput="onLabelInput();"/>
114
<checkbox id="OptGroupDisabled" label="&OptGroupDisabled.label;" accesskey="&OptGroupDisabled.accesskey;"/>
120
<groupbox flex="1"><caption label="&Option.label;"/>
121
<grid flex="1"><columns><column flex="1"/><column/></columns>
124
<label control="OptionText" value="&OptionText.label;" accesskey="&OptionText.accesskey;"/>
125
<textbox id="OptionText" oninput="onTextInput();"/>
128
<checkbox id="OptionHasValue" label="&OptionValue.label;" accesskey="&OptionValue.accesskey;" oncommand="onHasValueClick();"/>
129
<textbox id="OptionValue" oninput="onValueInput();"/>
133
<checkbox id="OptionSelected" label="&OptionSelected.label;" accesskey="&OptionSelected.accesskey;" oncommand="currentItem.cycleCell();"/>
137
<checkbox id="OptionDisabled" label="&OptionDisabled.label;" accesskey="&OptionDisabled.accesskey;"/>
145
<button label="&AddOption.label;" accesskey="&AddOption.accesskey;" oncommand="AddOption();"/>
146
<button label="&AddOptGroup.label;" accesskey="&AddOptGroup.accesskey;" oncommand="AddOptGroup();"/>
147
<button id="RemoveButton" label="&RemoveElement.label;" accesskey="&RemoveElement.accesskey;"
148
oncommand="RemoveElement();" disabled="true"/>
149
<button id="PreviousButton" label="&MoveElementUp.label;" accesskey="&MoveElementUp.accesskey;"
150
oncommand="currentItem.moveUp();" disabled="true" type="row"/>
151
<button id="NextButton" label="&MoveElementDown.label;" accesskey="&MoveElementDown.accesskey;"
152
oncommand="currentItem.moveDown();" disabled="true" type="row"/>
154
<button id="AdvancedEditButton"/>
159
<separator class="groove"/>