blob: bf3531a5ab080c531872e4ae2db54f11d86eac80 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
#ifndef TURNS_APP_WINDOWS_TRACKER_HPP
#define TURNS_APP_WINDOWS_TRACKER_HPP
#include "turns/app/widgets/turn_order_view.hpp"
#include "turns/core/turn_order.hpp"
#include <glibmm/refptr.h>
#include <glibmm/ustring.h>
#include <glibmm/variant.h>
#include <gtkmm/applicationwindow.h>
#include <gtkmm/builder.h>
#include <gtkmm/button.h>
#include <gtkmm/revealer.h>
#include <gtkmm/stack.h>
#include <gtkmm/widget.h>
#include <adwaita.h>
namespace turns::app::windows
{
struct tracker : Gtk::ApplicationWindow
{
tracker(BaseObjectType * base, Glib::RefPtr<Gtk::Builder> const builder);
private:
auto handle_add_participant() -> void;
auto handle_delete_participant(Glib::VariantBase param) -> void;
auto handle_edit_participant(Glib::VariantBase param) -> void;
auto handle_stop() -> void;
auto setup_actions() -> void;
AdwApplicationWindow * m_adw;
Gtk::Revealer * m_controls;
Gtk::Widget * m_empty;
Gtk::Stack * m_stack;
Gtk::Button * m_start;
AdwWindowTitle * m_title;
Glib::RefPtr<core::turn_order> m_turn_order;
widgets::turn_order_view * m_turn_order_view;
Glib::PropertyProxy<Glib::ustring> m_subtitle;
};
} // namespace turns::app::windows
#endif
|