mailnews/addrbook/prefs/content/pref-directory-add.xul
author Philippe M. Chiasson <gozer@mozilla.com>
Mon, 20 Jun 2011 16:01:36 -0400
changeset 8202 0f79491664e9d3dabf1ff563e98174fe1aa262c0
parent 4483 344cc299f519e23c338e446b9e684ae286fd8992
child 12286 84ac3c71109811da751f0ef2d72108075938f094
permissions -rw-r--r--
Bug 656049 - teach comm-central client.mk to invoke client.py. r=Standard8 - Adds a new make co|checkout target to run client.py - Adds support for: mk_add_options CLIENT_PY_ARGS="--verbose --skip-venkman" in .mozconfig to control what arguments to pass to client.py - Adds support for: mk_add_options ALWAYS_RUN_CLIENT_PY=1 in .mozconfig to control if client.py should pretty much always be invoked during make invocations, or limit itself to being invoked explicitely via make checkout

<?xml version="1.0"?>
<!-- ***** 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 Communicator client code, released
 March 31, 1998.

 The Initial Developer of the Original Code is
 Netscape Communications Corporation.
 Portions created by the Initial Developer are Copyright (C) 1998-1999
 the Initial Developer. All Rights Reserved.

 Contributor(s):
   Srilatha Moturi <srilatha@netscape.com>, original implementor
   HÃ¥kan Waara <hwaara@chello.se>
   Dan Mosedale <dmose@netscape.com>

 Alternatively, the contents of this file may be used under the terms of
 either of 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 GPL or the LGPL. 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://messenger/skin/" type="text/css"?>

<!DOCTYPE dialog SYSTEM "chrome://messenger/locale/addressbook/pref-directory-add.dtd">

<dialog id="addDirectory"
        style="width: &newDirectoryWidth;"
        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
        title="&newDirectoryTitle.label;"
        onload="Startup();"
        onunload="onUnload();"
        buttons="accept,cancel"
        ondialogaccept="return onAccept();"
        ondialogcancel="return onCancel();">

  <script type="application/javascript" src="chrome://messenger/content/addressbook/pref-directory-add.js"/>
  <stringbundle id="bundle_addressBook" src="chrome://messenger/locale/addressbook/addressBook.properties"/>
  <stringbundle id="bundle_replication" src="chrome://messenger/locale/addressbook/replicationProgress.properties"/>

  <keyset id="keyset"/>
  <vbox id="editDirectory">

    <tabbox style="margin:5px">
      <tabs id="directoryTabBox">
        <tab label="&General.tab;"/>
        <tab label="&Offline.tab;"/>
        <tab label="&Advanced.tab;"/>
      </tabs>
   
      <tabpanels id="directoryTabPanels" flex="1">
          <vbox>
             <grid flex="1">
                 <columns>
                     <column/>
                     <column flex="1"/>
                     <column/>
                 </columns>

                 <rows>
                     <row align="center">
                         <label value="&directoryName.label;" accesskey="&directoryName.accesskey;" 
                                control="description"/>
                         <textbox id="description" flex="1"/>
                         <spacer flex="1"/>
                     </row>
                     <row align="center">
                         <label value="&directoryHostname.label;" accesskey="&directoryHostname.accesskey;"
                                control="hostname"/>
                         <textbox id="hostname" flex="1" disableiflocked="true" class="uri-element"/>
                         <spacer flex="1"/>
                     </row>
                     <row align="center">
                         <label value="&directoryBaseDN.label;" 
                                accesskey="&directoryBaseDN.accesskey;"
                                control="basedn"/>
                         <vbox>
                           <textbox id="basedn" disableiflocked="true" class="uri-element"/>
                         </vbox>
                         <button label="&findButton.label;" 
                                 accesskey="&findButton.accesskey;" disabled="true"/>
                     </row>
                     <row align="center">
                         <label value="&portNumber.label;"
                                accesskey="&portNumber.accesskey;"
                                control="port"/>
                         <hbox>
                             <textbox id="port" type="number" size="5" min="1"
                                       max="65535" hidespinbuttons="true"
                                       disableiflocked="true"/>
                         </hbox>
                     </row>
                     <row align="center">
                         <label value="&directoryLogin.label;"
                                accesskey="&directoryLogin.accesskey;"
                                control="login"/>
                         <textbox id="login" flex="1" class="uri-element"/>
                     </row>
                 </rows>
             </grid>
             <separator/>
             <checkbox id="secure" label="&directorySecure.label;"
                       accesskey="&directorySecure.accesskey;"
                       oncommand="onSecure();" disableiflocked="true"/>
          </vbox>
          <vbox>
              <description>&offlineText.label;</description>
              <separator/>
              <hbox>
                  <button id="download" oncommand="DownloadNow();"/>
                  <spacer flex="1"/>
              </hbox>
              <description id="downloadWarningMsg" hidden="true" class="error"/>
              <description id="replicationProgressText" hidden="true"/>
              
              <progressmeter id="replicationProgressMeter" mode="normal" value="0" hidden="true"/>
          </vbox>
          <grid>
             <columns>
               <column/>
               <column flex="1"/>
             </columns>
      
             <rows>
               <row align="center">
                 <label value="&return.label;" 
                       accesskey="&return.accesskey;"
                       control="results"/>
                 <hbox align="center">
                   <textbox id="results" type="number" size="10" min="1"
                            max="2147483647" hidespinbuttons="true"/>
                   <label value="&results.label;"/>
                 </hbox>
               </row>
               <row align="center">
                 <label value="&scope.label;" control="scope" accesskey="&scope.accesskey;"/>
                 <radiogroup id="scope" orient="horizontal">
                   <radio id="one" value="1" label="&scopeOneLevel.label;"
                          disableiflocked="true" accesskey="&scopeOneLevel.accesskey;"/>
                   <radio id="sub" value="2" label="&scopeSubtree.label;"
                          disableiflocked="true" accesskey="&scopeSubtree.accesskey;"/>
                 </radiogroup>
               </row>
               <row>
                 <label value="&searchFilter.label;" 
                       accesskey="&searchFilter.accesskey;"
                       control="search"/>
                 <textbox id="search" multiline="true" flex="1" disableiflocked="true"/>
              </row>
              <row>
                <label value="&saslMechanism.label;" control="saslMechanism" accesskey="&saslMechanism.accesskey;"/>
                <menulist id="saslMechanism">
                  <menupopup>
                    <menuitem id="Simple" value="" 
                              label="&saslOff.label;"
                              accesskey="&saslOff.accesskey;"/>
                    <menuitem id="GSSAPI" value="GSSAPI" 
                              label="&saslGSSAPI.label;"
                              accesskey="&saslGSSAPI.accesskey;"/>
                  </menupopup>
                </menulist>
              </row>
            </rows>
          </grid>
      </tabpanels>
    </tabbox>
  </vbox>
  
</dialog>