zotero/chrome/chromeFiles/content/scholar/overlay.xul
2006-05-30 22:06:33 +00:00

114 lines
No EOL
3.6 KiB
XML

<?xml version="1.0"?>
<?xml-stylesheet href="chrome://scholar/skin/scholar.css" type="text/css"?>
<!DOCTYPE window SYSTEM "chrome://scholar/locale/scholar.dtd">
<overlay id="scholar"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<!-- Include the global XPCOM object -->
<script src="include.js"/>
<script src="overlay.js"/>
<script src="itemTreeView.js"/>
<script src="folderTreeView.js"/>
<command id="cmd_scholar_newItem" oncommand="ScholarPane.newItem(1);"/>
<command id="cmd_scholar_newFolder" oncommand="ScholarPane.newFolder();"/>
<command id="cmd_scholar_search" oncommand="ScholarPane.search();"/>
<vbox id="appcontent">
<vbox id="scholar-pane" position="1" persist="height">
<hbox flex="1">
<tree id="folders-tree"
treeviewtype="folders" style="-moz-user-focus: ignore;" hidecolumnpicker="true"
onselect="ScholarPane.folderSelected();"
persist="width" flex="1">
<treecols>
<treecol
id="name_column"
label="&folders.name_column;"
flex="1"
primary="true"/>
</treecols>
<treechildren/>
</tree>
<splitter resizebefore="closest" resizeafter="closest"/>
<tree
id="items-tree"
enableColumnDrag="true"
onselect="ScholarPane.itemSelected();"
persist="width" flex="5">
<treecols>
<treecol
id="title"
label="&items.title_column;"
flex="4" persist="width ordinal hidden"/>
<splitter class="tree-splitter"/>
<treecol
id="firstCreator"
label="&items.creator_column;"
flex="1" persist="width ordinal hidden"/>
<splitter class="tree-splitter"/>
<treecol
id="source"
label="&items.source_column;"
flex="1" persist="width ordinal hidden"/>
<splitter class="tree-splitter"/>
<treecol
id="rights" hidden="true"
label="&items.rights_column;"
flex="1" persist="width ordinal hidden"/>
<splitter class="tree-splitter"/>
<treecol
id="dateAdded" hidden="true"
label="&items.dateAdded_column;"
flex="1" persist="width ordinal hidden"/>
<splitter class="tree-splitter"/>
<treecol
id="dateModified" hidden="true"
label="&items.dateModified_column;"
flex="1" persist="width ordinal hidden"/>
</treecols>
<treechildren/>
</tree>
</hbox>
<toolbar>
<toolbarbutton label="&menuitem.newFolder.label;" command="cmd_scholar_newFolder"/>
<toolbarbutton id="tb-add" label="&menuitem.newItem.label;" type="menu">
<menupopup>
</menupopup>
</toolbarbutton>
<spacer flex="1"/>
<label value="Search:" control="tb-search"/>
<textbox id="tb-search" type="timed" timeout="500" width="150" command="cmd_scholar_search"/>
</toolbar>
</vbox>
<splitter resizebefore="closest" resizeafter="closest" position="2"/>
</vbox>
<statusbar id="status-bar">
<statusbarpanel id="scholar-load-status" label="Scholar is NOT loaded"/>
</statusbar>
<script>
window.addEventListener('load', function(e){
if (Scholar){
document.getElementById('scholar-load-status').setAttribute('label', 'Scholar is loaded');
}
}, false);
</script>
<menupopup id="menu_ToolsPopup">
<menuseparator id="scholarSeparator" insertbefore="devToolsSeparator"/>
<menuitem id="tools-scholar" insertbefore="devToolsSeparator"
oncommand="document.getElementById('scholar-pane').collapsed='false';" label="Scholar"
key="key_openScholar"/>
</menupopup>
<keyset id="mainKeyset">
<key id="key_openScholar"
key="S"
modifiers="shift accel" />
</keyset>
</overlay>