From 904601abbc7c97d3c4b9b8224708e51c51d860ec Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Thu, 25 Jul 2024 18:17:14 +0200 Subject: ui/tracker: implement simple saving mechanism --- ui/include/turns/ui/windows/tracker.hpp | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'ui/include') diff --git a/ui/include/turns/ui/windows/tracker.hpp b/ui/include/turns/ui/windows/tracker.hpp index b1af178..a5fe833 100644 --- a/ui/include/turns/ui/windows/tracker.hpp +++ b/ui/include/turns/ui/windows/tracker.hpp @@ -1,22 +1,28 @@ #ifndef TURNS_UI_WINDOWS_TRACKER_HPP #define TURNS_UI_WINDOWS_TRACKER_HPP -#include "turns/ui/widgets/turn_order_view.hpp" #include "turns/core/turn_order.hpp" +#include "turns/ui/widgets/turn_order_view.hpp" #include #include #include +#include + #include #include #include +#include #include #include #include #include +#include +#include + namespace turns::ui::windows { @@ -28,6 +34,8 @@ namespace turns::ui::windows auto handle_add_participant() -> void; auto handle_delete_participant(Glib::VariantBase param) -> void; auto handle_edit_participant(Glib::VariantBase param) -> void; + auto handle_save() -> void; + auto handle_save_finish(Glib::RefPtr result, Glib::RefPtr dialog) -> void; auto handle_stop() -> void; auto setup_actions() -> void; @@ -37,14 +45,18 @@ namespace turns::ui::windows AdwApplicationWindow * m_adw; Gtk::Revealer * m_controls; Gtk::Widget * m_empty; + AdwToastOverlay * m_overlay; Gtk::Stack * m_stack; Gtk::Button * m_start; AdwWindowTitle * m_title; Glib::RefPtr m_turn_order; widgets::turn_order_view * m_turn_order_view; Glib::PropertyProxy m_subtitle; + + std::string m_file_tag{}; + std::optional m_file_name{}; }; -} // namespace turns::app::windows +} // namespace turns::ui::windows #endif \ No newline at end of file -- cgit v1.2.3