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

155 lines
7.6 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 : MediaDump.xaml
// Author(s) : Natalia Portillo <claunia@claunia.com>
//
// Component : GUI windows.
//
// [ Description ]
//
// Media dumping 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"
mc:Ignorable="d"
d:DesignWidth="800"
d:DesignHeight="450"
x:Class="Aaru.Gui.Views.Windows.MediaDump"
Icon="/Assets/aaru-logo.png"
Title="{Binding Title}">
<Design.DataContext>
<windows:MediaDumpViewModel />
</Design.DataContext>
<StackPanel Orientation="Vertical">
<StackPanel Orientation="Vertical"
IsVisible="{Binding OptionsVisible}">
<TextBlock Text="{Binding OutputFormatLabel}" />
<ComboBox ItemsSource="{Binding PluginsList}"
SelectedItem="{Binding SelectedPlugin}"
IsEnabled="{Binding FormatReadOnly}">
<ComboBox.ItemTemplate>
<DataTemplate>
<TextBlock Text="{Binding Name}" />
</DataTemplate>
</ComboBox.ItemTemplate>
</ComboBox>
<StackPanel Orientation="Horizontal">
<TextBox Text="{Binding Destination}"
IsReadOnly="True" />
<Button Command="{Binding DestinationCommand}"
IsEnabled="{Binding DestinationEnabled}">
<TextBlock Text="{Binding ChooseLabel}" />
</Button>
</StackPanel>
<CheckBox IsChecked="{Binding StopOnError}">
<TextBlock Text="{Binding StopOnErrorLabel}" />
</CheckBox>
<CheckBox IsChecked="{Binding Force}">
<TextBlock Text="{Binding ForceLabel}" />
</CheckBox>
<NumericUpDown Text="{Binding RetriesLabel}"
Value="{Binding Retries}"
Increment="1"
Minimum="0" />
<CheckBox IsChecked="{Binding Persistent}">
<TextBlock Text="{Binding PersistentLabel}" />
</CheckBox>
<CheckBox IsChecked="{Binding Resume}">
<TextBlock Text="{Binding ResumeLabel}" />
</CheckBox>
<CheckBox IsChecked="{Binding Track1Pregap}"
IsVisible="{Binding Track1PregapVisible}">
<TextBlock Text="{Binding Track1PregapLabel}" />
</CheckBox>
<NumericUpDown Text="{Binding SkippedLabel}"
Increment="1"
Minimum="1"
Value="{Binding Skipped}" />
<CheckBox IsChecked="{Binding Sidecar}">
<TextBlock Text="{Binding SidecarLabel}" />
</CheckBox>
<CheckBox IsChecked="{Binding Trim}">
<TextBlock Text="{Binding TrimLabel}" />
</CheckBox>
<CheckBox IsChecked="{Binding ExistingMetadata}">
<TextBlock Text="{Binding ExistingMetadataLabel}" />
</CheckBox>
<StackPanel IsVisible="{Binding EncodingVisible}">
<TextBox Text="{Binding EncodingLabel}" />
<ComboBox ItemsSource="{Binding Encodings}"
SelectedItem="{Binding SelectedEncoding}"
IsEnabled="{Binding EncodingEnabled}">
<ComboBox.ItemTemplate>
<DataTemplate>
<TextBlock Text="{Binding Name}" />
</DataTemplate>
</ComboBox.ItemTemplate>
</ComboBox>
</StackPanel>
<!-- TODO: Image options -->
</StackPanel>
<StackPanel Orientation="Vertical"
IsVisible="{Binding ProgressVisible}">
<StackPanel Orientation="Horizontal">
<TextBlock Text="{Binding DestinationLabel}" /> <TextBlock Text="{Binding Destination}" />
</StackPanel>
<TextBlock Text="{Binding LogLabel}" />
<TextBox Text="{Binding Log}"
IsReadOnly="True" />
<StackPanel Orientation="Vertical"
IsVisible="{Binding Progress1Visible}">
<TextBox Text="{Binding ProgressText}" />
<ProgressBar Value="{Binding ProgressValue}"
Maximum="{Binding ProgressMaxValue}"
IsIndeterminate="{Binding ProgressIndeterminate}" />
</StackPanel>
<StackPanel Orientation="Vertical"
IsVisible="{Binding Progress2Visible}">
<TextBox Text="{Binding Progress2Text}" />
<ProgressBar Value="{Binding Progress2Value}"
Maximum="{Binding Progress2MaxValue}"
IsIndeterminate="{Binding Progress2Indeterminate}" />
</StackPanel>
</StackPanel>
<StackPanel Orientation="Horizontal">
<Button Command="{Binding StartCommand}"
IsVisible="{Binding StartVisible}">
<TextBlock Text="{Binding StartLabel}" />
</Button>
<Button Command="{Binding CloseCommand}"
IsVisible="{Binding CloseVisible}">
<TextBlock Text="{Binding CloseLabel}" />
</Button>
<Button Command="{Binding StopCommand}"
IsVisible="{Binding StopVisible}"
IsEnabled="{Binding StopEnabled}">
<TextBlock Text="{Binding StopLabel}" />
</Button>
</StackPanel>
</StackPanel>
</Window>