- Implement GeneralTabView for source and destination path settings, options, processing parameters, and image library selection. - Create LogoTabView for logo selection, preview, and positioning options. - Add PhotoTabView for photo dimensions and JPEG quality settings. - Introduce RaceUploadTabView for race setup and processed photo upload functionality, including API integration. - Develop TextTabView for horizontal and vertical text settings, font options, and race time configuration. - Implement ThumbnailsTabView for thumbnail creation options and settings.
92 lines
4 KiB
XML
92 lines
4 KiB
XML
<Window xmlns="https://github.com/avaloniaui"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
xmlns:views="clr-namespace:ImageCatalog_2.AvaloniaViews"
|
|
x:Class="ImageCatalog_2.AvaloniaMainWindow"
|
|
mc:Ignorable="d"
|
|
Title="Image Catalog - Avalonia" Height="540" Width="800">
|
|
|
|
<Grid RowDefinitions="*,Auto">
|
|
|
|
<Grid Grid.Row="0" Margin="10">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="3*" />
|
|
<ColumnDefinition Width="0.8*" />
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<TabControl Grid.Column="0" Margin="0,0,10,0">
|
|
<TabItem Header="Generale">
|
|
<views:GeneralTabView />
|
|
</TabItem>
|
|
|
|
<TabItem Header="Testo">
|
|
<views:TextTabView />
|
|
</TabItem>
|
|
|
|
<TabItem Header="Foto">
|
|
<views:PhotoTabView />
|
|
</TabItem>
|
|
|
|
<TabItem Header="Miniature">
|
|
<views:ThumbnailsTabView />
|
|
</TabItem>
|
|
|
|
<TabItem Header="Logo">
|
|
<views:LogoTabView />
|
|
</TabItem>
|
|
|
|
<TabItem Header="AI">
|
|
<views:AiTabView />
|
|
</TabItem>
|
|
|
|
<TabItem Header="Face AI">
|
|
<views:FaceAiTabView />
|
|
</TabItem>
|
|
|
|
<TabItem Header="Race Upload">
|
|
<views:RaceUploadTabView />
|
|
</TabItem>
|
|
</TabControl>
|
|
|
|
<StackPanel Grid.Column="1">
|
|
<StackPanel HorizontalAlignment="Right" Margin="0,0,0,12">
|
|
<Button Name="ThemeToggleButton" Width="28" Height="28" Click="ToggleTheme_Click" ToolTip.Tip="Cambia tema"
|
|
HorizontalAlignment="Right" Padding="2" Content="🌙" />
|
|
</StackPanel>
|
|
<Border BorderBrush="#DDD" BorderThickness="1" Padding="8" MaxWidth="280">
|
|
<StackPanel>
|
|
<StackPanel>
|
|
<Button Width="120" Margin="0,0,0,8" Command="{Binding LoadSettingsCommand}" Content="Carica" />
|
|
<Button Width="120" Margin="0,0,0,8" Command="{Binding SaveSettingsCommand}" Content="Salva" />
|
|
<Button Width="120" Height="36" Margin="0,6,0,8"
|
|
Command="{Binding ProcessImagesCommand}"
|
|
IsEnabled="{Binding UiEnabled}" Content="Avvia" />
|
|
<Button Width="120" Height="36"
|
|
Command="{Binding AsyncCancelOperationCommand}" Content="Stop" />
|
|
</StackPanel>
|
|
|
|
<Separator Margin="0,12,0,12" />
|
|
|
|
<TextBlock Text="Stato" FontWeight="Bold" />
|
|
<TextBlock Text="{Binding ProcessingStatus}" TextWrapping="Wrap" />
|
|
|
|
<TextBlock Text="Progresso" FontWeight="Bold" Margin="0,8,0,0" />
|
|
<ProgressBar Minimum="0" Maximum="{Binding ProgressBarMaximum}"
|
|
Value="{Binding ProgressBarValue}" Height="20" />
|
|
<TextBlock Margin="0,6,0,0">
|
|
<Run Text="{Binding ProcessedImagesCount}" />
|
|
<Run Text=" / " />
|
|
<Run Text="{Binding TotalImagesCount}" />
|
|
</TextBlock>
|
|
|
|
<TextBlock Text="Velocita" FontWeight="Bold" Margin="0,8,0,0" />
|
|
<TextBlock Text="{Binding SpeedCounter}" TextWrapping="Wrap" />
|
|
|
|
<TextBlock Text="{Binding AppVersion}" Margin="0,8,0,0" Opacity="0.6" />
|
|
</StackPanel>
|
|
</Border>
|
|
</StackPanel>
|
|
</Grid>
|
|
</Grid>
|
|
</Window>
|