the new subscribe xul and associated files

This commit is contained in:
sspitzer%netscape.com 1999-05-26 21:36:29 +00:00
parent bc1f7c864d
commit 493e910815
9 changed files with 307 additions and 10 deletions

View File

@ -72,7 +72,10 @@ EXPORT_RESOURCE_SAMPLES = \
$(srcdir)/FilterListDialog.xul \
$(srcdir)/FilterEditor.xul \
$(srcdir)/FilterEditor.js \
$(srcdir)/test1.html \
$(srcdir)/subscribe.xul \
$(srcdir)/check.gif \
$(srcdir)/dot.gif \
$(srcdir)/subscribe.css \
$(NULL)
EXPORT_RESOURCE_SAMPLES_TO_REMOVE := $(addprefix $(SAMPLES_DIR)/, $(EXPORT_RESOURCE_SAMPLES))

Binary file not shown.

After

Width:  |  Height:  |  Size: 104 B

View File

@ -84,6 +84,11 @@ function MsgAccountManager()
}
}
function MsgSubscribe()
{
dump('open subscribe window.\n');
}
function LoadMessage(messageNode)
{
var uri = messageNode.getAttribute('id');

Binary file not shown.

After

Width:  |  Height:  |  Size: 67 B

View File

@ -6,12 +6,6 @@
<!ENTITY nameColumn.label "Name">
<!ENTITY unreadColumn.label "Unread">
<!ENTITY totalColumn.label "Total">
<!ENTITY localMailHost.img "chrome://messenger/skin/localMailHost.gif">
<!ENTITY localMailHost.label "Local Mail">
<!ENTITY imapHost.img "chrome://messenger/skin/localMailHost.gif">
<!ENTITY imapHost.label "Imap Mail">
<!ENTITY newsHost.img "chrome://messenger/skin/newsHost.gif">
<!ENTITY newsHost.label "news.mozilla.org">
<!ENTITY accounts.label "Accounts">
<!ENTITY accounts.img "chrome://messenger/skin/localMailHost.gif">
]>

View File

@ -64,7 +64,10 @@ install::
$(MAKE_INSTALL) FilterListDialog.xul $(DIST)\bin\res\mailnews\messenger
$(MAKE_INSTALL) FilterEditor.xul $(DIST)\bin\res\mailnews\messenger
$(MAKE_INSTALL) FilterEditor.js $(DIST)\bin\res\mailnews\messenger
$(MAKE_INSTALL) subscribe.xul $(DIST)\bin\res\mailnews\messenger
$(MAKE_INSTALL) check.gif $(DIST)\bin\res\mailnews\messenger
$(MAKE_INSTALL) dot.gif $(DIST)\bin\res\mailnews\messenger
$(MAKE_INSTALL) subscribe.css $(DIST)\bin\res\mailnews\messenger
clobber::
rm -f $(DIST)\res\mailnews\messenger\mailshell.xul
@ -99,5 +102,8 @@ clobber::
rm -f $(DIST)\res\mailnews\messenger\FilterListDialog.xul
rm -f $(DIST)\res\mailnews\messenger\FilterEditor.xul
rm -f $(DIST)\res\mailnews\messenger\FilterEditor.js
rm -f $(DIST)\res\mailnews\messenger\subscribe.xul
rm -f $(DIST)\res\mailnews\messenger\check.gif
rm -f $(DIST)\res\mailnews\messenger\dot.gif
rm -f $(DIST)\res\mailnews\messenger\subscribe.css

View File

@ -0,0 +1,77 @@
window {
display: block;
background-color:white;
}
tree {
display: table;
background-color:white;
border: none;
border-spacing: 0px;
//border-collapse: collapse;
width: 100%
}
treeitem {
display: table-row;
}
treehead {
display: table-header-group;
}
treebody {
display: table-row-group;
}
treecell {
display: table-cell;
color: black;
font-family: Verdana;
font-size: 10pt;
}
treecell[selectedcell] {
background-color: #666699;
color: white;
}
treehead treeitem treecell {
font-size: 9pt;
background-color: #666699;
border: thin darkgray solid;
color: white;
}
treeitem > treecell > titledbutton {
height: 16px;
width: 16px;
list-style-image: url("chrome://messenger/skin/closedMailFolder.gif");
}
treeitem[open="true"] > treecell > titledbutton {
height: 16px;
width: 16px;
list-style-image: url("chrome://messenger/skin/openMailFolder.gif");
}
treeitem[SpecialFolder="Inbox"] > treecell > titledbutton {
vertical-align: bottom;
height: 16px;
width: 16px;
list-style-image: url("chrome://messenger/skin/closedInbox.gif");
}
treeitem[SpecialFolder="Trash"] > treecell > titledbutton {
vertical-align: bottom;
height: 16px;
width: 16px;
list-style-image: url("chrome://messenger/skin/closedTrash.gif");
}
treeitem[SpecialFolder="Unsent Messages"] > treecell > titledbutton {
vertical-align: bottom;
height: 16px;
width: 16px;
list-style-image: url("chrome://messenger/skin/closedOutbox.gif");
}

View File

@ -0,0 +1,213 @@
<?xml version="1.0"?>
<?xml-stylesheet href="resource:/res/samples/xul.css" type="text/css"?>
<?xml-stylesheet href="chrome://messenger/skin/" type="text/css"?>
<?xml-stylesheet href="chrome://messenger/skin/subscribe.css" type="text/css"?>
<!DOCTYPE window
[
<!ENTITY subscribeWindow.title "Subscribe">
<!ENTITY allTab.label "All">
<!ENTITY searchTab.label "Search">
<!ENTITY newTab.label "New">
<!ENTITY nameText.label "Name:">
<!ENTITY addServerButton.label "Add Server">
<!ENTITY okButton.label "OK">
<!ENTITY cancelButton.label "Cancel">
<!ENTITY helpButton.label "Help">
<!ENTITY subscribeButton.label "Subscribe">
<!ENTITY unsubscribeButton.label "Unsubscribe">
<!ENTITY refreshListButton.label "Refresh List">
<!ENTITY expandButton.label "Expand">
<!ENTITY collapseAllButton.label "Collapse All">
<!ENTITY stopButton.label "Stop">
<!ENTITY nameColumn.label "Name">
<!ENTITY check.img "chrome://messenger/skin/check.gif">
<!ENTITY dot.img "chrome://messenger/skin/dot.gif">
<!ENTITY messagesColumn.label "Messages">
<!ENTITY accounts.label "accounts">
<!ENTITY accounts.img "chrome://messenger/skin/localMailHost.gif">
<!ENTITY getNewButton.label "Get New">
<!ENTITY clearNewButton.label "Clear New">
<!ENTITY searchNowButton.label "Search Now">
<!ENTITY searchFor.label "Search For:">
<!ENTITY newText.label "This list shows all new newsgroups since you last cleared the list.">
]>
<window style="height: 100%; width: 100%;"
xmlns:html="http://www.w3.org/TR/REC-html40"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
title="&subscribeWindow.title;">
<box align="vertical" style="width: 100%" >
<tabcontrol align="vertical" flex="100%" >
<tabbox align="horizontal">
<tab>&allTab.label;</tab>
<tab>&searchTab.label;</tab>
<tab>&newTab.label;</tab>
</tabbox>
<tabpanel flex="100%" style="border: 2px outset gray">
<!-- all tab -->
<box align="vertical" class="cleanborder">
<box align="horizontal">
<html:div>&nameText.label;</html:div>
<html:input type="text" flex="100%"/>
</box>
<box align="horizontal">
<box align="vertical" class="cleanborder">
<tree>
<treehead>
<treeitem>
<treecell>&nameColumn.label;</treecell>
<treecell><html:img hspace="2" style="vertical-align: bottom" src="&check.img;"/></treecell>
<treecell>&messagesColumn.label;</treecell>
</treeitem>
</treehead>
<treebody rdf:containment="http://home.netscape.com/NC-rdf#child" rdf:ignore="http://home.netscape.com/NC-rdf#MessageChild">
<treeitem id="tintin">
<treecell><treeindentation/>tintin</treecell>
<treecell><html:img hspace="2" style="vertical-align: bottom" src="&check.img;"/></treecell>
<treecell/>
</treeitem>
<treeitem id="news">
<treecell><treeindentation/>news</treecell>
<treecell><html:img hspace="2" style="vertical-align: bottom" src="&dot.img;"/></treecell>
<treecell/>
</treeitem>
<treeitem id="news.mozilla.org">
<treecell><treeindentation/>news.mozilla.org</treecell>
<treecell><html:img hspace="2" style="vertical-align: bottom" src="&dot.img;"/></treecell>
<treecell/>
</treeitem>
</treebody>
</tree>
</box>
<spring flex="100%"/>
<box align="vertical">
<titledbutton class="push" flex="50%" name="addserver" value="&addServerButton.label;"/>
<html:hr/>
<titledbutton class="push" flex="50%" name="subscribe" value="&subscribeButton.label;"/>
<titledbutton class="push" flex="50%" name="unsubscribe" value="&unsubscribeButton.label;"/>
<html:hr/>
<titledbutton class="push" flex="50%" name="refreshlist" value="&refreshListButton.label;"/>
<titledbutton class="push" flex="50%" name="expand" value="&expandButton.label;"/>
<titledbutton class="push" flex="50%" name="collapseall" value="&collapseAllButton.label;"/>
<html:hr/>
<titledbutton class="push" flex="50%" name="stop" value="&stopButton.label;"/>
</box>
</box>
</box>
<!-- end of all tab -->
<!-- search tab -->
<box align="vertical" class="cleanborder">
<box align="horizontal">
<html:div>&searchFor.label;</html:div>
<html:input type="text" flex="100%"/>
</box>
<box align="horizontal">
<box align="vertical" class="cleanborder">
<tree>
<treehead>
<treeitem>
<treecell>&nameColumn.label;</treecell>
<treecell><html:img hspace="2" style="vertical-align: bottom" src="&check.img;"/></treecell>
<treecell>&messagesColumn.label;</treecell>
</treeitem>
</treehead>
<treebody rdf:containment="http://home.netscape.com/NC-rdf#child" rdf:ignore="http://home.netscape.com/NC-rdf#MessageChild">
<treeitem id="a">
<treecell><treeindentation/>a</treecell>
<treecell><html:img hspace="2" style="vertical-align: bottom" src="&check.img;"/></treecell>
<treecell/>
</treeitem>
<treeitem id="b">
<treecell><treeindentation/>b</treecell>
<treecell><html:img hspace="2" style="vertical-align: bottom" src="&dot.img;"/></treecell>
<treecell/>
</treeitem>
<treeitem id="c">
<treecell><treeindentation/>c</treecell>
<treecell><html:img hspace="2" style="vertical-align: bottom" src="&dot.img;"/></treecell>
<treecell/>
</treeitem>
</treebody>
</tree>
</box>
<spring flex="100%"/>
<box align="vertical">
<titledbutton class="push" flex="50%" name="searchnow" value="&searchNowButton.label;"/>
<html:hr/>
<titledbutton class="push" flex="50%" name="subscribe" value="&subscribeButton.label;"/>
<titledbutton class="push" flex="50%" name="unsubscribe" value="&unsubscribeButton.label;"/>
<html:hr/>
<titledbutton class="push" flex="50%" name="stop" value="&stopButton.label;"/>
</box>
</box>
</box>
<!-- end of search tab -->
<!-- new tab -->
<box align="vertical" class="cleanborder">
<box align="horizontal">
<html:div>&newText.label;</html:div>
</box>
<box align="horizontal">
<box align="vertical" class="cleanborder">
<tree>
<treehead>
<treeitem>
<treecell>&nameColumn.label;</treecell>
<treecell><html:img hspace="2" style="vertical-align: bottom" src="&check.img;"/></treecell>
<treecell>&messagesColumn.label;</treecell>
</treeitem>
</treehead>
<treebody rdf:containment="http://home.netscape.com/NC-rdf#child" rdf:ignore="http://home.netscape.com/NC-rdf#MessageChild">
<treeitem id="1">
<treecell><treeindentation/>1</treecell>
<treecell><html:img hspace="2" style="vertical-align: bottom" src="&check.img;"/></treecell>
<treecell/>
</treeitem>
<treeitem id="2">
<treecell><treeindentation/>2</treecell>
<treecell><html:img hspace="2" style="vertical-align: bottom" src="&dot.img;"/></treecell>
<treecell/>
</treeitem>
<treeitem id="3">
<treecell><treeindentation/>3</treecell>
<treecell><html:img hspace="2" style="vertical-align: bottom" src="&dot.img;"/></treecell>
<treecell/>
</treeitem>
</treebody>
</tree>
</box>
<spring flex="100%"/>
<box align="vertical">
<titledbutton class="push" flex="50%" name="addserver" value="&addServerButton.label;"/>
<html:hr/>
<titledbutton class="push" flex="50%" name="subscribe" value="&subscribeButton.label;"/>
<titledbutton class="push" flex="50%" name="unsubscribe" value="&unsubscribeButton.label;"/>
<html:hr/>
<titledbutton class="push" flex="50%" name="getnew" value="&getNewButton.label;"/>
<titledbutton class="push" flex="50%" name="clearnew" value="&clearNewButton.label;"/>
<html:hr/>
<titledbutton class="push" flex="50%" name="stop" value="&stopButton.label;"/>
</box>
</box>
</box>
<!-- end of new tab -->
</tabpanel>
</tabcontrol>
<box align="horizontal">
<titledbutton class="push" flex="50%" name="ok" value="&okButton.label;"/>
<spring flex="100%"/>
<titledbutton class="push" flex="50%" name="cancel" value="&cancelButton.label;"/>
<spring flex="100%"/>
<titledbutton class="push" flex="50%" name="help" value="&helpButton.label;"/>
</box>
</box>
</window>

View File

@ -262,7 +262,6 @@ function MsgSaveAsFile() {}
function MsgSaveAsTemplate() {}
function MsgSendUnsentMsg() {}
function MsgUpdateMsgCount() {}
function MsgSubscribe() {}
function MsgRenameFolder() {}
function MsgEmptyTrash() {}
function MsgCompactFolders() {}