<?xml version="1.0"?>
<!-- 
   - The contents of this file are subject to the Mozilla 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/MPL/
   - 
   - 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 Corp.  Portions created by Netscape are
   - Copyright (C) 2001 Netscape Communications Corp.  All
   - Rights Reserved.
   - 
   - Contributor(s):
   -   Bob Lord <lord@netscape.com>
   -   Ian McGreer <mcgreer@netscape.com>
  -->

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

<!DOCTYPE window [
<!ENTITY % deviceManangerDTD SYSTEM "chrome://pippki/locale/deviceManager.dtd">
%deviceManangerDTD;
<!ENTITY % pippkiDTD SYSTEM "chrome://pippki/locale/pippki.dtd" >
%pippkiDTD;
]>


<window id="devicemanager" 
	xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" 
        title="&devmgr.title;"
        persist="screenX screenY width height"
        onload="LoadModules();">

<script src="chrome://global/content/strres.js" />
<script src="device_manager.js"/>
<script type="application/x-javascript" src="chrome://help/content/help.js" />

<grid flex="1">
  <columns>
    <column flex="1"/> 
    <column flex="1"/> 
    <column flex="1"/> 
  </columns>
  <rows>
    <row>
      <hbox flex="1"> <!-- List of devices -->
        <tree id="device_tree" rows="12" multiple="false"
              onselect="enableButtons();" debug="false" 
              flex="1" style="min-width:15em">
          <treecolgroup> 
            <treecol flex="1"/> 
          </treecolgroup>
          <treehead>
            <treerow>
              <treecell class="treecell-header" 
                        label="&devmgr.devlist.label;"
                        flex="1"/>
            </treerow>
          </treehead>
          <treechildren id="device_list"/>
        </tree>
      </hbox> <!-- / List of devices -->
      <hbox flex="1"> <!-- Device status -->
        <tree id="info_tree" debug="false" rows="12" multiple="false" 
              class="list" flex="1" style="min-width:10em">
          <treecolgroup> 
            <treecol flex="5"/> 
            <treecol flex="7"/> 
          </treecolgroup>
          <treehead>
            <treerow>
              <treecell class="treecell-header"
                        label="&devmgr.details.title;" flex="2"/>
              <treecell class="treecell-header"
                        label="&devmgr.details.title2;" flex="7"/>
            </treerow>
          </treehead>
          <treechildren id="info_list"/>
        </tree>
      </hbox> <!-- / Device status -->
      <vbox> <!-- Buttons for manipulating devices -->
        <button id="login_button" 
                label="&devmgr.button.login.label;"
                onclick="doLogin();" disabled="true"/> 
        <button id="logout_button" 
                label="&devmgr.button.logout.label;"
                onclick="doLogout();" disabled="true"/> 
        <button id="change_pw_button" 
                label="&devmgr.button.changepw.label;"
                onclick="changePassword();" disabled="true"/> 
        <button id="load_button" 
                label="&devmgr.button.load.label;"
                onclick="doLoad();" disabled="false"/> 
        <button id="unload_button" 
                label="&devmgr.button.unload.label;"
                onclick="doUnload();" disabled="true"/> 
        <button id="fipsbutton" onclick="toggleFIPS();" />
      </vbox> <!-- / Buttons for manipulating devices -->
    </row>
    <row>
      <hbox>
        <button id="help_button" 
                label="&help.label;" 
                orient="horizontal" class="normal"
                oncommand="openHelp('chrome://help/content/help.xul?sec_devices');" /> 
        <button id="ok_button" 
                label="&ok.label;" 
                orient="horizontal" class="normal" 
                onclick="window.close();"/> 
      </hbox>
    </row>
  </rows>
</grid>
</window>
