From 10a8d40e12b30beec0781deb0af894f66fe3561f Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Thu, 25 Jul 2024 08:20:05 +0200 Subject: turns: add initialization functions --- ui/CMakeLists.txt | 1 + ui/include/turns/ui/init.hpp | 11 +++++++++++ ui/src/init.cpp | 15 +++++++++++++++ 3 files changed, 27 insertions(+) create mode 100644 ui/include/turns/ui/init.hpp create mode 100644 ui/src/init.cpp (limited to 'ui') 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(widgets::participant_row{{}}); + static_cast(widgets::turn_order_view{{}}); + } + +} // namespace turns::core \ No newline at end of file -- cgit v1.2.3