toolkit/profile/content/createProfileWizard.xul
author Robert Sayre <sayrer@gmail.com>
Thu, 06 Jan 2011 21:38:46 -0500
changeset 60192 1cd2c3d9f5623b4e8958eaaf3cf79d38e78b1a64
parent 2732 f0d0c8c446cc07d6fc5236652b478f5ad9dd466a
child 94475 f4157e8c410708d76703f19e4dfb61859bfe32d8
permissions -rw-r--r--
Backed out changeset 39ccae4efa0f

<?xml version="1.0"?>
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>

<!DOCTYPE wizard [
<!ENTITY % brandDTD SYSTEM "chrome://branding/locale/brand.dtd">
%brandDTD;
<!ENTITY % profileDTD SYSTEM "chrome://mozapps/locale/profile/createProfileWizard.dtd">
%profileDTD;
]>

<wizard id="createProfileWizard"
        title="&newprofile.title;"
        xmlns:html="http://www.w3.org/1999/xhtml"
        xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
        onwizardfinish="return onFinish();"
        onload="initWizard();"
        style="&window.size;">
  
  <stringbundle id="bundle_profileManager"
                src="chrome://mozapps/locale/profile/profileSelection.properties"/>

  <script type="application/javascript" src="chrome://mozapps/content/profile/createProfileWizard.js"/>

  <wizardpage id="explanation" onpageshow="enableNextButton();">
    <description>&profileCreationExplanation_1.text;</description>
    <description>&profileCreationExplanation_2.text;</description>
    <description>&profileCreationExplanation_3.text;</description>
    <spacer flex="1"/>
#ifdef XP_MACOSX
    <description>&profileCreationExplanation_4Mac.text;</description>
#else
#ifdef XP_UNIX
    <description>&profileCreationExplanation_4Gnome.text;</description>
#else
    <description>&profileCreationExplanation_4.text;</description>
#endif
#endif
  </wizardpage>

  <wizardpage id="createProfile" onpageshow="initSecondWizardPage();">
    <description>&profileCreationIntro.text;</description> 

    <label accesskey="&profilePrompt.accesskey;" control="ProfileName">&profilePrompt.label;</label> 
    <textbox id="profileName" value="&profileDefaultName;"
             oninput="updateProfileName(this.value);"/>
    
    <separator/>

    <description>&profileDirectoryExplanation.text;</description>

    <vbox class="indent" flex="1" style="overflow: auto;">
      <description id="profileDisplay">*</description>
    </vbox>

    <hbox>
      <button label="&button.choosefolder.label;" oncommand="chooseProfileFolder();" 
              accesskey="&button.choosefolder.accesskey;"/>

      <button id="useDefault" label="&button.usedefault.label;"
              oncommand="setDisplayToDefaultFolder(); updateProfileDisplay();"
              accesskey="&button.usedefault.accesskey;" disabled="true"/>
    </hbox>

    <separator/>

    <description id="finishText">*</description>
  </wizardpage>

</wizard>