www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

overlay.xul (3885B)


      1 <?xml version="1.0"?>
      2 <!--
      3     ***** BEGIN LICENSE BLOCK *****
      4     
      5     Copyright © 2009 Center for History and New Media
      6                      George Mason University, Fairfax, Virginia, USA
      7                      http://zotero.org
      8     
      9     This file is part of Zotero.
     10     
     11     Zotero is free software: you can redistribute it and/or modify
     12     it under the terms of the GNU Affero General Public License as published by
     13     the Free Software Foundation, either version 3 of the License, or
     14     (at your option) any later version.
     15     
     16     Zotero is distributed in the hope that it will be useful,
     17     but WITHOUT ANY WARRANTY; without even the implied warranty of
     18     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     19     GNU Affero General Public License for more details.
     20     
     21     You should have received a copy of the GNU Affero General Public License
     22     along with Zotero.  If not, see <http://www.gnu.org/licenses/>.
     23     
     24     ***** END LICENSE BLOCK *****
     25 -->
     26 
     27 
     28 <?xul-overlay href="chrome://zotero/content/zoteroPane.xul"?>
     29 <?xul-overlay href="chrome://zotero/content/itemPane.xul"?>
     30 
     31 <!DOCTYPE overlay [
     32 	<!ENTITY % globalDTD SYSTEM "chrome://global/locale/global.dtd"> %globalDTD;
     33 	<!ENTITY % zoteroDTD SYSTEM "chrome://zotero/locale/zotero.dtd"> %zoteroDTD;
     34 ]>
     35 
     36 <overlay id="zotero"
     37 	xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
     38 	
     39 	<script src="overlay.js"/>
     40 	
     41 	<popup id="contentAreaContextMenu"/>
     42 	
     43 	<toolbar id="zotero-toolbar" nowindowdrag="true"/>
     44 	
     45 	<vbox id="appcontent">
     46 		<!-- onmouseup shouldn't be necessary but seems to help prevent tag selector from sometimes going off the screen -->
     47 		<splitter id="zotero-splitter" resizebefore="closest" resizeafter="closest" hidden="true"
     48 			onmouseup="ZoteroPane.updateTagSelectorSize()"/>
     49 		
     50 		<stack id="zotero-pane-stack" persist="savedHeight" savedHeight="300" hidden="true"/>
     51 		
     52 		<zoteroguidancepanel id="zotero-main-button-guidance" about="toolbarButton" for="zotero-toolbar-main-button"
     53 			position="bottomcenter topleft" delay="2000" foregroundonly="true" noautohide="true"
     54 			hideonpagechange="true" forward="zotero-save-button-guidance"/>
     55 		<zoteroguidancepanel id="zotero-save-button-guidance" about="saveButton" for="zotero-toolbar-save-button"
     56 			position="bottomcenter topleft" x="-8" delay="2000" foregroundonly="true" noautohide="true"
     57 			hideonpagechange="true"/>
     58 		
     59 		<!-- Annotation Toolbar -->
     60 		<toolbar id="zotero-annotate-tb" crop="end" insertbefore="content" hidden="true">
     61 			<toolbarbutton id="zotero-annotate-tb-add" tooltiptext="&zotero.annotate.toolbar.add.label;" oncommand="Zotero_Browser.toggleMode(this.id);"/>
     62 			<toolbarbutton id="zotero-annotate-tb-collapse" tooltiptext="&zotero.annotate.toolbar.collapse.label;" oncommand="Zotero_Browser.toggleCollapsed();"/>
     63 			<toolbarseparator/>
     64 			<toolbarbutton id="zotero-annotate-tb-highlight" tooltiptext="&zotero.annotate.toolbar.highlight.label;" oncommand="Zotero_Browser.toggleMode(this.id);"/>
     65 			<toolbarbutton id="zotero-annotate-tb-unhighlight" tooltiptext="&zotero.annotate.toolbar.unhighlight.label;" oncommand="Zotero_Browser.toggleMode(this.id);"/>
     66 		</toolbar>
     67 	</vbox>
     68 	
     69 	
     70 	<menupopup id="menu_ToolsPopup">
     71 		<menuseparator id="zoteroSeparator" insertbefore="devToolsSeparator"/>
     72 		<menuitem id="tools-zotero" insertbefore="devToolsSeparator"
     73 			oncommand="ZoteroOverlay.toggleDisplay();" label="Zotero"
     74 			key="key_openZotero"/>
     75 	</menupopup>
     76 	
     77 	<keyset id="mainKeyset">
     78 		<!--
     79 			The key can be changed by the pref extensions.zotero.keys.openZotero,
     80 			but if the values are changed here, the pref won't override them.
     81 		-->
     82 		<key id="key_openZotero"
     83 			 key="Z" 
     84 			 oncommand="ZoteroOverlay.toggleDisplay();"
     85 			 modifiers="accel shift" />
     86 		 <key id="key_saveToZotero"
     87 			 key="S"
     88 			 oncommand="Zotero_Browser.scrapeThisPage();"
     89 			 modifiers="accel shift" />
     90 	</keyset>
     91 </overlay>