use re_viewer_context::{ContainerId, Contents, SpaceViewId};
#[derive(Clone, Debug)]
pub enum TreeAction {
AddSpaceView(SpaceViewId, Option<ContainerId>, Option<usize>),
AddContainer(egui_tiles::ContainerKind, Option<ContainerId>),
SetContainerKind(ContainerId, egui_tiles::ContainerKind),
FocusTab(SpaceViewId),
RemoveContents(Contents),
SimplifyContainer(ContainerId, egui_tiles::SimplificationOptions),
MakeAllChildrenSameSize(ContainerId),
MoveContents {
contents_to_move: Contents,
target_container: ContainerId,
target_position_in_container: usize,
},
MoveContentsToNewContainer {
contents_to_move: Vec<Contents>,
new_container_kind: egui_tiles::ContainerKind,
target_container: ContainerId,
target_position_in_container: usize,
},
}