]> AND Private Git Repository - blast.git/blobdiff - MainWindow.cpp
Logo AND Algorithmique Numérique Distribuée

Private GIT Repository
start to include clkdomain converters
[blast.git] / MainWindow.cpp
index ad3648470f9a9e1d1df283051e7c2ffaee5c6a5c..166dfa29511d591682f0769da801aa776297cd82 100644 (file)
@@ -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;