mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
127 lines
7.0 KiB
XML
127 lines
7.0 KiB
XML
<!--
|
||
// /***************************************************************************
|
||
// 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‐2020 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="Output format" />
|
||
<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}">
|
||
<TextBlock Text="Choose..." />
|
||
</Button>
|
||
</StackPanel>
|
||
<CheckBox IsChecked="{Binding StopOnError}">
|
||
<TextBlock Text="Stop media dump on first error" />
|
||
</CheckBox>
|
||
<CheckBox IsChecked="{Binding Force}">
|
||
<TextBlock Text="Continue dumping whatever happens" />
|
||
</CheckBox>
|
||
<NumericUpDown Text="Retry passes" Value="{Binding Retries}" Increment="1" Minimum="0" />
|
||
<CheckBox IsChecked="{Binding Persistent}">
|
||
<TextBlock Text="Try to recover partial or incorrect data" />
|
||
</CheckBox>
|
||
<CheckBox IsChecked="{Binding Resume}">
|
||
<TextBlock Text="Create/use resume mapfile" />
|
||
</CheckBox>
|
||
<CheckBox IsChecked="{Binding Track1Pregap}" IsVisible="{Binding Track1PregapVisible}">
|
||
<TextBlock Text="Try to read track 1 pregap" />
|
||
</CheckBox>
|
||
<NumericUpDown Text="Skipped sectors on error" Increment="1" Minimum="1" Value="{Binding Skipped}" />
|
||
<CheckBox IsChecked="{Binding Sidecar}">
|
||
<TextBlock Text="Create CICM XML metadata sidecar" />
|
||
</CheckBox>
|
||
<CheckBox IsChecked="{Binding Trim}">
|
||
<TextBlock Text="Trim errors from skipped sectors" />
|
||
</CheckBox>
|
||
<CheckBox IsChecked="{Binding ExistingMetadata}">
|
||
<TextBlock Text="Take metadata from existing CICM XML sidecar" />
|
||
</CheckBox>
|
||
<StackPanel IsVisible="{Binding EncodingVisible}">
|
||
<TextBox Text="Encoding to use on metadata sidecar creation" />
|
||
<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">
|
||
<TextBlock Text="Writing image to:" /> <TextBlock Text="{Binding Destination}" />
|
||
</StackPanel>
|
||
<TextBlock Text="Log" /> <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="Start" />
|
||
</Button>
|
||
<Button Command="{Binding CloseCommand}" IsVisible="{Binding CloseVisible}">
|
||
<TextBlock Text="Close" />
|
||
</Button>
|
||
<Button Command="{Binding StopCommand}" IsVisible="{Binding StopVisible}" IsEnabled="{Binding StopEnabled}">
|
||
<TextBlock Text="Stop" />
|
||
</Button>
|
||
</StackPanel>
|
||
</StackPanel>
|
||
</Window> |