/* * SPDX-FileCopyrightText: 2025 Felix Morgner * SPDX-License-Identifier: LGPL-2.1-only */ #ifndef TURNS_GUI_TURN_ORDER_VIEW_HPP #define TURNS_GUI_TURN_ORDER_VIEW_HPP #include "template_widget.hpp" #include #include #include #include #include #include #include #include namespace Turns::gui { struct TurnOrderView : template_widget { using model_type = TurnOrder; auto constexpr inline static children = std::array{ "progress", "view", }; explicit TurnOrderView(Glib::RefPtr model = {}); private: auto handle_create_row(Glib::RefPtr const item) -> Gtk::Widget *; Glib::RefPtr m_model; Gtk::ProgressBar * m_progress; Gtk::ListBox * m_view; }; } // namespace Turns::gui #endif