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

99 lines
5.8 KiB
Plaintext
Raw Normal View History

<!--
// /***************************************************************************
2020-04-17 21:45:50 +01:00
// Aaru Data Preservation Suite
//
//
2020-04-17 21:45:50 +01:00
// Filename : ImageSidecar.xaml
// Author(s) : Natalia Portillo <claunia@claunia.com>
//
2020-04-17 21:45:50 +01:00
// Component : GUI windows.
//
2020-04-17 21:45:50 +01:00
// [ Description ]
//
2020-04-17 21:45:50 +01:00
// Image sidecar creation window.
//
2020-04-17 21:45:50 +01:00
// [ 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/>.
//
2020-04-17 21:45:50 +01:00
//
2024-12-19 10:45:18 +00:00
// Copyright © 2011-2025 Natalia Portillo
// ****************************************************************************/
-->
2024-05-01 04:05:22 +01:00
<Window xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
2020-04-16 20:40:25 +01:00
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
2024-05-01 04:05:22 +01:00
xmlns:windows="clr-namespace:Aaru.Gui.ViewModels.Windows"
2025-10-25 12:53:52 +01:00
xmlns:localization="clr-namespace:Aaru.Localization;assembly=Aaru.Localization"
xmlns:controls="clr-namespace:Aaru.Gui.Controls"
2024-05-01 04:05:22 +01:00
mc:Ignorable="d"
d:DesignWidth="800"
d:DesignHeight="450"
Width="640"
2024-05-01 04:05:22 +01:00
Height="320"
x:Class="Aaru.Gui.Views.Windows.ImageSidecar"
Icon="/Assets/aaru-logo.png"
CanResize="False"
2025-11-19 05:26:14 +00:00
x:DataType="windows:ImageSidecarViewModel"
Title="Image sidecar creation">
<Design.DataContext>
2020-04-16 20:40:25 +01:00
<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}"
2024-05-01 04:05:22 +01:00
IsReadOnly="True" />
<Button Grid.Column="1" Command="{Binding DestinationCommand, Mode=OneWay}"
IsEnabled="{Binding DestinationEnabled, Mode=OneWay}">
2025-10-25 12:53:52 +01:00
<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}">
2025-10-25 12:53:52 +01:00
<TextBlock Text="{x:Static localization:UI.ButtonLabel_Start}" />
</Button>
<Button Command="{Binding CloseCommand, Mode=OneWay}"
IsVisible="{Binding CloseVisible, Mode=OneWay}">
2025-10-25 12:53:52 +01:00
<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}">
2025-10-25 12:53:52 +01:00
<TextBlock Text="{x:Static localization:UI.ButtonLabel_Stop}" />
</Button>
</StackPanel>
</Grid>
</Window>