2006-02-21 17:01:06 +00:00
|
|
|
<?xml version="1.0"?>
|
|
|
|
<?xml-stylesheet href="chrome://scholar/skin/scholar.css" type="text/css"?>
|
2006-05-31 20:29:46 +00:00
|
|
|
<?xml-stylesheet href="chrome://scholar/skin/overlay.css" type="text/css"?>
|
2006-02-21 17:01:06 +00:00
|
|
|
<!DOCTYPE window SYSTEM "chrome://scholar/locale/scholar.dtd">
|
|
|
|
|
|
|
|
<overlay id="scholar"
|
|
|
|
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
|
|
|
|
|
2006-05-27 00:20:27 +00:00
|
|
|
<!-- Include the global XPCOM object -->
|
|
|
|
<script src="include.js"/>
|
2006-05-22 18:51:22 +00:00
|
|
|
|
2006-05-30 22:06:33 +00:00
|
|
|
<script src="overlay.js"/>
|
|
|
|
<script src="itemTreeView.js"/>
|
|
|
|
<script src="folderTreeView.js"/>
|
|
|
|
|
2006-06-01 03:50:34 +00:00
|
|
|
<commandset id="mainCommandSet">
|
|
|
|
<command id="cmd_scholar_newItem" oncommand="ScholarPane.newItem(1);"/>
|
|
|
|
<command id="cmd_scholar_newCollection" oncommand="ScholarPane.newCollection();"/>
|
|
|
|
<command id="cmd_scholar_search" oncommand="ScholarPane.search();"/>
|
|
|
|
</commandset>
|
|
|
|
|
2006-05-30 22:06:33 +00:00
|
|
|
<vbox id="appcontent">
|
2006-05-31 22:01:31 +00:00
|
|
|
<vbox id="scholar-pane" position="1" persist="height collapsed">
|
2006-05-30 22:06:33 +00:00
|
|
|
<hbox flex="1">
|
2006-06-01 03:50:34 +00:00
|
|
|
<tree id="folders-tree" hidecolumnpicker="true"
|
|
|
|
onselect="ScholarPane.folderSelected();" seltype="single"
|
2006-05-30 22:06:33 +00:00
|
|
|
persist="width" flex="1">
|
|
|
|
<treecols>
|
|
|
|
<treecol
|
|
|
|
id="name_column"
|
2006-06-01 03:50:34 +00:00
|
|
|
label="&collections.name_column;"
|
2006-05-30 22:06:33 +00:00
|
|
|
flex="1"
|
|
|
|
primary="true"/>
|
|
|
|
</treecols>
|
|
|
|
<treechildren/>
|
|
|
|
</tree>
|
2006-05-31 20:29:46 +00:00
|
|
|
<splitter id="scholar-tree-splitter" resizebefore="closest" resizeafter="closest"/>
|
2006-05-30 22:06:33 +00:00
|
|
|
<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>
|
2006-05-31 22:01:31 +00:00
|
|
|
<toolbar id="scholar-toolbar" align="center">
|
2006-06-01 03:50:34 +00:00
|
|
|
<toolbarbutton label="&menuitem.newCollection.label;" command="cmd_scholar_newCollection"/>
|
2006-05-30 22:06:33 +00:00
|
|
|
<toolbarbutton id="tb-add" label="&menuitem.newItem.label;" type="menu">
|
|
|
|
<menupopup>
|
|
|
|
</menupopup>
|
|
|
|
</toolbarbutton>
|
|
|
|
<spacer flex="1"/>
|
|
|
|
<label value="Search:" control="tb-search"/>
|
2006-05-31 20:29:46 +00:00
|
|
|
<textbox id="tb-search" type="timed" timeout="500" command="cmd_scholar_search"/>
|
2006-05-31 22:01:31 +00:00
|
|
|
<toolbarbutton class="tabs-closebutton" oncommand="ScholarPane.toggleScholar()"/>
|
2006-05-30 22:06:33 +00:00
|
|
|
</toolbar>
|
|
|
|
</vbox>
|
2006-05-31 22:01:31 +00:00
|
|
|
<splitter id="scholar-splitter" resizebefore="closest" resizeafter="closest" position="2" persist="collapsed"/>
|
2006-05-30 22:06:33 +00:00
|
|
|
</vbox>
|
|
|
|
|
2006-02-21 17:01:06 +00:00
|
|
|
<statusbar id="status-bar">
|
2006-05-31 22:01:31 +00:00
|
|
|
<statusbarpanel id="scholar-load-status" label="Scholar is NOT loaded" onclick="ScholarPane.toggleScholar();"/>
|
2006-02-21 17:01:06 +00:00
|
|
|
</statusbar>
|
2006-02-24 14:41:15 +00:00
|
|
|
|
2006-05-27 00:20:27 +00:00
|
|
|
<script>
|
|
|
|
window.addEventListener('load', function(e){
|
|
|
|
if (Scholar){
|
|
|
|
document.getElementById('scholar-load-status').setAttribute('label', 'Scholar is loaded');
|
|
|
|
}
|
|
|
|
}, false);
|
|
|
|
</script>
|
|
|
|
|
2006-05-23 19:06:11 +00:00
|
|
|
<menupopup id="menu_ToolsPopup">
|
2006-05-24 18:43:49 +00:00
|
|
|
<menuseparator id="scholarSeparator" insertbefore="devToolsSeparator"/>
|
|
|
|
<menuitem id="tools-scholar" insertbefore="devToolsSeparator"
|
2006-05-31 22:01:31 +00:00
|
|
|
oncommand="ScholarPane.toggleScholar();" label="Scholar"
|
2006-05-23 19:06:11 +00:00
|
|
|
key="key_openScholar"/>
|
2006-05-22 18:51:22 +00:00
|
|
|
</menupopup>
|
2006-02-24 14:41:15 +00:00
|
|
|
|
2006-05-22 18:51:22 +00:00
|
|
|
<keyset id="mainKeyset">
|
2006-05-23 19:06:11 +00:00
|
|
|
<key id="key_openScholar"
|
2006-05-22 18:51:22 +00:00
|
|
|
key="S"
|
|
|
|
modifiers="shift accel" />
|
|
|
|
</keyset>
|
2006-05-23 19:06:11 +00:00
|
|
|
</overlay>
|