Mercurial > snowl
annotate content/collections.xul @ 317:27a89f014e81
rename SourcesView to CollectionsView
author | Myk Melez <myk@mozilla.org> |
---|---|
date | Thu, 09 Oct 2008 15:42:00 -0700 |
parents | 142c648208cc |
children | e9d7087abad1 |
rev | line source |
---|---|
228
65fe625e2194
add license headers to all XUL files
Myk Melez <myk@mozilla.org>
parents:
226
diff
changeset
|
1 <?xml version="1.0" encoding="UTF-8"?> |
186
b6726c6c287b
move the collections view into an overlay to facilitate its reuse inside the river view
Myk Melez <myk@mozilla.org>
parents:
diff
changeset
|
2 |
b6726c6c287b
move the collections view into an overlay to facilitate its reuse inside the river view
Myk Melez <myk@mozilla.org>
parents:
diff
changeset
|
3 <!-- ***** BEGIN LICENSE BLOCK ***** |
b6726c6c287b
move the collections view into an overlay to facilitate its reuse inside the river view
Myk Melez <myk@mozilla.org>
parents:
diff
changeset
|
4 - Version: MPL 1.1/GPL 2.0/LGPL 2.1 |
b6726c6c287b
move the collections view into an overlay to facilitate its reuse inside the river view
Myk Melez <myk@mozilla.org>
parents:
diff
changeset
|
5 - |
b6726c6c287b
move the collections view into an overlay to facilitate its reuse inside the river view
Myk Melez <myk@mozilla.org>
parents:
diff
changeset
|
6 - The contents of this file are subject to the Mozilla Public License Version |
b6726c6c287b
move the collections view into an overlay to facilitate its reuse inside the river view
Myk Melez <myk@mozilla.org>
parents:
diff
changeset
|
7 - 1.1 (the "License"); you may not use this file except in compliance with |
b6726c6c287b
move the collections view into an overlay to facilitate its reuse inside the river view
Myk Melez <myk@mozilla.org>
parents:
diff
changeset
|
8 - the License. You may obtain a copy of the License at |
b6726c6c287b
move the collections view into an overlay to facilitate its reuse inside the river view
Myk Melez <myk@mozilla.org>
parents:
diff
changeset
|
9 - http://www.mozilla.org/MPL/ |
b6726c6c287b
move the collections view into an overlay to facilitate its reuse inside the river view
Myk Melez <myk@mozilla.org>
parents:
diff
changeset
|
10 - |
b6726c6c287b
move the collections view into an overlay to facilitate its reuse inside the river view
Myk Melez <myk@mozilla.org>
parents:
diff
changeset
|
11 - Software distributed under the License is distributed on an "AS IS" basis, |
b6726c6c287b
move the collections view into an overlay to facilitate its reuse inside the river view
Myk Melez <myk@mozilla.org>
parents:
diff
changeset
|
12 - WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License |
b6726c6c287b
move the collections view into an overlay to facilitate its reuse inside the river view
Myk Melez <myk@mozilla.org>
parents:
diff
changeset
|
13 - for the specific language governing rights and limitations under the |
b6726c6c287b
move the collections view into an overlay to facilitate its reuse inside the river view
Myk Melez <myk@mozilla.org>
parents:
diff
changeset
|
14 - License. |
b6726c6c287b
move the collections view into an overlay to facilitate its reuse inside the river view
Myk Melez <myk@mozilla.org>
parents:
diff
changeset
|
15 - |
228
65fe625e2194
add license headers to all XUL files
Myk Melez <myk@mozilla.org>
parents:
226
diff
changeset
|
16 - The Original Code is Snowl. |
186
b6726c6c287b
move the collections view into an overlay to facilitate its reuse inside the river view
Myk Melez <myk@mozilla.org>
parents:
diff
changeset
|
17 - |
b6726c6c287b
move the collections view into an overlay to facilitate its reuse inside the river view
Myk Melez <myk@mozilla.org>
parents:
diff
changeset
|
18 - The Initial Developer of the Original Code is Mozilla. |
b6726c6c287b
move the collections view into an overlay to facilitate its reuse inside the river view
Myk Melez <myk@mozilla.org>
parents:
diff
changeset
|
19 - Portions created by the Initial Developer are Copyright (C) 2008 |
b6726c6c287b
move the collections view into an overlay to facilitate its reuse inside the river view
Myk Melez <myk@mozilla.org>
parents:
diff
changeset
|
20 - the Initial Developer. All Rights Reserved. |
b6726c6c287b
move the collections view into an overlay to facilitate its reuse inside the river view
Myk Melez <myk@mozilla.org>
parents:
diff
changeset
|
21 - |
b6726c6c287b
move the collections view into an overlay to facilitate its reuse inside the river view
Myk Melez <myk@mozilla.org>
parents:
diff
changeset
|
22 - Contributor(s): |
228
65fe625e2194
add license headers to all XUL files
Myk Melez <myk@mozilla.org>
parents:
226
diff
changeset
|
23 - Myk Melez <myk@mozilla.org> |
186
b6726c6c287b
move the collections view into an overlay to facilitate its reuse inside the river view
Myk Melez <myk@mozilla.org>
parents:
diff
changeset
|
24 - |
b6726c6c287b
move the collections view into an overlay to facilitate its reuse inside the river view
Myk Melez <myk@mozilla.org>
parents:
diff
changeset
|
25 - Alternatively, the contents of this file may be used under the terms of |
b6726c6c287b
move the collections view into an overlay to facilitate its reuse inside the river view
Myk Melez <myk@mozilla.org>
parents:
diff
changeset
|
26 - either the GNU General Public License Version 2 or later (the "GPL"), or |
b6726c6c287b
move the collections view into an overlay to facilitate its reuse inside the river view
Myk Melez <myk@mozilla.org>
parents:
diff
changeset
|
27 - the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), |
b6726c6c287b
move the collections view into an overlay to facilitate its reuse inside the river view
Myk Melez <myk@mozilla.org>
parents:
diff
changeset
|
28 - in which case the provisions of the GPL or the LGPL are applicable instead |
b6726c6c287b
move the collections view into an overlay to facilitate its reuse inside the river view
Myk Melez <myk@mozilla.org>
parents:
diff
changeset
|
29 - of those above. If you wish to allow use of your version of this file only |
b6726c6c287b
move the collections view into an overlay to facilitate its reuse inside the river view
Myk Melez <myk@mozilla.org>
parents:
diff
changeset
|
30 - under the terms of either the GPL or the LGPL, and not to allow others to |
b6726c6c287b
move the collections view into an overlay to facilitate its reuse inside the river view
Myk Melez <myk@mozilla.org>
parents:
diff
changeset
|
31 - use your version of this file under the terms of the MPL, indicate your |
b6726c6c287b
move the collections view into an overlay to facilitate its reuse inside the river view
Myk Melez <myk@mozilla.org>
parents:
diff
changeset
|
32 - decision by deleting the provisions above and replace them with the notice |
228
65fe625e2194
add license headers to all XUL files
Myk Melez <myk@mozilla.org>
parents:
226
diff
changeset
|
33 - and other provisions required by the GPL or the LGPL. If you do not delete |
186
b6726c6c287b
move the collections view into an overlay to facilitate its reuse inside the river view
Myk Melez <myk@mozilla.org>
parents:
diff
changeset
|
34 - the provisions above, a recipient may use your version of this file under |
b6726c6c287b
move the collections view into an overlay to facilitate its reuse inside the river view
Myk Melez <myk@mozilla.org>
parents:
diff
changeset
|
35 - the terms of any one of the MPL, the GPL or the LGPL. |
b6726c6c287b
move the collections view into an overlay to facilitate its reuse inside the river view
Myk Melez <myk@mozilla.org>
parents:
diff
changeset
|
36 - |
b6726c6c287b
move the collections view into an overlay to facilitate its reuse inside the river view
Myk Melez <myk@mozilla.org>
parents:
diff
changeset
|
37 - ***** END LICENSE BLOCK ***** --> |
b6726c6c287b
move the collections view into an overlay to facilitate its reuse inside the river view
Myk Melez <myk@mozilla.org>
parents:
diff
changeset
|
38 |
b6726c6c287b
move the collections view into an overlay to facilitate its reuse inside the river view
Myk Melez <myk@mozilla.org>
parents:
diff
changeset
|
39 <?xml-stylesheet href="chrome://snowl/content/collections.css" type"text/css"?> |
b6726c6c287b
move the collections view into an overlay to facilitate its reuse inside the river view
Myk Melez <myk@mozilla.org>
parents:
diff
changeset
|
40 |
234
2b79c0d8a019
split snowl.xul up into a file for the list view and a file for the browser integration points, and localize both of them; also, localize collections
Myk Melez <myk@mozilla.org>
parents:
228
diff
changeset
|
41 <!DOCTYPE overlay SYSTEM "chrome://snowl/locale/collections.dtd"> |
2b79c0d8a019
split snowl.xul up into a file for the list view and a file for the browser integration points, and localize both of them; also, localize collections
Myk Melez <myk@mozilla.org>
parents:
228
diff
changeset
|
42 |
186
b6726c6c287b
move the collections view into an overlay to facilitate its reuse inside the river view
Myk Melez <myk@mozilla.org>
parents:
diff
changeset
|
43 <overlay xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> |
b6726c6c287b
move the collections view into an overlay to facilitate its reuse inside the river view
Myk Melez <myk@mozilla.org>
parents:
diff
changeset
|
44 |
316
142c648208cc
lay the collections overlay over the river view via a XUL processing instruction rather than the document.loadOverlay function to make sure the overlay is loaded before the window load event fires, which simplifies and robustifies our collections and river view initialization functions
Myk Melez <myk@mozilla.org>
parents:
311
diff
changeset
|
45 <script type="application/x-javascript" src="chrome://snowl/content/collections.js"/> |
142c648208cc
lay the collections overlay over the river view via a XUL processing instruction rather than the document.loadOverlay function to make sure the overlay is loaded before the window load event fires, which simplifies and robustifies our collections and river view initialization functions
Myk Melez <myk@mozilla.org>
parents:
311
diff
changeset
|
46 |
186
b6726c6c287b
move the collections view into an overlay to facilitate its reuse inside the river view
Myk Melez <myk@mozilla.org>
parents:
diff
changeset
|
47 <vbox id="collectionsViewBox"> |
203
480c87bba612
move the collections toolbar underneath the tree
Myk Melez <myk@mozilla.org>
parents:
187
diff
changeset
|
48 <tree id="sourcesView" flex="1" context="sourcesContextMenu" editable="true" |
317
27a89f014e81
rename SourcesView to CollectionsView
Myk Melez <myk@mozilla.org>
parents:
316
diff
changeset
|
49 onselect="CollectionsView.onSelect(event)"> |
203
480c87bba612
move the collections toolbar underneath the tree
Myk Melez <myk@mozilla.org>
parents:
187
diff
changeset
|
50 <treecols> |
234
2b79c0d8a019
split snowl.xul up into a file for the list view and a file for the browser integration points, and localize both of them; also, localize collections
Myk Melez <myk@mozilla.org>
parents:
228
diff
changeset
|
51 <treecol id="nameCol" label="&nameCol.label;" primary="true" flex="1"/> |
203
480c87bba612
move the collections toolbar underneath the tree
Myk Melez <myk@mozilla.org>
parents:
187
diff
changeset
|
52 </treecols> |
480c87bba612
move the collections toolbar underneath the tree
Myk Melez <myk@mozilla.org>
parents:
187
diff
changeset
|
53 |
480c87bba612
move the collections toolbar underneath the tree
Myk Melez <myk@mozilla.org>
parents:
187
diff
changeset
|
54 <treechildren flex="1"/> |
480c87bba612
move the collections toolbar underneath the tree
Myk Melez <myk@mozilla.org>
parents:
187
diff
changeset
|
55 </tree> |
480c87bba612
move the collections toolbar underneath the tree
Myk Melez <myk@mozilla.org>
parents:
187
diff
changeset
|
56 |
294
26320193da70
move the general toolbar to a separate overlay so we can include it in the stream view in addition to the list view
Myk Melez <myk@mozilla.org>
parents:
275
diff
changeset
|
57 <toolbar id="snowlToolbar"/> |
186
b6726c6c287b
move the collections view into an overlay to facilitate its reuse inside the river view
Myk Melez <myk@mozilla.org>
parents:
diff
changeset
|
58 </vbox> |
b6726c6c287b
move the collections view into an overlay to facilitate its reuse inside the river view
Myk Melez <myk@mozilla.org>
parents:
diff
changeset
|
59 |
b6726c6c287b
move the collections view into an overlay to facilitate its reuse inside the river view
Myk Melez <myk@mozilla.org>
parents:
diff
changeset
|
60 </overlay> |