From e28cff88c03afa5cd90951deeff62b4efb910421 Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Mon, 15 Jul 2024 16:45:46 +0200 Subject: app: rename participant_list_row --- .../turns/app/widgets/participant_list_row.hpp | 50 ---------------------- app/include/turns/app/widgets/participant_row.hpp | 50 ++++++++++++++++++++++ 2 files changed, 50 insertions(+), 50 deletions(-) delete mode 100644 app/include/turns/app/widgets/participant_list_row.hpp create mode 100644 app/include/turns/app/widgets/participant_row.hpp (limited to 'app/include') diff --git a/app/include/turns/app/widgets/participant_list_row.hpp b/app/include/turns/app/widgets/participant_list_row.hpp deleted file mode 100644 index 6a9a6c2..0000000 --- a/app/include/turns/app/widgets/participant_list_row.hpp +++ /dev/null @@ -1,50 +0,0 @@ -#ifndef TURNS_APP_WIDGETS_PARTICIPANT_LIST_ROW_HPP -#define TURNS_APP_WIDGETS_PARTICIPANT_LIST_ROW_HPP - -#include "turns/app/widgets/template_widget.hpp" -#include "turns/domain/participant.hpp" - -#include - -#include -#include -#include -#include -#include -#include -#include - -namespace turns::app::widgets -{ - struct participant_list_row : template_widget - { - auto constexpr inline static children = std::array{ - "delete", - "edit", - "subtitle", - "title", - "toggle_defeated", - }; - - participant_list_row(Glib::RefPtr participant); - - auto set_subtitle(Glib::ustring const & value) -> void; - auto set_title(Glib::ustring const & value) -> void; - - private: - auto handle_delete() -> void; - auto handle_edit() -> void; - - Gtk::Button * m_delete; - Gtk::Button * m_edit; - Gtk::Label * m_subtitle; - Gtk::Label * m_title; - Gtk::ToggleButton * m_toggle_defeated; - - Glib::RefPtr m_subtitle_visibility{}; - Glib::RefPtr m_title_visibility{}; - Glib::RefPtr m_toggle_defeated_icon{}; - }; -} // namespace turns::app::widgets - -#endif \ No newline at end of file diff --git a/app/include/turns/app/widgets/participant_row.hpp b/app/include/turns/app/widgets/participant_row.hpp new file mode 100644 index 0000000..a8f225f --- /dev/null +++ b/app/include/turns/app/widgets/participant_row.hpp @@ -0,0 +1,50 @@ +#ifndef TURNS_APP_WIDGETS_PARTICIPANT_ROW_HPP +#define TURNS_APP_WIDGETS_PARTICIPANT_ROW_HPP + +#include "turns/app/widgets/template_widget.hpp" +#include "turns/domain/participant.hpp" + +#include + +#include +#include +#include +#include +#include +#include +#include + +namespace turns::app::widgets +{ + struct participant_row : template_widget + { + auto constexpr inline static children = std::array{ + "delete", + "edit", + "subtitle", + "title", + "toggle_defeated", + }; + + participant_row(Glib::RefPtr participant); + + auto set_subtitle(Glib::ustring const & value) -> void; + auto set_title(Glib::ustring const & value) -> void; + + private: + auto handle_delete() -> void; + auto handle_edit() -> void; + + Gtk::Button * m_delete; + Gtk::Button * m_edit; + Gtk::Label * m_subtitle; + Gtk::Label * m_title; + Gtk::ToggleButton * m_toggle_defeated; + + Glib::RefPtr m_subtitle_visibility{}; + Glib::RefPtr m_title_visibility{}; + Glib::RefPtr m_toggle_defeated_icon{}; + }; +} // namespace turns::app::widgets + +#endif \ No newline at end of file -- cgit v1.2.3