зеркало из https://github.com/mozilla/pjs.git
Modified the xul files to reflect the new window tag syntax
This commit is contained in:
Родитель
9a97ad3bf6
Коммит
79493f4697
|
@ -1,52 +0,0 @@
|
|||
<?xml version="1.0"?>
|
||||
<?xml-stylesheet href="common.css" type="text/css"?>
|
||||
|
||||
<!DOCTYPE window>
|
||||
|
||||
<html:div flex="100%">
|
||||
|
||||
<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>
|
|
@ -1,64 +0,0 @@
|
|||
<?xml version="1.0"?>
|
||||
<?xml-stylesheet href="common.css" type="text/css"?>
|
||||
|
||||
<!DOCTYPE window>
|
||||
|
||||
<html:div flex="100%">
|
||||
|
||||
<xul:window
|
||||
xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
|
||||
xmlns="http://www.w3.org/TR/REC-html40">
|
||||
|
||||
|
||||
<script>
|
||||
function InitializeValues()
|
||||
{
|
||||
element = document.getElementById("ProfileName");
|
||||
element.value = parent.profName;
|
||||
|
||||
element = document.getElementById("ProfileDir");
|
||||
element.value = parent.profDir;
|
||||
}
|
||||
|
||||
function commit()
|
||||
{
|
||||
var element;
|
||||
|
||||
element = document.getElementById("ProfileName");
|
||||
parent.SetValue(element.id, element.value);
|
||||
parent.profName = element.value;
|
||||
|
||||
element = document.getElementById("ProfileDir");
|
||||
data += "ProfileDir="+element.value+"%";
|
||||
parent.SetValue(element.id, element.value);
|
||||
parent.profDir = element.value;
|
||||
}
|
||||
|
||||
//setTimeout("InitializeValues()", 0);
|
||||
</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" value="mozProfile" 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>
|
||||
|
||||
</xul:window>
|
||||
|
|
@ -1,63 +0,0 @@
|
|||
<?xml version="1.0"?>
|
||||
<?xml-stylesheet href="common.css" type="text/css"?>
|
||||
|
||||
<!DOCTYPE window>
|
||||
|
||||
<html:div flex="100%">
|
||||
|
||||
<xul:window
|
||||
xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
|
||||
xmlns="http://www.w3.org/TR/REC-html40">
|
||||
|
||||
|
||||
<script>
|
||||
function InitializeValues()
|
||||
{
|
||||
element = document.getElementById("FullName");
|
||||
element.value = parent.fullName;
|
||||
|
||||
element = document.getElementById("Email");
|
||||
element.value = parent.emailAddr;
|
||||
}
|
||||
|
||||
function commit()
|
||||
{
|
||||
var element;
|
||||
|
||||
element = document.getElementById("FullName");
|
||||
parent.SetValue(element.id, element.value);
|
||||
parent.fullName = element.value;
|
||||
|
||||
element = document.getElementById("Email");
|
||||
data += "ProfileDir="+element.value+"%";
|
||||
parent.SetValue(element.id, element.value);
|
||||
parent.emailAddr = element.value;
|
||||
}
|
||||
|
||||
setTimeout("InitializeValues()", 0);
|
||||
</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>
|
|
@ -1,58 +0,0 @@
|
|||
<?xml version="1.0"?>
|
||||
<?xml-stylesheet href="common.css" type="text/css"?>
|
||||
|
||||
<!DOCTYPE window>
|
||||
|
||||
<html:div flex="100%">
|
||||
|
||||
<xul:window
|
||||
xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
|
||||
xmlns="http://www.w3.org/TR/REC-html40">
|
||||
|
||||
|
||||
<script>
|
||||
function InitializeValues()
|
||||
{
|
||||
element = document.getElementById("SMTP");
|
||||
element.value = parent.smtpVal;
|
||||
}
|
||||
|
||||
function commit()
|
||||
{
|
||||
var element;
|
||||
|
||||
element = document.getElementById("SMTP");
|
||||
parent.SetValue(element.id, element.value);
|
||||
parent.smtpVal = element.value;
|
||||
}
|
||||
|
||||
setTimeout("InitializeValues()", 0);
|
||||
</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 Finish and start apprunner again for this new profile
|
||||
to be used.
|
||||
</b>
|
||||
</p>
|
||||
|
||||
</xul:window>
|
|
@ -1,51 +0,0 @@
|
|||
<?xml version="1.0"?>
|
||||
<?xml-stylesheet href="common.css" type="text/css"?>
|
||||
|
||||
<!DOCTYPE window>
|
||||
|
||||
<html:div flex="100%">
|
||||
|
||||
<xul:window
|
||||
xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
|
||||
xmlns="http://www.w3.org/TR/REC-html40">
|
||||
|
||||
|
||||
<script>
|
||||
function InitializeValues()
|
||||
{
|
||||
element = document.getElementById("SMTP");
|
||||
element.value = parent.smtpVal;
|
||||
}
|
||||
|
||||
function commit()
|
||||
{
|
||||
var element;
|
||||
|
||||
element = document.getElementById("SMTP");
|
||||
parent.SetValue(element.id, element.value);
|
||||
parent.smtpVal = element.value;
|
||||
}
|
||||
|
||||
setTimeout("InitializeValues()", 0);
|
||||
</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>
|
||||
|
||||
</xul:window>
|
|
@ -3,14 +3,13 @@
|
|||
|
||||
<!DOCTYPE window>
|
||||
|
||||
<html:div flex="100%">
|
||||
|
||||
<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 = "";
|
||||
|
@ -115,4 +114,6 @@ function Finish()
|
|||
<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>
|
||||
|
||||
|
||||
</html:div>
|
||||
</window>
|
||||
|
|
|
@ -1,105 +0,0 @@
|
|||
<?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="Profile Manager" align="vertical">
|
||||
|
||||
|
||||
<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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
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");
|
||||
|
||||
|
||||
//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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
</html:script>
|
||||
|
||||
<html:iframe src="content1.xul" name="frame1" width="100%" height="350px"> </html:iframe>
|
||||
<html:iframe src="navigationManagerStart.xul" name="frame2" width="100%" height="90px"> </html:iframe>
|
||||
|
||||
</window>
|
|
@ -1,109 +0,0 @@
|
|||
<?xml version="1.0"?>
|
||||
<?xml-stylesheet href="common.css" type="text/css"?>
|
||||
|
||||
<!DOCTYPE window>
|
||||
|
||||
|
||||
<html:div flex="100%">
|
||||
|
||||
|
||||
<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 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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
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");
|
||||
|
||||
|
||||
//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);
|
||||
profileCore.StartCommunicator(profName);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
</html:script>
|
||||
|
||||
<html:iframe src="content1.xul" name="frame1" width="100%" height="350px"> </html:iframe>
|
||||
<html:iframe src="navStartPreg.xul" name="frame2" width="100%" height="100px"> </html:iframe>
|
||||
|
||||
</window>
|
|
@ -4,14 +4,12 @@
|
|||
<!DOCTYPE window>
|
||||
|
||||
|
||||
<html:div flex="100%">
|
||||
|
||||
|
||||
<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:div flex="100%">
|
||||
|
||||
<html:script>
|
||||
var count = parent.count;
|
||||
|
@ -70,4 +68,5 @@
|
|||
<html:button onclick="ExitWizard();"> Finish </html:button>
|
||||
</html:center>
|
||||
|
||||
</html:div>
|
||||
</window>
|
||||
|
|
|
@ -4,15 +4,12 @@
|
|||
<!DOCTYPE window>
|
||||
|
||||
|
||||
<html:div flex="100%">
|
||||
|
||||
|
||||
|
||||
<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:div flex="100%">
|
||||
|
||||
<html:script>
|
||||
var count = parent.count;
|
||||
|
@ -60,4 +57,5 @@
|
|||
<html:button onclick="BrowserLoadURL('Next');"> Next </html:button>
|
||||
</html:center>
|
||||
|
||||
</html:div>
|
||||
</window>
|
||||
|
|
|
@ -1,75 +0,0 @@
|
|||
<?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>
|
|
@ -3,13 +3,12 @@
|
|||
|
||||
<!DOCTYPE window>
|
||||
|
||||
<html:div flex="100%">
|
||||
|
||||
<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:div flex="100%">
|
||||
|
||||
<html:script>
|
||||
var count = parent.count;
|
||||
|
@ -66,4 +65,5 @@
|
|||
<html:button onclick="ExitWizard();"> Finish </html:button>
|
||||
</html:center>
|
||||
|
||||
</html:div>
|
||||
</window>
|
||||
|
|
|
@ -3,13 +3,12 @@
|
|||
|
||||
<!DOCTYPE window>
|
||||
|
||||
<html:div flex="100%">
|
||||
|
||||
<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:div flex="100%">
|
||||
|
||||
<html:script>
|
||||
var count = parent.count;
|
||||
|
@ -45,7 +44,7 @@
|
|||
{
|
||||
parent.frames[0].commit();
|
||||
parent.Finish();
|
||||
parent.location.replace("resource:/res/profile/profileManager.html");
|
||||
parent.location.replace("resource:/res/profile/pm.xul");
|
||||
}
|
||||
</html:script>
|
||||
|
||||
|
@ -55,4 +54,5 @@
|
|||
<html:button onclick="ExitWizard();"> Finish </html:button>
|
||||
</html:center>
|
||||
|
||||
</html:div>
|
||||
</window>
|
|
@ -3,13 +3,12 @@
|
|||
|
||||
<!DOCTYPE window>
|
||||
|
||||
<html:div flex="100%">
|
||||
|
||||
<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:div flex="100%">
|
||||
|
||||
<html:script>
|
||||
var count = parent.count;
|
||||
|
@ -57,4 +56,5 @@
|
|||
<html:button onclick="BrowserLoadURL('Next');"> Next </html:button>
|
||||
</html:center>
|
||||
|
||||
</html:div>
|
||||
</window>
|
|
@ -3,14 +3,13 @@
|
|||
|
||||
<!DOCTYPE window>
|
||||
|
||||
<html:div flex="100%">
|
||||
|
||||
|
||||
<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:div flex="100%">
|
||||
|
||||
<html:script>
|
||||
var count = parent.count;
|
||||
|
@ -58,4 +57,5 @@
|
|||
<html:button onclick="BrowserLoadURL('Next');"> Next </html:button>
|
||||
</html:center>
|
||||
|
||||
</html:div>
|
||||
</window>
|
||||
|
|
|
@ -2,13 +2,12 @@
|
|||
<?xml-stylesheet href="chrome://global/skin/xul.css" type="text/css"?>
|
||||
<?xml-stylesheet href="pm.css" type="text/css"?>
|
||||
|
||||
<html:div flex="100%">
|
||||
|
||||
<window
|
||||
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">
|
||||
|
||||
<html:div flex="100%">
|
||||
|
||||
<html:script>
|
||||
var profileCore = "";
|
||||
|
@ -53,12 +52,32 @@ function MigrateProfile(override)
|
|||
function MigrateAllProfiles()
|
||||
{
|
||||
var body = document.getElementById("theTreeBody");
|
||||
var child = body.firstChild;
|
||||
dump("I am here 1\n");
|
||||
dump("body: "+body);
|
||||
|
||||
var child = body.getChild;
|
||||
dump("I am here 2\n");
|
||||
dump("child: "+child+"\n");
|
||||
|
||||
while (child)
|
||||
{
|
||||
dump("Inside while loop\n\n");
|
||||
dump("Child : " + child);
|
||||
|
||||
var var3 = child.getAttribute("rowMigrate");
|
||||
dump("var3: "+var3+"\n");
|
||||
|
||||
if (child.getAttribute("rowMigrate") == "true")
|
||||
{
|
||||
dump("Child to be migrated: "+child+"\n");
|
||||
|
||||
var var1 = child.getAttribute("rowName");
|
||||
var var2 = child.getAttribute("rowMigrate");
|
||||
dump("var1: "+var1+"\n");
|
||||
dump("var1: "+var2+"\n");
|
||||
|
||||
MigrateProfile(child);
|
||||
}
|
||||
child = child.nextSibling;
|
||||
}
|
||||
}
|
||||
|
@ -102,6 +121,27 @@ function DeleteProfile()
|
|||
this.location.replace(this.location);
|
||||
}
|
||||
|
||||
function StartCommunicator()
|
||||
{
|
||||
//dump("************Inside Start Communicator prof\n");
|
||||
if (!selected)
|
||||
{
|
||||
dump("Select a profile to migrate.\n");
|
||||
return;
|
||||
}
|
||||
|
||||
var migrate = selected.getAttribute("rowMigrate");
|
||||
var name = selected.getAttribute("rowName");
|
||||
|
||||
if (migrate == "true")
|
||||
{
|
||||
dump("Migrate this profile before using it to start communicator.\n");
|
||||
return;
|
||||
}
|
||||
profileCore.StartCommunicator(name);
|
||||
ExitApp();
|
||||
}
|
||||
|
||||
function ExitApp()
|
||||
{
|
||||
var toolkitCore = XPAppCoresManager.Find("toolkitCore");
|
||||
|
@ -209,6 +249,27 @@ function openRename()
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
function ConfirmDelete() {
|
||||
if (!selected)
|
||||
{
|
||||
dump("Select a profile to delete.\n");
|
||||
return;
|
||||
}
|
||||
|
||||
var migrate = selected.getAttribute("rowMigrate");
|
||||
var name = selected.getAttribute("rowName");
|
||||
|
||||
if (migrate == "true")
|
||||
{
|
||||
dump("Migrate this profile before deleting it.\n");
|
||||
return;
|
||||
}
|
||||
|
||||
var win = window.openDialog('pmDelete.xul', 'Deleter', 'chrome');
|
||||
return win;
|
||||
}
|
||||
|
||||
</html:script>
|
||||
|
||||
<popup id="deletePopup">
|
||||
|
@ -270,7 +331,7 @@ bookmarks, and stored messages in your personal profile.
|
|||
<titledbutton value="New" class="push" onclick="CreateProfile();" />
|
||||
<titledbutton value="Migrate" class="push" onclick="MigrateProfile();" />
|
||||
<titledbutton value="Rename" class="push" onclick="openRename();" />
|
||||
<titledbutton value="Delete" class="push" popup="deletePopup" />
|
||||
<titledbutton value="Delete" class="push" onclick="ConfirmDelete();" />
|
||||
</html:center>
|
||||
|
||||
<html:p />
|
||||
|
@ -279,9 +340,10 @@ bookmarks, and stored messages in your personal profile.
|
|||
|
||||
<box align="horizontal" style="width: 100%">
|
||||
<html:div flex="100%"/>
|
||||
<titledbutton value="Migrate All" class="push" popup="migratePopup" />
|
||||
<titledbutton value="Start" class="push" onclick="window.close();" />
|
||||
<titledbutton value="Start" class="push" onclick="StartCommunicator();" />
|
||||
<titledbutton value="Exit" class="push" onclick="ExitApp();" />
|
||||
<html:div style="width: 10px"/>
|
||||
</box>
|
||||
|
||||
</html:div>
|
||||
</window>
|
||||
|
|
|
@ -0,0 +1,21 @@
|
|||
<?xml version="1.0"?>
|
||||
<?xml-stylesheet href="chrome:/global/skin/xul.css" type="text/css"?>
|
||||
<?xml-stylesheet href="pm.css" type="text/css"?>
|
||||
|
||||
<window
|
||||
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"
|
||||
title="Delete Profile" width="300" height="120">
|
||||
|
||||
<html:div flex="100%">
|
||||
|
||||
<html:center>
|
||||
Confirm delete?
|
||||
<html:br />
|
||||
<titledbutton value="Ok" class="push" onclick="opener.DeleteProfile();window.close();" />
|
||||
<titledbutton value="Cancel" class="push" onclick="window.close();" />
|
||||
</html:center>
|
||||
|
||||
</html:div>
|
||||
</window>
|
|
@ -2,14 +2,14 @@
|
|||
<?xml-stylesheet href="chrome:/global/skin/xul.css" type="text/css"?>
|
||||
<?xml-stylesheet href="pm.css" type="text/css"?>
|
||||
|
||||
<html:div flex="100%">
|
||||
|
||||
<window
|
||||
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"
|
||||
title="Rename Profile" width="300" height="120">
|
||||
|
||||
<html:div flex="100%">
|
||||
|
||||
<html:center>
|
||||
Enter a new name for the profile: <html:input type="text" id="NewName" size="20" />
|
||||
<html:br />
|
||||
|
@ -17,4 +17,5 @@ Enter a new name for the profile: <html:input type="text" id="NewName" size="20"
|
|||
<titledbutton value="Cancel" class="push" onclick="window.close();" />
|
||||
</html:center>
|
||||
|
||||
</html:div>
|
||||
</window>
|
||||
|
|
|
@ -1,63 +0,0 @@
|
|||
<?xml version="1.0"?>
|
||||
<?xml-stylesheet href="common.css" type="text/css"?>
|
||||
|
||||
<!DOCTYPE window>
|
||||
|
||||
<html:div flex="100%">
|
||||
|
||||
|
||||
<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="Profile Manager">
|
||||
|
||||
|
||||
<html:script>
|
||||
var curProfileName;
|
||||
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");
|
||||
}
|
||||
}
|
||||
|
||||
function GetProfileCore()
|
||||
{
|
||||
//dump("****************In GetProfileCore\n");
|
||||
return profileCore;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function SetProfileName(profName)
|
||||
{
|
||||
//dump("****************In SetProfileName\n");
|
||||
//dump("********************************ProfileName: "+profName+"\n");
|
||||
curProfileName = profName;
|
||||
}
|
||||
|
||||
function GetProfileName()
|
||||
{
|
||||
//dump("****************In GetProfileName\n");
|
||||
//dump("********************************ProfileName: "+curProfileName+"\n");
|
||||
|
||||
return curProfileName;
|
||||
}
|
||||
|
||||
</html:script>
|
||||
|
||||
<html:iframe src="profileManager.html" name="profileManager" width="100%" height="500px"> </html:iframe>
|
||||
|
||||
</window>
|
Загрузка…
Ссылка в новой задаче