<?xml version="1.0"  encoding="ISO-8859-1"?>
<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<script type="application/x-javascript"><![CDATA[
var selection=null;

function editTache(){
    tree=document.getElementById('liste-taches');
    selection=document.getElementById('liste-donnees-taches').childNodes[tree.currentIndex].childNodes[0];

    win=window.open('../etape2.xul','saisie',
        'chrome,centerscreen=yes,dialog=yes,modal=yes');
}
 ]]></script>
  <toolbox>
    <toolbar id="nav-toolbar">
        <toolbarbutton label="Ajouter" onclick="window.open('../etape2.xul','saisie','chrome,centerscreen=yes,dialog=yes,modal=yes');"/>
    </toolbar>
  </toolbox>

   <tree id="liste-taches" flex="1">
     <treecols>
            <treecol id="col-priorite" label="Priorité" flex="1" />
            <treecol id="col-description" label="Déscription" flex="4"/>
            <treecol id="col-effectue" label="Effectué" flex="1" />
     </treecols>
     <treechildren id="liste-donnees-taches" flex="1" ondblclick="editTache()">
        <treeitem>
            <treerow>
                <treecell label="aaaaa"/>
                <treecell label="bbbbb"/>
                <treecell label="ccccc"/>
            </treerow>
         </treeitem>
     </treechildren>
  </tree>
</window>
