Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
beat
beat.editor
Commits
0b6f9c5e
Commit
0b6f9c5e
authored
Aug 05, 2020
by
Samuel GAIST
Committed by
Flavio TARSETTI
Aug 06, 2020
Browse files
[widgets][experimenteditor] Add tab to visualize the toolchain
Part of
#185
parent
e4087575
Pipeline
#41812
passed with stage
in 11 minutes and 34 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
beat/editor/widgets/experimenteditor.py
View file @
0b6f9c5e
...
...
@@ -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"""
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment