mafw.steering_gui.views.filter_tree
Tree view for displaying and interacting with processor filters.
- Author:
Bulgheroni Antonio (antonio.bulgheroni@ec.europa.eu)
- Description:
QTreeView implementation that provides context menus for adding and removing filter components.
Classes
|
Tree view for managing filter hierarchy. |
- class mafw.steering_gui.views.filter_tree.FilterTreeView(parent: QWidget | None = None)[source]
Bases:
QTreeViewTree view for managing filter hierarchy.
- _first_unused_model_field(model_name: str, existing: Iterable[str]) str | None[source]
Return the first model field without a configured condition.
- _has_logic(config: ProcessorConfig | ModelFilterConfig | FieldFilterConfig) bool[source]
Return whether the configuration has logic defined or buffered.
- add_model_filter_by_name(model_name: str) None[source]
Add a ModelFilterConfig for the given model name.
- remove_item(index: QModelIndex) bool[source]
Remove the item at the provided index.
- Returns:
True if the item was removed, False otherwise.
- set_model(model: FilterTreeModel) None[source]
Set the model and expand all nodes.