blob: ff91b02e28c653b13246b2cc234fe6601d7f3926 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
|
<?xml version="1.0"?>
<!-- This Source Code Form is subject to the terms of the Mozilla Public
- License, v. 2.0. If a copy of the MPL was not distributed with this
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
<?xml-stylesheet href="chrome://editor/skin/editor.css" type="text/css"?>
<?xml-stylesheet href="chrome://editor/skin/EditorDialog.css" type="text/css"?>
<!DOCTYPE dialog [
<!ENTITY % edSelectProperties SYSTEM "chrome://editor/locale/EditorSelectProperties.dtd">
%edSelectProperties;
<!ENTITY % edDialogOverlay SYSTEM "chrome://editor/locale/EdDialogOverlay.dtd">
%edDialogOverlay;
]>
<dialog title="&windowTitle.label;"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" xmlns:html="http://www.w3.org/1999/xhtml"
onload="Startup();"
buttons="accept,cancel">
<!-- Methods common to all editor dialogs -->
<script src="chrome://editor/content/editorUtilities.js"/>
<script src="chrome://editor/content/EdDialogCommon.js"/>
<script src="chrome://editor/content/EdSelectProps.js"/>
<spacer id="location" offsetY="50" persist="offsetX offsetY"/>
<!-- Setting rows="7" on tree isn't working, equalsize vbox sets tree height. -->
<vbox equalsize="always">
<tree id="SelectTree" onselect="treeBoxObject.view.selectionChanged();" onkeyup="onTreeKeyUp(event);">
<treecols id="SelectCols">
<treecol id="SelectTextCol" flex="3" label="&TextHeader.label;" primary="true"/>
<splitter class="tree-splitter"/>
<treecol id="SelectValCol" flex="2" label="&ValueHeader.label;"/>
<treecol id="SelectSelCol" label="&SelectedHeader.label;" cycler="true"/>
</treecols>
<treechildren id="SelectTreeChildren"/>
</tree>
<hbox flex="1">
<deck flex="1" id="SelectDeck" index="0">
<groupbox flex="1">
<hbox class="groupbox-title">
<label class="header">&Select.label;</label>
</hbox>
<grid flex="1"><columns><column flex="1"/><column/></columns>
<rows>
<row align="center">
<label control="SelectName" value="&SelectName.label;" accesskey="&SelectName.accesskey;"/>
<textbox id="SelectName" flex="1" oninput="onNameInput();"/>
</row>
<row align="center">
<label control="SelectSize" value="&SelectSize.label;" accesskey="&SelectSize.accesskey;"/>
<hbox>
<textbox id="SelectSize" class="narrow" oninput="forceInteger(this.id);"/>
</hbox>
</row>
<row>
<spacer/>
<checkbox id="SelectMultiple" flex="1" label="&SelectMultiple.label;" accesskey="&SelectMultiple.accesskey;" oncommand="onSelectMultipleClick();"/>
</row>
<row>
<spacer/>
<checkbox id="SelectDisabled" flex="1" label="&SelectDisabled.label;" accesskey="&SelectDisabled.accesskey;"/>
</row>
<row align="center">
<label control="SelectTabIndex" value="&SelectTabIndex.label;" accesskey="&SelectTabIndex.accesskey;"/>
<hbox>
<textbox id="SelectTabIndex" class="narrow" oninput="forceInteger(this.id);"/>
</hbox>
</row>
</rows>
</grid>
</groupbox>
<groupbox flex="1">
<hbox class="groupbox-title">
<label class="header">&OptGroup.label;</label>
</hbox>
<grid flex="1"><columns><column flex="1"/><column/></columns>
<rows>
<row align="center">
<label control="OptGroupLabel" value="&OptGroupLabel.label;" accesskey="&OptGroupLabel.accesskey;"/>
<textbox id="OptGroupLabel" oninput="onLabelInput();"/>
</row>
<row>
<spacer/>
<checkbox id="OptGroupDisabled" label="&OptGroupDisabled.label;" accesskey="&OptGroupDisabled.accesskey;"/>
</row>
</rows>
</grid>
</groupbox>
<groupbox flex="1">
<hbox class="groupbox-title">
<label class="header">&Option.label;</label>
</hbox>
<grid flex="1"><columns><column flex="1"/><column/></columns>
<rows>
<row align="center">
<label control="OptionText" value="&OptionText.label;" accesskey="&OptionText.accesskey;"/>
<textbox id="OptionText" oninput="onTextInput();"/>
</row>
<row align="center">
<checkbox id="OptionHasValue" label="&OptionValue.label;" accesskey="&OptionValue.accesskey;" oncommand="onHasValueClick();"/>
<textbox id="OptionValue" oninput="onValueInput();"/>
</row>
<row>
<spacer/>
<checkbox id="OptionSelected" label="&OptionSelected.label;" accesskey="&OptionSelected.accesskey;" oncommand="currentItem.cycleCell();"/>
</row>
<row>
<spacer/>
<checkbox id="OptionDisabled" label="&OptionDisabled.label;" accesskey="&OptionDisabled.accesskey;"/>
</row>
</rows>
</grid>
</groupbox>
</deck>
<vbox>
<button label="&AddOption.label;" accesskey="&AddOption.accesskey;" oncommand="AddOption();"/>
<button label="&AddOptGroup.label;" accesskey="&AddOptGroup.accesskey;" oncommand="AddOptGroup();"/>
<button id="RemoveButton" label="&RemoveElement.label;" accesskey="&RemoveElement.accesskey;"
oncommand="RemoveElement();" disabled="true"/>
<button id="PreviousButton" label="&MoveElementUp.label;" accesskey="&MoveElementUp.accesskey;"
oncommand="currentItem.moveUp();" disabled="true" type="row"/>
<button id="NextButton" label="&MoveElementDown.label;" accesskey="&MoveElementDown.accesskey;"
oncommand="currentItem.moveDown();" disabled="true" type="row"/>
<spacer flex="1"/>
<button id="AdvancedEditButton"
oncommand="onAdvancedEdit();"
label="&AdvancedEditButton.label;"
accesskey="&AdvancedEditButton.accessKey;"
tooltiptext="&AdvancedEditButton.tooltip;"/>
</vbox>
</hbox>
</vbox>
<separator class="groove"/>
</dialog>
|