Commit 0b6f9c5e authored by Samuel GAIST's avatar Samuel GAIST Committed by Flavio TARSETTI

[widgets][experimenteditor] Add tab to visualize the toolchain

Part of #185
parent e4087575
Pipeline #41812 passed with stage
in 11 minutes and 34 seconds
......@@ -68,6 +68,7 @@ from .editor import AbstractAssetEditor
from .scrollwidget import EditorListWidget
from .scrollwidget import ScrollWidget
from .spinboxes import NumpySpinBox
from .toolchaineditor import ToolchainWidget
PARAMETER_TYPE_KEY = "parameter_type"
DEFAULT_VALUE_KEY = "default_value"
......@@ -1153,6 +1154,8 @@ class ExperimentEditor(AbstractAssetEditor):
self.analyzers_widget = ContainerWidget()
self.globalparameters_widget = GlobalParametersEditor(self.prefixPath())
self.globalparameters_widget.setEnvironmentModel(self.processing_env_model)
self.toolchain_widget = ToolchainWidget()
self.toolchain_widget.setEditionEnabled(False)
self.tabwidget = QTabWidget()
self.tabwidget.addTab(self.datasets_widget, self.tr("Datasets"))
......@@ -1164,6 +1167,7 @@ class ExperimentEditor(AbstractAssetEditor):
self.tabwidget.addTab(
self.globalparameters_widget, self.tr("Global parameters")
)
self.tabwidget.addTab(self.toolchain_widget, self.tr("Toolchain"))
self.layout().addWidget(self.tabwidget)
......@@ -1469,6 +1473,10 @@ class ExperimentEditor(AbstractAssetEditor):
for widget in self.datasets_widget.widget_list:
widget.loadToolchainData(toolchain)
asset = Asset(self.prefix_path, AssetType.TOOLCHAIN, toolchain)
if asset.is_valid:
self.toolchain_widget.load(asset.declaration)
def clearBlockErrors(self):
"""Clear error hinting"""
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment