Fixes #52, button to expand to full screen mode.

Fixes #92, sometimes it starts up in full screen mode and you can't switch it back.
Fixes problem with tags summary on Notes not updating.
This commit is contained in:
David Norton 2006-07-05 16:19:26 +00:00
parent cb4a79ef9d
commit c478fea15f
5 changed files with 18 additions and 2 deletions

View file

@ -125,7 +125,7 @@
<xul:textbox multiline="true" type="timed" timeout="1000" flex="1" oncommand="this.parentNode.parentNode.save();"/> <xul:textbox multiline="true" type="timed" timeout="1000" flex="1" oncommand="this.parentNode.parentNode.save();"/>
<xul:label value="See also: (coming soon)"/> <xul:label value="See also: (coming soon)"/>
<xul:label onclick="this.nextSibling.showPopup(this,-1,-1,'popup',0,0);"/> <xul:label onclick="this.nextSibling.showPopup(this,-1,-1,'popup',0,0);"/>
<xul:popup width="300" onpopuphidden="this.updateTagsSummary();"> <xul:popup width="300" onpopuphidden="this.parentNode.parentNode.updateTagsSummary();">
<xul:tagsbox/> <xul:tagsbox/>
</xul:popup> </xul:popup>
</xul:vbox> </xul:vbox>

View file

@ -11,6 +11,7 @@ var ScholarPane = new function()
this.onLoad = onLoad; this.onLoad = onLoad;
this.onUnload = onUnload; this.onUnload = onUnload;
this.toggleDisplay = toggleDisplay; this.toggleDisplay = toggleDisplay;
this.fullScreen = fullScreen;
this.newItem = newItem; this.newItem = newItem;
this.newCollection = newCollection; this.newCollection = newCollection;
this.onCollectionSelected = onCollectionSelected; this.onCollectionSelected = onCollectionSelected;
@ -79,6 +80,15 @@ var ScholarPane = new function()
document.getElementById('scholar-pane').setAttribute('collapsed',!visible); document.getElementById('scholar-pane').setAttribute('collapsed',!visible);
document.getElementById('scholar-splitter').setAttribute('collapsed',!visible); document.getElementById('scholar-splitter').setAttribute('collapsed',!visible);
if(!visible)
document.getElementById('content').setAttribute('collapsed', false);
}
function fullScreen()
{
var visible = document.getElementById('content').getAttribute('collapsed') == 'true';
document.getElementById('content').setAttribute('collapsed', !visible);
} }
/* /*

View file

@ -21,7 +21,7 @@
<vbox id="appcontent"> <vbox id="appcontent">
<splitter id="scholar-splitter" resizebefore="closest" resizeafter="closest" persist="collapsed"/> <splitter id="scholar-splitter" resizebefore="closest" resizeafter="closest" persist="collapsed"/>
<vbox id="scholar-pane" persist="height collapsed"> <vbox id="scholar-pane" flex="1" persist="height collapsed">
<popupset> <popupset>
<popup id="scholar-collectionmenu" onpopupshowing="ScholarPane.buildCollectionContextMenu();"> <popup id="scholar-collectionmenu" onpopupshowing="ScholarPane.buildCollectionContextMenu();">
<menuitem label="&toolbar.newCollection.label;" command="cmd_scholar_newCollection"/> <menuitem label="&toolbar.newCollection.label;" command="cmd_scholar_newCollection"/>
@ -39,6 +39,7 @@
<label value="Scholar" id="scholar-toolbar-name"/> <label value="Scholar" id="scholar-toolbar-name"/>
<label value="1.0 Alpha"/> <label value="1.0 Alpha"/>
<spacer flex="1"/> <spacer flex="1"/>
<toolbarbutton id="tb-fullscreen" tooltiptext="Toggle Fullscreen" oncommand="ScholarPane.fullScreen();"/>
<toolbarbutton class="tabs-closebutton" oncommand="ScholarPane.toggleDisplay()"/> <toolbarbutton class="tabs-closebutton" oncommand="ScholarPane.toggleDisplay()"/>
</toolbar> </toolbar>
<hbox flex="1"> <hbox flex="1">

View file

@ -60,6 +60,11 @@ vbox #scholar-pane
font-size: larger; font-size: larger;
} }
#tb-fullscreen
{
list-style-image: url('chrome://scholar/skin/toolbar-fullscreen.png');
}
#tb-collection-add #tb-collection-add
{ {
list-style-image: url('chrome://scholar/skin/toolbar-collection-add.png'); list-style-image: url('chrome://scholar/skin/toolbar-collection-add.png');

Binary file not shown.

After

Width:  |  Height:  |  Size: 520 B