mafw.steering_gui.views
Placeholder package for steering GUI views while the GUI is being scaffolded.
- Author:
Bulgheroni Antonio (antonio.bulgheroni@ec.europa.eu)
- Description:
UI views live here once they are implemented, keeping the controller agnostic of toolkit code.
- class mafw.steering_gui.views.DatabaseEditor(parent: QWidget | None = None)[source]
Bases:
QWidgetWidget that exposes database backend selection and layered configuration.
- _detect_backend_from_url(url: str | None) str[source]
Determine the backend type from the given URL.
This method analyses the provided URL to identify the corresponding backend type by matching URL prefixes or extracting the protocol. If no match is found, it defaults to the current backend or the default backend.
- Parameters:
url – The URL string to be analysed for backend detection.
- Returns:
A string representing the detected backend type.
- _normalize_config(config: dict[str, Any] | None) dict[str, Any][source]
Normalize the configuration dictionary to ensure consistent backend, URL, authentication, and parameters.
This method processes the input configuration dictionary to extract and normalize values for backend type, URL, authentication details, and backend-specific parameters, ensuring defaults are applied where necessary.
- Parameters:
config – A dictionary containing configuration details such as backend, URL, authentication, and parameters. If None, defaults are applied.
- Returns:
A dictionary with normalized configuration values including backend, URL, enabled status, authentication, parameters, and pragmas.
- class mafw.steering_gui.views.GlobalsEditor(parent: QWidget | None = None)[source]
Bases:
QWidgetEditor that exposes analysis metadata and global flags without touching the builder.
- class mafw.steering_gui.views.GroupEditor(parent: QWidget | None = None)[source]
Bases:
QWidgetWidget used to edit group metadata and the processor list.
- set_group_item(item: PipelineItem) None[source]
Display the provided group item and its processors.
- set_model(model: SteeringTreeModel) None[source]
Attach the steering tree model to the group editor.
- class mafw.steering_gui.views.MetadataEditor(parent: QWidget | None = None)[source]
Bases:
QWidgetProvide a quick summary of the steering file when no specific section is active.
- set_validation_level(level: ValidationLevel | None) None[source]
Update the combo to reflect the controller’s validation preference.
- class mafw.steering_gui.views.PipelineEditor(parent: QWidget | None = None)[source]
Bases:
QWidgetWidget exposing the processor pipeline as a flat table plus toolbox actions.
- set_model(model: SteeringTreeModel) None[source]
Attach the steering tree model and focus on the processors section.
- class mafw.steering_gui.views.ProcessorEditor(parent: QWidget | None = None)[source]
Bases:
QWidgetPlaceholder widget representing per-processor configuration editors.
- class mafw.steering_gui.views.ProcessorParameterEditor(parent: QWidget | None = None)[source]
Bases:
QWidgetWidget used to edit parameters and metadata of a processor entry.
- set_processor_data(config: ProcessorConfig) None[source]
Populate the editor with processor configuration data.
- class mafw.steering_gui.views.SteeringTreeView(parent: QWidget | None = None)[source]
Bases:
QWidgetWidget exposing the steering-file sections as a
QTreeView.- _on_selection_changed(*_: object) None[source]
Emit the section key and pipeline selection for the new tree selection.
- set_model(model: SteeringTreeModel) None[source]
Attach a steering tree model to the view.
- class mafw.steering_gui.views.UIEditor(parent: QWidget | None = None)[source]
Bases:
QWidgetWidget that exposes the configured user interface and allows switching it.
Modules
Expose the database editor UI for steering file configuration. |
|
Editors for different filter types in the steering GUI. |
|
Manager widget for filter configuration. |
|
Tree view for displaying and interacting with processor filters. |
|
Expose the globals editor fields required by the steering GUI. |
|
Group editor widget for managing processor groups. |
|
Editor showing metadata when the root node is selected. |
|
Pipeline editor widget exposing processors and groups in execution order. |
|
Editor scaffolding for processor-specific configurations. |
|
Processor parameter editor for steering GUI pipelines. |
|
Present a hierarchical representation of the steering file sections. |
|
Editor for selecting the user interface defined in a steering file. |