2020-04-17 21:45:50 +01:00
|
|
|
|
<!--
|
|
|
|
|
|
// /***************************************************************************
|
|
|
|
|
|
// Aaru Data Preservation Suite
|
|
|
|
|
|
// ‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐
|
|
|
|
|
|
//
|
|
|
|
|
|
// Filename : ImageEntropy.xaml
|
|
|
|
|
|
// Author(s) : Natalia Portillo <claunia@claunia.com>
|
|
|
|
|
|
//
|
|
|
|
|
|
// Component : GUI windows.
|
|
|
|
|
|
//
|
|
|
|
|
|
// ‐‐[ Description ] ‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐
|
|
|
|
|
|
//
|
|
|
|
|
|
// Image entropy calculation 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/>.
|
|
|
|
|
|
//
|
|
|
|
|
|
// ‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐
|
2024-05-01 04:17:32 +01:00
|
|
|
|
// Copyright © 2011-2024 Natalia Portillo
|
2020-04-17 21:45:50 +01:00
|
|
|
|
// ****************************************************************************/
|
|
|
|
|
|
-->
|
2024-05-01 04:05:22 +01:00
|
|
|
|
<Window xmlns="https://github.com/avaloniaui"
|
|
|
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
2020-04-12 22:29:24 +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"
|
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"
|
|
|
|
|
|
x:Class="Aaru.Gui.Views.Windows.ImageEntropy"
|
|
|
|
|
|
Icon="/Assets/aaru-logo.png"
|
2020-04-12 22:29:24 +01:00
|
|
|
|
Title="{Binding Title}">
|
|
|
|
|
|
<Design.DataContext>
|
2020-04-16 20:40:25 +01:00
|
|
|
|
<windows:ImageEntropyViewModel />
|
2020-04-12 22:29:24 +01:00
|
|
|
|
</Design.DataContext>
|
|
|
|
|
|
<StackPanel Orientation="Vertical">
|
2024-05-01 04:05:22 +01:00
|
|
|
|
<StackPanel IsVisible="{Binding OptionsVisible}"
|
|
|
|
|
|
Orientation="Vertical">
|
|
|
|
|
|
<CheckBox IsEnabled="{Binding DuplicatedSectorsEnabled}"
|
|
|
|
|
|
IsChecked="{Binding DuplicatedSectorsChecked}">
|
2022-11-16 21:40:54 +00:00
|
|
|
|
<TextBlock Text="{Binding DuplicatedSectorsLabel}" />
|
2020-04-12 22:29:24 +01:00
|
|
|
|
</CheckBox>
|
2024-05-01 04:05:22 +01:00
|
|
|
|
<CheckBox IsEnabled="{Binding SeparatedTracksEnabled}"
|
|
|
|
|
|
IsChecked="{Binding SeparatedTracksChecked}"
|
2020-04-12 22:29:24 +01:00
|
|
|
|
IsVisible="{Binding SeparatedTracksVisible}">
|
2022-11-16 21:40:54 +00:00
|
|
|
|
<TextBlock Text="{Binding SeparatedTracksLabel}" />
|
2020-04-12 22:29:24 +01:00
|
|
|
|
</CheckBox>
|
2024-05-01 04:05:22 +01:00
|
|
|
|
<CheckBox IsEnabled="{Binding WholeDiscEnabled}"
|
|
|
|
|
|
IsChecked="{Binding WholeDiscChecked}"
|
2020-04-12 22:29:24 +01:00
|
|
|
|
IsVisible="{Binding WholeDiscVisible}">
|
2022-11-16 21:40:54 +00:00
|
|
|
|
<TextBlock Text="{Binding WholeDiscLabel}" />
|
2020-04-12 22:29:24 +01:00
|
|
|
|
</CheckBox>
|
|
|
|
|
|
</StackPanel>
|
2024-05-01 04:05:22 +01:00
|
|
|
|
<StackPanel Orientation="Vertical"
|
|
|
|
|
|
IsVisible="{Binding ResultsVisible}">
|
|
|
|
|
|
<TextBlock Text="{Binding MediaEntropyText}"
|
|
|
|
|
|
IsVisible="{Binding MediaEntropyVisible}" />
|
|
|
|
|
|
<TextBlock Text="{Binding MediaUniqueSectorsText}"
|
|
|
|
|
|
IsVisible="{Binding MediaUniqueSectorsVisible}" />
|
|
|
|
|
|
<TextBlock Text="{Binding TrackEntropyLabel}"
|
|
|
|
|
|
IsVisible="{Binding SeparatedTracksEnabled}" />
|
|
|
|
|
|
<DataGrid IsVisible="{Binding SeparatedTracksEnabled}"
|
|
|
|
|
|
ItemsSource="{Binding TrackEntropy}">
|
2020-04-12 22:29:24 +01:00
|
|
|
|
<DataGrid.Columns>
|
2024-05-01 04:05:22 +01:00
|
|
|
|
<DataGridTextColumn Header="{Binding TrackLabel}"
|
|
|
|
|
|
Binding="{Binding Track}" />
|
|
|
|
|
|
<DataGridTextColumn Header="{Binding EntropyLabel}"
|
|
|
|
|
|
Binding="{Binding Entropy}" />
|
|
|
|
|
|
<DataGridTextColumn Header="{Binding UniqueSectorsLabel}"
|
|
|
|
|
|
Binding="{Binding UniqueSectors}" />
|
2020-04-12 22:29:24 +01:00
|
|
|
|
</DataGrid.Columns>
|
|
|
|
|
|
</DataGrid>
|
|
|
|
|
|
</StackPanel>
|
2024-05-01 04:05:22 +01:00
|
|
|
|
<StackPanel Orientation="Vertical"
|
|
|
|
|
|
IsVisible="{Binding ProgressVisible}">
|
|
|
|
|
|
<StackPanel Orientation="Vertical"
|
|
|
|
|
|
IsVisible="{Binding Progress1Visible}">
|
2020-04-12 22:29:24 +01:00
|
|
|
|
<TextBlock Text="{Binding ProgressText}" />
|
2024-05-01 04:05:22 +01:00
|
|
|
|
<ProgressBar Maximum="{Binding ProgressMax}"
|
|
|
|
|
|
Value="{Binding ProgressValue}"
|
2020-04-12 22:29:24 +01:00
|
|
|
|
IsIndeterminate="{Binding ProgressIndeterminate}" />
|
|
|
|
|
|
</StackPanel>
|
2024-05-01 04:05:22 +01:00
|
|
|
|
<StackPanel Orientation="Vertical"
|
|
|
|
|
|
IsVisible="{Binding Progress2Visible}">
|
2020-04-12 22:29:24 +01:00
|
|
|
|
<TextBlock Text="{Binding Progress2Text}" />
|
2024-05-01 04:05:22 +01:00
|
|
|
|
<ProgressBar Maximum="{Binding Progress2Max}"
|
|
|
|
|
|
Value="{Binding Progress2Value}"
|
2020-04-12 22:29:24 +01:00
|
|
|
|
IsIndeterminate="{Binding Progress2Indeterminate}" />
|
|
|
|
|
|
</StackPanel>
|
|
|
|
|
|
</StackPanel>
|
2024-05-01 04:05:22 +01:00
|
|
|
|
<Button Command="{Binding StartCommand}"
|
|
|
|
|
|
IsVisible="{Binding StartVisible}">
|
2022-11-16 21:40:54 +00:00
|
|
|
|
<TextBlock Text="{Binding StartLabel}" />
|
2020-04-12 22:29:24 +01:00
|
|
|
|
</Button>
|
2024-05-01 04:05:22 +01:00
|
|
|
|
<Button Command="{Binding CloseCommand}"
|
|
|
|
|
|
IsVisible="{Binding CloseVisible}">
|
2022-11-16 21:40:54 +00:00
|
|
|
|
<TextBlock Text="{Binding CloseLabel}" />
|
2020-04-12 22:29:24 +01:00
|
|
|
|
</Button>
|
2024-05-01 04:05:22 +01:00
|
|
|
|
<Button Command="{Binding StopCommand}"
|
|
|
|
|
|
IsVisible="{Binding StopVisible}">
|
2022-11-16 21:40:54 +00:00
|
|
|
|
<TextBlock Text="{Binding StopLabel}" />
|
2020-04-12 22:29:24 +01:00
|
|
|
|
</Button>
|
|
|
|
|
|
</StackPanel>
|
|
|
|
|
|
</Window>
|