aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@gmail.com>2025-05-24 11:58:39 +0200
committerFelix Morgner <felix.morgner@gmail.com>2025-05-24 11:58:39 +0200
commit72ab1fb4c1bf363f46470816d8b914a78ac493c4 (patch)
tree27349a1bacbab4ea698be35d2d3d9b5184b15ca1
parentb7f2ff4d991ae068f7834bf8e565f6261bf7fff1 (diff)
downloadturns-72ab1fb4c1bf363f46470816d8b914a78ac493c4.tar.xz
turns-72ab1fb4c1bf363f46470816d8b914a78ac493c4.zip
gui: restructure file layout and apply licenses
-rw-r--r--.clang-format5
-rw-r--r--.clangd3
-rw-r--r--.gitlab-ci.yml3
-rw-r--r--.gitmodules3
-rw-r--r--REUSE.toml28
-rw-r--r--gui/CMakeLists.txt3
-rw-r--r--gui/desktop.in3
-rw-r--r--gui/gschema.xml (renamed from gui/schemas/ch.arknet.Turns.gschema.xml)2
-rw-r--r--gui/include/messages.hpp (renamed from gui/lang/include/turns/lang/messages.hpp)5
-rw-r--r--gui/include/participant_editor.hpp (renamed from gui/ui/include/turns/ui/participant_editor.hpp)5
-rw-r--r--gui/include/participant_row.hpp (renamed from gui/ui/include/turns/ui/participant_row.hpp)5
-rw-r--r--gui/include/preferences.hpp (renamed from gui/ui/include/turns/ui/preferences.hpp)5
-rw-r--r--gui/include/settings.hpp (renamed from gui/settings.hpp)5
-rw-r--r--gui/include/template_widget.hpp (renamed from gui/ui/include/turns/ui/template_widget.hpp)5
-rw-r--r--gui/include/tracker.hpp (renamed from gui/ui/include/turns/ui/tracker.hpp)5
-rw-r--r--gui/include/turn_order_view.hpp (renamed from gui/ui/include/turns/ui/turn_order_view.hpp)5
-rw-r--r--gui/lang/CMakeLists.txt77
-rw-r--r--gui/lang/de.po (renamed from gui/lang/po/de.po)0
-rw-r--r--gui/lang/de_CH.po (renamed from gui/lang/po/de_CH.po)0
-rw-r--r--gui/lang/en.po (renamed from gui/lang/po/en.po)0
-rw-r--r--gui/metainfo.xml2
-rw-r--r--gui/mime.xml2
-rw-r--r--gui/src/main.cpp5
-rw-r--r--gui/src/participant_editor.cpp (renamed from gui/ui/src/participant_editor.cpp)5
-rw-r--r--gui/src/participant_row.cpp (renamed from gui/ui/src/participant_row.cpp)5
-rw-r--r--gui/src/preferences.cpp (renamed from gui/ui/src/preferences.cpp)5
-rw-r--r--gui/src/settings.cpp (renamed from gui/settings.cpp)5
-rw-r--r--gui/src/tracker.cpp (renamed from gui/ui/src/tracker.cpp)5
-rw-r--r--gui/src/tracker_actions.cpp (renamed from gui/ui/src/tracker/actions.cpp)5
-rw-r--r--gui/src/tracker_event_handlers.cpp (renamed from gui/ui/src/tracker/event_handlers.cpp)5
-rw-r--r--gui/src/turn_order_view.cpp (renamed from gui/ui/src/turn_order_view.cpp)5
-rw-r--r--gui/style/CMakeLists.txt18
-rw-r--r--gui/tests/gtk_test_init.cpp (renamed from gui/ui/tests/gtk_test_init.cpp)5
-rw-r--r--gui/tests/intl_test_init.cpp (renamed from gui/lang/tests/intl_test_init.cpp)5
-rw-r--r--gui/tests/messages.cpp (renamed from gui/lang/tests/messages.cpp)5
-rw-r--r--gui/tests/participant_editor.cpp (renamed from gui/ui/tests/participant_editor.cpp)5
-rw-r--r--gui/tests/participant_row.cpp (renamed from gui/ui/tests/participant_row.cpp)5
-rw-r--r--gui/tests/resources.cpp (renamed from gui/ui/tests/resources.cpp)5
-rw-r--r--gui/tests/tracker.cpp (renamed from gui/ui/tests/tracker.cpp)5
-rw-r--r--gui/ui/CMakeLists.txt59
-rw-r--r--gui/ui/include/turns/ui/fwd.hpp14
-rw-r--r--gui/ui/include/turns/ui/init.hpp15
-rw-r--r--gui/ui/participant_editor.ui (renamed from gui/ui/src/participant_editor.ui)2
-rw-r--r--gui/ui/participant_row.ui (renamed from gui/ui/src/participant_row.ui)0
-rw-r--r--gui/ui/preferences.ui (renamed from gui/ui/src/preferences.ui)0
-rw-r--r--gui/ui/src/init.cpp23
-rw-r--r--gui/ui/style-dark.css (renamed from gui/style/style-dark.css)0
-rw-r--r--gui/ui/style.css (renamed from gui/style/style.css)0
-rw-r--r--gui/ui/tracker.ui (renamed from gui/ui/src/tracker.ui)2
-rw-r--r--gui/ui/turn_order_view.ui (renamed from gui/ui/src/turn_order_view.ui)0
-rw-r--r--gui/ui/turns.cmb10
-rw-r--r--gui/ui/ui.cmb10
52 files changed, 172 insertions, 232 deletions
diff --git a/.clang-format b/.clang-format
index 98b4862..187d49c 100644
--- a/.clang-format
+++ b/.clang-format
@@ -1,7 +1,4 @@
-# SPDX-FileCopyrightText: 2025 Felix Morgner <felix.morgner@gmail.com>
-# SPDX-License-Identifier: CC0-1.0
-
----
+---
Language: Cpp
AccessModifierOffset: -2
diff --git a/.clangd b/.clangd
index 08ec78d..2c38de5 100644
--- a/.clangd
+++ b/.clangd
@@ -1,6 +1,3 @@
-# SPDX-FileCopyrightText: 2025 Felix Morgner <felix.morgner@gmail.com>
-# SPDX-License-Identifier: CC0-1.0
-
CompileFlags:
Remove: [-fmodules-ts, -fdeps-format=*, -fmodule-mapper=*, -fcondition-coverage]
Diagnostics:
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 8df6d7b..faea96e 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,6 +1,3 @@
-# SPDX-FileCopyrightText: 2025 Felix Morgner <felix.morgner@gmail.com>
-# SPDX-License-Identifier: CC0-1.0
-
stages:
- build
- coverage
diff --git a/.gitmodules b/.gitmodules
index 92078e8..a29ece2 100644
--- a/.gitmodules
+++ b/.gitmodules
@@ -1,6 +1,3 @@
-# SPDX-FileCopyrightText: 2025 Felix Morgner <felix.morgner@gmail.com>
-# SPDX-License-Identifier: CC0-1.0
-
[submodule "deps/libadwaitamm"]
path = deps/libadwaitamm
url = ../libadwaitamm.git
diff --git a/REUSE.toml b/REUSE.toml
new file mode 100644
index 0000000..5a94cb2
--- /dev/null
+++ b/REUSE.toml
@@ -0,0 +1,28 @@
+version = 1
+
+[[annotations]]
+path = [
+ "gui/**.cmb",
+ "gui/**.css",
+ "gui/**.po",
+ "gui/**.ui",
+ "cmake/Modules/GlibCompileResources.in"
+]
+precedence = "aggregate"
+SPDX-FileCopyrightText = "2025 Felix Morgner <felix.morgner@gmail.com>"
+SPDX-License-Identifier = "LGPL-2.1-only"
+
+[[annotations]]
+path = [
+ ".vscode/**.json",
+ ".clang-format",
+ ".clangd",
+ ".gitmodules",
+ ".gitlab-ci.yml",
+ ".lcovrc",
+ "CMakePresets.json",
+ "README.md",
+]
+precedence = "aggregate"
+SPDX-FileCopyrightText = "2025 Felix Morgner <felix.morgner@gmail.com>"
+SPDX-License-Identifier = "CC0-1.0" \ No newline at end of file
diff --git a/gui/CMakeLists.txt b/gui/CMakeLists.txt
index 1ae7a31..ebdb1be 100644
--- a/gui/CMakeLists.txt
+++ b/gui/CMakeLists.txt
@@ -1,4 +1,5 @@
-
+# SPDX-FileCopyrightText: 2025 Felix Morgner <felix.morgner@gmail.com>
+# SPDX-License-Identifier: LGPL-2.1-only
# add_executable("app"
# "src/main.cpp"
diff --git a/gui/desktop.in b/gui/desktop.in
index 99c0307..7e767ba 100644
--- a/gui/desktop.in
+++ b/gui/desktop.in
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: 2025 Felix Morgner <felix.morgner@gmail.com>
+# SPDX-License-Identifier: LGPL-2.1-only
+
[Desktop Entry]
Type=Application
Name=Turns
diff --git a/gui/schemas/ch.arknet.Turns.gschema.xml b/gui/gschema.xml
index d764608..bea1f8b 100644
--- a/gui/schemas/ch.arknet.Turns.gschema.xml
+++ b/gui/gschema.xml
@@ -1,4 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
+<!--SPDX-FileCopyrightText: 2025 Felix Morgner <felix.morgner@gmail.com>-->
+<!--SPDX-License-Identifier: LGPL-2.1-only-->
<schemalist>
<schema path="/ch/arknet/Turns/" id="ch.arknet.Turns">
<key name="disposition-color-friendly" type="s">
diff --git a/gui/lang/include/turns/lang/messages.hpp b/gui/include/messages.hpp
index e57fce4..e29580b 100644
--- a/gui/lang/include/turns/lang/messages.hpp
+++ b/gui/include/messages.hpp
@@ -1,3 +1,8 @@
+/*
+ * SPDX-FileCopyrightText: 2025 Felix Morgner <felix.morgner@gmail.com>
+ * SPDX-License-Identifier: LGPL-2.1-only
+ */
+
#ifndef TURNS_LANG_MESSAGES_HPP
#define TURNS_LANG_MESSAGES_HPP
diff --git a/gui/ui/include/turns/ui/participant_editor.hpp b/gui/include/participant_editor.hpp
index 0fbc504..39b721c 100644
--- a/gui/ui/include/turns/ui/participant_editor.hpp
+++ b/gui/include/participant_editor.hpp
@@ -1,3 +1,8 @@
+/*
+ * SPDX-FileCopyrightText: 2025 Felix Morgner <felix.morgner@gmail.com>
+ * SPDX-License-Identifier: LGPL-2.1-only
+ */
+
#ifndef TURNS_UI_PARTICIPANT_EDITOR_HPP
#define TURNS_UI_PARTICIPANT_EDITOR_HPP
diff --git a/gui/ui/include/turns/ui/participant_row.hpp b/gui/include/participant_row.hpp
index 561214b..81b3610 100644
--- a/gui/ui/include/turns/ui/participant_row.hpp
+++ b/gui/include/participant_row.hpp
@@ -1,3 +1,8 @@
+/*
+ * SPDX-FileCopyrightText: 2025 Felix Morgner <felix.morgner@gmail.com>
+ * SPDX-License-Identifier: LGPL-2.1-only
+ */
+
#ifndef TURNS_UI_PARTICIPANT_ROW_HPP
#define TURNS_UI_PARTICIPANT_ROW_HPP
diff --git a/gui/ui/include/turns/ui/preferences.hpp b/gui/include/preferences.hpp
index b68b91c..c5bace3 100644
--- a/gui/ui/include/turns/ui/preferences.hpp
+++ b/gui/include/preferences.hpp
@@ -1,3 +1,8 @@
+/*
+ * SPDX-FileCopyrightText: 2025 Felix Morgner <felix.morgner@gmail.com>
+ * SPDX-License-Identifier: LGPL-2.1-only
+ */
+
#ifndef TURNS_UI_PREFERENCES_HPP
#define TURNS_UI_PREFERENCES_HPP
diff --git a/gui/settings.hpp b/gui/include/settings.hpp
index 304394d..70e429a 100644
--- a/gui/settings.hpp
+++ b/gui/include/settings.hpp
@@ -1,3 +1,8 @@
+/*
+ * SPDX-FileCopyrightText: 2025 Felix Morgner <felix.morgner@gmail.com>
+ * SPDX-License-Identifier: LGPL-2.1-only
+ */
+
#ifndef TURNS_CORE_SETTINGS_HPP
#define TURNS_CORE_SETTINGS_HPP
diff --git a/gui/ui/include/turns/ui/template_widget.hpp b/gui/include/template_widget.hpp
index 7147560..f90b473 100644
--- a/gui/ui/include/turns/ui/template_widget.hpp
+++ b/gui/include/template_widget.hpp
@@ -1,3 +1,8 @@
+/*
+ * SPDX-FileCopyrightText: 2025 Felix Morgner <felix.morgner@gmail.com>
+ * SPDX-License-Identifier: LGPL-2.1-only
+ */
+
#ifndef TURNS_UI_TEMPLATE_WIDGET_HPP
#define TURNS_UI_TEMPLATE_WIDGET_HPP
diff --git a/gui/ui/include/turns/ui/tracker.hpp b/gui/include/tracker.hpp
index 2e3adf5..d639aee 100644
--- a/gui/ui/include/turns/ui/tracker.hpp
+++ b/gui/include/tracker.hpp
@@ -1,3 +1,8 @@
+/*
+ * SPDX-FileCopyrightText: 2025 Felix Morgner <felix.morgner@gmail.com>
+ * SPDX-License-Identifier: LGPL-2.1-only
+ */
+
#ifndef TURNS_UI_TRACKER_HPP
#define TURNS_UI_TRACKER_HPP
diff --git a/gui/ui/include/turns/ui/turn_order_view.hpp b/gui/include/turn_order_view.hpp
index 8dae4e4..9a7ede6 100644
--- a/gui/ui/include/turns/ui/turn_order_view.hpp
+++ b/gui/include/turn_order_view.hpp
@@ -1,3 +1,8 @@
+/*
+ * SPDX-FileCopyrightText: 2025 Felix Morgner <felix.morgner@gmail.com>
+ * SPDX-License-Identifier: LGPL-2.1-only
+ */
+
#ifndef TURNS_UI_TURN_ORDER_VIEW_HPP
#define TURNS_UI_TURN_ORDER_VIEW_HPP
diff --git a/gui/lang/CMakeLists.txt b/gui/lang/CMakeLists.txt
deleted file mode 100644
index 1842615..0000000
--- a/gui/lang/CMakeLists.txt
+++ /dev/null
@@ -1,77 +0,0 @@
-set(TRANSLATIONS
- "de"
- "de_CH"
- "en"
-)
-
-foreach(LANG IN LISTS TRANSLATIONS)
- set(BINARY_FILE "${CMAKE_CURRENT_BINARY_DIR}/${LANG}/LC_MESSAGES/turns.mo")
- set(SOURCE_FILE "${CMAKE_CURRENT_SOURCE_DIR}/po/${LANG}.po")
-
- list(APPEND TRANSLATION_BINARIES "${BINARY_FILE}")
-
- add_custom_command(OUTPUT "${BINARY_FILE}"
- COMMAND "${GETTEXT_MSGFMT_EXECUTABLE}"
- ARGS
- "-o"
- "${BINARY_FILE}"
- "${SOURCE_FILE}"
- WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}"
- DEPENDS
- "${SOURCE_FILE}"
- COMMENT "Processing translation ${LANG}"
- )
-
- install(FILES "${BINARY_FILE}"
- DESTINATION "${CMAKE_INSTALL_FULL_LOCALEDIR}/${LANG}/LC_MESSAGES"
- )
-endforeach()
-
-add_custom_target("mofiles" DEPENDS ${TRANSLATION_BINARIES})
-
-add_library("lang" INTERFACE)
-
-add_library("turns::lang" ALIAS "lang")
-
-if(TURNS_USE_INSTALLED_TRANSLATIONS)
- target_compile_definitions("lang" INTERFACE
- "LOCALEDIR=\"${CMAKE_INSTALL_FULL_LOCALEDIR}\""
- )
-else()
- target_compile_definitions("lang" INTERFACE
- "LOCALEDIR=\"${CMAKE_CURRENT_BINARY_DIR}\""
- )
-endif()
-
-target_include_directories("lang" INTERFACE
- "include"
-)
-
-add_dependencies("lang" "mofiles")
-
-# Tests
-
-add_executable("lang-tests"
- "tests/intl_test_init.cpp"
-
- "tests/messages.cpp"
-)
-
-target_link_libraries("lang-tests" PRIVATE
- "Catch2::Catch2WithMain"
- "Intl::Intl"
-
- "turns::lang"
-)
-
-target_compile_definitions("lang-tests" PRIVATE
- "TESTLOCALEDIR=\"${CMAKE_CURRENT_BINARY_DIR}\""
-)
-
-enable_coverage("lang-tests")
-
-target_link_options("lang-tests" PRIVATE
- "$<$<AND:$<CXX_COMPILER_ID:GNU,Clang>,$<CONFIG:Debug>>:--coverage>"
-)
-
-catch_discover_tests("lang-tests") \ No newline at end of file
diff --git a/gui/lang/po/de.po b/gui/lang/de.po
index 15c2d72..15c2d72 100644
--- a/gui/lang/po/de.po
+++ b/gui/lang/de.po
diff --git a/gui/lang/po/de_CH.po b/gui/lang/de_CH.po
index e79f91e..e79f91e 100644
--- a/gui/lang/po/de_CH.po
+++ b/gui/lang/de_CH.po
diff --git a/gui/lang/po/en.po b/gui/lang/en.po
index 54df09f..54df09f 100644
--- a/gui/lang/po/en.po
+++ b/gui/lang/en.po
diff --git a/gui/metainfo.xml b/gui/metainfo.xml
index 621c1ee..f8beb6b 100644
--- a/gui/metainfo.xml
+++ b/gui/metainfo.xml
@@ -1,4 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
+<!--SPDX-FileCopyrightText: 2025 Felix Morgner <felix.morgner@gmail.com>-->
+<!--SPDX-License-Identifier: LGPL-2.1-only-->
<component type="desktop">
<id>ch.arknet.Turns</id>
<metadata_license>CC-BY-SA-4.0</metadata_license>
diff --git a/gui/mime.xml b/gui/mime.xml
index 92e0ff4..ffa6d31 100644
--- a/gui/mime.xml
+++ b/gui/mime.xml
@@ -1,4 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
+<!--SPDX-FileCopyrightText: 2025 Felix Morgner <felix.morgner@gmail.com>-->
+<!--SPDX-License-Identifier: LGPL-2.1-only-->
<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
<mime-type type="text/x-turn-order">
<comment>Turn order file</comment>
diff --git a/gui/src/main.cpp b/gui/src/main.cpp
index 030aa0f..a1f9843 100644
--- a/gui/src/main.cpp
+++ b/gui/src/main.cpp
@@ -1,3 +1,8 @@
+/*
+ * SPDX-FileCopyrightText: 2025 Felix Morgner <felix.morgner@gmail.com>
+ * SPDX-License-Identifier: LGPL-2.1-only
+ */
+
// #include "turns/core/init.hpp"
// #include "turns/core/settings.hpp"
// #include "turns/ui/init.hpp"
diff --git a/gui/ui/src/participant_editor.cpp b/gui/src/participant_editor.cpp
index 8c83559..998d566 100644
--- a/gui/ui/src/participant_editor.cpp
+++ b/gui/src/participant_editor.cpp
@@ -1,3 +1,8 @@
+/*
+ * SPDX-FileCopyrightText: 2025 Felix Morgner <felix.morgner@gmail.com>
+ * SPDX-License-Identifier: LGPL-2.1-only
+ */
+
#include "turns/ui/participant_editor.hpp"
#include "turns/core/disposition.hpp"
diff --git a/gui/ui/src/participant_row.cpp b/gui/src/participant_row.cpp
index 7ce8e53..c0f53df 100644
--- a/gui/ui/src/participant_row.cpp
+++ b/gui/src/participant_row.cpp
@@ -1,3 +1,8 @@
+/*
+ * SPDX-FileCopyrightText: 2025 Felix Morgner <felix.morgner@gmail.com>
+ * SPDX-License-Identifier: LGPL-2.1-only
+ */
+
#include "turns/ui/participant_row.hpp"
#include "turns/core/disposition.hpp"
diff --git a/gui/ui/src/preferences.cpp b/gui/src/preferences.cpp
index 88e6d0f..cd6cdbf 100644
--- a/gui/ui/src/preferences.cpp
+++ b/gui/src/preferences.cpp
@@ -1,3 +1,8 @@
+/*
+ * SPDX-FileCopyrightText: 2025 Felix Morgner <felix.morgner@gmail.com>
+ * SPDX-License-Identifier: LGPL-2.1-only
+ */
+
#include "turns/ui/preferences.hpp"
#include "turns/core/settings.hpp"
diff --git a/gui/settings.cpp b/gui/src/settings.cpp
index 13cf665..161a709 100644
--- a/gui/settings.cpp
+++ b/gui/src/settings.cpp
@@ -1,3 +1,8 @@
+/*
+ * SPDX-FileCopyrightText: 2025 Felix Morgner <felix.morgner@gmail.com>
+ * SPDX-License-Identifier: LGPL-2.1-only
+ */
+
#include "turns/core/settings.hpp"
#include <glibmm/refptr.h>
diff --git a/gui/ui/src/tracker.cpp b/gui/src/tracker.cpp
index d67a6e0..dd926b5 100644
--- a/gui/ui/src/tracker.cpp
+++ b/gui/src/tracker.cpp
@@ -1,3 +1,8 @@
+/*
+ * SPDX-FileCopyrightText: 2025 Felix Morgner <felix.morgner@gmail.com>
+ * SPDX-License-Identifier: LGPL-2.1-only
+ */
+
#include "turns/ui/tracker.hpp"
#include "turns/core/settings.hpp"
diff --git a/gui/ui/src/tracker/actions.cpp b/gui/src/tracker_actions.cpp
index ba48177..7149f0e 100644
--- a/gui/ui/src/tracker/actions.cpp
+++ b/gui/src/tracker_actions.cpp
@@ -1,3 +1,8 @@
+/*
+ * SPDX-FileCopyrightText: 2025 Felix Morgner <felix.morgner@gmail.com>
+ * SPDX-License-Identifier: LGPL-2.1-only
+ */
+
#include "turns/core/participant.hpp"
#include "turns/lang/messages.hpp"
#include "turns/ui/participant_editor.hpp"
diff --git a/gui/ui/src/tracker/event_handlers.cpp b/gui/src/tracker_event_handlers.cpp
index 78eb82b..ae0328c 100644
--- a/gui/ui/src/tracker/event_handlers.cpp
+++ b/gui/src/tracker_event_handlers.cpp
@@ -1,3 +1,8 @@
+/*
+ * SPDX-FileCopyrightText: 2025 Felix Morgner <felix.morgner@gmail.com>
+ * SPDX-License-Identifier: LGPL-2.1-only
+ */
+
#include "turns/lang/messages.hpp"
#include "turns/ui/tracker.hpp"
diff --git a/gui/ui/src/turn_order_view.cpp b/gui/src/turn_order_view.cpp
index 08fdf5d..5e5d550 100644
--- a/gui/ui/src/turn_order_view.cpp
+++ b/gui/src/turn_order_view.cpp
@@ -1,3 +1,8 @@
+/*
+ * SPDX-FileCopyrightText: 2025 Felix Morgner <felix.morgner@gmail.com>
+ * SPDX-License-Identifier: LGPL-2.1-only
+ */
+
#include "turns/ui/turn_order_view.hpp"
#include "turns/core/participant.hpp"
diff --git a/gui/style/CMakeLists.txt b/gui/style/CMakeLists.txt
deleted file mode 100644
index 8ddbae8..0000000
--- a/gui/style/CMakeLists.txt
+++ /dev/null
@@ -1,18 +0,0 @@
-add_library("style")
-
-add_library("turns::style" ALIAS "style")
-
-target_add_glib_resources("style"
- PREFIX "ch/arknet/Turns"
- CSS_FILES
- "style.css"
- "style-dark.css"
-)
-
-target_link_libraries("style" PUBLIC
- "PkgConfig::giomm"
- PRIVATE
- "$<$<AND:$<CXX_COMPILER_ID:GNU,Clang>,$<CONFIG:Debug>>:gcov>"
-)
-
-enable_coverage("style")
diff --git a/gui/ui/tests/gtk_test_init.cpp b/gui/tests/gtk_test_init.cpp
index bfa885f..fdefa74 100644
--- a/gui/ui/tests/gtk_test_init.cpp
+++ b/gui/tests/gtk_test_init.cpp
@@ -1,3 +1,8 @@
+/*
+ * SPDX-FileCopyrightText: 2025 Felix Morgner <felix.morgner@gmail.com>
+ * SPDX-License-Identifier: LGPL-2.1-only
+ */
+
#include "turns/core/init.hpp"
#include "turns/ui/init.hpp"
diff --git a/gui/lang/tests/intl_test_init.cpp b/gui/tests/intl_test_init.cpp
index 5438179..e7b7c0f 100644
--- a/gui/lang/tests/intl_test_init.cpp
+++ b/gui/tests/intl_test_init.cpp
@@ -1,3 +1,8 @@
+/*
+ * SPDX-FileCopyrightText: 2025 Felix Morgner <felix.morgner@gmail.com>
+ * SPDX-License-Identifier: LGPL-2.1-only
+ */
+
#include <catch2/reporters/catch_reporter_event_listener.hpp>
#include <catch2/reporters/catch_reporter_registrars.hpp>
diff --git a/gui/lang/tests/messages.cpp b/gui/tests/messages.cpp
index cecb038..6ff8936 100644
--- a/gui/lang/tests/messages.cpp
+++ b/gui/tests/messages.cpp
@@ -1,3 +1,8 @@
+/*
+ * SPDX-FileCopyrightText: 2025 Felix Morgner <felix.morgner@gmail.com>
+ * SPDX-License-Identifier: LGPL-2.1-only
+ */
+
#include "turns/lang/messages.hpp"
#include <catch2/catch_test_macros.hpp>
diff --git a/gui/ui/tests/participant_editor.cpp b/gui/tests/participant_editor.cpp
index fee0313..b5ddb9f 100644
--- a/gui/ui/tests/participant_editor.cpp
+++ b/gui/tests/participant_editor.cpp
@@ -1,3 +1,8 @@
+/*
+ * SPDX-FileCopyrightText: 2025 Felix Morgner <felix.morgner@gmail.com>
+ * SPDX-License-Identifier: LGPL-2.1-only
+ */
+
#include "turns/ui/participant_editor.hpp"
#include "turns/core/disposition.hpp"
diff --git a/gui/ui/tests/participant_row.cpp b/gui/tests/participant_row.cpp
index 20eaa5c..e32be78 100644
--- a/gui/ui/tests/participant_row.cpp
+++ b/gui/tests/participant_row.cpp
@@ -1,3 +1,8 @@
+/*
+ * SPDX-FileCopyrightText: 2025 Felix Morgner <felix.morgner@gmail.com>
+ * SPDX-License-Identifier: LGPL-2.1-only
+ */
+
#include "turns/ui/participant_row.hpp"
#include "turns/core/disposition.hpp"
diff --git a/gui/ui/tests/resources.cpp b/gui/tests/resources.cpp
index a091266..97a1a6b 100644
--- a/gui/ui/tests/resources.cpp
+++ b/gui/tests/resources.cpp
@@ -1,3 +1,8 @@
+/*
+ * SPDX-FileCopyrightText: 2025 Felix Morgner <felix.morgner@gmail.com>
+ * SPDX-License-Identifier: LGPL-2.1-only
+ */
+
#include <catch2/catch_test_macros.hpp>
#include <catch2/generators/catch_generators.hpp>
diff --git a/gui/ui/tests/tracker.cpp b/gui/tests/tracker.cpp
index 0d5e983..3d0b5a0 100644
--- a/gui/ui/tests/tracker.cpp
+++ b/gui/tests/tracker.cpp
@@ -1,3 +1,8 @@
+/*
+ * SPDX-FileCopyrightText: 2025 Felix Morgner <felix.morgner@gmail.com>
+ * SPDX-License-Identifier: LGPL-2.1-only
+ */
+
#include "turns/ui/tracker.hpp"
#include "turns/core/settings.hpp"
diff --git a/gui/ui/CMakeLists.txt b/gui/ui/CMakeLists.txt
deleted file mode 100644
index 1584479..0000000
--- a/gui/ui/CMakeLists.txt
+++ /dev/null
@@ -1,59 +0,0 @@
-# Library
-
-file(GLOB_RECURSE UI_FILES RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}/src" CONFIGURE_DEPENDS "*.ui")
-file(GLOB_RECURSE UI_SOURCES RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" CONFIGURE_DEPENDS "src/*.cpp")
-file(GLOB_RECURSE UI_TESTS RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" CONFIGURE_DEPENDS "tests/*.cpp")
-
-add_library("ui" ${UI_SOURCES})
-add_library("turns::ui" ALIAS "ui")
-
-target_compile_options("ui" PUBLIC
- "$<$<CXX_COMPILER_ID:GNU,Clang>:-Wall>"
- "$<$<CXX_COMPILER_ID:GNU,Clang>:-Wextra>"
- "$<$<CXX_COMPILER_ID:GNU,Clang>:-Werror>"
- "$<$<CXX_COMPILER_ID:GNU,Clang>:-pedantic-errors>"
-)
-
-target_include_directories("ui" PUBLIC
- "include"
-)
-
-target_link_libraries("ui" PUBLIC
- "turns::core"
- "turns::lang"
-
- "adwaitamm::adwaitamm"
- "PkgConfig::gtkmm"
-)
-
-target_add_glib_resources("ui"
- PREFIX "/ch/arknet/Turns/"
- WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/src"
- UI_FILES ${UI_FILES}
-)
-
-enable_coverage("ui")
-
-# Tests
-
-get_target_property(TRANSLATIONS_BINARY_DIR "lang" BINARY_DIR)
-
-add_executable("ui-tests" ${UI_TESTS})
-
-target_compile_definitions("ui-tests" PUBLIC
- "TESTLOCALEDIR=\"${TRANSLATIONS_BINARY_DIR}\""
-)
-
-target_link_libraries("ui-tests" PRIVATE
- "Catch2::Catch2WithMain"
-
- "$<$<CXX_COMPILER_ID:GNU,Clang>:-Wl,--whole-archive>"
- "turns::ui"
- "$<$<CXX_COMPILER_ID:GNU,Clang>:-Wl,--no-whole-archive>"
-)
-
-target_link_options("ui-tests" PRIVATE
- "$<$<AND:$<CXX_COMPILER_ID:GNU,Clang>,$<CONFIG:Debug>>:--coverage>"
-)
-
-catch_discover_tests("ui-tests")
diff --git a/gui/ui/include/turns/ui/fwd.hpp b/gui/ui/include/turns/ui/fwd.hpp
deleted file mode 100644
index 69dc0b5..0000000
--- a/gui/ui/include/turns/ui/fwd.hpp
+++ /dev/null
@@ -1,14 +0,0 @@
-#ifndef TURNS_UI_WIDGETS_FWD_HPP
-#define TURNS_UI_WIDGETS_FWD_HPP
-
-namespace turns::ui::widgets
-{
- struct participant_editor;
- struct participant_row;
- struct preferences;
- struct tracker;
- struct turn_order_view;
- struct preferences;
-} // namespace turns::ui::widgets
-
-#endif \ No newline at end of file
diff --git a/gui/ui/include/turns/ui/init.hpp b/gui/ui/include/turns/ui/init.hpp
deleted file mode 100644
index 77bd009..0000000
--- a/gui/ui/include/turns/ui/init.hpp
+++ /dev/null
@@ -1,15 +0,0 @@
-#ifndef TURNS_UI_INIT_HPP
-#define TURNS_UI_INIT_HPP
-
-#include <glibmm/refptr.h>
-
-#include <adwaitamm/application.hpp>
-
-namespace turns::ui
-{
-
- auto register_types() -> void;
-
-} // namespace turns::ui
-
-#endif \ No newline at end of file
diff --git a/gui/ui/src/participant_editor.ui b/gui/ui/participant_editor.ui
index 6bcf83e..2dbe6d3 100644
--- a/gui/ui/src/participant_editor.ui
+++ b/gui/ui/participant_editor.ui
@@ -1,5 +1,5 @@
<?xml version='1.0' encoding='UTF-8'?>
-<!-- Created with Cambalache 0.96.0 -->
+<!-- Created with Cambalache 0.96.1 -->
<interface>
<!-- interface-name participant_editor.ui -->
<requires lib="gtk" version="4.18"/>
diff --git a/gui/ui/src/participant_row.ui b/gui/ui/participant_row.ui
index b53cc53..b53cc53 100644
--- a/gui/ui/src/participant_row.ui
+++ b/gui/ui/participant_row.ui
diff --git a/gui/ui/src/preferences.ui b/gui/ui/preferences.ui
index 0ee2699..0ee2699 100644
--- a/gui/ui/src/preferences.ui
+++ b/gui/ui/preferences.ui
diff --git a/gui/ui/src/init.cpp b/gui/ui/src/init.cpp
deleted file mode 100644
index 1c0295a..0000000
--- a/gui/ui/src/init.cpp
+++ /dev/null
@@ -1,23 +0,0 @@
-#include "turns/ui/init.hpp"
-
-#include "turns/ui/participant_editor.hpp"
-#include "turns/ui/participant_row.hpp"
-#include "turns/ui/preferences.hpp"
-#include "turns/ui/tracker.hpp"
-#include "turns/ui/turn_order_view.hpp"
-#include <glibmm/refptr.h>
-#include <adwaitamm/application.hpp>
-
-namespace turns::ui
-{
-
- auto register_types() -> void
- {
- static_cast<void>(ParticipantEditor{{}});
- static_cast<void>(ParticipantRow{{}});
- static_cast<void>(Preferences{{}});
- static_cast<void>(Tracker{});
- static_cast<void>(TurnOrderView{{}});
- }
-
-} // namespace turns::ui \ No newline at end of file
diff --git a/gui/style/style-dark.css b/gui/ui/style-dark.css
index 928264a..928264a 100644
--- a/gui/style/style-dark.css
+++ b/gui/ui/style-dark.css
diff --git a/gui/style/style.css b/gui/ui/style.css
index a185c9b..a185c9b 100644
--- a/gui/style/style.css
+++ b/gui/ui/style.css
diff --git a/gui/ui/src/tracker.ui b/gui/ui/tracker.ui
index c4fe324..84a764d 100644
--- a/gui/ui/src/tracker.ui
+++ b/gui/ui/tracker.ui
@@ -1,5 +1,5 @@
<?xml version='1.0' encoding='UTF-8'?>
-<!-- Created with Cambalache 0.96.0 -->
+<!-- Created with Cambalache 0.96.1 -->
<interface>
<!-- interface-name tracker.ui -->
<requires lib="gio" version="2.0"/>
diff --git a/gui/ui/src/turn_order_view.ui b/gui/ui/turn_order_view.ui
index 28a4bd0..28a4bd0 100644
--- a/gui/ui/src/turn_order_view.ui
+++ b/gui/ui/turn_order_view.ui
diff --git a/gui/ui/turns.cmb b/gui/ui/turns.cmb
new file mode 100644
index 0000000..5c94a9b
--- /dev/null
+++ b/gui/ui/turns.cmb
@@ -0,0 +1,10 @@
+<?xml version='1.0' encoding='UTF-8' standalone='no'?>
+<!DOCTYPE cambalache-project SYSTEM "cambalache-project.dtd">
+<!-- Created with Cambalache 0.96.1 -->
+<cambalache-project version="0.96.0" target_tk="gtk-4.0">
+ <ui template-class="gtkmm__CustomObject_Tracker" filename="tracker.ui" sha256="810d3f91a263b75e145f6c292d544d0f055b6b404ab046b77053617bac5fbe25"/>
+ <ui template-class="gtkmm__CustomObject_ParticipantEditor" filename="participant_editor.ui" sha256="dfd252ee0f508c9b8aecd85e37dca151ee149d7cdb7c346e9ec68185b59edde8"/>
+ <ui template-class="gtkmm__CustomObject_ParticipantRow" filename="participant_row.ui" sha256="ab4db80068f811a2b77608fca128ba72c3e753ff33748822afd7a0f74c955dcd"/>
+ <ui template-class="gtkmm__CustomObject_TurnOrderView" filename="turn_order_view.ui" sha256="1a71db6bcf70d48123f1bd876b344f64f3e3d0c7f9fe12c6daefb326763cbef7"/>
+ <ui template-class="gtkmm__CustomObject_Preferences" filename="preferences.ui" sha256="3c47beaa2297fa45f8c29ac7aa410227b7f9d43971d6b6c31fa4278f2bb43f6a"/>
+</cambalache-project>
diff --git a/gui/ui/ui.cmb b/gui/ui/ui.cmb
deleted file mode 100644
index b246448..0000000
--- a/gui/ui/ui.cmb
+++ /dev/null
@@ -1,10 +0,0 @@
-<?xml version='1.0' encoding='UTF-8' standalone='no'?>
-<!DOCTYPE cambalache-project SYSTEM "cambalache-project.dtd">
-<!-- Created with Cambalache 0.96.0 -->
-<cambalache-project version="0.96.0" target_tk="gtk-4.0">
- <ui template-class="gtkmm__CustomObject_TurnOrderView" filename="src/tracker.ui" sha256="5f89d446490f94ec306b6c6e78769daab156f01acf66694a9f2fd4b0b713858b"/>
- <ui template-class="gtkmm__CustomObject_ParticipantEditor" filename="src/participant_editor.ui" sha256="175e5445abfe35525885929739b998e9b5d5379bc01dfbef798c52ef8870cf96"/>
- <ui template-class="gtkmm__CustomObject_ParticipantRow" filename="src/participant_row.ui" sha256="ab4db80068f811a2b77608fca128ba72c3e753ff33748822afd7a0f74c955dcd"/>
- <ui template-class="gtkmm__CustomObject_TurnOrderView" filename="src/turn_order_view.ui" sha256="1a71db6bcf70d48123f1bd876b344f64f3e3d0c7f9fe12c6daefb326763cbef7"/>
- <ui template-class="gtkmm__CustomObject_Preferences" filename="src/preferences.ui" sha256="3c47beaa2297fa45f8c29ac7aa410227b7f9d43971d6b6c31fa4278f2bb43f6a"/>
-</cambalache-project>