mafw.steering_gui.views.storage_editor
Editor for named storage volumes in steering files.
- Author:
Bulgheroni Antonio (antonio.bulgheroni@ec.europa.eu)
- Description:
Present controller-fed storage settings and emit typed edit requests.
Classes
|
Edit named volumes and show storage validation feedback. |
|
Create or edit one volume using fields validated before acceptance. |
- class mafw.steering_gui.views.storage_editor.StorageEditor(parent: QWidget | None = None)[source]
Bases:
QWidgetEdit named volumes and show storage validation feedback.
Added in version 2.4.
- _add_row(name: str, root: str) None[source]
Append one volume name and expose its root through the row tooltip.
- _update_selection_actions() None[source]
Enable edit and remove buttons according to the current selection.
- set_configuration(config: StorageConfiguration, *, database_enabled: bool, issues: list[str]) None[source]
Refresh volume rows, tooltips, availability, and validation feedback.
- class mafw.steering_gui.views.storage_editor.StorageVolumeDialog(name: str = '', volume: StorageVolumeConfiguration | None = None, *, existing_names: set[str] | None = None, parent: QWidget | None = None)[source]
Bases:
QDialogCreate or edit one volume using fields validated before acceptance.
- _accept_if_valid() None[source]
Accept only when local volume fields and TOML parameter values parse.