Check for vcd export dependencies.

The TraceAnalyzer now checks if the python module pyvcd is installed
and if not prints a warning and disables the export option.
This commit is contained in:
2021-08-16 14:40:31 +02:00
parent 8123f5d698
commit a126fa86bf
5 changed files with 109 additions and 4 deletions

View File

@@ -121,7 +121,11 @@ void TraceAnalyzer::openTracefile(const QString &path)
// Enable actions
ui->actionReload_all->setEnabled(true);
ui->actionSaveChangesToDB->setEnabled(true);
ui->actionExportAsVCD->setEnabled(true);
PythonCaller pythonCaller;
if (pythonCaller.vcdExportDependenciesAvailable())
ui->actionExportAsVCD->setEnabled(true);
ui->actionClose_all->setEnabled(true);
ui->actionTest->setEnabled(true);
ui->actionMetrics->setEnabled(true);