1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
//! Layout serialization events.
//!
//! Events for managing named UI layouts (dock splits, timeline state, viewport state).
//! Layouts are stored in AppSettings and persisted automatically via serde.
/// Save current layout to project attrs (legacy, kept for compatibility).
;
/// Load layout from project attrs (legacy, kept for compatibility).
;
/// Reset layout to defaults.
;
/// Select a named layout from settings.layouts.
/// Applies the layout configuration to dock_state, timeline_state, viewport_state.
;
/// Create a new named layout by duplicating current UI state.
/// If name is None, auto-generates name like "Layout 2", "Layout 3", etc.
;
/// Delete a named layout from settings.layouts.
/// If deleted layout was current, current_layout becomes empty.
;
/// Update the current layout with current UI state.
/// Called when dock splits, timeline, or viewport state changes.
/// Does nothing if current_layout is empty or not found.
;
/// Rename a layout. (old_name, new_name)
/// Updates current_layout if renamed layout was selected.
;