~ubuntu-branches/ubuntu/precise/kompozer/precise

« back to all changes in this revision

Viewing changes to mozilla/editor/ui/dialogs/content/EdSelectProps.xul

  • Committer: Bazaar Package Importer
  • Author(s): Anthony Yarusso
  • Date: 2007-08-27 01:11:03 UTC
  • Revision ID: james.westby@ubuntu.com-20070827011103-2jgf4s6532gqu2ka
Tags: upstream-0.7.10
ImportĀ upstreamĀ versionĀ 0.7.10

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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 Selection List 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 dialog SYSTEM "chrome://editor/locale/EditorSelectProperties.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/EdSelectProps.js"/>
 
55
 
 
56
  <broadcaster id="args" value=""/>
 
57
  <spacer id="location" offsetY="50" persist="offsetX offsetY"/>
 
58
 
 
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"/>
 
67
      </treecols>
 
68
 
 
69
      <treechildren id="SelectTreeChildren"/>
 
70
    </tree>
 
71
 
 
72
    <hbox flex="1">
 
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>
 
76
            <rows>
 
77
              <row align="center">
 
78
                <label control="SelectName" value="&SelectName.label;" accesskey="&SelectName.accesskey;"/>
 
79
                <textbox id="SelectName" flex="1" oninput="onNameInput();"/>
 
80
              </row>
 
81
              <row align="center">
 
82
                <label control="SelectSize" value="&SelectSize.label;" accesskey="&SelectSize.accesskey;"/>
 
83
                <hbox>
 
84
                  <textbox id="SelectSize" class="narrow" oninput="forceInteger(this.id);"/>
 
85
                </hbox>
 
86
              </row>
 
87
              <row>
 
88
                <spacer/>
 
89
                <checkbox id="SelectMultiple" flex="1" label="&SelectMultiple.label;" accesskey="&SelectMultiple.accesskey;" oncommand="onSelectMultipleClick();"/>
 
90
              </row>
 
91
              <row>
 
92
                <spacer/>
 
93
                <checkbox id="SelectDisabled" flex="1" label="&SelectDisabled.label;" accesskey="&SelectDisabled.accesskey;"/>
 
94
              </row>
 
95
              <row align="center">
 
96
                <label control="SelectTabIndex" value="&SelectTabIndex.label;" accesskey="&SelectTabIndex.accesskey;"/>
 
97
                <hbox>
 
98
                  <textbox id="SelectTabIndex" class="narrow" oninput="forceInteger(this.id);"/>
 
99
                </hbox>
 
100
              </row>
 
101
            </rows>
 
102
          </grid>
 
103
        </groupbox>
 
104
 
 
105
        <groupbox flex="1"><caption label="&OptGroup.label;"/>
 
106
          <grid flex="1"><columns><column flex="1"/><column/></columns>
 
107
            <rows>
 
108
              <row align="center">
 
109
                <label control="OptGroupLabel" value="&OptGroupLabel.label;" accesskey="&OptGroupLabel.accesskey;"/>
 
110
                <textbox id="OptGroupLabel" oninput="onLabelInput();"/>
 
111
              </row>
 
112
              <row>
 
113
                <spacer/>
 
114
                <checkbox id="OptGroupDisabled" label="&OptGroupDisabled.label;" accesskey="&OptGroupDisabled.accesskey;"/>
 
115
              </row>
 
116
            </rows>
 
117
          </grid>
 
118
        </groupbox>
 
119
 
 
120
        <groupbox flex="1"><caption label="&Option.label;"/>
 
121
          <grid flex="1"><columns><column flex="1"/><column/></columns>
 
122
            <rows>
 
123
              <row align="center">
 
124
                <label control="OptionText" value="&OptionText.label;" accesskey="&OptionText.accesskey;"/>
 
125
                <textbox id="OptionText" oninput="onTextInput();"/>
 
126
              </row>
 
127
              <row align="center">
 
128
                <checkbox id="OptionHasValue" label="&OptionValue.label;" accesskey="&OptionValue.accesskey;" oncommand="onHasValueClick();"/>
 
129
                <textbox id="OptionValue" oninput="onValueInput();"/>
 
130
              </row>
 
131
              <row>
 
132
                <spacer/>
 
133
                <checkbox id="OptionSelected" label="&OptionSelected.label;" accesskey="&OptionSelected.accesskey;" oncommand="currentItem.cycleCell();"/>
 
134
              </row>
 
135
              <row>
 
136
                <spacer/>
 
137
                <checkbox id="OptionDisabled" label="&OptionDisabled.label;" accesskey="&OptionDisabled.accesskey;"/>
 
138
              </row>
 
139
            </rows>
 
140
          </grid>
 
141
        </groupbox>
 
142
      </deck>
 
143
 
 
144
      <vbox>
 
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"/>
 
153
        <spacer flex="1"/>
 
154
        <button id="AdvancedEditButton"/>
 
155
      </vbox>
 
156
    </hbox>
 
157
  </vbox>
 
158
 
 
159
  <separator class="groove"/>
 
160
 
 
161
</dialog>