progress
This commit is contained in:
@@ -7,6 +7,7 @@
|
|||||||
xmlns:local="clr-namespace:ModpackUpdater.Apps.Manager.Ui"
|
xmlns:local="clr-namespace:ModpackUpdater.Apps.Manager.Ui"
|
||||||
xmlns:manager="clr-namespace:ModpackUpdater.Apps.Manager"
|
xmlns:manager="clr-namespace:ModpackUpdater.Apps.Manager"
|
||||||
xmlns:vm="clr-namespace:ModpackUpdater.Apps.Manager.Ui.Models"
|
xmlns:vm="clr-namespace:ModpackUpdater.Apps.Manager.Ui.Models"
|
||||||
|
xmlns:controls="https://git.pilzinsel64.de/pilz-framework/pilz"
|
||||||
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
|
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
|
||||||
x:Class="ModpackUpdater.Apps.Manager.Ui.MainWindow"
|
x:Class="ModpackUpdater.Apps.Manager.Ui.MainWindow"
|
||||||
x:DataType="vm:MainWindowViewModel"
|
x:DataType="vm:MainWindowViewModel"
|
||||||
@@ -35,6 +36,7 @@
|
|||||||
</Menu.Items>
|
</Menu.Items>
|
||||||
</Menu>
|
</Menu>
|
||||||
|
|
||||||
|
<!-- Tree view -->
|
||||||
<Grid
|
<Grid
|
||||||
x:Name="GridMain"
|
x:Name="GridMain"
|
||||||
Grid.Row="1"
|
Grid.Row="1"
|
||||||
@@ -77,11 +79,13 @@
|
|||||||
</ScrollViewer>
|
</ScrollViewer>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
|
|
||||||
|
<!-- List editor -->
|
||||||
<StackPanel
|
<StackPanel
|
||||||
Grid.Column="1"
|
Grid.Column="1"
|
||||||
Margin="3"
|
Margin="3"
|
||||||
Spacing="6">
|
Spacing="6">
|
||||||
|
|
||||||
|
<!-- Header -->
|
||||||
<ContentControl
|
<ContentControl
|
||||||
Content="{Binding SelectedTreeNode}">
|
Content="{Binding SelectedTreeNode}">
|
||||||
|
|
||||||
@@ -93,14 +97,22 @@
|
|||||||
Orientation="Horizontal"
|
Orientation="Horizontal"
|
||||||
Spacing="6">
|
Spacing="6">
|
||||||
|
|
||||||
<Menu>
|
<controls:ImageButton
|
||||||
<Menu.Items>
|
x:Name="ButtonAddAction"
|
||||||
<MenuItem x:Name="MenuItemAddAction" Header="Create" Click="MenuItemAddAction_OnClick"/>
|
Text="Add"
|
||||||
<MenuItem x:Name="MenuItemRemoveAction" Header="Remove" Click="MenuItemRemoveAction_OnClick"/>
|
ImageSource="{x:Static local:MainWindow.ButtonImageAddAction}"
|
||||||
</Menu.Items>
|
Background="Transparent"
|
||||||
</Menu>
|
Click="ButtonAddAction_OnClick"/>
|
||||||
|
|
||||||
|
<controls:ImageButton
|
||||||
|
x:Name="ButtonRemoveAction"
|
||||||
|
Text="Remove"
|
||||||
|
ImageSource="{x:Static local:MainWindow.ButtonImageRemoveAction}"
|
||||||
|
Background="Transparent"
|
||||||
|
Click="ButtonRemoveAction_OnClick"/>
|
||||||
|
|
||||||
<TextBox
|
<TextBox
|
||||||
|
Width="100"
|
||||||
Text="{Binding Version}"/>
|
Text="{Binding Version}"/>
|
||||||
|
|
||||||
<CheckBox
|
<CheckBox
|
||||||
@@ -114,6 +126,7 @@
|
|||||||
</ContentControl.DataTemplates>
|
</ContentControl.DataTemplates>
|
||||||
</ContentControl>
|
</ContentControl>
|
||||||
|
|
||||||
|
<!-- DataGrid -->
|
||||||
<DataGrid
|
<DataGrid
|
||||||
x:Name="DataGridActions"
|
x:Name="DataGridActions"
|
||||||
VerticalAlignment="Stretch"
|
VerticalAlignment="Stretch"
|
||||||
@@ -145,6 +158,7 @@
|
|||||||
</DataGrid>
|
</DataGrid>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
|
|
||||||
|
<!-- Action editor -->
|
||||||
<ScrollViewer
|
<ScrollViewer
|
||||||
x:Name="ScrollViewerInstallAction"
|
x:Name="ScrollViewerInstallAction"
|
||||||
Grid.Column="2"
|
Grid.Column="2"
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
using Avalonia.Controls;
|
using Avalonia.Controls;
|
||||||
using Avalonia.Interactivity;
|
using Avalonia.Interactivity;
|
||||||
|
using Avalonia.Media;
|
||||||
using ModpackUpdater.Apps.Manager.Api;
|
using ModpackUpdater.Apps.Manager.Api;
|
||||||
using ModpackUpdater.Apps.Manager.Api.Model;
|
using ModpackUpdater.Apps.Manager.Api.Model;
|
||||||
using ModpackUpdater.Apps.Manager.Api.Plugins.Features;
|
using ModpackUpdater.Apps.Manager.Api.Plugins.Features;
|
||||||
@@ -15,6 +16,9 @@ namespace ModpackUpdater.Apps.Manager.Ui;
|
|||||||
public partial class MainWindow : Window, IMainApi
|
public partial class MainWindow : Window, IMainApi
|
||||||
{
|
{
|
||||||
private WorkspaceFeature? wsFeature;
|
private WorkspaceFeature? wsFeature;
|
||||||
|
|
||||||
|
public static IImage? ButtonImageAddAction => AppGlobals.Symbols.GetImageSource(AppSymbols.add);
|
||||||
|
public static IImage? ButtonImageRemoveAction => AppGlobals.Symbols.GetImageSource(AppSymbols.remove);
|
||||||
|
|
||||||
public MainWindowViewModel Model { get; } = new();
|
public MainWindowViewModel Model { get; } = new();
|
||||||
Window IMainApi.MainWindow => this;
|
Window IMainApi.MainWindow => this;
|
||||||
@@ -149,4 +153,14 @@ public partial class MainWindow : Window, IMainApi
|
|||||||
{
|
{
|
||||||
// ...
|
// ...
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void ButtonAddAction_OnClick(object? sender, RoutedEventArgs e)
|
||||||
|
{
|
||||||
|
throw new NotImplementedException();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void ButtonRemoveAction_OnClick(object? sender, RoutedEventArgs e)
|
||||||
|
{
|
||||||
|
throw new NotImplementedException();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user