source: DASISH/t5.6/client/branches/webannotator-basic/chrome/markingcollection/content/markingcollection/autocacheSidebarOverlay.xul @ 5428

Last change on this file since 5428 was 5428, checked in by stephanie.roth@snd.gu.se, 10 years ago

Added new branch for work on schema change related client fixes.

File size: 10.4 KB
Line 
1<?xml version="1.0" encoding="UTF-8" ?>
2<?xml-stylesheet href="chrome://markingcollection/skin/autocache.css" type="text/css"?>
3<!DOCTYPE overlay SYSTEM "chrome://markingcollection/locale/markingcollection.dtd">
4<overlay
5    id="autocacheSidebarOverlay"
6    xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
7    xmlns:html="http://www.w3.org/1999/xhtml">
8    <script type="application/x-javascript">
9        <![CDATA[
10                function _autocacheMainInit(aEvent){
11                        window.top.bitsAutocacheService.load(aEvent);
12                }
13                function _autocacheMainDone(aEvent){
14                        window.top.bitsAutocacheService.unload(aEvent);
15                }
16                window.addEventListener("load", _autocacheMainInit, false);
17                window.addEventListener("unload", _autocacheMainDone, false);
18        ]]>
19    </script>
20    <box id="bitsSidebarBox">
21        <vbox id="bitsSidebarVBox">
22            <toolbox id="mcToolbox">
23                <toolbar id="mcToolbar">
24                    <hbox id="mcToolbarAddonHBox">
25                        <toolbarbutton
26                            id="mcToolbarAutocacheButton"
27                            tooltiptext="&markingcollection.autocache.tooltiptext;"
28                            oncommand="window.top.bitsAutocacheService.manuallyCache(event);"
29                            hidden="true"/>
30                        <toolbarbutton
31                            id="mcToolbarAutocacheView"
32                            tooltiptext="&markingcollection.autocache.view.tooltiptext;"
33                            image="chrome://markingcollection/skin/autocache_list.png"
34                            type="checkbox"
35                            autoCheck="true"
36                            oncommand="window.top.bitsAutocacheService.toggleCacheView(event);"
37                            hidden="true"/>
38                    </hbox>
39                </toolbar>
40            </toolbox>
41        </vbox>
42    </box>
43    <splitter id="bitsBrowserAutocacheSplitter" class="chromeclass-extrachrome" hidden="true"/>
44    <vbox id="bitsBrowserAutocacheVBox" flex="1" hidden="true" persist="height" style="height:300px;">
45        <toolbox id="bitsAutocacheToolbox" class="plain" style="overflow:hidden;min-width:10em;width:18em;">
46            <toolbar id="bitsAutocacheToolbar" class="plain">
47                <toolbarbutton
48                    id="bitsAutocacheSearchButton"
49                    class="search-go-button"
50                    tooltiptext="&markingcollection.autocache.view;"
51                    type="checkbox"
52                    autoCheck="true"
53                    oncommand="window.top.bitsAutocacheService.onSearchButtonCommand(event)"/>
54                <textbox
55                    id="bitsAutocacheSearchTextbox"
56                    editable="true"
57                    flex="1"
58                    disabled="true"
59                    style="font-size:0.9em;-moz-appearance: none !important;border: none;"
60                    onkeypress="window.top.bitsAutocacheService.onSearchKeyPress(event)"/>
61                <spacer flex="1" />
62                <toolbarbutton class="tabs-closebutton" oncommand="{var elem = document.getElementById('mcToolbarAutocacheView');if(elem){ elem.checked = false;window.top.bitsAutocacheService.toggleCacheView(event);}}" />
63            </toolbar>
64        </toolbox>
65        <tree
66            id="bitsAutocacheTree"
67            contextmenu="bitsAutocacheTreeContextmenu"
68            tooltip="mcPopupTooltip"
69            onclick="window.top.bitsAutocacheService.onClick(event);"
70            ondblclick="window.top.bitsAutocacheService.onDblClick(event);"
71            onkeypress="window.top.bitsAutocacheService.onKeyPress(event);"
72            onkeydown="window.top.bitsAutocacheService.onKeyDown(event);"
73            seltype="multiple"
74            class="plain"
75            flex="1">
76            <treecols>
77                <treecol id="bitsAutocacheIFavicon"   label="Favicon" crop="none" flex="1" class="treecol-image" src="chrome://markingcollection/skin/defaultFavicon.png" persist="hidden,width" style="min-width:19px;"/>
78                <splitter class="tree-splitter"/>
79                <treecol id="bitsAutocacheIUrl"       label="URL" crop="none" flex="30" hidden="true" persist="hidden,width"/>
80                <splitter class="tree-splitter"/>
81                <treecol id="bitsAutocacheITitle"     label="Title" crop="none" flex="30" persist="hidden,width"/>
82                <splitter class="tree-splitter"/>
83                <treecol id="bitsAutocacheIDate"      label="Date" flex="10" persist="hidden,width"/>
84                <splitter class="tree-splitter"/>
85                <treecol id="bitsAutocacheICache"     label="#Cache" flex="1" class="treecol-image" src="chrome://markingcollection/skin/autocache.png" persist="hidden,width"/>
86                <splitter class="tree-splitter"/>
87                <treecol id="bitsAutocacheIMarker"    label="#Marker" flex="1" class="treecol-image" src="chrome://markingcollection/skin/icon_16.png" persist="hidden,width"/>
88                <splitter class="tree-splitter"/>
89                <treecol id="bitsAutocacheICacheSize" label="#CacheSize" flex="7" class="treecol-image" src="chrome://markingcollection/skin/autocache_save.png" persist="hidden,width"/>
90            </treecols>
91            <treechildren/>
92        </tree>
93    </vbox>
94    <popupset id="mcPopupSet">
95        <menupopup id="mcPopup">
96            <menu id="mcPopupCache" class="menu-iconic" label="&markingcollection.autocache.cache;" image="chrome://markingcollection/skin/autocache.png" insertafter="mcPopupOpenNewTab" hidden="true">
97                <menupopup>
98                    <menuitem
99                        id="mcPopupCacheOpen"
100                        label="&markingcollection.autocache.open;"
101                        observes="mcPopupOpenSeparator"
102                        oncommand="window.top.bitsAutocacheService.openCache(event);"/>
103                    <menuitem
104                        id="mcPopupCacheOpenNewtab"
105                        label="&markingcollection.autocache.open.newtab;"
106                        observes="mcPopupOpenSeparator"
107                        oncommand="window.top.bitsAutocacheService.openCache(event,true);"/>
108                    <menuseparator observes="mcPopupCachePast"/>
109                    <menuitem
110                        id="mcPopupCachePast"
111                        label="&markingcollection.autocache.past;..."
112                        oncommand="window.top.bitsAutocacheService.pastCache(event);" hidden="true"/>
113                </menupopup>
114            </menu>
115            <menuseparator observes="mcPopupCache" insertafter="mcPopupOpenNewTab"/>
116        </menupopup>
117        <menupopup id="bitsItemTreePopup">
118            <menuseparator id="bitsItemTreePopupCacheMenuseparator" observes="bitsItemTreePopupCache" insertafter="bitsItemTreePopupOpenMenuseparator"/>
119            <menu id="bitsItemTreePopupCache" class="menu-iconic" label="&markingcollection.autocache.cache;" image="chrome://markingcollection/skin/autocache.png" insertafter="bitsItemTreePopupOpenMenuseparator" hidden="true">
120                <menupopup>
121                    <menuitem
122                        id="bitsItemTreePopupCacheOpenRemote"
123                        label="&markingcollection.autocache.open.remote;"
124                        oncommand="window.top.annotationProxy.openRemoteCache(event, false);"/>
125                    <menuitem
126                        id="bitsItemTreePopupCacheOpenRemoteNewTab"
127                        label="&markingcollection.autocache.open.remotenewtab;"
128                        oncommand="window.top.annotationProxy.openRemoteCache(event, true);"/>
129                    <menuitem
130                        id="bitsItemTreePopupCacheOpen"
131                        label="&markingcollection.autocache.open;"
132                        oncommand="window.top.bitsAutocacheService.openCache(event);"/>
133                    <menuitem
134                        id="bitsItemTreePopupCacheOpenNewtab"
135                        label="&markingcollection.autocache.open.newtab;"
136                        oncommand="window.top.bitsAutocacheService.openCache(event,true);"/>
137                    <menuseparator observes="bitsItemTreePopupCachePast"/>
138                    <menuitem
139                        id="bitsItemTreePopupCachePast"
140                        label="&markingcollection.autocache.past;..."
141                        oncommand="window.top.bitsAutocacheService.pastCache(event);" hidden="true"/>
142                </menupopup>
143            </menu>
144        </menupopup>
145       
146        <menupopup
147            id="bitsAutocacheTreeContextmenu"
148            onpopupshowing="window.top.bitsAutocacheService.popupshowingTreeContextmenu(event);"
149            onpopuphiding="window.top.bitsAutocacheService.popuphidingTreeContextmenu(event);">
150            <menuitem
151                id="bitsAutocacheTreeContextmenuCacheOpenAll"
152                label="&markingcollection.autocache.open.all;"
153                oncommand="window.top.bitsAutocacheService.openCacheAll(event);"/>
154            <menuseparator observes="bitsAutocacheTreeContextmenuCacheOpenAll"/>
155            <menuitem
156                id="bitsAutocacheTreeContextmenuCacheRemoveAll"
157                label="&markingcollection.autocache.remove.all;"
158                class="menuitem-iconic"
159                image="chrome://markingcollection/skin/menu_remove.png"
160                oncommand="window.top.bitsAutocacheService.removeCacheAll(event);"/>
161            <menuseparator observes="bitsAutocacheTreeContextmenuCacheOpenAll"/>
162        </menupopup>
163        <menupopup
164            id="bitsAutocacheTreeItemContextmenu"
165            onpopupshowing="window.top.bitsAutocacheService.popupshowingTreeContextmenu(event);"
166            onpopuphiding="window.top.bitsAutocacheService.popuphidingTreeContextmenu(event);">
167            <menuitem
168                id="bitsAutocacheTreeContextmenuOpen"
169                label="&markingcollection.autocache.open;"
170                oncommand="window.top.bitsAutocacheService.openCache(event);"/>
171            <menuitem
172                id="bitsAutocacheTreeContextmenuNewtab"
173                label="&markingcollection.autocache.open.newtab;"
174                oncommand="window.top.bitsAutocacheService.openCache(event,true);"/>
175            <menuseparator/>
176            <menuitem
177                id="bitsAutocacheTreeContextmenuRemove"
178                label="&markingcollection.autocache.remove;"
179                class="menuitem-iconic"
180                image="chrome://markingcollection/skin/menu_remove.png"
181                oncommand="window.top.bitsAutocacheService.removeCache(event);"/>
182        </menupopup>
183    </popupset>
184</overlay>
Note: See TracBrowser for help on using the repository browser.