yasmin_editor.editor_gui.scene_selection module

Helpers for grouping scene selections without depending on PyQt imports.

class yasmin_editor.editor_gui.scene_selection.SceneSelection(states: list[object] = <factory>, final_outcomes: list[object] = <factory>, text_blocks: list[object] = <factory>, connections: list[object] = <factory>, state_names: set[str] = <factory>, outcome_instance_ids: set[str] = <factory>, text_models: list[object] = <factory>)

Bases: object

Grouped editor-scene selection data.

connections: list[object]
final_outcomes: list[object]
property is_empty: bool
outcome_instance_ids: set[str]
state_names: set[str]
states: list[object]
text_blocks: list[object]
text_models: list[object]
yasmin_editor.editor_gui.scene_selection.collect_scene_selection(items: Iterable[object]) SceneSelection

Group selected scene items by editor role.

The helper intentionally avoids importing Qt-dependent graphics item classes, which keeps it usable in source-level tests and pure selection helpers.