mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-27 04:38:02 +00:00
Modified the xul files to reflect the new window tag syntax
This commit is contained in:
parent
a500f95c37
commit
af6c32aad3
@ -3,50 +3,58 @@
|
||||
|
||||
<!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: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">
|
||||
<html:script>
|
||||
function foo()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
<script>
|
||||
function commit()
|
||||
{
|
||||
}
|
||||
</script>
|
||||
|
||||
setTimeout("foo()", 0);
|
||||
</html:script>
|
||||
|
||||
|
||||
<b>Communicator Profile Manager</b>
|
||||
<p>
|
||||
<html:b>Communicator Profile Manager</html:b>
|
||||
<html:p>
|
||||
Creating a New Profile
|
||||
<br></br>
|
||||
<html:br></html:br>
|
||||
Communicator stores information about your settings, preferences, bookmarks and
|
||||
<br></br>
|
||||
<html:br></html:br>
|
||||
stored messages in your personal profile.
|
||||
</p>
|
||||
</html:p>
|
||||
|
||||
<p>
|
||||
<html:p>
|
||||
If you are sharing this copy of Communicator with other users, you can use profiles
|
||||
<br></br>
|
||||
<html:br></html:br>
|
||||
to keep each user's information separate. To do this, each user should create his or
|
||||
<br></br>
|
||||
<html:br></html:br>
|
||||
her own profile and optionally protect it with a password.
|
||||
</p>
|
||||
</html:p>
|
||||
|
||||
<p>
|
||||
<html:p>
|
||||
If you are the only person using this copy of Communicator, you must create atleast
|
||||
<br></br>
|
||||
<html:br></html:br>
|
||||
one profile. If you would like, you can create multiple profiles for yourself to store
|
||||
<br></br>
|
||||
<html:br></html:br>
|
||||
different sets of setting and preferences. For example, you may want to have separate
|
||||
<br></br>
|
||||
<html:br></html:br>
|
||||
profiles for business and personal use.
|
||||
</p>
|
||||
</html:p>
|
||||
|
||||
|
||||
<p>
|
||||
<html:p>
|
||||
To begin Creating your profile, click Next.
|
||||
</p>
|
||||
</html:p>
|
||||
|
||||
</xul:window>
|
||||
</html:div>
|
||||
</window>
|
@ -3,14 +3,18 @@
|
||||
|
||||
<!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: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">
|
||||
<html:script>
|
||||
function foo()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
<script>
|
||||
function InitializeValues()
|
||||
{
|
||||
element = document.getElementById("ProfileName");
|
||||
@ -34,31 +38,31 @@ function commit()
|
||||
parent.profDir = element.value;
|
||||
}
|
||||
|
||||
//setTimeout("InitializeValues()", 0);
|
||||
</script>
|
||||
setTimeout("foo()", 0);
|
||||
</html:script>
|
||||
|
||||
|
||||
<p>
|
||||
<html:p>
|
||||
If you create several profiles you can tell them apart by the profile names.
|
||||
<br></br>
|
||||
<html:br></html:br>
|
||||
You may use the name provided here or use one of your own.
|
||||
</p>
|
||||
</html:p>
|
||||
|
||||
<p>
|
||||
<html:p>
|
||||
Enter New Profile name
|
||||
<br></br>
|
||||
<input type="text" id="ProfileName" value="mozProfile" size="30"/>
|
||||
</p>
|
||||
<html:br></html:br>
|
||||
<html:input type="text" id="ProfileName" value="mozProfile" size="30"/>
|
||||
</html:p>
|
||||
|
||||
<p>
|
||||
<html:p>
|
||||
Your user settings, preferences, bookmarks and stored messages will be
|
||||
<br></br>
|
||||
<html:br></html:br>
|
||||
stored in the directory below. We recommend that you use the default
|
||||
<br></br>
|
||||
<html:br></html:br>
|
||||
directory (by leaving the box blank).
|
||||
<br></br>
|
||||
<input type="text" id="ProfileDir" size="30"/>
|
||||
</p>
|
||||
|
||||
</xul:window>
|
||||
<html:br></html:br>
|
||||
<html:input type="text" id="ProfileDir" size="30"/>
|
||||
</html:p>
|
||||
|
||||
</html:div>
|
||||
</window>
|
||||
|
@ -3,12 +3,11 @@
|
||||
|
||||
<!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">
|
||||
|
||||
<html:div flex="100%">
|
||||
|
||||
<script>
|
||||
function InitializeValues()
|
||||
@ -60,4 +59,5 @@ Email Address if available
|
||||
Please click Next to continue
|
||||
</p>
|
||||
|
||||
</html:div>
|
||||
</xul:window>
|
@ -3,12 +3,11 @@
|
||||
|
||||
<!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">
|
||||
|
||||
<html:div flex="100%">
|
||||
|
||||
<script>
|
||||
function InitializeValues()
|
||||
@ -55,4 +54,5 @@ to be used.
|
||||
</b>
|
||||
</p>
|
||||
|
||||
</html:div>
|
||||
</xul:window>
|
||||
|
@ -3,12 +3,11 @@
|
||||
|
||||
<!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">
|
||||
|
||||
<html:div flex="100%">
|
||||
|
||||
<script>
|
||||
function InitializeValues()
|
||||
@ -48,4 +47,5 @@ Outgoing SMTP server
|
||||
<input type="text" id="SMTP" size="30"/>
|
||||
</p>
|
||||
|
||||
</html:div>
|
||||
</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>
|
||||
|
@ -9,6 +9,7 @@
|
||||
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
|
||||
title="Profile Manager" align="vertical">
|
||||
|
||||
<html:div flex="100%">
|
||||
|
||||
<html:script>
|
||||
var profName = "";
|
||||
@ -102,4 +103,5 @@ function Finish()
|
||||
<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>
|
||||
|
||||
</html:div>
|
||||
</window>
|
@ -4,15 +4,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 = "";
|
||||
@ -106,4 +104,5 @@ function Finish()
|
||||
<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>
|
||||
|
||||
</html:div>
|
||||
</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>
|
||||
|
@ -9,6 +9,8 @@
|
||||
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 = 0;
|
||||
@ -72,4 +74,5 @@
|
||||
<html:button onclick="ExitWizard();"> Exit </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;
|
||||
@ -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>
|
||||
|
21
profile/resources/pmDelete.xul
Normal file
21
profile/resources/pmDelete.xul
Normal file
@ -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>
|
||||
|
@ -3,15 +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="Profile Manager">
|
||||
|
||||
<html:div flex="100%">
|
||||
|
||||
<html:script>
|
||||
var curProfileName;
|
||||
@ -60,4 +58,5 @@ function GetProfileName()
|
||||
|
||||
<html:iframe src="profileManager.html" name="profileManager" width="100%" height="500px"> </html:iframe>
|
||||
|
||||
</html:div>
|
||||
</window>
|
Loading…
x
Reference in New Issue
Block a user