X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/blast.git/blobdiff_plain/eb12792fe5344f4d128b8aba2a7948aa13f6a1ae..6e2b3026c6a496e81642c373796bd39dad33d2a6:/Dispatcher.cpp?ds=inline diff --git a/Dispatcher.cpp b/Dispatcher.cpp index 638c991..c3ff33f 100644 --- a/Dispatcher.cpp +++ b/Dispatcher.cpp @@ -69,6 +69,9 @@ GroupWidget *Dispatcher::loadProject(const QString& filename) { return NULL; } + QFileInfo info(filename); + params->projectPath = info.absolutePath(); + cout << "project path = " << qPrintable(params->projectPath) << endl; groupList.append(topGroup); return topGroup; } @@ -179,10 +182,8 @@ void Dispatcher::generateBlockVHDL(BoxItem *item){ if (item->getRefBlock()->isFunctionalBlock()) { FunctionalBlock* block = AB_TO_FUN(item->getRefBlock()); - ReferenceBlock* ref = block->getReference(); - BlockImplementation* impl = ref->getImplementations().at(0); try { - impl->generateVHDL(block,params->projectPath); + block->generateVHDL(params->projectPath); } catch(Exception e) { cout << qPrintable(e.getMessage()) << endl;