Mercurial > hg > digilib
annotate xul/content/annota.xul @ 209:28e861dc3467
Enhanced the robustness of the annotation tab.
author | slarti |
---|---|
date | Thu, 25 Mar 2004 17:45:31 +0100 |
parents | 49cb8a445126 |
children | e1c302129599 |
rev | line source |
---|---|
199
49cb8a445126
restarting with version control of xul sidebar/toolbar
luginbue
parents:
diff
changeset
|
1 <?xml version="1.0" ?> |
49cb8a445126
restarting with version control of xul sidebar/toolbar
luginbue
parents:
diff
changeset
|
2 <?xml-stylesheet href="chrome://alcatraz/skin/" type="text/css" ?> |
49cb8a445126
restarting with version control of xul sidebar/toolbar
luginbue
parents:
diff
changeset
|
3 <?xml-stylesheet href="chrome://global/skin/" type="text/css" ?> |
49cb8a445126
restarting with version control of xul sidebar/toolbar
luginbue
parents:
diff
changeset
|
4 |
209 | 5 <window xmlns:html="http://www.w3.org/1999/xhtml" |
6 xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" | |
7 onload="setTreeDirectory()"> | |
199
49cb8a445126
restarting with version control of xul sidebar/toolbar
luginbue
parents:
diff
changeset
|
8 |
49cb8a445126
restarting with version control of xul sidebar/toolbar
luginbue
parents:
diff
changeset
|
9 <script type="application/x-javascript" src="chrome://jslib/content/jslib.js" /> |
49cb8a445126
restarting with version control of xul sidebar/toolbar
luginbue
parents:
diff
changeset
|
10 <script type="application/x-javascript" src="chrome://alcatraz/content/alcatraz.js" /> |
49cb8a445126
restarting with version control of xul sidebar/toolbar
luginbue
parents:
diff
changeset
|
11 <script type="application/x-javascript" src="chrome://alcatraz/content/annota.js" /> |
49cb8a445126
restarting with version control of xul sidebar/toolbar
luginbue
parents:
diff
changeset
|
12 <script type="application/x-javascript" src="chrome://alcatraz/content/rdfds.js" /> |
209 | 13 <script type="application/x-javascript" src="chrome://alcatraz/content/RDFTree.js" /> |
14 | |
199
49cb8a445126
restarting with version control of xul sidebar/toolbar
luginbue
parents:
diff
changeset
|
15 |
49cb8a445126
restarting with version control of xul sidebar/toolbar
luginbue
parents:
diff
changeset
|
16 <!-- ANNOTA --> |
49cb8a445126
restarting with version control of xul sidebar/toolbar
luginbue
parents:
diff
changeset
|
17 <tabpanel id="annota_tab" orient="vertical"> |
49cb8a445126
restarting with version control of xul sidebar/toolbar
luginbue
parents:
diff
changeset
|
18 <vbox flex="1"> |
209 | 19 <hbox flex="1"> |
199
49cb8a445126
restarting with version control of xul sidebar/toolbar
luginbue
parents:
diff
changeset
|
20 <toolbarbutton id="annota_file" type="menu" label="File"> |
49cb8a445126
restarting with version control of xul sidebar/toolbar
luginbue
parents:
diff
changeset
|
21 <menupopup id="file_popup"> |
209 | 22 <menuitem label="Save" onclick="quickSave()"/> |
23 <menuitem label="Delete" oncommand="deleteAnnotation()"/> | |
24 <!-- <menuitem label="Save as..." onclick="saveAs()" /> --> | |
199
49cb8a445126
restarting with version control of xul sidebar/toolbar
luginbue
parents:
diff
changeset
|
25 </menupopup> |
49cb8a445126
restarting with version control of xul sidebar/toolbar
luginbue
parents:
diff
changeset
|
26 </toolbarbutton> |
49cb8a445126
restarting with version control of xul sidebar/toolbar
luginbue
parents:
diff
changeset
|
27 <toolbarbutton id="annota_options" type="menu" label="Options"> |
49cb8a445126
restarting with version control of xul sidebar/toolbar
luginbue
parents:
diff
changeset
|
28 <menupopup id="options_popup"> |
49cb8a445126
restarting with version control of xul sidebar/toolbar
luginbue
parents:
diff
changeset
|
29 <menuitem id="local" label="Local" type="radio" name="location" checked="true" onclick="file_local()" /> |
49cb8a445126
restarting with version control of xul sidebar/toolbar
luginbue
parents:
diff
changeset
|
30 <menuitem id="annotaDB" label="Annota DB" type="radio" name="location" onclick="file_annotaDB()" /> |
49cb8a445126
restarting with version control of xul sidebar/toolbar
luginbue
parents:
diff
changeset
|
31 <menuseparator/> |
49cb8a445126
restarting with version control of xul sidebar/toolbar
luginbue
parents:
diff
changeset
|
32 <menuitem id="tool_path" label="Tool URL" onclick="show_dialog('tool path')" /> |
49cb8a445126
restarting with version control of xul sidebar/toolbar
luginbue
parents:
diff
changeset
|
33 <menuitem id="annotations_path" label="Path to annotations" onclick="file_open()" /> |
209 | 34 <menuitem id="creator_name" label="Name of creator" onclick="show_dialog('creator')" /> |
199
49cb8a445126
restarting with version control of xul sidebar/toolbar
luginbue
parents:
diff
changeset
|
35 <menuseparator/> |
49cb8a445126
restarting with version control of xul sidebar/toolbar
luginbue
parents:
diff
changeset
|
36 <menuitem id="save_options" label="Save Options" onclick="setProfile()" /> |
49cb8a445126
restarting with version control of xul sidebar/toolbar
luginbue
parents:
diff
changeset
|
37 </menupopup> |
49cb8a445126
restarting with version control of xul sidebar/toolbar
luginbue
parents:
diff
changeset
|
38 </toolbarbutton> |
49cb8a445126
restarting with version control of xul sidebar/toolbar
luginbue
parents:
diff
changeset
|
39 <toolbarbutton id="annota_annotation" type="menu" label="Annotation"> |
49cb8a445126
restarting with version control of xul sidebar/toolbar
luginbue
parents:
diff
changeset
|
40 <menupopup id="text_popup"> |
49cb8a445126
restarting with version control of xul sidebar/toolbar
luginbue
parents:
diff
changeset
|
41 <menuitem label="Text Annotation" onclick="dialog_annotate();" /> |
49cb8a445126
restarting with version control of xul sidebar/toolbar
luginbue
parents:
diff
changeset
|
42 </menupopup> |
49cb8a445126
restarting with version control of xul sidebar/toolbar
luginbue
parents:
diff
changeset
|
43 </toolbarbutton> |
49cb8a445126
restarting with version control of xul sidebar/toolbar
luginbue
parents:
diff
changeset
|
44 </hbox> |
49cb8a445126
restarting with version control of xul sidebar/toolbar
luginbue
parents:
diff
changeset
|
45 |
209 | 46 <tree id="annotation_tree" flex="100" datasources="rdf:null" ref="urn:echo" ondblclick="tree_click()" |
47 height="100%"> | |
199
49cb8a445126
restarting with version control of xul sidebar/toolbar
luginbue
parents:
diff
changeset
|
48 |
209 | 49 <treecols id="cols"> |
50 <treecol id="name" label="Name" primary="true" flex="10"/> | |
51 <treecol id="pagenumber" label="Page" flex="1"/> | |
52 <treecol id="url" label="URL" hidden="true" flex="5"/> | |
53 <treecol id="created" label="Created" hidden="true" flex="5"/> | |
54 </treecols> | |
199
49cb8a445126
restarting with version control of xul sidebar/toolbar
luginbue
parents:
diff
changeset
|
55 |
209 | 56 <template> |
57 <rule> | |
58 <treechildren flex="1" > | |
59 <treeitem uri="rdf:*" persist="open"> | |
60 <treerow> | |
61 <treecell id="nameHeader" label="rdf:http://purl.org/dc/elements/1.0/title"/> | |
62 <treecell id="pagenumberHeader" label="rdf:http://echo.unibe.ch/digilib/rdf#pn"/> | |
63 <treecell id="urlHeader" label="rdf:http://echo.unibe.ch/digilib/rdf#fn"/> | |
64 <treecell id="createdHeader" label="rdf:http://www.w3.org/2000/10/annotation-ns#created"/> | |
65 </treerow> | |
66 </treeitem> | |
67 </treechildren> | |
68 </rule> | |
69 </template> | |
199
49cb8a445126
restarting with version control of xul sidebar/toolbar
luginbue
parents:
diff
changeset
|
70 </tree> |
49cb8a445126
restarting with version control of xul sidebar/toolbar
luginbue
parents:
diff
changeset
|
71 |
49cb8a445126
restarting with version control of xul sidebar/toolbar
luginbue
parents:
diff
changeset
|
72 </vbox> |
49cb8a445126
restarting with version control of xul sidebar/toolbar
luginbue
parents:
diff
changeset
|
73 </tabpanel> |
209 | 74 </window> |