diff options
| author | Felix Morgner <felix.morgner@gmail.com> | 2024-07-25 08:20:05 +0200 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@gmail.com> | 2024-07-25 08:20:05 +0200 |
| commit | 10a8d40e12b30beec0781deb0af894f66fe3561f (patch) | |
| tree | 43e5ce91406175c0ed141010affff8302e3fa5e1 /ui | |
| parent | 075837dc248ee36ec5abe7026bbb44b3c0609d29 (diff) | |
| download | turns-10a8d40e12b30beec0781deb0af894f66fe3561f.tar.xz turns-10a8d40e12b30beec0781deb0af894f66fe3561f.zip | |
turns: add initialization functions
Diffstat (limited to 'ui')
| -rw-r--r-- | ui/CMakeLists.txt | 1 | ||||
| -rw-r--r-- | ui/include/turns/ui/init.hpp | 11 | ||||
| -rw-r--r-- | ui/src/init.cpp | 15 |
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 |
