From bfa30ed79cffee4f5c0d33b7fe7bd64581be3fdf Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Fri, 30 May 2025 11:45:54 +0200 Subject: gui: reintroduce ParticipantRow --- gui/include/init.hpp | 14 ++++++++++++++ gui/include/participant_row.hpp | 16 ++++++++-------- gui/include/template_widget.hpp | 13 ++++++------- 3 files changed, 28 insertions(+), 15 deletions(-) create mode 100644 gui/include/init.hpp (limited to 'gui/include') diff --git a/gui/include/init.hpp b/gui/include/init.hpp new file mode 100644 index 0000000..d83544e --- /dev/null +++ b/gui/include/init.hpp @@ -0,0 +1,14 @@ +/* + * SPDX-FileCopyrightText: 2025 Felix Morgner + * SPDX-License-Identifier: LGPL-2.1-only + */ + +#ifndef TURNS_GUI_INIT_HPP +#define TURNS_GUI_INIT_HPP + +namespace Turns::gui +{ + auto init() -> void; +} // namespace Turns::gui + +#endif \ No newline at end of file diff --git a/gui/include/participant_row.hpp b/gui/include/participant_row.hpp index 81b3610..1388e41 100644 --- a/gui/include/participant_row.hpp +++ b/gui/include/participant_row.hpp @@ -3,16 +3,16 @@ * SPDX-License-Identifier: LGPL-2.1-only */ -#ifndef TURNS_UI_PARTICIPANT_ROW_HPP -#define TURNS_UI_PARTICIPANT_ROW_HPP +#ifndef TURNS_GUI_PARTICIPANT_ROW_HPP +#define TURNS_GUI_PARTICIPANT_ROW_HPP -#include "turns/core/fwd.hpp" -#include "turns/ui/template_widget.hpp" +#include "template_widget.hpp" + +#include #include #include #include - #include #include #include @@ -20,7 +20,7 @@ #include -namespace turns::ui +namespace Turns::gui { struct ParticipantRow : template_widget { @@ -32,7 +32,7 @@ namespace turns::ui "toggle_defeated", }; - ParticipantRow(Glib::RefPtr participant); + ParticipantRow(Glib::RefPtr participant); auto delete_enabled() -> Glib::PropertyProxy; auto edit_enabled() -> Glib::PropertyProxy; @@ -50,6 +50,6 @@ namespace turns::ui Glib::Property m_delete_enabled; Glib::Property m_edit_enabled; }; -} // namespace turns::ui::widgets +} // namespace Turns::gui #endif \ No newline at end of file diff --git a/gui/include/template_widget.hpp b/gui/include/template_widget.hpp index f90b473..34bc5ff 100644 --- a/gui/include/template_widget.hpp +++ b/gui/include/template_widget.hpp @@ -6,20 +6,19 @@ #ifndef TURNS_UI_TEMPLATE_WIDGET_HPP #define TURNS_UI_TEMPLATE_WIDGET_HPP +#include +#include +#include + #include #include #include - #include -#include -#include -#include - #include #include -namespace turns::ui +namespace Turns::gui { template @@ -67,6 +66,6 @@ namespace turns::ui } }; -} // namespace turns::ui::widgets +} // namespace Turns::gui #endif \ No newline at end of file -- cgit v1.2.3