Files
Aaru/Aaru.Gui/Views/Windows/ImageSidecar.xaml

99 lines
5.8 KiB
XML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!--
// /***************************************************************************
// Aaru Data Preservation Suite
//
//
// Filename : ImageSidecar.xaml
// Author(s) : Natalia Portillo <claunia@claunia.com>
//
// Component : GUI windows.
//
// [ Description ]
//
// Image sidecar creation window.
//
// [ License ]
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General public License for more details.
//
// You should have received a copy of the GNU General public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//
//
// Copyright © 2011-2025 Natalia Portillo
// ****************************************************************************/
-->
<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:windows="clr-namespace:Aaru.Gui.ViewModels.Windows"
xmlns:localization="clr-namespace:Aaru.Localization;assembly=Aaru.Localization"
xmlns:controls="clr-namespace:Aaru.Gui.Controls"
mc:Ignorable="d"
d:DesignWidth="800"
d:DesignHeight="450"
Width="640"
Height="320"
x:Class="Aaru.Gui.Views.Windows.ImageSidecar"
Icon="/Assets/aaru-logo.png"
CanResize="False"
x:DataType="windows:ImageSidecarViewModel"
Title="Image sidecar creation">
<Design.DataContext>
<windows:ImageSidecarViewModel />
</Design.DataContext>
<Grid RowDefinitions="Auto,Auto,*,Auto" Margin="12" RowSpacing="8">
<TextBlock Grid.Row="0" FontWeight="Bold" Text="{x:Static localization:UI.Title_Destination_file}" />
<Grid Grid.Row="1" ColumnDefinitions="*,Auto" ColumnSpacing="8">
<TextBox Grid.Column="0" Text="{Binding DestinationText, Mode=OneWay}"
IsReadOnly="True" />
<Button Grid.Column="1" Command="{Binding DestinationCommand, Mode=OneWay}"
IsEnabled="{Binding DestinationEnabled, Mode=OneWay}">
<TextBlock Text="{x:Static localization:UI.ButtonLabel_Choose}" />
</Button>
</Grid>
<Grid Grid.Row="2" RowDefinitions="Auto,Auto,Auto" RowSpacing="8"
IsVisible="{Binding ProgressVisible, Mode=OneWay}">
<controls:SpectreTextBlock Grid.Row="0" FontWeight="Bold" Text="{Binding StatusText, Mode=OneWay}"
IsVisible="{Binding StatusVisible, Mode=OneWay}" />
<Grid Grid.Row="1" RowDefinitions="Auto,Auto" RowSpacing="8"
IsVisible="{Binding Progress1Visible, Mode=OneWay}">
<controls:SpectreTextBlock Grid.Row="0" Text="{Binding ProgressText, Mode=OneWay}" />
<ProgressBar Grid.Row="1" Maximum="{Binding ProgressMaxValue, Mode=OneWay}"
Value="{Binding ProgressValue, Mode=OneWay}"
IsIndeterminate="{Binding ProgressIndeterminate, Mode=OneWay}" />
</Grid>
<Grid Grid.Row="2" RowDefinitions="Auto,Auto" RowSpacing="8"
IsVisible="{Binding Progress2Visible, Mode=OneWay}">
<controls:SpectreTextBlock Grid.Row="0" Text="{Binding Progress2Text, Mode=OneWay}" />
<ProgressBar Grid.Row="1" Maximum="{Binding Progress2MaxValue, Mode=OneWay}"
Value="{Binding Progress2Value, Mode=OneWay}"
IsIndeterminate="{Binding Progress2Indeterminate, Mode=OneWay}" />
</Grid>
</Grid>
<StackPanel Grid.Row="3" Orientation="Horizontal" Spacing="8" VerticalAlignment="Bottom" HorizontalAlignment="Right">
<Button Command="{Binding StartCommand, Mode=OneWay}"
IsVisible="{Binding StartVisible, Mode=OneWay}">
<TextBlock Text="{x:Static localization:UI.ButtonLabel_Start}" />
</Button>
<Button Command="{Binding CloseCommand, Mode=OneWay}"
IsVisible="{Binding CloseVisible, Mode=OneWay}">
<TextBlock Text="{x:Static localization:UI.ButtonLabel_Close}" />
</Button>
<Button Command="{Binding StopCommand, Mode=OneWay}"
IsEnabled="{Binding StopEnabled, Mode=OneWay}"
IsVisible="{Binding StopVisible, Mode=OneWay}">
<TextBlock Text="{x:Static localization:UI.ButtonLabel_Stop}" />
</Button>
</StackPanel>
</Grid>
</Window>