zotero/chrome/chromeFiles/content/scholar/sidebar.xul
David Norton a75fb2ddb6 Added items show without refreshing.
The title column is by default the only one visible.
2006-05-19 18:21:27 +00:00

73 lines
No EOL
2 KiB
XML

<?xml version="1.0"?>
<?xml-stylesheet href="chrome://global/skin/" type"text/css"?>
<?xml-stylesheet href="chrome://browser/skin/browser.css" type="text/css"?>
<?xml-stylesheet href="chrome://scholar/skin/scholar.css" type="text/css"?>
<!DOCTYPE window SYSTEM "chrome://scholar/locale/scholar.dtd">
<page id="scholar-sidebar" title="Scholar"
onload="init()"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" >
<script src="include.js"/>
<script src="sidebar.js"/>
<keyset>
<key id="delete-cmd" keycode="VK_DELETE" oncommand="myTreeView.deleteSelection()"/>
<key id="backspace-cmd" keycode="VK_BACK" oncommand="myTreeView.deleteSelection()"/>
</keyset>
<stringbundle id="scholar-strings" src="chrome://scholar/locale/scholar.properties"/>
<vbox id="list-pane" flex="1">
<tree
id="list-tree"
onselect="this.view.selectionChanged()"
enableColumnDrag="true"
seltype="multiple" flex="1">
<treecols>
<treecol
id="title_column"
label="&sidebar.items.title_column;"
flex="2"
primary="true"/>
<splitter class="tree-splitter"/>
<treecol
id="creator_column"
label="&sidebar.items.creator_column;"
flex="1"
hidden="true"/>
<splitter class="tree-splitter"/>
<treecol
id="source_column"
label="&sidebar.items.source_column;"
flex="1"
hidden="true"/>
</treecols>
<treechildren/>
</tree>
<sidebarheader>
<toolbarbutton id="tb-add" type="menu" label="New&#8230;">
<menupopup>
</menupopup>
</toolbarbutton>
<spacer flex="1" />
<toolbarbutton id="tb-edit" label="Edit&#8230;" oncommand="editSelectedItem();" hidden="true"/>
</sidebarheader>
</vbox>
<vbox id="view-pane">
<grid>
<columns>
<column/>
<column flex="1"/>
</columns>
<rows id="dynamic-fields">
</rows>
</grid>
</vbox>
<hbox id="edit-pane" hidden="true">
<button label="Cancel" oncommand="returnToTree(false)"/>
<button label="Save" oncommand="returnToTree(true)"/>
</hbox>
</page>