Exemplo n.º 1
0
void MainWindow::exportProjetXML() {
    QList<QTreeWidgetItem*> selected = projets->selectedItems();
    qDebug()<<"ok";
    if (selected.size() != 0 && selected.at(0)->text(0) == "Projet") {
        qDebug()<<"ok1";
        QString id = selected.at(0)->text(1);
        qDebug()<<id;
        Projet* proj = pm->trouverProjet(id);
        exportXML(proj);
    }
    else {
        showError("Project Calendar","Selectionnez d'abord un projet dont vous voulez exporter les programmations");
        return;
    }
}
void MainWindow::connectSignals() {
    //connect command buttons
    connect(s_button.addCurve,SIGNAL(clicked()),SLOT(newCurve()));
    connect(s_button.removeCurve,SIGNAL(clicked()),SLOT(removeCurve()));
    connect(s_button.duplicateCurves,SIGNAL(clicked()),SLOT(duplicateCurves()));

#ifdef COMPLETE_FAST_SELECTION
    connect(s_button.removeAllCurves,SIGNAL(clicked()),SLOT(removeAllCurvesWithDialog()));
    connect(s_button.exportDigest,SIGNAL(clicked()),SLOT(exportDigestCurve()));
    connect(s_button.exportXML ,SIGNAL(clicked()),SLOT(exportXML()));
    connect(s_button.importXML,SIGNAL(clicked()),SLOT(importXML()));
    connect(s_button.showXML ,SIGNAL(clicked()),SLOT(showXML()));
#endif

    //If the sample rate change i need to reset the audio stream
   // connect(m_plotTime->getDigestCurve(),SIGNAL(sampleRateChanged(qreal)),this,SLOT(sampleRateChange(qreal)));

    //connect digest curve to handle update in the plots
    Q_ASSERT(connect(m_plotTime->getDigestCurve(),SIGNAL(dataChanged()),this,SLOT(digestCurveChanged())));

    //Connect position slider
    Q_ASSERT(connect(m_audioPlayer,SIGNAL(streamTimePositionChanged(qreal)) ,this,SLOT(streamPositionUpdate(qreal))));
}
Exemplo n.º 3
0
DistroMesas::~DistroMesas()
{
  exportXML();
}