mafw.steering_gui.views.globals_editor
Expose the globals editor fields required by the steering GUI.
- Author:
Bulgheroni Antonio (antonio.bulgheroni@ec.europa.eu)
- Description:
Provide input fields for the analysis metadata and flags managed by the controller.
Classes
|
Editor that exposes analysis metadata and global flags without touching the builder. |
- class mafw.steering_gui.views.globals_editor.GlobalsEditor(parent: QWidget | None = None)[source]
Bases:
QWidgetEditor that exposes analysis metadata and global flags without touching the builder.
- _update_remove_button() None[source]
Enable removal only while at least one complete row is selected.
- current_values() tuple[str, str, bool, bool][source]
Return the current UI values without normalizing them.
- class mafw.steering_gui.views.globals_editor._EnvironmentFilesTable(parent: QWidget | None = None)[source]
Bases:
QTableWidgetEditable ordered list of dotenv paths and their load status.
Create the three-column dotenv table with internal row reordering.
- _append_row(path: str, *, valid: bool, loaded: bool) PathEditor[source]
Create a path widget and read-only bool cells for one row.
- _move_rows(selected_rows: list[int], target: int) None[source]
Rebuild the table in the requested order without losing cell widgets.
- _records() list[tuple[str, bool, bool]][source]
Return path and status values for each current row.
- _set_flag(row: int, column: int, value: bool) None[source]
Set a check indicator that users cannot toggle manually.
- _set_row_error_style(row: int, invalid: bool) None[source]
Paint invalid rows red while leaving valid rows with the default palette.
- add_row() PathEditor[source]
Append an empty path and return its focused editor.
- dropEvent(event: QDropEvent) None[source]
Move selected rows as a block and preserve their path and status cells.
- set_files(paths: list[str], statuses: list[dict[str, object]]) None[source]
Replace table rows from the steering path list and current validation state.