mafw.steering_gui.views.processor_parameter_editor

Processor parameter editor for steering GUI pipelines.

Author:

Bulgheroni Antonio (antonio.bulgheroni@ec.europa.eu)

Description:

Display and edit processor parameters, replica metadata, and overrides in the GUI.

Classes

ParameterDelegate

Delegate that picks editors based on parameter type.

ParameterTableModel([parent])

Qt table model exposing processor parameters for editing.

PathEditor([parent])

Inline editor combining a line edit with a browse button.

ProcessorParameterEditor([parent])

Widget used to edit parameters and metadata of a processor entry.

class mafw.steering_gui.views.processor_parameter_editor.ParameterDelegate[source]

Bases: QStyledItemDelegate

Delegate that picks editors based on parameter type.

class mafw.steering_gui.views.processor_parameter_editor.ParameterTableModel(parent: QWidget | None = None)[source]

Bases: QAbstractTableModel

Qt table model exposing processor parameters for editing.

set_parameters(parameters: Iterable[ParameterConfig]) None[source]

Replace the rows with the provided parameters.

class mafw.steering_gui.views.processor_parameter_editor.PathEditor(parent: QWidget | None = None)[source]

Bases: QWidget

Inline editor combining a line edit with a browse button.

set_value(value: Any) None[source]

Update the displayed path string.

value() str[source]

Return the currently selected path string.

class mafw.steering_gui.views.processor_parameter_editor.ProcessorParameterEditor(parent: QWidget | None = None)[source]

Bases: QWidget

Widget used to edit parameters and metadata of a processor entry.

current_name() str | None[source]

Return the currently displayed processor full name.

set_processor_data(config: ProcessorConfig) None[source]

Populate the editor with processor configuration data.

class mafw.steering_gui.views.processor_parameter_editor._ParameterRoles[source]

Bases: object

Custom roles used to expose parameter metadata to delegates.

class mafw.steering_gui.views.processor_parameter_editor._ParameterRow(config: ParameterConfig, order: int)[source]

Bases: object

Container describing a single parameter table row.

mafw.steering_gui.views.processor_parameter_editor._ACTIVE_COLUMN_LABEL = 'Active'

Header label for the parameter active toggle column.

mafw.steering_gui.views.processor_parameter_editor._COLUMNS = ('Active', 'Name', 'Value', 'Type', 'Source', 'Status')

Column labels for the processor parameter table.