summaryrefslogtreecommitdiffstats
path: root/webbrowser/components/places/content/editBookmarkOverlay.xul
blob: 196369dd2e05c26237337ee0168bb06eaa375e25 (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
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
<!-- 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/. -->

<!DOCTYPE overlay [
<!ENTITY % editBookmarkOverlayDTD SYSTEM "chrome://browser/locale/places/editBookmarkOverlay.dtd">
%editBookmarkOverlayDTD;
]>

<?xml-stylesheet href="chrome://browser/skin/places/editBookmarkOverlay.css"?>
<?xml-stylesheet href="chrome://browser/skin/places/places.css"?>

<overlay id="editBookmarkOverlay"
         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">

  <vbox id="editBookmarkPanelContent" flex="1">
    <broadcaster id="paneElementsBroadcaster"/>

    <hbox id="editBMPanel_selectionCount" hidden="true" pack="center">
      <label id="editBMPanel_itemsCountText"/>
    </hbox>

    <grid id="editBookmarkPanelGrid" flex="1">
      <columns id="editBMPanel_columns">
        <column id="editBMPanel_labelColumn" />
        <column flex="1" id="editBMPanel_editColumn" />
      </columns>
      <rows id="editBMPanel_rows">
        <row id="editBMPanel_nameRow"
             align="center"
             collapsed="true">
          <label value="&editBookmarkOverlay.name.label;"
                 class="editBMPanel_rowLabel"
                 accesskey="&editBookmarkOverlay.name.accesskey;"
                 control="editBMPanel_namePicker"
                 observes="paneElementsBroadcaster"/>
          <textbox id="editBMPanel_namePicker"
                   observes="paneElementsBroadcaster"/>
        </row>

        <row id="editBMPanel_locationRow"
             align="center"
             collapsed="true">
          <label value="&editBookmarkOverlay.location.label;"
                 class="editBMPanel_rowLabel"
                 accesskey="&editBookmarkOverlay.location.accesskey;"
                 control="editBMPanel_locationField"
                 observes="paneElementsBroadcaster"/>
          <textbox id="editBMPanel_locationField"
                   class="uri-element"
                   observes="paneElementsBroadcaster"/>
        </row>

        <row id="editBMPanel_feedLocationRow"
             align="center"
             collapsed="true">
          <label value="&editBookmarkOverlay.feedLocation.label;"
                 class="editBMPanel_rowLabel"
                 accesskey="&editBookmarkOverlay.feedLocation.accesskey;"
                 control="editBMPanel_feedLocationField"
                 observes="paneElementsBroadcaster"/>
          <textbox id="editBMPanel_feedLocationField"
                   class="uri-element"
                   observes="paneElementsBroadcaster"/>
        </row>

        <row id="editBMPanel_siteLocationRow"
             align="center"
             collapsed="true">
          <label value="&editBookmarkOverlay.siteLocation.label;"
                 class="editBMPanel_rowLabel"
                 accesskey="&editBookmarkOverlay.siteLocation.accesskey;"
                 control="editBMPanel_siteLocationField"
                 observes="paneElementsBroadcaster"/>
          <textbox id="editBMPanel_siteLocationField"
                   class="uri-element"
                   observes="paneElementsBroadcaster"/>
        </row>

        <row id="editBMPanel_folderRow"
             align="center"
             collapsed="true">
          <label value="&editBookmarkOverlay.folder.label;"
                 class="editBMPanel_rowLabel"
                 control="editBMPanel_folderMenuList"
                 observes="paneElementsBroadcaster"/>
          <hbox flex="1" align="center">
            <menulist id="editBMPanel_folderMenuList"
                      class="folder-icon"
                      flex="1"
                      oncommand="gEditItemOverlay.onFolderMenuListCommand(event);"
                      observes="paneElementsBroadcaster">
              <menupopup>
                <!-- Static item for special folders -->
                <menuitem id="editBMPanel_toolbarFolderItem"
                          class="menuitem-iconic folder-icon"/>
                <menuitem id="editBMPanel_bmRootItem"
                          class="menuitem-iconic folder-icon"/>
                <menuitem id="editBMPanel_unfiledRootItem"
                          class="menuitem-iconic folder-icon"/>
                <menuseparator id="editBMPanel_chooseFolderSeparator"/>
                <menuitem id="editBMPanel_chooseFolderMenuItem"
                          label="&editBookmarkOverlay.choose.label;"
                          class="menuitem-iconic folder-icon"/>
                <menuseparator id="editBMPanel_foldersSeparator" hidden="true"/>
              </menupopup>
            </menulist>
            <button id="editBMPanel_foldersExpander"
                    class="expander-down"
                    tooltiptext="&editBookmarkOverlay.foldersExpanderDown.tooltip;"
                    tooltiptextdown="&editBookmarkOverlay.foldersExpanderDown.tooltip;"
                    tooltiptextup="&editBookmarkOverlay.expanderUp.tooltip;"
                    oncommand="gEditItemOverlay.toggleFolderTreeVisibility();"
                    observes="paneElementsBroadcaster"/>
          </hbox>
        </row>

        <row id="editBMPanel_folderTreeRow"
             collapsed="true"
             flex="1">
          <spacer/>
          <vbox flex="1">
            <tree id="editBMPanel_folderTree"
                  flex="1"
                  class="placesTree"
                  type="places"
                  height="150"
                  minheight="150"
                  editable="true"
                  onselect="gEditItemOverlay.onFolderTreeSelect();"
                  hidecolumnpicker="true"
                  observes="paneElementsBroadcaster">
              <treecols>
                <treecol anonid="title" flex="1" primary="true" hideheader="true"/>
              </treecols>
              <treechildren flex="1"/>
            </tree>

            <hbox id="editBMPanel_newFolderBox">
              <button label="&editBookmarkOverlay.newFolderButton.label;"
                      id="editBMPanel_newFolderButton"
                      accesskey="&editBookmarkOverlay.newFolderButton.accesskey;"
                      oncommand="gEditItemOverlay.newFolder();"/>
            </hbox>
          </vbox>
        </row>

        <row id="editBMPanel_tagsRow"
             align="center"
             collapsed="true">
          <label value="&editBookmarkOverlay.tags.label;"
                 class="editBMPanel_rowLabel"
                 accesskey="&editBookmarkOverlay.tags.accesskey;"
                 control="editBMPanel_tagsField"
                 observes="paneElementsBroadcaster"/>
          <hbox flex="1" align="center">
            <textbox id="editBMPanel_tagsField"
                     type="autocomplete"
                     class="padded"
                     flex="1"
                     autocompletesearch="places-tag-autocomplete" 
                     completedefaultindex="true"
                     tabscrolling="true"
                     showcommentcolumn="true"
                     observes="paneElementsBroadcaster"
                     placeholder="&editBookmarkOverlay.tagsEmptyDesc.label;"/>
            <button id="editBMPanel_tagsSelectorExpander"
                    class="expander-down"
                    tooltiptext="&editBookmarkOverlay.tagsExpanderDown.tooltip;"
                    tooltiptextdown="&editBookmarkOverlay.tagsExpanderDown.tooltip;"
                    tooltiptextup="&editBookmarkOverlay.expanderUp.tooltip;"
                    oncommand="gEditItemOverlay.toggleTagsSelector();"
                    observes="paneElementsBroadcaster"/>
          </hbox>
        </row>

        <row id="editBMPanel_tagsSelectorRow"
             align="center"
             collapsed="true">
          <spacer/>
          <listbox id="editBMPanel_tagsSelector"
                   height="150"
                   observes="paneElementsBroadcaster"/>
        </row>

        <row id="editBMPanel_keywordRow"
             align="center"
             collapsed="true">
          <observes element="additionalInfoBroadcaster" attribute="hidden"/>
          <label value="&editBookmarkOverlay.keyword.label;"
                 class="editBMPanel_rowLabel"
                 accesskey="&editBookmarkOverlay.keyword.accesskey;"
                 control="editBMPanel_keywordField"
                 observes="paneElementsBroadcaster"/>
          <textbox id="editBMPanel_keywordField"
                   observes="paneElementsBroadcaster"/>
        </row>

        <row id="editBMPanel_descriptionRow"
             collapsed="true">
          <observes element="additionalInfoBroadcaster" attribute="hidden"/>
          <label value="&editBookmarkOverlay.description.label;"
                 class="editBMPanel_rowLabel"
                 accesskey="&editBookmarkOverlay.description.accesskey;"
                 control="editBMPanel_descriptionField"
                 observes="paneElementsBroadcaster"/>
          <textbox id="editBMPanel_descriptionField"
                   multiline="true"
                   observes="paneElementsBroadcaster"/>
        </row>
      </rows>
    </grid>

    <checkbox id="editBMPanel_loadInSidebarCheckbox"
              collapsed="true"
              label="&editBookmarkOverlay.loadInSidebar.label;"
              accesskey="&editBookmarkOverlay.loadInSidebar.accesskey;"
              oncommand="gEditItemOverlay.onLoadInSidebarCheckboxCommand();"
              observes="paneElementsBroadcaster">
      <observes element="additionalInfoBroadcaster" attribute="hidden"/>
    </checkbox>

    <!-- If the ids are changing or additional fields are being added, be sure
         to sync the values in places.js -->
    <broadcaster id="additionalInfoBroadcaster"/>

  </vbox>
</overlay>