summaryrefslogtreecommitdiff
path: root/ui
diff options
context:
space:
mode:
Diffstat (limited to 'ui')
-rw-r--r--ui/CMakeLists.txt1
-rw-r--r--ui/include/turns/ui/init.hpp11
-rw-r--r--ui/src/init.cpp15
3 files changed, 27 insertions, 0 deletions
diff --git a/ui/CMakeLists.txt b/ui/CMakeLists.txt
index e3d8941..2532059 100644
--- a/ui/CMakeLists.txt
+++ b/ui/CMakeLists.txt
@@ -1,6 +1,7 @@
# Library
add_library("ui"
+ "src/init.cpp"
"src/widgets/participant_row.cpp"
"src/widgets/turn_order_view.cpp"
"src/windows/participant_editor.cpp"
diff --git a/ui/include/turns/ui/init.hpp b/ui/include/turns/ui/init.hpp
new file mode 100644
index 0000000..09a0f40
--- /dev/null
+++ b/ui/include/turns/ui/init.hpp
@@ -0,0 +1,11 @@
+#ifndef TURNS_UI_INIT_HPP
+#define TURNS_UI_INIT_HPP
+
+namespace turns::app
+{
+
+ auto register_types() -> void;
+
+} // namespace turns::aop
+
+#endif \ No newline at end of file
diff --git a/ui/src/init.cpp b/ui/src/init.cpp
new file mode 100644
index 0000000..f10521a
--- /dev/null
+++ b/ui/src/init.cpp
@@ -0,0 +1,15 @@
+#include "turns/core/init.hpp"
+
+#include "turns/ui/widgets/participant_row.hpp"
+#include "turns/ui/widgets/turn_order_view.hpp"
+
+namespace turns::app
+{
+
+ auto register_types() -> void
+ {
+ static_cast<void>(widgets::participant_row{{}});
+ static_cast<void>(widgets::turn_order_view{{}});
+ }
+
+} // namespace turns::core \ No newline at end of file