зеркало из https://github.com/mozilla/gecko-dev.git
New xul files to express our mail 3-pane UI. I also created a makefile.win which will export the mail news xul files into dist\WIN32_D.OBJ\bin\res\samples.
This commit is contained in:
Родитель
e2f5dc5293
Коммит
9c22a7459d
|
@ -0,0 +1,33 @@
|
|||
window {
|
||||
display: block;
|
||||
}
|
||||
|
||||
tree {
|
||||
display: table;
|
||||
background-color: #eeeeee;
|
||||
border: none;
|
||||
border-spacing: 0px;
|
||||
border-collapse: collapse;
|
||||
}
|
||||
|
||||
treeitem {
|
||||
display: table-row;
|
||||
}
|
||||
|
||||
treehead {
|
||||
display: table-header-group;
|
||||
}
|
||||
|
||||
treebody {
|
||||
display: table-row-group;
|
||||
|
||||
}
|
||||
|
||||
treecell {
|
||||
display: table-cell;
|
||||
}
|
||||
|
||||
treehead treeitem treecell {
|
||||
background-color: #a0a0a0;
|
||||
border: thin black solid;
|
||||
}
|
|
@ -0,0 +1,31 @@
|
|||
<?xml version="1.0"?>
|
||||
<?xml-stylesheet href="folderPane.css" type="text/css"?>
|
||||
|
||||
<!DOCTYPE window>
|
||||
|
||||
<window
|
||||
xmlns:html="http://www.w3.org/TR/REC-html40"
|
||||
xmlns:rdf="http://www.w3.org/TR/WD-rdf-syntax#"
|
||||
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
|
||||
|
||||
<tree datasources="rdf:mailnewsfolder">
|
||||
<treecol rdf:resource="http://home.netscape.com/NC-rdf#Name"/>
|
||||
<treehead>
|
||||
<treeitem>
|
||||
<treecell>Name</treecell>
|
||||
<treecell>Unread</treecell>
|
||||
<treecell>Total</treecell>
|
||||
</treeitem>
|
||||
</treehead>
|
||||
|
||||
<treebody>
|
||||
<treeitem id="mailbox:MSGFolderRoot">
|
||||
<treecell><treeindentation/><html:img html:hspace="2" html:style="vertical-align: bottom" html:src="http://rava/~hyatt/ClosedRead.gif"/>Local Mail</treecell>
|
||||
<treecell></treecell>
|
||||
<treecell></treecell>
|
||||
</treeitem>
|
||||
|
||||
</treebody>
|
||||
</tree>
|
||||
|
||||
</window>
|
|
@ -0,0 +1,93 @@
|
|||
<?xml version="1.0"?>
|
||||
<?xml-stylesheet href="xul.css" type="text/css"?>
|
||||
|
||||
<!DOCTYPE window>
|
||||
|
||||
<xul:window xmlns:html="http://www.w3.org/TR/REC-html40"
|
||||
xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
|
||||
|
||||
<html:style>
|
||||
#toolbar {
|
||||
position: fixed;
|
||||
width: 100%;
|
||||
height: 80px;
|
||||
top: 0;
|
||||
right: 0;
|
||||
bottom: auto;
|
||||
left: 0;
|
||||
background-color: #cccccc;
|
||||
}
|
||||
#folder {
|
||||
position: fixed;
|
||||
width: 15em;
|
||||
height: auto;
|
||||
top: 80px;
|
||||
right: 15em;
|
||||
bottom: 34px;
|
||||
left: 0;
|
||||
font-style: italic;
|
||||
background-color: #ffffff;
|
||||
}
|
||||
#message {
|
||||
position: fixed;
|
||||
width: auto;
|
||||
height: auto;
|
||||
top: 200px;
|
||||
right: 0;
|
||||
bottom: 34px;
|
||||
left: 15em;
|
||||
overflow: auto;
|
||||
padding: 2px .5em;
|
||||
border: solid 1px black;
|
||||
background-color: #ffffff;
|
||||
}
|
||||
#thread {
|
||||
position: fixed;
|
||||
width: auto;
|
||||
height: 120px;
|
||||
top: 80px;
|
||||
right: 0;
|
||||
bottom: auto;
|
||||
left: 15em;
|
||||
overflow: auto;
|
||||
padding: 2px .5em;
|
||||
border: solid 1px white
|
||||
background-color: #cccccc;
|
||||
}
|
||||
#footer {
|
||||
position: fixed;
|
||||
width: 100%;
|
||||
height: 34px;
|
||||
top: auto;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
text-align: center;
|
||||
margin-top: auto;
|
||||
background-color: #cccccc;
|
||||
}
|
||||
</html:style>
|
||||
|
||||
|
||||
<html:div html:id="toolbar">
|
||||
<html:iframe html:src="msgbar.xul" html:name="browser.toolbar" html:width="100%" html:height="56" > </html:iframe>
|
||||
</html:div>
|
||||
|
||||
<html:div html:id="thread">
|
||||
<html:iframe html:src="threadPane.xul" html:name="browser.foo" html:width="100%" html:height="80" > </html:iframe>
|
||||
</html:div>
|
||||
|
||||
<html:div html:id="message">
|
||||
<html:iframe html:src="message.html" html:name="browser.webwindow" html:width="100%" html:height="400" > </html:iframe>
|
||||
</html:div>
|
||||
|
||||
<html:div html:id="folder">
|
||||
<html:iframe html:src="folderPane.xul" name="browser.sidebar" width="100%" height="200"></html:iframe>
|
||||
</html:div>
|
||||
|
||||
<html:div html:id="footer">
|
||||
<html:iframe html:src="status.html" html:name="browser.status" html:width="100%" html:height="34" > </html:iframe>
|
||||
</html:div>
|
||||
|
||||
</xul:window>
|
||||
|
|
@ -0,0 +1,40 @@
|
|||
#!nmake
|
||||
#
|
||||
# The contents of this file are subject to the Netscape Public License
|
||||
# Version 1.0 (the "NPL"); you may not use this file except in
|
||||
# compliance with the NPL. You may obtain a copy of the NPL at
|
||||
# http://www.mozilla.org/NPL/
|
||||
#
|
||||
# Software distributed under the NPL is distributed on an "AS IS" basis,
|
||||
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
|
||||
# for the specific language governing rights and limitations under the
|
||||
# NPL.
|
||||
#
|
||||
# The Initial Developer of this code under the NPL is Netscape
|
||||
# Communications Corporation. Portions created by Netscape are
|
||||
# Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
# Reserved.
|
||||
|
||||
DEPTH=..\..\..\..
|
||||
IGNORE_MANIFEST=1
|
||||
|
||||
DEFINES=-DWIN32_LEAN_AND_MEAN
|
||||
MODULE=mailnews
|
||||
|
||||
include <$(DEPTH)\config\rules.mak>
|
||||
|
||||
install::
|
||||
$(MAKE_INSTALL) mailshell.xul $(DIST)\bin\res\samples
|
||||
$(MAKE_INSTALL) msgBar.xul $(DIST)\bin\res\samples
|
||||
$(MAKE_INSTALL) folderPane.xul $(DIST)\bin\res\samples
|
||||
$(MAKE_INSTALL) folderPane.css $(DIST)\bin\res\samples
|
||||
$(MAKE_INSTALL) threadPane.xul $(DIST)\bin\res\samples
|
||||
$(MAKE_INSTALL) message.html $(DIST)\bin\res\samples
|
||||
|
||||
clobber::
|
||||
rm -f $(DIST)\res\samples\mailshell.xul
|
||||
rm -f $(DIST)\res\samples\msgBar.xul
|
||||
rm -f $(DIST)\res\samples\folderPane.xul
|
||||
rm -f $(DIST)\res\samples\folderPane.css
|
||||
rm -f $(DIST)\res\samples\threadPane.xul
|
||||
rm -f $(DIST)\res\samples\message.html
|
|
@ -0,0 +1,104 @@
|
|||
<?xml version="1.0"?>
|
||||
<?xml-stylesheet href="xul.css" type="text/css"?>
|
||||
<!DOCTYPE window>
|
||||
|
||||
<xul:window xmlns:html="http://www.w3.org/TR/REC-html40"
|
||||
xmlns:xul ="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
|
||||
|
||||
<html:script language="JavaScript">
|
||||
function StartUp()
|
||||
{
|
||||
dump("StartUp: MsgAppCore\n");
|
||||
var appCore = XPAppCoresManager.Find("MsgAppCore");
|
||||
if (appCore == null) {
|
||||
dump("StartUp: Creating AppCore\n");
|
||||
appCore = new MsgAppCore();
|
||||
}
|
||||
dump("AppCore probably found\n");
|
||||
if (appCore != null) {
|
||||
dump("Initializing AppCore and setting Window\n");
|
||||
appCore.Init("MsgAppCore");
|
||||
appCore.SetWindow(window);
|
||||
}
|
||||
}
|
||||
|
||||
function OpenURL(url)
|
||||
{
|
||||
dump("\n\nOpenURL from XUL\n\n\n");
|
||||
var appCore = new MsgAppCore();
|
||||
if (appCore != null) {
|
||||
dump("Initializing AppCore and setting Window\n");
|
||||
appCore.Init("MsgAppCore");
|
||||
appCore.SetWindow(window);
|
||||
appCore.OpenURL(url);
|
||||
}
|
||||
}
|
||||
|
||||
</html:script>
|
||||
|
||||
<xul:menubar>
|
||||
<xul:menu name="File">
|
||||
<xul:menuitem name="New Message" onClick="NewMessage();"/>
|
||||
<separator/>
|
||||
<xul:menuitem name="Get New Message" onClick="GetMessage();"/>
|
||||
<xul:menuitem name="Subscribe" onClick="Subscribe();"/>
|
||||
<separator/>
|
||||
<xul:menuitem name="Rename Folder.." onClick="RenameFolder();"/>
|
||||
<xul:menuitem name="Empty Trash" onClick="EmptyTrash();"/>
|
||||
<separator/>
|
||||
<xul:menuitem name="Print" onClick="Print();"/>
|
||||
<separator/>
|
||||
<xul:menuitem name="Close" onClick="Close();"/>
|
||||
<xul:menuitem name="Exit" onClick="Exit();"/>
|
||||
</xul:menu>
|
||||
<xul:menu name="Edit">
|
||||
<xul:menuitem name="Delete Message" onClick="DeleteMessage();"/>
|
||||
</xul:menu>
|
||||
<xul:menu name="View">
|
||||
<xul:menuitem name="View Attachments Inline" onClick="ViewAttachInline();"/>
|
||||
<xul:menuitem name="Wrap Long Lines" onClick="WrapLongLines();"/>
|
||||
<separator/>
|
||||
<xul:menuitem name="Page Source" onClick="ViewPageSource();"/>
|
||||
<xul:menuitem name="Page Info" onClick="ViewPageInfo();"/>
|
||||
</xul:menu>
|
||||
<xul:menu name="Go">
|
||||
<xul:menuitem name="Next Message" onClick="NextMessage();"/>
|
||||
<xul:menuitem name="Next Unread Message" onClick="NextUnreadMessage();"/>
|
||||
</xul:menu>
|
||||
<xul:menu name="Message">
|
||||
<xul:menuitem name="New Message" onClick="NewMessage();"/>
|
||||
<xul:menuitem name="Reply" onClick="ReplyMessage();"/>
|
||||
<xul:menuitem name="Forward" onClick="ForwardMessage();"/>
|
||||
</xul:menu>
|
||||
<xul:menu name="Demo">
|
||||
<xul:menuitem name="News Message 1" onClick="OpenURL('news://news.mcom.com:119/35BE6AB1.55A14AE4@netscape.com');"/>
|
||||
<xul:menuitem name="News Message 2" onClick="OpenURL('news://news.mozilla.org:119/36BC8178.5BE93104@netscape.com');"/>
|
||||
</xul:menu>
|
||||
</xul:menubar>
|
||||
|
||||
<xul:toolbar>
|
||||
<html:button onClick="GetMessage();" style="background-color:rgb(192,192,192);">
|
||||
<html:img src="getmsg.gif"/><html:BR/>Get Msg
|
||||
</html:button>
|
||||
<html:button onClick="NewMessage();" style="background-color:rgb(192,192,192);">
|
||||
<html:img src="newmsg.gif"/><html:BR/>New Msg
|
||||
</html:button>
|
||||
<html:button onClick="ReplyMessage();" style="background-color:rgb(192,192,192);">
|
||||
<html:img src="replymsg.gif"/><html:BR/>Reply
|
||||
</html:button>
|
||||
<html:button onClick="ForwardMessage();" style="background-color:rgb(192,192,192);">
|
||||
<html:img src="fwdmsg.gif"/><html:BR/>Forward
|
||||
</html:button>
|
||||
<html:button onClick="DeleteMessage();" style="background-color:rgb(192,192,192);">
|
||||
<html:img src="delmsg.gif"/><html:BR/>Delete
|
||||
</html:button>
|
||||
<html:button onClick="OpenURL('news://news.mcom.com:119/35BE6AB1.55A14AE4@netscape.com');" style="background-color:rgb(192,192,192);">
|
||||
<html:img src="getmsg.gif"/><html:BR/>Load Msg
|
||||
</html:button>
|
||||
<html:a style="position:relative; direction:rtl; right:3; top: 2px;" href="http://www.netscape.com">
|
||||
<html:img alt="Throbber!" border=0 src="resource:/res/throbber/anims00.gif"/>
|
||||
</html:a>
|
||||
</xul:toolbar>
|
||||
|
||||
</xul:window>
|
||||
|
|
@ -0,0 +1,35 @@
|
|||
<?xml version="1.0"?>
|
||||
<?xml-stylesheet href="common.css" type="text/css"?>
|
||||
|
||||
<!DOCTYPE TreeView>
|
||||
|
||||
|
||||
<xul:window xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
|
||||
xmlns:html="http://www.w3.org/TR/REC-html40">
|
||||
|
||||
<xul:tree>
|
||||
<xul:treehead>
|
||||
<xul:treeitem>
|
||||
<xul:treecell>Subject</xul:treecell>
|
||||
<xul:treecell>Sender</xul:treecell>
|
||||
<xul:treecell>Date</xul:treecell>
|
||||
</xul:treeitem>
|
||||
</xul:treehead>
|
||||
|
||||
<xul:treebody>
|
||||
<xul:treeitem>
|
||||
<xul:treecell><xul:treeindentation/>Netscape Stock hits 200</xul:treecell>
|
||||
<xul:treecell><xul:treeindentation/>mscott@netscape.com</xul:treecell>
|
||||
<xul:treecell><xul:treeindentation/>Sat, 27 Feb 1999 10:34:33</xul:treecell>
|
||||
|
||||
</xul:treeitem>
|
||||
|
||||
<xul:treeitem>
|
||||
<xul:treecell><xul:treeindentation/>Mozilla 5.0 ships!</xul:treecell>
|
||||
<xul:treecell><xul:treeindentation/>daver@netscape.com</xul:treecell>
|
||||
<xul:treecell><xul:treeindentation/>Mon, 27 Sep 1999 12:20:15</xul:treecell>
|
||||
</xul:treeitem>
|
||||
</xul:treebody>
|
||||
</xul:tree>
|
||||
</xul:window>
|
||||
|
Загрузка…
Ссылка в новой задаче