<?xml version="1.0"?> 
<!-- -*- Mode: SGML; indent-tabs-mode: nil; -*- -->
<!-- ***** BEGIN LICENSE BLOCK *****
   - Version: MPL 1.1/GPL 2.0/LGPL 2.1
   -
   - 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 Roaming code.
   -
   - The Initial Developer of the Original Code is
   -   Ben Bucksch <http://www.bucksch.org> of
   -   Beonex <http://www.beonex.com>
   - Portions created by the Initial Developer are Copyright (C) 2002-2004
   - the Initial Developer. All Rights Reserved.
   -
   - Contributor(s):
   -
   - Alternatively, the contents of this file may be used under the terms of
   - either the GNU General Public License Version 2 or later (the "GPL"), or
   - the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
   - in which case the provisions of the GPL or the LGPL are applicable instead
   - of those above. If you wish to allow use of your version of this file only
   - under the terms of either the GPL or the LGPL, and not to allow others to
   - use your version of this file under the terms of the MPL, indicate your
   - decision by deleting the provisions above and replace them with the notice
   - and other provisions required by the LGPL or the GPL. If you do not delete
   - the provisions above, a recipient may use your version of this file under
   - the terms of any one of the MPL, the GPL or the LGPL.
   -
   - ***** END LICENSE BLOCK ***** -->

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

<!DOCTYPE window SYSTEM "chrome://sroaming/locale/prefs.dtd" >

<page id="winPref"
      xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
      onload="Load();"
      onunload="Unload();"
      headertitle="&sroaming-header.label;">

  <script type="application/x-javascript"
          src="chrome://sroaming/content/transfer/utility.js"/>
  <script type="application/x-javascript"
          src="chrome://sroaming/content/prefs/all.js"/>
  <script type="application/x-javascript"
          src="chrome://sroaming/content/prefs/top.js"/>

  <description>&descr.label;</description>

  <stringbundle id="bundle_roaming_prefs" src="chrome://sroaming/locale/prefs.properties"/>
  <stringbundle id="bundle_roaming_filedescr" src="chrome://sroaming/locale/filedescr.properties"/>

  <vbox align="start">
    <checkbox id="enabled"
              aoncommand="EnableTree(this.checked, E('roamingSettings'));
                          parent.roaming.enabled = this.checked;"
              oncommand="ActivationWarning(); SwitchChanged();"
              class="indent"
              label="&enabled.label;"
              accesskey="&enabled.accesskey;"
              />
  </vbox>

  <groupbox id="method">
    <caption label="&method.label;" />
    <vbox>
      <menulist id="methodSelect"
                oncommand="SwitchChanged();"
                >
         <menupopup>
           <menuitem
               value="0"
               label="&methodStream.label;"
               />
           <menuitem
               value="1"
               label="&methodCopy.label;"
               />
         </menupopup>
      </menulist>
   </vbox>

   <deck id="methodSettingsDeck">
      <vbox id="streamSettings">
         <grid flex="1">
            <columns>
               <column/>
               <column flex="1"/>
            </columns>
            <rows>
               <row>
                  <hbox align="center">
                    <label control="streamURL"
                           value="&streamURL.label;"
                           accesskey="&streamURL.accesskey;"
                           />
                  </hbox>
                  <textbox id="streamURL" />
               </row>
               <row>
                  <hbox align="center">
                    <label control="streamUsername"
                           value="&streamUsername.label;"
                           accesskey="&streamUsername.accesskey;"
                           />
                  </hbox>
                  <textbox id="streamUsername" />
               </row>
               <row>
                  <hbox />
                  <vbox align="start">
                    <checkbox id="streamSavePW"
                              oncommand="SwitchChanged();"
                              label="&streamSavePW.label;"
                              accesskey="&streamSavePW.accesskey;"
                              />
                  </vbox>
               </row>
               <row>
                  <hbox align="center">
                    <label control="streamPassword"
                           value="&streamPassword.label;"
                           accesskey="&streamPassword.accesskey;"
                           />
                  </hbox>
                  <textbox type="password" id="streamPassword" />
               </row>
            </rows>
         </grid>
      </vbox>
      <vbox id="copySettings">
        <separator class="thin" />
        <label value="&copyDir.label;" />
        <hbox>
          <textbox id="copyDir"
                   readonly="true"
                   flex="1"
                   />
          <button id="browseButton"
                  label="&browse.label;" 
                  accesskey="&browse.accesskey;"
                  filepickertitle="&filepicker.title;"
                  onclick="Browse();"
                  /> 
        </hbox>
      </vbox>
    </deck>
  </groupbox>

</page>
