зеркало из https://github.com/mozilla/pjs.git
Moved the Mail XUL files to their own directory
This commit is contained in:
Родитель
fc7a700399
Коммит
56aa19a8a7
|
@ -82,7 +82,16 @@ include <$(DEPTH)\config\rules.mak>
|
|||
install:: $(DLL)
|
||||
$(MAKE_INSTALL) .\$(OBJDIR)\$(MODULE).dll $(DIST)\bin
|
||||
$(MAKE_INSTALL) .\$(OBJDIR)\$(MODULE).lib $(DIST)\lib
|
||||
$(MAKE_INSTALL) $(DLL) $(DIST)\bin
|
||||
$(MAKE_INSTALL) ..\xul\MailAppShell.html $(DIST)\bin\res\samples
|
||||
$(MAKE_INSTALL) ..\xul\MailAppShellNoTB.html $(DIST)\bin\res\samples
|
||||
$(MAKE_INSTALL) ..\xul\MailFrame.html $(DIST)\bin\res\samples
|
||||
$(MAKE_INSTALL) ..\xul\MailToolbar.xml $(DIST)\bin\res\samples
|
||||
|
||||
clobber::
|
||||
rm -f $(DIST)\lib\$(MODULE).lib
|
||||
rm -f $(DIST)\bin\$(MODULE).dll
|
||||
rm -f $(DIST)\lib\$(MODULE).lib
|
||||
rm -f $(DIST)\bin\$(MODULE).dll
|
||||
rm -f $(DIST)\res\samples\MailAppShell.html
|
||||
rm -f $(DIST)\res\samples\MailAppShellNoTB.html
|
||||
rm -f $(DIST)\res\samples\MailFrame.html
|
||||
rm -f $(DIST)\res\samples\MailToolbar.xml
|
||||
|
|
|
@ -0,0 +1,138 @@
|
|||
<html>
|
||||
<head>
|
||||
|
||||
<script LANGUAGE="JavaScript">
|
||||
<!--
|
||||
|
||||
function SendMailMessage()
|
||||
{
|
||||
var appCore = AppCoresManager.Find("MailCore");
|
||||
if (appCore==null) {
|
||||
appCore = new MailCore();
|
||||
if (appCore != null) {
|
||||
appCore.Init("MailCore");
|
||||
appCore.MailCompleteCallback("MailSent()");
|
||||
appCore.SetWindow(window);
|
||||
appCore.SendMail(document.forms[0].elements[1].value, document.forms[0].elements[2].value, document.forms[0].elements[4].value);
|
||||
}
|
||||
} else {
|
||||
appCore.SendMail(document.forms[0].elements[1].value, document.forms[0].elements[2].value, document.forms[0].elements[4].value);
|
||||
}
|
||||
|
||||
appCore = AppCoresManager.Find("ToolbarCore");
|
||||
if (appCore==null) {
|
||||
appCore = new ToolbarCore();
|
||||
if (appCore != null) {
|
||||
appCore.Init("ToolbarCore");
|
||||
appCore.SetWindow(window.parent.frames[2]);
|
||||
appCore.SetStatus("Mail was Sent!");
|
||||
} else {
|
||||
}
|
||||
} else {
|
||||
appCore.SetStatus("Mail was Sent!");
|
||||
}
|
||||
}
|
||||
|
||||
function MailSent()
|
||||
{
|
||||
|
||||
// Clear Them
|
||||
document.forms[0].elements[1].value = "";
|
||||
document.forms[0].elements[2].value = "";
|
||||
document.forms[0].elements[4].value = "";
|
||||
|
||||
/*dump("top name: "+top.name+"\n");
|
||||
if (window.parent.frames[2] != null) {
|
||||
dump("frame[2] name: "+window.parent.frames[2].name+"\n");
|
||||
var parent = window.parent.frames[0].parent;
|
||||
dump("parent name: "+parent.name+"\n");
|
||||
var doc = window.parent.frames[2].document;
|
||||
var win = window.parent.frames[2];
|
||||
if (doc != null) {
|
||||
//dump("Doc name: "+doc.name);
|
||||
doc.elements[8].value = "xxxxxx";
|
||||
} else {
|
||||
dump("doc was null\n");
|
||||
}
|
||||
} else {
|
||||
dump("parent is null\n");
|
||||
}*/
|
||||
}
|
||||
|
||||
// End -->
|
||||
</script>
|
||||
|
||||
<style type="text/css">
|
||||
/* This style sheet should be in a seperate file */
|
||||
|
||||
FIELDSET {
|
||||
background-color: rgb(192, 192, 192);
|
||||
border: 2px groove rgb(192, 192, 192);
|
||||
display: inline;
|
||||
margin-left: 10px;
|
||||
padding: 2px;
|
||||
}
|
||||
|
||||
LEGEND {
|
||||
background-color:rgb(192, 192, 192);
|
||||
border: none ;
|
||||
padding: 2px;
|
||||
}
|
||||
|
||||
|
||||
BODY,TD {
|
||||
font-family: Sans-Serif;
|
||||
background-color: #C0C0C0;
|
||||
}
|
||||
|
||||
LABEL {
|
||||
background-color: #C0C0C0;
|
||||
margin: 0px 0px 0px 0px;
|
||||
padding-left: 0px;
|
||||
padding-right: 0px;
|
||||
}
|
||||
|
||||
BODY,TD,INPUT {
|
||||
font-size: 9pt;
|
||||
}
|
||||
|
||||
BODY {
|
||||
margin: 0px 0px 0px 0px;
|
||||
}
|
||||
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<center>
|
||||
<p><form ENCTYPE="text/plain" onSubmit="return submitForms()"></center>
|
||||
<TABLE bgcolor="#C0C0C0">
|
||||
<TR>
|
||||
<TD>
|
||||
<fieldset width="100%" height="100%" >
|
||||
<legend align=left> Info </legend>
|
||||
<TABLE width="100%" height="100%">
|
||||
<TR>
|
||||
<TD>Address:</TD>
|
||||
<TD width="100%"><input type="text" name="addrTo" ></TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TD>Subject:</TD>
|
||||
<TD><input type="text" name="subject" id="subject"></TD>
|
||||
</TR>
|
||||
</TABLE>
|
||||
</fieldset>
|
||||
</TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TD>
|
||||
<fieldset width="100%" height="100%" >
|
||||
<legend align=left> Message </legend>
|
||||
<TEXTAREA cols=40 rows=20 name="mailbody"></TEXTAREA>
|
||||
</fieldset>
|
||||
</TD>
|
||||
</TR></TABLE>
|
||||
</form>
|
||||
</center>
|
||||
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,55 @@
|
|||
<?xml version="1.0"?>
|
||||
<window xmlns:xul ="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
|
||||
<?xml-stylesheet href="xul.css" type="text/css"?>
|
||||
<!DOCTYPE window>
|
||||
|
||||
<window>
|
||||
<xul:commands>
|
||||
<xul:command name="nsCmd:MailSendMsg" onCommand="SendMailMessage()"/>
|
||||
<xul:command name="nsCmd:BrowserForward" onCommand="window.forward();"/>
|
||||
<xul:command name="nsCmd:BrowserReload" onCommand="window.reload();"/>
|
||||
<xul:command name="nsCmd:BrowserStop" onCommand="window.stop();"/>
|
||||
<xul:command name="nsCmd:BrowserHome" onCommand="window.home();"/>
|
||||
<xul:command name="nsCmd:BrowserPrint" onCommand="window.print();"/>
|
||||
<!-- other parameters of command are assumed to have
|
||||
some useful initial value -->
|
||||
</xul:commands>
|
||||
|
||||
<xul:toolbox>
|
||||
|
||||
<xul:toolbar>
|
||||
<html:button cmd="nsCmd:MailSendMsg" style="background-color:rgb(192,192,192);">
|
||||
<html:img src="resource:/res/toolbar/sendmsg.gif"/><html:BR/>Send
|
||||
</html:button>
|
||||
<html:button cmd="nsCmd:MailGetMsg" style="background-color:rgb(192,192,192);">
|
||||
<html:img src="resource:/res/toolbar/getmsg.gif"/><html:BR/>GetMsg
|
||||
</html:button>
|
||||
<html:button cmd="nsCmd:MailNewMsg" style="background-color:rgb(192,192,192);">
|
||||
<html:img src="resource:/res/toolbar/newmsg.gif"/><html:BR/>New Msg
|
||||
</html:button>
|
||||
<html:button cmd="nsCmd:MailReply" style="background-color:rgb(192,192,192);">
|
||||
<html:img src="resource:/res/toolbar/reply.gif"/><html:BR/>Reply
|
||||
</html:button>
|
||||
<html:button cmd="nsCmd:MailForward" style="background-color:rgb(192,192,192);">
|
||||
<html:img src="resource:/res/toolbar/forward.gif"/><html:BR/>Forward
|
||||
</html:button>
|
||||
<html:button cmd="nsCmd:BrowserPrint" style="background-color:rgb(192,192,192);">
|
||||
<html:img src="resource:/res/toolbar/TB_Print.gif"/><html:BR/>Print
|
||||
</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:toolbar>
|
||||
<html:FORM>
|
||||
<html:SELECT style="width:200px;">
|
||||
<html:OPTION>INBOX</HTML:OPTION>
|
||||
</html:SELECT>
|
||||
</html:FORM>
|
||||
</xul:toolbox>
|
||||
|
||||
</xul:toolbox>
|
||||
|
||||
</window>
|
||||
|
Загрузка…
Ссылка в новой задаче