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

96 lines
4.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"
mc:Ignorable="d"
d:DesignWidth="800"
d:DesignHeight="450"
Width="480"
Height="320"
x:Class="Aaru.Gui.Views.Windows.ImageSidecar"
Icon="/Assets/aaru-logo.png"
CanResize="False"
Title="{Binding Title}">
<Design.DataContext>
2020-04-16 20:40:25 +01:00
<windows:ImageSidecarViewModel />
</Design.DataContext>
<StackPanel Orientation="Vertical">
<TextBlock Text="{Binding DestinationFileLabel}" />
<StackPanel Orientation="Horizontal">
2024-05-01 04:05:22 +01:00
<TextBox Text="{Binding DestinationText}"
IsReadOnly="True" />
<Button Command="{Binding DestinationCommand}"
IsEnabled="{Binding DestinationEnabled}">
<TextBlock Text="{Binding ChooseLabel}" />
</Button>
</StackPanel>
2024-05-01 04:05:22 +01:00
<StackPanel Orientation="Vertical"
IsVisible="{Binding ProgressVisible}">
<TextBlock Text="{Binding StatusText}"
IsVisible="{Binding StatusVisible}" />
<StackPanel Orientation="Vertical"
IsVisible="{Binding Progress1Visible}">
<TextBlock Text="{Binding ProgressText}" />
2024-05-01 04:05:22 +01:00
<ProgressBar Maximum="{Binding ProgressMaxValue}"
Value="{Binding ProgressValue}"
IsIndeterminate="{Binding ProgressIndeterminate}" />
</StackPanel>
2024-05-01 04:05:22 +01:00
<StackPanel Orientation="Vertical"
IsVisible="{Binding Progress2Visible}">
<TextBlock Text="{Binding Progress2Text}" />
2024-05-01 04:05:22 +01:00
<ProgressBar Maximum="{Binding Progress2MaxValue}"
Value="{Binding Progress2Value}"
IsIndeterminate="{Binding Progress2Indeterminate}" />
</StackPanel>
</StackPanel>
<StackPanel Orientation="Horizontal">
2024-05-01 04:05:22 +01:00
<Button Command="{Binding StartCommand}"
IsVisible="{Binding StartVisible}">
<TextBlock Text="{Binding StartLabel}" />
</Button>
2024-05-01 04:05:22 +01:00
<Button Command="{Binding CloseCommand}"
IsVisible="{Binding CloseVisible}">
<TextBlock Text="{Binding CloseLabel}" />
</Button>
2024-05-01 04:05:22 +01:00
<Button Command="{Binding StopCommand}"
IsEnabled="{Binding StopEnabled}"
IsVisible="{Binding StopVisible}">
<TextBlock Text="{Binding StopLabel}" />
</Button>
</StackPanel>
</StackPanel>
</Window>