void get_composants (ARBRE * racine, ABR_P *racinep )
 {
       ARBRE*p;
       int compose;
       LISTE_W * work=NULL;
       printf("compose :");
       scanf ("%d",&compose);
       if(p=seek_noeud (racine,compose))
       r_get_composant(p->fils,&work,1);filtrer(&work,compose);
       view_work(work,racinep);
       free_liste_w(&work);
  }
void MainWindow::init()
{
    initQsettings();

    QVBoxLayout * layout  = new QVBoxLayout();

    // create MapControl
    mc = new MapControl(QSize(ui->tabWidget->width() - 25, ui->tabWidget->height() - 60));

    mc->showScale(true);

    // create MapAdapter to get maps from
    mapadapter = new OSMMapAdapter();

    // create a map layer with the mapadapter
    Layer* l = new MapLayer("Custom Layer", mapadapter);

    // add Layer to the MapControl
    mc->addLayer(l);
    layout->addWidget(mc);
    ui->tab->setLayout(layout);

    // Paris
    mc->setView(QPointF(2.3522219,48.856614));

    mc->setZoom(11);

    connect(mc, SIGNAL(mouseEventCoordinate(const QMouseEvent*,QPointF)),
            this, SLOT(clickInTheWorld(const QMouseEvent*,QPointF)));

    connect(&ws, SIGNAL(requestFinished()), this, SLOT(wsFinished()));

    connect(settingView, SIGNAL(newCategorie(QString)), this, SLOT(addCategorie(QString)));
    connect(ui->listView,SIGNAL(clicked(QModelIndex)),this,SLOT(filtrer(QModelIndex)));

    details->setParent(this);

    addZoomButton();
    drawTabWidgetContent();

    fillFiltre();

    ui->menuBar->setVisible(true);
    connect(ui->menuBar, SIGNAL(triggered(QAction*)),
            this, SLOT(languageChanged(QAction*)));

    connect(ui->menuAide,SIGNAL(triggered(QAction*)),this,SLOT(on_ActionModeEmploi(QAction*)));

}