2020-04-17 21:45:50 +01:00
|
|
|
|
<!--
|
|
|
|
|
|
// /***************************************************************************
|
|
|
|
|
|
// Aaru Data Preservation Suite
|
|
|
|
|
|
// ‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐
|
|
|
|
|
|
//
|
|
|
|
|
|
// Filename : ImageChecksum.xaml
|
|
|
|
|
|
// Author(s) : Natalia Portillo <claunia@claunia.com>
|
|
|
|
|
|
//
|
|
|
|
|
|
// Component : GUI windows.
|
|
|
|
|
|
//
|
|
|
|
|
|
// ‐‐[ Description ] ‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐
|
|
|
|
|
|
//
|
|
|
|
|
|
// Image checksum 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"
|
2020-04-12 21:32:27 +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.ImageChecksum" Icon="/Assets/aaru-logo.png"
|
2020-04-12 21:32:27 +01:00
|
|
|
|
Title="{Binding Title}">
|
|
|
|
|
|
<Design.DataContext>
|
2020-04-16 20:40:25 +01:00
|
|
|
|
<windows:ImageChecksumViewModel />
|
2020-04-12 21:32:27 +01:00
|
|
|
|
</Design.DataContext>
|
|
|
|
|
|
<StackPanel Orientation="Vertical">
|
|
|
|
|
|
<StackPanel Orientation="Vertical">
|
|
|
|
|
|
<CheckBox IsEnabled="{Binding OptionsEnabled}" IsVisible="{Binding ChecksumTracksVisible}"
|
|
|
|
|
|
IsChecked="{Binding ChecksumMediaChecked}">
|
|
|
|
|
|
<TextBlock Text="Checksums the whole disc." />
|
|
|
|
|
|
</CheckBox>
|
|
|
|
|
|
<CheckBox IsEnabled="{Binding OptionsEnabled}" IsVisible="{Binding ChecksumTracksVisible}"
|
|
|
|
|
|
IsChecked="{Binding ChecksumTracksChecked}">
|
|
|
|
|
|
<TextBlock Text="Checksums each track separately." />
|
|
|
|
|
|
</CheckBox>
|
|
|
|
|
|
<CheckBox IsEnabled="{Binding OptionsEnabled}" IsChecked="{Binding Adler32Checked}">
|
|
|
|
|
|
<TextBlock Text="Calculates Adler-32." />
|
|
|
|
|
|
</CheckBox>
|
|
|
|
|
|
<CheckBox IsEnabled="{Binding OptionsEnabled}" IsChecked="{Binding Crc16Checked}">
|
|
|
|
|
|
<TextBlock Text="Calculates CRC16." />
|
|
|
|
|
|
</CheckBox>
|
|
|
|
|
|
<CheckBox IsEnabled="{Binding OptionsEnabled}" IsChecked="{Binding Crc32Checked}">
|
|
|
|
|
|
<TextBlock Text="Calculates CRC32." />
|
|
|
|
|
|
</CheckBox>
|
|
|
|
|
|
<CheckBox IsEnabled="{Binding OptionsEnabled}" IsChecked="{Binding Crc64Checked}">
|
|
|
|
|
|
<TextBlock Text="Calculates CRC64 (ECMA)." />
|
|
|
|
|
|
</CheckBox>
|
|
|
|
|
|
<CheckBox IsEnabled="{Binding OptionsEnabled}" IsChecked="{Binding Fletcher16Checked}">
|
|
|
|
|
|
<TextBlock Text="Calculates Fletcher-16." />
|
|
|
|
|
|
</CheckBox>
|
|
|
|
|
|
<CheckBox IsEnabled="{Binding OptionsEnabled}" IsChecked="{Binding Fletcher32Checked}">
|
|
|
|
|
|
<TextBlock Text="Calculates Fletcher-32." />
|
|
|
|
|
|
</CheckBox>
|
|
|
|
|
|
<CheckBox IsEnabled="{Binding OptionsEnabled}" IsChecked="{Binding Md5Checked}">
|
|
|
|
|
|
<TextBlock Text="Calculates MD5." />
|
|
|
|
|
|
</CheckBox>
|
|
|
|
|
|
<CheckBox IsEnabled="{Binding OptionsEnabled}" IsChecked="{Binding Sha1Checked}">
|
|
|
|
|
|
<TextBlock Text="Calculates SHA1." />
|
|
|
|
|
|
</CheckBox>
|
|
|
|
|
|
<CheckBox IsEnabled="{Binding OptionsEnabled}" IsChecked="{Binding Sha256Checked}">
|
|
|
|
|
|
<TextBlock Text="Calculates SHA256." />
|
|
|
|
|
|
</CheckBox>
|
|
|
|
|
|
<CheckBox IsEnabled="{Binding OptionsEnabled}" IsChecked="{Binding Sha384Checked}">
|
|
|
|
|
|
<TextBlock Text="Calculates SHA384." />
|
|
|
|
|
|
</CheckBox>
|
|
|
|
|
|
<CheckBox IsEnabled="{Binding OptionsEnabled}" IsChecked="{Binding Sha512Checked}">
|
|
|
|
|
|
<TextBlock Text="Calculates SHA512." />
|
|
|
|
|
|
</CheckBox>
|
|
|
|
|
|
<CheckBox IsEnabled="{Binding OptionsEnabled}" IsChecked="{Binding SpamsumChecked}">
|
|
|
|
|
|
<TextBlock Text="Calculates SpamSum fuzzy hash." />
|
|
|
|
|
|
</CheckBox>
|
|
|
|
|
|
</StackPanel>
|
|
|
|
|
|
<StackPanel Orientation="Vertical" IsVisible="{Binding ResultsVisible}">
|
|
|
|
|
|
<StackPanel Orientation="Vertical" IsVisible="{Binding TrackChecksumsVisible}">
|
|
|
|
|
|
<TextBlock Text="Track checksums:" />
|
|
|
|
|
|
<DataGrid Items="{Binding TrackChecksums}">
|
|
|
|
|
|
<DataGrid.Columns>
|
|
|
|
|
|
<DataGridTextColumn Header="Track" Binding="{Binding Track}" />
|
|
|
|
|
|
<DataGridTextColumn Header="Algorithms" Binding="{Binding Algorithm}" />
|
|
|
|
|
|
<DataGridTextColumn Header="Hash" Binding="{Binding Value}" />
|
|
|
|
|
|
</DataGrid.Columns>
|
|
|
|
|
|
</DataGrid>
|
|
|
|
|
|
</StackPanel>
|
|
|
|
|
|
<StackPanel Orientation="Vertical" IsVisible="{Binding MediaChecksumsVisible}">
|
|
|
|
|
|
<TextBlock Text="Media checksums:" />
|
|
|
|
|
|
<DataGrid Items="{Binding MediaChecksums}">
|
|
|
|
|
|
<DataGrid.Columns>
|
|
|
|
|
|
<DataGridTextColumn Header="Algorithms" Binding="{Binding Algorithm}" />
|
|
|
|
|
|
<DataGridTextColumn Header="Hash" Binding="{Binding Value}" />
|
|
|
|
|
|
</DataGrid.Columns>
|
|
|
|
|
|
</DataGrid>
|
|
|
|
|
|
</StackPanel>
|
|
|
|
|
|
</StackPanel>
|
|
|
|
|
|
<StackPanel Orientation="Vertical" IsVisible="{Binding ProgressVisible}">
|
|
|
|
|
|
<StackPanel Orientation="Vertical" IsVisible="{Binding Progress1Visible}">
|
|
|
|
|
|
<TextBlock Text="{Binding ProgressText}" />
|
|
|
|
|
|
<ProgressBar Maximum="{Binding ProgressMax}" Value="{Binding ProgressValue}" />
|
|
|
|
|
|
</StackPanel>
|
|
|
|
|
|
<StackPanel Orientation="Vertical" IsVisible="{Binding Progress2Visible}">
|
|
|
|
|
|
<TextBlock Text="{Binding Progress2Text}" />
|
|
|
|
|
|
<ProgressBar Maximum="{Binding Progress2Max}" Value="{Binding Progress2Value}" />
|
|
|
|
|
|
</StackPanel>
|
|
|
|
|
|
</StackPanel>
|
|
|
|
|
|
<StackPanel Orientation="Horizontal">
|
|
|
|
|
|
<Button Command="{Binding StartCommand}" IsEnabled="{Binding StartCommandEnabled}"
|
|
|
|
|
|
IsVisible="{Binding StartCommandVisible}">
|
|
|
|
|
|
<TextBlock Text="Start" />
|
|
|
|
|
|
</Button>
|
|
|
|
|
|
<Button Command="{Binding CloseCommand}" IsEnabled="{Binding CloseCommandEnabled}"
|
|
|
|
|
|
IsVisible="{Binding CloseCommandVisible}">
|
|
|
|
|
|
<TextBlock Text="Close" />
|
|
|
|
|
|
</Button>
|
|
|
|
|
|
<Button Command="{Binding StopCommand}" IsEnabled="{Binding StopCommandEnabled}"
|
|
|
|
|
|
IsVisible="{Binding StopCommandVisible}">
|
|
|
|
|
|
<TextBlock Text="Stop" />
|
|
|
|
|
|
</Button>
|
|
|
|
|
|
</StackPanel>
|
|
|
|
|
|
</StackPanel>
|
|
|
|
|
|
</Window>
|