From 1a83168d5c7269bd91043d79169898ca6893d88a Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Tue, 16 Jul 2024 16:20:47 +0200 Subject: app: rename main window to tracker --- app/include/turns/app/application.hpp | 4 +-- app/include/turns/app/windows/main.hpp | 53 ------------------------------- app/include/turns/app/windows/tracker.hpp | 53 +++++++++++++++++++++++++++++++ 3 files changed, 55 insertions(+), 55 deletions(-) delete mode 100644 app/include/turns/app/windows/main.hpp create mode 100644 app/include/turns/app/windows/tracker.hpp (limited to 'app/include') diff --git a/app/include/turns/app/application.hpp b/app/include/turns/app/application.hpp index 6506dd7..680c3af 100644 --- a/app/include/turns/app/application.hpp +++ b/app/include/turns/app/application.hpp @@ -1,7 +1,7 @@ #ifndef TURNS_APP_APPLICATION_HPP #define TURNS_APP_APPLICATION_HPP -#include "turns/app/windows/main.hpp" +#include "turns/app/windows/tracker.hpp" #include @@ -31,7 +31,7 @@ namespace turns::app AdwApplication * m_adw; Glib::RefPtr m_application; - windows::main * m_main; + windows::tracker * m_tracker; }; } // namespace turns::app diff --git a/app/include/turns/app/windows/main.hpp b/app/include/turns/app/windows/main.hpp deleted file mode 100644 index 29bad85..0000000 --- a/app/include/turns/app/windows/main.hpp +++ /dev/null @@ -1,53 +0,0 @@ -#ifndef TURNS_APP_WINDOWS_MAIN_WINDOW_HPP -#define TURNS_APP_WINDOWS_MAIN_WINDOW_HPP - -#include "turns/domain/turn_order.hpp" -#include "turns/app/widgets/turn_order_view.hpp" - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -namespace turns::app::windows -{ - - struct main : Gtk::ApplicationWindow - { - main(BaseObjectType * base, Glib::RefPtr const builder); - - private: - auto handle_add_participant() -> void; - auto handle_clear() -> void; - auto handle_edit_participant(Glib::VariantBase param) -> void; - - AdwApplicationWindow * m_adw; - Gtk::Revealer * m_controls; - Gtk::Widget * m_empty; - Gtk::Stack * m_stack; - AdwWindowTitle * m_title; - widgets::turn_order_view * m_turn_order; - - Glib::PropertyProxy m_subtitle; - - Glib::RefPtr m_clear_action_enabled{}; - Glib::RefPtr m_controls_revealed{}; - Glib::RefPtr m_visible_child_widget{}; - Glib::RefPtr m_subtitle_text{}; - - Glib::RefPtr m_clear_action{}; - }; - -} // namespace turns::app::windows - -#endif \ No newline at end of file diff --git a/app/include/turns/app/windows/tracker.hpp b/app/include/turns/app/windows/tracker.hpp new file mode 100644 index 0000000..ed7260e --- /dev/null +++ b/app/include/turns/app/windows/tracker.hpp @@ -0,0 +1,53 @@ +#ifndef TURNS_APP_WINDOWS_TRACKER_HPP +#define TURNS_APP_WINDOWS_TRACKER_HPP + +#include "turns/domain/turn_order.hpp" +#include "turns/app/widgets/turn_order_view.hpp" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace turns::app::windows +{ + + struct tracker : Gtk::ApplicationWindow + { + tracker(BaseObjectType * base, Glib::RefPtr const builder); + + private: + auto handle_add_participant() -> void; + auto handle_clear() -> void; + auto handle_edit_participant(Glib::VariantBase param) -> void; + + AdwApplicationWindow * m_adw; + Gtk::Revealer * m_controls; + Gtk::Widget * m_empty; + Gtk::Stack * m_stack; + AdwWindowTitle * m_title; + widgets::turn_order_view * m_turn_order; + + Glib::PropertyProxy m_subtitle; + + Glib::RefPtr m_clear_action_enabled{}; + Glib::RefPtr m_controls_revealed{}; + Glib::RefPtr m_visible_child_widget{}; + Glib::RefPtr m_subtitle_text{}; + + Glib::RefPtr m_clear_action{}; + }; + +} // namespace turns::app::windows + +#endif \ No newline at end of file -- cgit v1.2.3