Initial revision.
This commit is contained in:
Родитель
b7e7ccb12c
Коммит
aad0bc3f89
|
@ -0,0 +1,44 @@
|
|||
#!gmake
|
||||
#
|
||||
# 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=../..
|
||||
topsrcdir = @top_srcdir@
|
||||
srcdir = @srcdir@
|
||||
VPATH = @srcdir@
|
||||
|
||||
include $(DEPTH)/config/autoconf.mk
|
||||
|
||||
include $(topsrcdir)/config/config.mk
|
||||
|
||||
include $(topsrcdir)/config/rules.mk
|
||||
|
||||
FILES = \
|
||||
content1.xul \
|
||||
content2.xul \
|
||||
content3.xul \
|
||||
content4.xul \
|
||||
cpw.xul \
|
||||
navigation.xul \
|
||||
common.css \
|
||||
$(NULL)
|
||||
|
||||
|
||||
FILES := $(addprefix $(srcdir)/, $(FILES))
|
||||
|
||||
install::
|
||||
$(INSTALL) $(FILES) $(DIST)/bin/res/profile
|
||||
|
|
@ -0,0 +1,50 @@
|
|||
<?xml version="1.0"?>
|
||||
<?xml-stylesheet href="common.css" type="text/css"?>
|
||||
|
||||
<!DOCTYPE window>
|
||||
|
||||
<xul:window
|
||||
xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
|
||||
xmlns="http://www.w3.org/TR/REC-html40">
|
||||
|
||||
|
||||
<script>
|
||||
function commit()
|
||||
{
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
<b>Communicator Profile Manager</b>
|
||||
<p>
|
||||
Creating a New Profile
|
||||
<br></br>
|
||||
Communicator stores information about your settings, preferences, bookmarks and
|
||||
<br></br>
|
||||
stored messages in your personal profile.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
If you are sharing this copy of Communicator with other users, you can use profiles
|
||||
<br></br>
|
||||
to keep each user's information separate. To do this, each user should create his or
|
||||
<br></br>
|
||||
her own profile and optionally protect it with a password.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
If you are the only person using this copy of Communicator, you must create atleast
|
||||
<br></br>
|
||||
one profile. If you would like, you can create multiple profiles for yourself to store
|
||||
<br></br>
|
||||
different sets of setting and preferences. For example, you may want to have separate
|
||||
<br></br>
|
||||
profiles for business and personal use.
|
||||
</p>
|
||||
|
||||
|
||||
<p>
|
||||
To begin Creating your profile, click Next.
|
||||
</p>
|
||||
|
||||
</xul:window>
|
|
@ -0,0 +1,52 @@
|
|||
<?xml version="1.0"?>
|
||||
<?xml-stylesheet href="common.css" type="text/css"?>
|
||||
|
||||
<!DOCTYPE window>
|
||||
|
||||
<xul:window
|
||||
xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
|
||||
xmlns="http://www.w3.org/TR/REC-html40">
|
||||
|
||||
|
||||
<script>
|
||||
function commit()
|
||||
{
|
||||
var element;
|
||||
|
||||
element = document.getElementById("ProfileName");
|
||||
parent.SetValue(element.id, element.value);
|
||||
|
||||
element = document.getElementById("ProfileDir");
|
||||
data += "ProfileDir="+element.value+"%";
|
||||
parent.SetValue(element.id, element.value);
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
<p>
|
||||
If you create several profiles you can tell them apart by the profile names.
|
||||
<br></br>
|
||||
You may use the name provided here or use one of your own.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
Enter New Profile name
|
||||
<br></br>
|
||||
<input type="text" id="ProfileName" size="30"/>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
Your user settings, preferences, bookmarks and stored messages will be
|
||||
<br></br>
|
||||
stored in the directory below. We recommend that you use the default
|
||||
<br></br>
|
||||
directory (by leaving the box blank).
|
||||
<br></br>
|
||||
<input type="text" id="ProfileDir" size="30"/>
|
||||
</p>
|
||||
|
||||
|
||||
<p>
|
||||
Please click Next to continue
|
||||
</p>
|
||||
</xul:window>
|
|
@ -0,0 +1,48 @@
|
|||
<?xml version="1.0"?>
|
||||
<?xml-stylesheet href="common.css" type="text/css"?>
|
||||
|
||||
<!DOCTYPE window>
|
||||
|
||||
<xul:window
|
||||
xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
|
||||
xmlns="http://www.w3.org/TR/REC-html40">
|
||||
|
||||
|
||||
<script>
|
||||
function commit()
|
||||
{
|
||||
var element;
|
||||
|
||||
element = document.getElementById("FullName");
|
||||
parent.SetValue(element.id, element.value);
|
||||
|
||||
element = document.getElementById("Email");
|
||||
data += "ProfileDir="+element.value+"%";
|
||||
parent.SetValue(element.id, element.value);
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
<p>
|
||||
Please Enter name and information for the profile. This information will be
|
||||
<br></br>
|
||||
saved in the preferences of the new profile.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
Full name
|
||||
<br></br>
|
||||
<input type="text" id="FullName" size="30"/> (e.g. John Smith)
|
||||
</p>
|
||||
|
||||
<p>
|
||||
Email Address if available
|
||||
<br></br>
|
||||
<input type="text" id="Email" size="30"/> (e.g. jsmith@company.com)
|
||||
</p>
|
||||
|
||||
<p>
|
||||
Please click Next to continue
|
||||
</p>
|
||||
|
||||
</xul:window>
|
|
@ -0,0 +1,47 @@
|
|||
<?xml version="1.0"?>
|
||||
<?xml-stylesheet href="common.css" type="text/css"?>
|
||||
|
||||
<!DOCTYPE window>
|
||||
|
||||
<xul:window
|
||||
xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
|
||||
xmlns="http://www.w3.org/TR/REC-html40">
|
||||
|
||||
|
||||
<script>
|
||||
function commit()
|
||||
{
|
||||
var element;
|
||||
|
||||
element = document.getElementById("SMTP");
|
||||
parent.SetValue(element.id, element.value);
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
<p>
|
||||
Communicator now has enough information to setup your basic profile.
|
||||
<br></br>
|
||||
However, Communicator needs additional information if you want to
|
||||
<br></br>
|
||||
send or receive email or use newsgroups. If you do not know the
|
||||
<br></br>
|
||||
information requested, please contact your system administrator or
|
||||
<br></br>
|
||||
Internet Service Provider.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
Outgoing SMTP server
|
||||
<br></br>
|
||||
<input type="text" id="SMTP" size="30"/>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<b>
|
||||
Click Exit and start apprunner again for this new profile
|
||||
to be used.
|
||||
</b>
|
||||
</p>
|
||||
|
||||
</xul:window>
|
|
@ -0,0 +1,110 @@
|
|||
<?xml version="1.0"?>
|
||||
<?xml-stylesheet href="common.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"
|
||||
title="CreateProfile Wizard">
|
||||
|
||||
|
||||
<html:script>
|
||||
|
||||
var toolkitCore;
|
||||
nameGlobal = new Array();
|
||||
nameArray = new Array();
|
||||
count = 0;
|
||||
|
||||
function Startup()
|
||||
{
|
||||
dump("Doing Startup...\n");
|
||||
toolkitCore = XPAppCoresManager.Find("toolkitCore");
|
||||
if (!toolkitCore) {
|
||||
toolkitCore = new ToolkitCore();
|
||||
|
||||
if (toolkitCore) {
|
||||
toolkitCore.Init("toolkitCore");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function SetValue(name, value)
|
||||
{
|
||||
dump("Inside SetValue\n");
|
||||
var found = false;
|
||||
for (i = 0; i !=count; i++) {
|
||||
if (nameArray[i] == name) {
|
||||
dump("Name exists: "+nameGlobal[i]+"\n");
|
||||
nameGlobal[i] = name+"="+value+"%";
|
||||
dump("New values: "+name+" "+value+"\n");
|
||||
found = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if (!found) {
|
||||
dump("Name does not exist\n");
|
||||
nameGlobal[count] = name+"="+value+"%";
|
||||
dump("Name Value: "+name+" "+value+"\n");
|
||||
|
||||
nameArray[count] = name;
|
||||
count++;
|
||||
}
|
||||
}
|
||||
|
||||
function Finish()
|
||||
{
|
||||
var data = "";
|
||||
var i = 0;
|
||||
dump("before for loop\n");
|
||||
for (i = 0; i !=count; i++) {
|
||||
data = data+nameGlobal[i];
|
||||
}
|
||||
dump("DATA IS: "+data+"\n");
|
||||
|
||||
|
||||
dump("calling javascript reflection\n");
|
||||
var profileCore = XPAppCoresManager.Find("ProfileCore");
|
||||
if (!profileCore)
|
||||
{
|
||||
dump("!profileCore\n");
|
||||
profileCore = new ProfileCore();
|
||||
dump("!profileCore\n");
|
||||
|
||||
if (profileCore) {
|
||||
dump("after ! yes profileCore in if loop\n");
|
||||
profileCore.Init("ProfileCore");
|
||||
}
|
||||
else {
|
||||
dump("profile not created\n");
|
||||
}
|
||||
}
|
||||
|
||||
if (profileCore) {
|
||||
dump("yes profileCore\n");
|
||||
profileCore.CreateNewProfile(data);
|
||||
}
|
||||
|
||||
toolkitCore = XPAppCoresManager.Find("toolkitCore");
|
||||
if (!toolkitCore) {
|
||||
toolkitCore = new ToolkitCore();
|
||||
|
||||
if (toolkitCore) {
|
||||
toolkitCore.Init("toolkitCore");
|
||||
}
|
||||
}
|
||||
if (toolkitCore) {
|
||||
toolkitCore.CloseWindow(parent);
|
||||
}
|
||||
}
|
||||
|
||||
</html:script>
|
||||
|
||||
<html:iframe src="content1.xul" name="frame1" width="100%" height="410px"> </html:iframe>
|
||||
<html:iframe src="navigation.xul" name="frame2" width="100%" height="90px"> </html:iframe>
|
||||
|
||||
</window>
|
|
@ -0,0 +1,34 @@
|
|||
#!gmake
|
||||
#
|
||||
# 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=..\..
|
||||
MODULE=profile
|
||||
|
||||
include <$(DEPTH)\config\rules.mak>
|
||||
|
||||
FILES=\
|
||||
content1.xul \
|
||||
content2.xul \
|
||||
content3.xul \
|
||||
content4.xul \
|
||||
cpw.xul \
|
||||
navigation.xul \
|
||||
common.css \
|
||||
$(NULL)
|
||||
|
||||
install::
|
||||
-for %i in ($(FILES:/=\)) do @$(MAKE_INSTALL) %i $(DIST)\bin\res\rdf
|
|
@ -0,0 +1,75 @@
|
|||
<?xml version="1.0"?>
|
||||
<?xml-stylesheet href="common.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">
|
||||
|
||||
|
||||
<html:script>
|
||||
var count = 0;
|
||||
|
||||
pages = new Object();
|
||||
pages[0] = "resource:/res/profile/content1.xul";
|
||||
pages[1] = "resource:/res/profile/content2.xul";
|
||||
pages[2] = "resource:/res/profile/content3.xul";
|
||||
pages[3] = "resource:/res/profile/content4.xul";
|
||||
|
||||
function BrowserLoadURL(func)
|
||||
{
|
||||
if (func == "Prev") {
|
||||
if (count > 0) {
|
||||
count = count - 1;
|
||||
}
|
||||
}
|
||||
|
||||
if (func == "Next") {
|
||||
if (count != 3) {
|
||||
count = count + 1;
|
||||
}
|
||||
}
|
||||
|
||||
parent.frames[0].commit();
|
||||
parent.frames[0].location.replace( pages[count] );
|
||||
}
|
||||
|
||||
|
||||
function SetValue(name, value)
|
||||
{
|
||||
dump("Set Value");
|
||||
dump("name: "+name+"\n");
|
||||
dump("value: "+value+"\n");
|
||||
}
|
||||
|
||||
|
||||
function ExitWizard()
|
||||
{
|
||||
parent.frames[0].commit();
|
||||
parent.Finish();
|
||||
var toolkitCore = XPAppCoresManager.Find("toolkitCore");
|
||||
if (!toolkitCore) {
|
||||
toolkitCore = new ToolkitCore();
|
||||
|
||||
if (toolkitCore) {
|
||||
toolkitCore.Init("toolkitCore");
|
||||
}
|
||||
}
|
||||
|
||||
if (toolkitCore) {
|
||||
toolkitCore.CloseWindow(parent);
|
||||
}
|
||||
}
|
||||
</html:script>
|
||||
|
||||
|
||||
<html:center>
|
||||
<html:button onclick="BrowserLoadURL('Prev');"> Prev </html:button>
|
||||
<html:button onclick="BrowserLoadURL('Next');"> Next </html:button>
|
||||
<html:button onclick="ExitWizard();"> Exit </html:button>
|
||||
</html:center>
|
||||
|
||||
</window>
|
Загрузка…
Ссылка в новой задаче