X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/blast.git/blobdiff_plain/e45bacc6bd342a1b19e42b62133ddabc99aa9edd..a7299f808c1906872b76aa62fb6d8276096c4ff5:/MainWindow.cpp diff --git a/MainWindow.cpp b/MainWindow.cpp index ad36484..166dfa2 100644 --- a/MainWindow.cpp +++ b/MainWindow.cpp @@ -322,7 +322,7 @@ void MainWindow::slotLoadProject(){ library->updateComboScene(); params->isCurrentProject = true; enableProjectActions(true, PROJECT_CLOSE | PROJECT_SAVE | PROJECT_SAVEAS | PROJECT_LIB, OP_RAZ); - enableAnalysisActions(true, ANALYSIS_ANALYZE, OP_RAZ); + enableAnalysisActions(true, ANALYSIS_ANALYZE | ANALYSIS_GENERATE, OP_RAZ); } else { QMessageBox msgBox; @@ -450,8 +450,9 @@ void MainWindow::slotGraphAnalysis() { } void MainWindow::slotGenerateVHDL() { + try { - params->getGraph()->generateVHDL(params->projectPath); + dispatcher->generateVHDL(); } catch(Exception e) { cerr << qPrintable(e.getMessage()) << endl;