/* * Copyright (c) 2021, Matthew Olsson * * SPDX-License-Identifier: BSD-2-Clause */ #include "SidebarWidget.h" #include #include SidebarWidget::SidebarWidget() { set_fill_with_background_color(true); set_layout(); set_enabled(false); auto& tab_bar = add(); auto& outline_container = tab_bar.add_tab("Outline"); outline_container.set_layout(); outline_container.layout()->set_margins({ 4, 4, 4, 4 }); m_outline_tree_view = outline_container.add(); m_outline_tree_view->set_activates_on_selection(true); auto& thumbnails_container = tab_bar.add_tab("Thumbnails"); thumbnails_container.set_layout(); thumbnails_container.layout()->set_margins({ 4, 4, 4, 4 }); // FIXME: Add thumbnail previews }