<?xml version="1.0"?> 
<!-- -*- Mode: SGML; indent-tabs-mode: nil; -*- -->
<!--

  The contents of this file are subject to the Netscape Public
  License Version 1.1 (the "License"); you may not use this file
  except in compliance with the License. You may obtain a copy of
  the License at http://www.mozilla.org/NPL/
 
  Software distributed under the License is distributed on an "AS
  IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
  implied. See the License for the specific language governing
  rights and limitations under the License.
 
  The Original Code is mozilla.org code.
 
  The Initial Developer of the Original Code is Netscape
  Communications Corporation.  Portions created by Netscape are
  Copyright (C) 1998 Netscape Communications Corporation. All
  Rights Reserved.
 
  Contributor(s): 

  Contributors:
    Code:     Ben Goodger <ben@netscape.com>
    UI Ideas: Matthew Thomas, Ben Gregory
  
-->

<?xml-stylesheet href="chrome://communicator/skin/" type="text/css"?>
<?xml-stylesheet href="chrome://communicator/skin/profile/profile.css" type="text/css"?>
<?xul-overlay href="chrome://global/content/dialogOverlay.xul"?>

<!DOCTYPE window [
<!ENTITY % brandDTD SYSTEM "chrome://global/locale/brand.dtd">
%brandDTD;
<!ENTITY % profileDTD SYSTEM "chrome://communicator/locale/profile/profileSelection.dtd">
%profileDTD;
]>

<window
  xmlns:html="http://www.w3.org/TR/REC-html40"
  width="475" height="335"
  xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" 
  class="color-dialog profile"
  title="&windowtitle.label;"
  align="vertical"
  onclose="onExit();"
  onload="StartUp();"> 
      
  <!-- note: wtf is with the 'onclose' above. Is that a real, actual, valid event?! -->      
      
	<script language="javascript" src="chrome://global/content/strres.js"></script>
	<script language="javascript" src="chrome://global/content/nsJSComponentManager.js"></script>
  <script language="javascript" src="chrome://communicator/content/profile/profileSelection.js"></script>
  <script language="javascript" src="chrome://communicator/content/profile/profileManager.js"></script>

  <keyset id="keyset">
    <key id="fooKey" key="s" xulkey="true" shift="true" onkeydown="foo()"/>
  </keyset>

  <box class="box-header" id="header" value="&windowtitle.label;"/>
  
  <box id="contentarea" flex="1">

    <!-- instructions -->
    <deck id="prattle">
      <html id="intro" flex="1">&introgeneral.label;</html>
      <box orient="vertical" id="manager">
        <html class="label" style="width: 200px;">&pmTextA.label;</html>
        <spring flex="1"/>
        <box>
          <box orient="vertical" flex="1" id="managebuttons">
            <button id="newbutton" value="&newButton.label;" oncommand="CreateProfileWizard();"/>
            <button id="renbutton" value="&renameButton.label;" oncommand="RenameProfile();"/>
            <button id="delbutton" value="&deleteButton.label;" oncommand="ConfirmDelete();"/>
          </box>
          <spring flex="2"/>
        </box>
      </box>
    </deck>  
      
    <separator class="thin" orient="vertical"/>
    
    <box orient="vertical" flex="1">
      <tree id="profiles" class="inset" flex="1"
            onclick="HandleClickEvent( event );"
            onkeypress="HandleKeyEvent( event );">
        <treecol/>
        <treehead>
          <treerow>
            <treecell class="treecell-header outset" value="&availprofiles.label;"/>
          </treerow>
        </treehead>
        <treechildren id="profilekids"/>
      </tree>    
      <box autostretch="never">
        <checkbox id="offlineState" value="&offlineState.label;" accesskey="&offlineState.accesskey;"/> 
      </box>
    </box>
  </box>
  
  <box class="selection">
    <separator class="thin" orient="vertical"/>
    <button id="manage" value="&manage.label;" onclick="SwitchProfileManagerMode();"/>
    <spring flex="1"/>
    <box id="okCancelButtons"/>
    <separator class="thin" orient="vertical"/>
  </box>
  
  <separator class="thin" />
  
  <box class="box-status" value="&profilemanager.label;" progress=""/>
  
</window>
