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

<!DOCTYPE window [
<!ENTITY % brandDTD SYSTEM "chrome://global/locale/brand.dtd" >
%brandDTD;
<!ENTITY % enigMailDTD SYSTEM "chrome://enigmail/locale/enigmail.dtd" >
%enigMailDTD;
]>

<dialog id="enigmailUserSelectionList"
        title="&enigmail.userSelectionList.label;"
        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
        onload="enigmailUserSelLoad();"
        ondialogaccept="return enigmailUserSelAccept();"
        buttons="accept,cancel,extra1"
        buttonlabelextra1="&enigmail.perRecipientsOption.label;"
        ondialogextra1="enigmailNewRecipientRule();"
        minheight="450">


  <script type="application/x-javascript" src="chrome://enigmail/content/enigmailCommon.js"/>
  <!-- script type="application/x-javascript" src="chrome://enigmail/content/enigmailUserSelection.js"/> -->

  <script type="application/x-javascript" src="chrome://enigmail/content/enigmailUserSelection.js"/>
  <groupbox id="dialogHeadline" orient="vertical">
     <caption id="usersNotFoundCapt" label="&enigmail.usersNotFound.label;"/>
     <description id="usersNotFoundDesc" width="700px">...</description>
  </groupbox>

  <!-- <separator/> -->

  <vbox flex="1">
    <groupbox width="700px" flex="1">
      <caption id="dialogHeader"
               label="..." collapsed="true"/>

      <tree  id="enigmailUserIdSelection" flex="1"
        hidecolumnpicker="false"
        seltype="single"
        style="height:350px"
        onkeypress="enigmailUserSelCallback(event)">
        <!-- onclick="enigmailUserSelCallback(event);" -->

        <treecols>
          <treecol id="selectionCol" style="width:19px"
                   label="&enigmail.keySelection.label;"
                   class="treecol-image"
                   src="chrome://enigmail/content/check1.png"
                   ignoreincolumnpicker="true"
                   persist="width"/>
          <splitter class="tree-splitter"/>
          <treecol id="enigUserNameCol" primary="true"
                   flex="1"
                   ignoreincolumnpicker="true"
                   label="&enigmail.keyUserId.label;"/>
          <splitter class="tree-splitter"/>
          <treecol id="trustCol" style="width:85px"
                   label="&enigmail.keyTrust.label;"
                   persist="width,hidden"/>
          <splitter class="tree-splitter"/>
          <treecol id="expCol" style="width:70px"
                   label="&enigmail.keyExpiry.label;"
                   persist="width,hidden"/>
          <splitter class="tree-splitter"/>
          <treecol id="keyCol" style="width:90px"
                   label="&enigmail.keyId.label;"
                   persist="width,hidden"/>
        </treecols>

        <treechildren id="enigmailUserIdSelectionChildren"
              properties="sendUnencrypted"/>

      </tree>
    </groupbox>
    
    <checkbox id="enigmailUserSelPlainText"
              label="&enigmail.userSelPlainText.label;"
              noSignLabel="&enigmail.userSelPlainTextNotSigned.label;"
              accesskey="&enigmail.userSelPlainText.accesskey;"
              oncommand="plainTextCallback();"/>
    <checkbox id="displayNoLonger"
              label="&enigmail.displayNoLonger.label;"
              checked="false"
              disabled="true"
              collapsed="true"/>
  </vbox>
  
  <hbox>    
    <button class="dialog"
            id="refreshKeys"
            label="&enigmail.refreshKeys.label;"
            accesskey="&enigmail.refreshKeys.accesskey;"
            oncommand="enigmailRefreshKeys();"/>

    <button class="dialog"
            halign="right"
            id="importMissingKeys"
            label="&enigmail.importMissingKeys.label;"
            accesskey="&enigmail.importMissingKeys.accesskey;"
            tooltip="&enigmail.importMissingKeys.tooltip;"
            oncommand="enigmailSearchMissingKeys();"/>
  </hbox>
</dialog>
