mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-01 05:48:26 +00:00
Added to support to create profile ui
This commit is contained in:
parent
cbec2cb956
commit
292da9f953
55
profile/resources/test-content1_1.xul
Normal file
55
profile/resources/test-content1_1.xul
Normal file
@ -0,0 +1,55 @@
|
||||
<?xml version="1.0"?> <!-- -*- Mode: SGML; indent-tabs-mode: nil; -*- -->
|
||||
<!--
|
||||
|
||||
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.
|
||||
|
||||
-->
|
||||
|
||||
<?xml-stylesheet href="chrome://global/skin/xul.css" type="text/css"?>
|
||||
<?xml-stylesheet href="pm.css" type="text/css"?>
|
||||
|
||||
<!DOCTYPE window
|
||||
[
|
||||
<!ENTITY heading "Communicator Profile Manager">
|
||||
<!ENTITY title "Creating a New Profile">
|
||||
<!ENTITY para.one "Communicator stores information about your settings, preferences, bookmarks and stored messages in your personal profile.">
|
||||
<!ENTITY para.two "If you are sharing this copy of Communicator with other users, you can use profiles to keep each user's information separate. To do this, each user should create his or her own profile and optionally protect it with a password.">
|
||||
<!ENTITY para.three "If you are the only person using this copy of Communicator, you must create atleast one profile. If you would like, you can create multiple profiles for yourself to store different sets of setting and preferences. For example, you may want to have separate profiles for business and personal use.">
|
||||
<!ENTITY para.four "To begin Creating your profile, click Next.">
|
||||
]>
|
||||
|
||||
<xul:window
|
||||
xmlns:html="http://www.w3.org/TR/REC-html40"
|
||||
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" class="dialog"
|
||||
width="500" height="500"
|
||||
onload="parent.wizardPageLoaded('content1_1');">
|
||||
|
||||
<html:div style="width: 300px;">&heading;</html:div>
|
||||
<html:br/>
|
||||
|
||||
<html:div>&title;</html:div>
|
||||
<html:div>¶.one;</html:div>
|
||||
<html:br/>
|
||||
|
||||
<html:div>¶.two;</html:div>
|
||||
<html:br/>
|
||||
|
||||
<html:div>¶.three;</html:div>
|
||||
<html:br/>
|
||||
<html:div>¶.four;</html:div>
|
||||
|
||||
|
||||
</xul:window>
|
84
profile/resources/test-content1_2.xul
Normal file
84
profile/resources/test-content1_2.xul
Normal file
@ -0,0 +1,84 @@
|
||||
<?xml version="1.0"?> <!-- -*- Mode: SGML; indent-tabs-mode: nil; -*- -->
|
||||
<!--
|
||||
|
||||
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.
|
||||
|
||||
-->
|
||||
|
||||
<?xml-stylesheet href="chrome://global/skin/xul.css" type="text/css"?>
|
||||
<?xml-stylesheet href="pm.css" type="text/css"?>
|
||||
|
||||
<!DOCTYPE window
|
||||
[
|
||||
<!ENTITY intro "If you create several profiles you can tell them apart by the profile names. You may use the name provided here or use one of your own.">
|
||||
<!ENTITY profile.name "Enter New Profile name.">
|
||||
<!ENTITY profile.dir "Your user settings, preferences, bookmarks and stored messages will be stored in the directory below. We recommend that you use the default directory (by leaving the box blank).">
|
||||
<!ENTITY para "Click Finish to create this new profile.">
|
||||
]>
|
||||
|
||||
<xul:window
|
||||
xmlns:html="http://www.w3.org/TR/REC-html40"
|
||||
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" class="dialog"
|
||||
width="500" height="500"
|
||||
onload="parent.wizardPageLoaded('content1_2');">
|
||||
|
||||
<html:script>
|
||||
function foo()
|
||||
{
|
||||
}
|
||||
|
||||
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("foo()", 0);
|
||||
</html:script>
|
||||
|
||||
|
||||
<html:div>&intro;</html:div>
|
||||
<html:br/>
|
||||
<html:div>&profile.name;</html:div>
|
||||
<html:input type="text" id="ProfileName" value="mozProfile" size="30"/>
|
||||
<html:br/>
|
||||
<html:br/>
|
||||
|
||||
<html:div>&profile.dir;</html:div>
|
||||
<html:input type="text" id="ProfileDir" size="30"/>
|
||||
|
||||
<html:br/>
|
||||
<html:br/>
|
||||
<html:div>¶</html:div>
|
||||
|
||||
</xul:window>
|
Loading…
x
Reference in New Issue
Block a user