simvx.editor.scene_file_ops

Scene file operations mixin for EditorState.

Module Contents

Classes

SceneFileOps

Mixin providing scene lifecycle and file dialog operations.

API

class simvx.editor.scene_file_ops.SceneFileOps[source]

Mixin providing scene lifecycle and file dialog operations.

Methods in this class are designed to be mixed into EditorState, which provides the workspace, signals, and delegating properties they depend on.

new_scene(root_type: type = Node, *, populate: bool = False)[source]

Create a new scene tab with the given root type.

open_scene(path: str | pathlib.Path)[source]

Load a scene from disk into the active tab, or a new tab.

save_scene(path: str | pathlib.Path | None = None)[source]

Save the current scene.