#include "BlockLibraryWidget.h"
#include "GroupWidget.h"
#include "GroupScene.h"
-#include "BlockWidget.h"
+#include "VHDLConverter.h"
#include "AbstractBoxItem.h"
#include "Graph.h"
#include "GroupItem.h"
msgBox.setStandardButtons(QMessageBox::Cancel);
msgBox.setDefaultButton(QMessageBox::Cancel);
- int ret = msgBox.exec();
+ msgBox.exec();
}
}
}
GroupWidget* topGroup = dispatcher->createTopScene();
addTopGroup(topGroup);
library->updateComboScene();
+ library->show();
params->isCurrentProject = true;
}
break;
}
}
+ else {
+ doClose = true;
+ }
if (doClose) {
// removing the GroupWidget from stack
QWidget *widget = stackedWidget->widget(1);
void MainWindow::slotNewBlockWidget() {
- new BlockWidget();
+ new VHDLConverter();
}
void MainWindow::slotSaveProject(){
void MainWindow::slotGraphValidation() {
- params->parametersValidation();
+ try {
+ params->getGraph()->computeOutputPatterns(5);
+ }
+ catch(Exception e) {
+ cerr << qPrintable(e.getMessage()) << endl;
+ }
}
void MainWindow::addTopGroup(GroupWidget *_topGroup) {
slotCloseProject();
event->ignore();
}
+ else {
+ library->deleteLater();
+ }
}