summaryrefslogtreecommitdiff
path: root/app/src/windows/create_participant.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'app/src/windows/create_participant.cpp')
-rw-r--r--app/src/windows/create_participant.cpp31
1 files changed, 31 insertions, 0 deletions
diff --git a/app/src/windows/create_participant.cpp b/app/src/windows/create_participant.cpp
new file mode 100644
index 0000000..b6d674f
--- /dev/null
+++ b/app/src/windows/create_participant.cpp
@@ -0,0 +1,31 @@
+#include "turns/app/windows/create_participant.hpp"
+
+#include <print>
+
+#include <gtkmm/listboxrow.h>
+
+namespace turns::app::windows
+{
+
+ create_participant::create_participant(BaseObjectType * base, Glib::RefPtr<Gtk::Builder> const builder)
+ : Gtk::Widget{base}
+ , m_adw{ADW_DIALOG(gobj())}
+ , m_finish{builder->get_widget<Gtk::Button>("finish")}
+ {
+ m_disposition = ADW_COMBO_ROW(builder->get_widget<Gtk::ListBoxRow>("disposition")->gobj());
+ m_name = ADW_ENTRY_ROW(builder->get_widget<Gtk::ListBoxRow>("name")->gobj());
+ m_order = ADW_SPIN_ROW(builder->get_widget<Gtk::ListBoxRow>("order")->gobj());
+
+ m_finish->signal_clicked().connect(sigc::mem_fun(*this, &create_participant::handle_finish_clicked));
+ }
+
+ auto create_participant::present(Gtk::Widget * parent) -> void
+ {
+ adw_dialog_present(m_adw, parent->gobj());
+ }
+
+ auto create_participant::handle_finish_clicked() -> void
+ {
+ adw_dialog_close(m_adw);
+ }
+} // namespace turns::app::windows \ No newline at end of file