yasmin_editor.editor_gui.canvas_logic module
Qt-free helpers for canvas navigation, read-only state, and XML references.
- yasmin_editor.editor_gui.canvas_logic.breadcrumb_label(index: int, container_model: object, *, extern_xml: object | None, extern_xml_source_state: object | None, extern_xml_path_start_index: int | None) str
Return the label shown for one breadcrumb button.
- yasmin_editor.editor_gui.canvas_logic.external_xml_view_active(extern_xml: object | None, extern_xml_path_start_index: int | None, current_path_length: int) bool
Return whether the editor is currently inside an external XML subtree.
- yasmin_editor.editor_gui.canvas_logic.is_read_only_mode(runtime_mode_enabled: bool, extern_xml: object | None, extern_xml_path_start_index: int | None, current_path_length: int) bool
Return whether the canvas must behave as read-only.
- yasmin_editor.editor_gui.canvas_logic.iter_xml_file_path_candidates(*sources: object | None) list[str]
Collect candidate XML file paths from plugin and model metadata.
- yasmin_editor.editor_gui.canvas_logic.resolve_xml_state_file_path(plugin_info: object | None, state_model: object | None, *, file_exists=<function isfile>, walk=<function walk>, package_share_lookup=None) str | None
Resolve the XML file path for an external XML state reference.
- yasmin_editor.editor_gui.canvas_logic.state_has_available_outcomes(state_model: object | None, current_container_model: object) bool
Return whether a state still exposes at least one connectable outcome.