Changeset 4922 for DASISH


Ignore:
Timestamp:
04/08/14 15:12:06 (10 years ago)
Author:
stephanie.roth@snd.gu.se
Message:

Added new menu items.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • DASISH/t5.6/client/trunk/chrome/markingcollection/content/markingcollection/autocacheSidebarOverlay.xul

    r2711 r4922  
    33<!DOCTYPE overlay SYSTEM "chrome://markingcollection/locale/markingcollection.dtd">
    44<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">
     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">
    99        <![CDATA[
    1010                function _autocacheMainInit(aEvent){
     
    1717                window.addEventListener("unload", _autocacheMainDone, false);
    1818        ]]>
    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="bitsItemTreePopupCacheOpen"
    123                                                 label="&markingcollection.autocache.open;"
    124                                                 oncommand="window.top.bitsAutocacheService.openCache(event);"/>
    125                                         <menuitem
    126                                                 id="bitsItemTreePopupCacheOpenNewtab"
    127                                                 label="&markingcollection.autocache.open.newtab;"
    128                                                 oncommand="window.top.bitsAutocacheService.openCache(event,true);"/>
    129                                         <menuseparator observes="bitsItemTreePopupCachePast"/>
    130                                         <menuitem
    131                                                 id="bitsItemTreePopupCachePast"
    132                                                 label="&markingcollection.autocache.past;..."
    133                                                 oncommand="window.top.bitsAutocacheService.pastCache(event);" hidden="true"/>
    134                                 </menupopup>
    135                         </menu>
    136                 </menupopup>
    137                 <menupopup
    138                         id="bitsAutocacheTreeContextmenu"
    139                         onpopupshowing="window.top.bitsAutocacheService.popupshowingTreeContextmenu(event);"
    140                         onpopuphiding="window.top.bitsAutocacheService.popuphidingTreeContextmenu(event);">
    141                         <menuitem
    142                                 id="bitsAutocacheTreeContextmenuCacheOpenAll"
    143                                 label="&markingcollection.autocache.open.all;"
    144                                 oncommand="window.top.bitsAutocacheService.openCacheAll(event);"/>
    145                         <menuseparator observes="bitsAutocacheTreeContextmenuCacheOpenAll"/>
    146                         <menuitem
    147                                 id="bitsAutocacheTreeContextmenuCacheRemoveAll"
    148                                 label="&markingcollection.autocache.remove.all;"
    149                                 class="menuitem-iconic"
    150                                 image="chrome://markingcollection/skin/menu_remove.png"
    151                                 oncommand="window.top.bitsAutocacheService.removeCacheAll(event);"/>
    152                         <menuseparator observes="bitsAutocacheTreeContextmenuCacheOpenAll"/>
    153                 </menupopup>
    154                 <menupopup
    155                         id="bitsAutocacheTreeItemContextmenu"
    156                         onpopupshowing="window.top.bitsAutocacheService.popupshowingTreeContextmenu(event);"
    157                         onpopuphiding="window.top.bitsAutocacheService.popuphidingTreeContextmenu(event);">
    158                         <menuitem
    159                                 id="bitsAutocacheTreeContextmenuOpen"
    160                                 label="&markingcollection.autocache.open;"
    161                                 oncommand="window.top.bitsAutocacheService.openCache(event);"/>
    162                         <menuitem
    163                                 id="bitsAutocacheTreeContextmenuNewtab"
    164                                 label="&markingcollection.autocache.open.newtab;"
    165                                 oncommand="window.top.bitsAutocacheService.openCache(event,true);"/>
    166                         <menuseparator/>
    167                         <menuitem
    168                                 id="bitsAutocacheTreeContextmenuRemove"
    169                                 label="&markingcollection.autocache.remove;"
    170                                 class="menuitem-iconic"
    171                                 image="chrome://markingcollection/skin/menu_remove.png"
    172                                 oncommand="window.top.bitsAutocacheService.removeCache(event);"/>
    173                 </menupopup>
    174         </popupset>
     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="alert('TODO remote cache')"/>
     125                    <menuitem
     126                        id="bitsItemTreePopupCacheOpenRemoteNewTab"
     127                        label="&markingcollection.autocache.open.remotenewtab;"
     128                        oncommand="alert('TODO remote cache in new tab')"/>
     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        <menulist>
     146            <menupopup>
     147                <menuitem label="Mozilla" value="http://mozilla.org"/>
     148                <menuitem label="Slashdot" value="http://slashdot.org"/>
     149                <menuitem label="Sourceforge" value="http://sf.net"/>
     150                <menuitem label="Freshmeat" value="http://freshmeat.net"/>
     151            </menupopup>
     152        </menulist>
     153        <popupset>
     154            <menupopup id="clipmenu">
     155                <menuitem label="Cut"/>
     156                <menuitem label="Copy"/>
     157                <menuitem label="Paste"/>
     158            </menupopup>
     159        </popupset>
     160        <label value="Right click for popup" context="clipmenu"/>
     161        <menupopup
     162            id="bitsAutocacheTreeContextmenu"
     163            onpopupshowing="window.top.bitsAutocacheService.popupshowingTreeContextmenu(event);"
     164            onpopuphiding="window.top.bitsAutocacheService.popuphidingTreeContextmenu(event);">
     165            <menuitem
     166                id="bitsAutocacheTreeContextmenuCacheOpenAll"
     167                label="&markingcollection.autocache.open.all;"
     168                oncommand="window.top.bitsAutocacheService.openCacheAll(event);"/>
     169            <menuseparator observes="bitsAutocacheTreeContextmenuCacheOpenAll"/>
     170            <menuitem
     171                id="bitsAutocacheTreeContextmenuCacheRemoveAll"
     172                label="&markingcollection.autocache.remove.all;"
     173                class="menuitem-iconic"
     174                image="chrome://markingcollection/skin/menu_remove.png"
     175                oncommand="window.top.bitsAutocacheService.removeCacheAll(event);"/>
     176            <menuseparator observes="bitsAutocacheTreeContextmenuCacheOpenAll"/>
     177        </menupopup>
     178        <menupopup
     179            id="bitsAutocacheTreeItemContextmenu"
     180            onpopupshowing="window.top.bitsAutocacheService.popupshowingTreeContextmenu(event);"
     181            onpopuphiding="window.top.bitsAutocacheService.popuphidingTreeContextmenu(event);">
     182            <menuitem
     183                id="bitsAutocacheTreeContextmenuOpen"
     184                label="&markingcollection.autocache.open;"
     185                oncommand="window.top.bitsAutocacheService.openCache(event);"/>
     186            <menuitem
     187                id="bitsAutocacheTreeContextmenuNewtab"
     188                label="&markingcollection.autocache.open.newtab;"
     189                oncommand="window.top.bitsAutocacheService.openCache(event,true);"/>
     190            <menuseparator/>
     191            <menuitem
     192                id="bitsAutocacheTreeContextmenuRemove"
     193                label="&markingcollection.autocache.remove;"
     194                class="menuitem-iconic"
     195                image="chrome://markingcollection/skin/menu_remove.png"
     196                oncommand="window.top.bitsAutocacheService.removeCache(event);"/>
     197        </menupopup>
     198    </popupset>
    175199</overlay>
Note: See TracChangeset for help on using the changeset viewer.