From 31cf933951e926baabee7c2ad1efddcdd2e1842e Mon Sep 17 00:00:00 2001 From: Flaky Date: Sat, 3 Jan 2026 16:43:19 +0000 Subject: [PATCH] move to UI/Views, add basic interactivity to the app. --- UI/AboutWindow.axaml.cs | 13 ------------- UI/Assets/Resources.resx | 3 +++ UI/MainWindow.axaml.cs | 11 ----------- UI/TagHierarchyManager.UI.csproj | 16 ++++++++++++++++ UI/TagHierarchyManager.UI.csproj.DotSettings | 2 ++ UI/{ => Views}/AboutWindow.axaml | 14 ++++++++++---- UI/Views/AboutWindow.axaml.cs | 19 +++++++++++++++++++ UI/{ => Views}/DatabaseSettingsWindow.axaml | 0 .../DatabaseSettingsWindow.axaml.cs | 0 UI/{ => Views}/MainWindow.axaml | 12 ++++-------- UI/Views/MainWindow.axaml.cs | 17 +++++++++++++++++ 11 files changed, 71 insertions(+), 36 deletions(-) delete mode 100644 UI/AboutWindow.axaml.cs delete mode 100644 UI/MainWindow.axaml.cs create mode 100644 UI/TagHierarchyManager.UI.csproj.DotSettings rename UI/{ => Views}/AboutWindow.axaml (62%) create mode 100644 UI/Views/AboutWindow.axaml.cs rename UI/{ => Views}/DatabaseSettingsWindow.axaml (100%) rename UI/{ => Views}/DatabaseSettingsWindow.axaml.cs (100%) rename UI/{ => Views}/MainWindow.axaml (95%) create mode 100644 UI/Views/MainWindow.axaml.cs diff --git a/UI/AboutWindow.axaml.cs b/UI/AboutWindow.axaml.cs deleted file mode 100644 index 7461811..0000000 --- a/UI/AboutWindow.axaml.cs +++ /dev/null @@ -1,13 +0,0 @@ -using Avalonia; -using Avalonia.Controls; -using Avalonia.Markup.Xaml; - -namespace TagHierarchyManager.UI; - -public partial class AboutWindow : Window -{ - public AboutWindow() - { - InitializeComponent(); - } -} \ No newline at end of file diff --git a/UI/Assets/Resources.resx b/UI/Assets/Resources.resx index 30261ea..0500e67 100644 --- a/UI/Assets/Resources.resx +++ b/UI/Assets/Resources.resx @@ -128,4 +128,7 @@ Default tag bindings: + + About {0} + \ No newline at end of file diff --git a/UI/MainWindow.axaml.cs b/UI/MainWindow.axaml.cs deleted file mode 100644 index 745d220..0000000 --- a/UI/MainWindow.axaml.cs +++ /dev/null @@ -1,11 +0,0 @@ -using Avalonia.Controls; - -namespace TagHierarchyManager.UI; - -public partial class MainWindow : Window -{ - public MainWindow() - { - InitializeComponent(); - } -} \ No newline at end of file diff --git a/UI/TagHierarchyManager.UI.csproj b/UI/TagHierarchyManager.UI.csproj index 4207d2d..52acc13 100644 --- a/UI/TagHierarchyManager.UI.csproj +++ b/UI/TagHierarchyManager.UI.csproj @@ -33,5 +33,21 @@ True Resources.resx + + AboutWindow.axaml + Code + + + DatabaseSettingsWindow.axaml + Code + + + MainWindow.axaml + Code + + + App.axaml + Code + diff --git a/UI/TagHierarchyManager.UI.csproj.DotSettings b/UI/TagHierarchyManager.UI.csproj.DotSettings new file mode 100644 index 0000000..ffe17e5 --- /dev/null +++ b/UI/TagHierarchyManager.UI.csproj.DotSettings @@ -0,0 +1,2 @@ + + True \ No newline at end of file diff --git a/UI/AboutWindow.axaml b/UI/Views/AboutWindow.axaml similarity index 62% rename from UI/AboutWindow.axaml rename to UI/Views/AboutWindow.axaml index a096de1..319d359 100644 --- a/UI/AboutWindow.axaml +++ b/UI/Views/AboutWindow.axaml @@ -3,14 +3,20 @@ xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:assets="clr-namespace:TagHierarchyManager.UI.Assets" + xmlns:ui="clr-namespace:TagHierarchyManager.UI" mc:Ignorable="d" d:DesignWidth="405" d:DesignHeight="140" - Width="405" Height="180" + Width="405" Height="140" x:Class="TagHierarchyManager.UI.AboutWindow" - Title="AboutWindow"> + CanResize="False"> + + + + + - -