2006-02-21 17:01:06 +00:00
|
|
|
<?xml version="1.0"?>
|
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-06-09 15:54:44 +00:00
|
|
|
<?xul-overlay href="itemPane.xul" ?>
|
2006-02-21 17:01:06 +00:00
|
|
|
|
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"/>
|
2006-06-05 18:01:53 +00:00
|
|
|
<script src="collectionTreeView.js"/>
|
2006-05-30 22:06:33 +00:00
|
|
|
|
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-06-05 13:08:16 +00:00
|
|
|
<hbox id="scholar-pane" position="1" persist="height collapsed">
|
2006-06-13 20:45:30 +00:00
|
|
|
<vbox persist="width" width="200" style="min-width: 150px;">
|
2006-06-05 13:08:16 +00:00
|
|
|
<toolbar>
|
2006-06-05 17:47:36 +00:00
|
|
|
<toolbarbutton label="&toolbar.newCollection.label;" command="cmd_scholar_newCollection"/>
|
|
|
|
<toolbarbutton id="tb-rename" label="&toolbar.renameCollection.label;" oncommand="ScholarPane.renameSelectedCollection();" disabled="true"/>
|
2006-06-05 13:08:16 +00:00
|
|
|
</toolbar>
|
2006-06-05 18:01:53 +00:00
|
|
|
<tree id="collections-tree" hidecolumnpicker="true"
|
|
|
|
onselect="ScholarPane.onCollectionSelected();" seltype="single"
|
2006-06-08 19:34:58 +00:00
|
|
|
ondragdrop="nsDragAndDrop.drop(event,ScholarPane.getCollectionsView())"
|
2006-06-08 18:42:55 +00:00
|
|
|
ondraggesture="if (event.target.localName == 'treechildren') nsDragAndDrop.startDrag(event,ScholarPane.getCollectionsView());"
|
2006-06-02 14:11:23 +00:00
|
|
|
onkeypress="if(event.keyCode == event.DOM_VK_BACK_SPACE || event.keyCode == event.DOM_VK_DELETE){ ScholarPane.deleteCollectionSelection(); return false; }"
|
2006-06-05 13:08:16 +00:00
|
|
|
flex="1">
|
2006-05-30 22:06:33 +00:00
|
|
|
<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/>
|
2006-06-05 13:08:16 +00:00
|
|
|
</tree>
|
|
|
|
</vbox>
|
|
|
|
<splitter id="scholar-tree-splitter" resizebefore="closest" resizeafter="closest"/>
|
2006-06-13 20:45:30 +00:00
|
|
|
<vbox persist="width" flex="1" style="min-width: 300px;">
|
2006-06-05 13:08:16 +00:00
|
|
|
<toolbar align="center">
|
2006-06-05 17:47:36 +00:00
|
|
|
<toolbarbutton id="tb-add" label="&toolbar.newItem.label;" type="menu">
|
2006-06-05 13:08:16 +00:00
|
|
|
<menupopup>
|
|
|
|
</menupopup>
|
|
|
|
</toolbarbutton>
|
|
|
|
<spacer flex="1"/>
|
2006-06-05 17:47:36 +00:00
|
|
|
<label value="&toolbar.search.label;" control="tb-search"/>
|
2006-06-05 13:08:16 +00:00
|
|
|
<textbox id="tb-search" type="timed" timeout="500" command="cmd_scholar_search"/>
|
|
|
|
<toolbarbutton class="tabs-closebutton" oncommand="ScholarPane.toggleDisplay()"/>
|
|
|
|
</toolbar>
|
2006-05-30 22:06:33 +00:00
|
|
|
<tree
|
|
|
|
id="items-tree"
|
2006-06-02 14:11:23 +00:00
|
|
|
enableColumnDrag="true" onkeypress="if(event.keyCode == event.DOM_VK_BACK_SPACE || event.keyCode == event.DOM_VK_DELETE){ ScholarPane.deleteItemSelection(); return false; }"
|
2006-05-30 22:06:33 +00:00
|
|
|
onselect="ScholarPane.itemSelected();"
|
2006-06-08 18:42:55 +00:00
|
|
|
ondraggesture="if (event.target.localName == 'treechildren') nsDragAndDrop.startDrag(event,ScholarPane.getItemsView());"
|
2006-06-14 15:51:05 +00:00
|
|
|
ondragover="nsDragAndDrop.dragOver(event,ScholarPane.getItemsView())"
|
2006-06-08 19:34:58 +00:00
|
|
|
ondragdrop="nsDragAndDrop.drop(event,ScholarPane.getItemsView())"
|
2006-06-05 13:08:16 +00:00
|
|
|
flex="1">
|
2006-05-30 22:06:33 +00:00
|
|
|
<treecols>
|
2006-06-12 12:43:20 +00:00
|
|
|
<treecol
|
|
|
|
id="typeIcon"
|
|
|
|
label="&items.type_column;"
|
|
|
|
width="40" persist="width ordinal hidden sortActive sortDirection"/>
|
|
|
|
<splitter class="tree-splitter"/>
|
2006-05-30 22:06:33 +00:00
|
|
|
<treecol
|
|
|
|
id="title"
|
|
|
|
label="&items.title_column;"
|
2006-06-05 15:49:11 +00:00
|
|
|
flex="4" persist="width ordinal hidden sortActive sortDirection"/>
|
2006-05-30 22:06:33 +00:00
|
|
|
<splitter class="tree-splitter"/>
|
|
|
|
<treecol
|
|
|
|
id="firstCreator"
|
2006-06-12 12:43:20 +00:00
|
|
|
label="&items.creator_column;"
|
2006-06-05 15:49:11 +00:00
|
|
|
flex="1" persist="width ordinal hidden sortActive sortDirection"/>
|
2006-05-30 22:06:33 +00:00
|
|
|
<splitter class="tree-splitter"/>
|
2006-06-16 15:27:22 +00:00
|
|
|
<treecol
|
|
|
|
id="numNotes"
|
|
|
|
label="&items.numNotes_column;"
|
|
|
|
persist="width ordinal hidden sortActive sortDirection"/>
|
|
|
|
<splitter class="tree-splitter"/>
|
2006-05-30 22:06:33 +00:00
|
|
|
<treecol
|
2006-06-07 16:19:56 +00:00
|
|
|
id="source" hidden="true"
|
2006-05-30 22:06:33 +00:00
|
|
|
label="&items.source_column;"
|
2006-06-05 15:49:11 +00:00
|
|
|
flex="1" persist="width ordinal hidden sortActive sortDirection"/>
|
2006-05-30 22:06:33 +00:00
|
|
|
<splitter class="tree-splitter"/>
|
|
|
|
<treecol
|
|
|
|
id="rights" hidden="true"
|
|
|
|
label="&items.rights_column;"
|
2006-06-05 15:49:11 +00:00
|
|
|
flex="1" persist="width ordinal hidden sortActive sortDirection"/>
|
2006-05-30 22:06:33 +00:00
|
|
|
<splitter class="tree-splitter"/>
|
|
|
|
<treecol
|
|
|
|
id="dateAdded" hidden="true"
|
|
|
|
label="&items.dateAdded_column;"
|
2006-06-05 15:49:11 +00:00
|
|
|
flex="1" persist="width ordinal hidden sortActive sortDirection"/>
|
2006-05-30 22:06:33 +00:00
|
|
|
<splitter class="tree-splitter"/>
|
|
|
|
<treecol
|
|
|
|
id="dateModified" hidden="true"
|
|
|
|
label="&items.dateModified_column;"
|
2006-06-05 15:49:11 +00:00
|
|
|
flex="1" persist="width ordinal hidden sortActive sortDirection"/>
|
2006-05-30 22:06:33 +00:00
|
|
|
</treecols>
|
|
|
|
|
|
|
|
<treechildren/>
|
|
|
|
</tree>
|
2006-06-05 13:08:16 +00:00
|
|
|
|
2006-06-06 19:53:27 +00:00
|
|
|
</vbox>
|
2006-06-13 20:45:30 +00:00
|
|
|
<splitter id="scholar-view-splitter" collapse="after"><grippy/></splitter>
|
|
|
|
<box width="300" style="min-width: 300px;" pack="center" align="center">
|
|
|
|
<label id="scholar-view-selected-label" style="text-align: center;"/>
|
|
|
|
<tabbox id="scholar-view-item" hidden="true" flex="1"/>
|
|
|
|
</box>
|
2006-06-05 13:08:16 +00:00
|
|
|
</hbox>
|
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-06-02 15:27:52 +00:00
|
|
|
<statusbarpanel id="scholar-load-status" label="Scholar is NOT loaded" onclick="ScholarPane.toggleDisplay();"/>
|
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-06-05 17:47:36 +00:00
|
|
|
oncommand="ScholarPane.toggleDisplay();" label="&scholar.name;"
|
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>
|