mod defaults_ui;
mod item_heading_no_breadcrumbs;
mod item_heading_with_breadcrumbs;
mod item_title;
mod selection_panel;
mod view_entity_picker;
mod view_space_origin_ui;
mod visible_time_range_ui;
mod visualizer_ui;
pub use selection_panel::SelectionPanel;
#[cfg(test)]
mod test {
use super::*;
use re_chunk_store::LatestAtQuery;
use re_viewer_context::{blueprint_timeline, Item, ViewId};
use re_viewport_blueprint::ViewportBlueprint;
#[test]
fn test_selection_panel() {
re_log::setup_logging();
let mut test_ctx = re_viewer_context::test_context::TestContext::default();
test_ctx.edit_selection(|selection_state| {
selection_state.set_selection(Item::View(ViewId::random()));
});
test_ctx.run_in_egui_central_panel(|ctx, ui| {
let blueprint = ViewportBlueprint::try_from_db(
ctx.store_context.blueprint,
&LatestAtQuery::latest(blueprint_timeline()),
);
let mut selection_panel = SelectionPanel::default();
selection_panel.show_panel(ctx, &blueprint, &mut Default::default(), ui, true);
});
}
}