New UI for create profile as part of the meta wizard

This commit is contained in:
gayatrib%netscape.com 1999-08-31 00:20:20 +00:00
parent e9fc3b8039
commit f0b7d7fb08

View File

@ -1,119 +1,51 @@
<?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:div flex="100%">
<html:script>
var profName = "";
var profDir = "";
var fullName = "";
var emailAddr = "";
var smtpVal = "";
var toolkitCore;
nameGlobal = new Array();
nameArray = new Array();
var count = 0;
var dataCount = 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 !=dataCount; i++) {
if (nameArray[i] == name) {
//dump("Name exists: "+nameGlobal[i]+"\n");
nameGlobal[i] = name+"="+value+"%";
//dump("New values: "+name+" "+value+"\n");
found = true;
break;
}
}
<?xml version="1.0"?>
<?xml-stylesheet href="chrome://global/skin/xul.css" type="text/css"?>
<?xml-stylesheet href="cpw.css" type="text/css"?>
if (!found) {
//dump("Name does not exist\n");
nameGlobal[dataCount] = name+"="+value+"%";
//dump("Name Value: "+name+" "+value+"\n");
nameArray[dataCount] = name;
dataCount++;
}
}
function Finish()
{
var data = "";
var i = 0;
//dump("before for loop\n");
for (i = 0; i !=dataCount; i++) {
data = data+nameGlobal[i];
}
dump("DATA IS: "+data+"\n");
<!DOCTYPE window
[
<!ENTITY window.title.label "Test Example">
<!ENTITY newprofile.title "New Profile">
<!ENTITY dialup.title "Dialup">
<!ENTITY mailnews.title "Mail News">
<!ENTITY addrbook.title "Address Book">
<!ENTITY previous.label "Previous">
<!ENTITY next.label "Next">
<!ENTITY cancel.label "Cancel">
<!ENTITY finish.label "Finish">
]>
//dump("calling javascript reflection\n");
var profileCore = XPAppCoresManager.Find("ProfileCore");
if (!profileCore)
{
//dump("!profileCore\n");
profileCore = new ProfileCore();
//dump("!profileCore\n");
<window title="&window.title.label;" style="width: 100%; height: 100%" align="vertical"
xmlns:html="http://www.w3.org/TR/REC-html40"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
onload="loadPage('test-content1_1.xul')"
width="500" height="400">
if (profileCore) {
//dump("after ! yes profileCore in if loop\n");
profileCore.Init("ProfileCore");
}
else {
dump("profile not created\n");
}
}
<html:script src="cpw.js" />
if (profileCore) {
//dump("yes profileCore\n");
profileCore.CreateNewProfile(data);
profileCore.StartCommunicator(profName);
}
toolkitCore = XPAppCoresManager.Find("toolkitCore");
if (!toolkitCore) {
toolkitCore = new ToolkitCore();
if (toolkitCore) {
toolkitCore.Init("toolkitCore");
}
}
if (toolkitCore) {
toolkitCore.CloseWindow(parent);
}
}
<tabcontrol align="vertical">
<tabbox align="horizontal">
<tab onclick="loadPage('test-content1_1.xul');">&newprofile.title;</tab>
<tab onclick="loadPage('test-tab2.xul');">&dialup.title;</tab>
<tab onclick="loadPage('test-tab3.xul');">&mailnews.title;</tab>
<tab onclick="loadPage('test-tab4.xul');">&addrbook.title;</tab>
</tabbox>
<tabpanel />
</tabcontrol>
</html:script>
<html:iframe src="about:blank" height="400" width="100%" style="height: 400; width: 100%;" name="content" id="content" scrolling="auto"/>
<html:iframe src="content1.xul" name="frame1" width="100%" height="350px"> </html:iframe>
<html:iframe src="navigationStart.xul" name="frame2" width="100%" height="100px"> </html:iframe>
<spring flex="100%"/>
<box align="horizontal">
<titledbutton id="dialog.previous" value="&previous.label;" onclick="onBack()" align="left" style="margin-top: 1em;"/>
<titledbutton id="dialog.next" value="&next.label;" onclick="onNext()" align="left" style="margin-top: 1em;"/>
<titledbutton id="dialog.cancel" value="&cancel.label;" onclick="cancelApp()" align="left" style=" margin-top: 1em;"/>
<titledbutton id="dialog.finish" value="&finish.label;" onclick="Finish(opener)" align="left" style=" margin-top: 1em;"/>
</box>
</html:div>
</window>