2020-04-17 21:45:50 +01:00
|
|
|
|
<!--
|
|
|
|
|
|
// /***************************************************************************
|
|
|
|
|
|
// 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/>.
|
|
|
|
|
|
//
|
|
|
|
|
|
// ‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐
|
2022-12-03 16:07:10 +00:00
|
|
|
|
// Copyright © 2011‐2023 Natalia Portillo
|
2020-04-17 21:45:50 +01:00
|
|
|
|
// ****************************************************************************/
|
|
|
|
|
|
-->
|
|
|
|
|
|
<Window xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
2020-04-16 19:28:39 +01:00
|
|
|
|
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"
|
|
|
|
|
|
xmlns:windows="clr-namespace:Aaru.Gui.ViewModels.Windows" mc:Ignorable="d" d:DesignWidth="800"
|
2020-04-16 21:29:40 +01:00
|
|
|
|
d:DesignHeight="450" x:Class="Aaru.Gui.Views.Windows.MediaDump" Icon="/Assets/aaru-logo.png"
|
2020-04-16 19:28:39 +01:00
|
|
|
|
Title="{Binding Title}">
|
|
|
|
|
|
<Design.DataContext>
|
2020-04-16 20:40:25 +01:00
|
|
|
|
<windows:MediaDumpViewModel />
|
2020-04-16 19:28:39 +01:00
|
|
|
|
</Design.DataContext>
|
|
|
|
|
|
<StackPanel Orientation="Vertical">
|
|
|
|
|
|
<StackPanel Orientation="Vertical" IsVisible="{Binding OptionsVisible}">
|
2022-11-16 21:40:54 +00:00
|
|
|
|
<TextBlock Text="{Binding OutputFormatLabel}" />
|
2020-04-16 19:28:39 +01:00
|
|
|
|
<ComboBox Items="{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}">
|
2022-11-16 21:40:54 +00:00
|
|
|
|
<TextBlock Text="{Binding ChooseLabel}" />
|
2020-04-16 19:28:39 +01:00
|
|
|
|
</Button>
|
|
|
|
|
|
</StackPanel>
|
|
|
|
|
|
<CheckBox IsChecked="{Binding StopOnError}">
|
2022-11-16 21:40:54 +00:00
|
|
|
|
<TextBlock Text="{Binding StopOnErrorLabel}" />
|
2020-04-16 19:28:39 +01:00
|
|
|
|
</CheckBox>
|
|
|
|
|
|
<CheckBox IsChecked="{Binding Force}">
|
2022-11-16 21:40:54 +00:00
|
|
|
|
<TextBlock Text="{Binding ForceLabel}" />
|
2020-04-16 19:28:39 +01:00
|
|
|
|
</CheckBox>
|
2022-11-16 21:40:54 +00:00
|
|
|
|
<NumericUpDown Text="{Binding RetriesLabel}" Value="{Binding Retries}" Increment="1" Minimum="0" />
|
2020-04-16 19:28:39 +01:00
|
|
|
|
<CheckBox IsChecked="{Binding Persistent}">
|
2022-11-16 21:40:54 +00:00
|
|
|
|
<TextBlock Text="{Binding PersistentLabel}" />
|
2020-04-16 19:28:39 +01:00
|
|
|
|
</CheckBox>
|
|
|
|
|
|
<CheckBox IsChecked="{Binding Resume}">
|
2022-11-16 21:40:54 +00:00
|
|
|
|
<TextBlock Text="{Binding ResumeLabel}" />
|
2020-04-16 19:28:39 +01:00
|
|
|
|
</CheckBox>
|
|
|
|
|
|
<CheckBox IsChecked="{Binding Track1Pregap}" IsVisible="{Binding Track1PregapVisible}">
|
2022-11-16 21:40:54 +00:00
|
|
|
|
<TextBlock Text="{Binding Track1PregapLabel}" />
|
2020-04-16 19:28:39 +01:00
|
|
|
|
</CheckBox>
|
2022-11-16 21:40:54 +00:00
|
|
|
|
<NumericUpDown Text="{Binding SkippedLabel}" Increment="1" Minimum="1" Value="{Binding Skipped}" />
|
2020-04-16 19:28:39 +01:00
|
|
|
|
<CheckBox IsChecked="{Binding Sidecar}">
|
2022-11-16 21:40:54 +00:00
|
|
|
|
<TextBlock Text="{Binding SidecarLabel}" />
|
2020-04-16 19:28:39 +01:00
|
|
|
|
</CheckBox>
|
|
|
|
|
|
<CheckBox IsChecked="{Binding Trim}">
|
2022-11-16 21:40:54 +00:00
|
|
|
|
<TextBlock Text="{Binding TrimLabel}" />
|
2020-04-16 19:28:39 +01:00
|
|
|
|
</CheckBox>
|
|
|
|
|
|
<CheckBox IsChecked="{Binding ExistingMetadata}">
|
2022-11-16 21:40:54 +00:00
|
|
|
|
<TextBlock Text="{Binding ExistingMetadataLabel}" />
|
2020-04-16 19:28:39 +01:00
|
|
|
|
</CheckBox>
|
|
|
|
|
|
<StackPanel IsVisible="{Binding EncodingVisible}">
|
2022-11-16 21:40:54 +00:00
|
|
|
|
<TextBox Text="{Binding EncodingLabel}" />
|
2020-04-16 19:28:39 +01:00
|
|
|
|
<ComboBox Items="{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">
|
2022-11-16 21:40:54 +00:00
|
|
|
|
<TextBlock Text="{Binding DestinationLabel}" /> <TextBlock Text="{Binding Destination}" />
|
2020-04-16 19:28:39 +01:00
|
|
|
|
</StackPanel>
|
2022-11-16 21:40:54 +00:00
|
|
|
|
<TextBlock Text="{Binding LogLabel}" /> <TextBox Text="{Binding Log}" IsReadOnly="True" />
|
2020-04-16 19:28:39 +01:00
|
|
|
|
<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}">
|
2022-11-16 21:40:54 +00:00
|
|
|
|
<TextBlock Text="{Binding StartLabel}" />
|
2020-04-16 19:28:39 +01:00
|
|
|
|
</Button>
|
|
|
|
|
|
<Button Command="{Binding CloseCommand}" IsVisible="{Binding CloseVisible}">
|
2022-11-16 21:40:54 +00:00
|
|
|
|
<TextBlock Text="{Binding CloseLabel}" />
|
2020-04-16 19:28:39 +01:00
|
|
|
|
</Button>
|
|
|
|
|
|
<Button Command="{Binding StopCommand}" IsVisible="{Binding StopVisible}" IsEnabled="{Binding StopEnabled}">
|
2022-11-16 21:40:54 +00:00
|
|
|
|
<TextBlock Text="{Binding StopLabel}" />
|
2020-04-16 19:28:39 +01:00
|
|
|
|
</Button>
|
|
|
|
|
|
</StackPanel>
|
|
|
|
|
|
</StackPanel>
|
|
|
|
|
|
</Window>
|