2020-04-17 21:45:50 +01:00
|
|
|
|
<!--
|
|
|
|
|
|
// /***************************************************************************
|
|
|
|
|
|
// Aaru Data Preservation Suite
|
|
|
|
|
|
// ‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐
|
|
|
|
|
|
//
|
|
|
|
|
|
// Filename : MediaScan.xaml
|
|
|
|
|
|
// Author(s) : Natalia Portillo <claunia@claunia.com>
|
|
|
|
|
|
//
|
|
|
|
|
|
// Component : GUI windows.
|
|
|
|
|
|
//
|
|
|
|
|
|
// ‐‐[ Description ] ‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐
|
|
|
|
|
|
//
|
|
|
|
|
|
// Media scanning 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-12-19 10:45:18 +00:00
|
|
|
|
// Copyright © 2011-2025 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-16 03:18:10 +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"
|
2023-10-03 23:27:57 +01:00
|
|
|
|
d:DesignHeight="450"
|
2024-05-01 04:05:22 +01:00
|
|
|
|
x:Class="Aaru.Gui.Views.Windows.MediaScan"
|
|
|
|
|
|
Icon="/Assets/aaru-logo.png"
|
|
|
|
|
|
Title="{Binding Title}">
|
2020-04-16 03:18:10 +01:00
|
|
|
|
<Design.DataContext>
|
2020-04-16 20:40:25 +01:00
|
|
|
|
<windows:MediaScanViewModel />
|
2020-04-16 03:18:10 +01:00
|
|
|
|
</Design.DataContext>
|
|
|
|
|
|
<StackPanel Orientation="Vertical">
|
|
|
|
|
|
<TabControl IsVisible="{Binding ResultsVisible}">
|
|
|
|
|
|
<TabItem>
|
|
|
|
|
|
<TabItem.Header>
|
|
|
|
|
|
<TextBlock Text="Log" />
|
|
|
|
|
|
</TabItem.Header>
|
|
|
|
|
|
<StackPanel Orientation="Vertical">
|
|
|
|
|
|
<TextBlock Text="{Binding A}" /> <TextBlock Text="{Binding B}" /> <TextBlock Text="{Binding C}" />
|
|
|
|
|
|
<TextBlock Text="{Binding D}" /> <TextBlock Text="{Binding E}" /> <TextBlock Text="{Binding F}" />
|
2024-05-01 04:05:22 +01:00
|
|
|
|
<TextBlock Text="{Binding UnreadableSectors}"
|
|
|
|
|
|
IsVisible="{Binding !!UnreadableSectors}" />
|
|
|
|
|
|
<TextBlock Text="{Binding TotalTime}"
|
|
|
|
|
|
IsVisible="{Binding !!TotalTime}" />
|
|
|
|
|
|
<TextBlock Text="{Binding AvgSpeed}"
|
|
|
|
|
|
IsVisible="{Binding !!AvgSpeed}" />
|
|
|
|
|
|
<TextBlock Text="{Binding MaxSpeed}"
|
|
|
|
|
|
IsVisible="{Binding !!MaxSpeed}" />
|
|
|
|
|
|
<TextBlock Text="{Binding MinSpeed}"
|
|
|
|
|
|
IsVisible="{Binding !!MinSpeed}" />
|
2020-04-16 03:18:10 +01:00
|
|
|
|
</StackPanel>
|
|
|
|
|
|
</TabItem>
|
|
|
|
|
|
<TabItem>
|
|
|
|
|
|
<TabItem.Header>
|
|
|
|
|
|
<TextBlock Text="Graph" />
|
|
|
|
|
|
</TabItem.Header>
|
2023-10-03 23:27:57 +01:00
|
|
|
|
<!-- <controls:BlockMap Width="750" Height="400" Blocks="{Binding Blocks}" ItemsSource="{Binding BlockMapList}" /> -->
|
2020-04-16 03:18:10 +01:00
|
|
|
|
</TabItem>
|
|
|
|
|
|
<TabItem>
|
|
|
|
|
|
<TabItem.Header>
|
|
|
|
|
|
<TextBlock Text="Chart" />
|
|
|
|
|
|
</TabItem.Header>
|
2023-09-25 22:58:48 +01:00
|
|
|
|
<!-- TODO: Abandoned project need to find replacement
|
2020-04-17 19:09:09 +01:00
|
|
|
|
<avalonia:Plot Height="300" PlotMargins="50 0 0 0" PlotAreaBorderColor="#999999"
|
|
|
|
|
|
PlotAreaBackground="#2974c1">
|
|
|
|
|
|
<avalonia:Plot.Series>
|
2023-09-25 22:58:48 +01:00
|
|
|
|
<avalonia:LineSeries DataFieldX="Index" DataFieldY="Value" ItemsSource="{Binding Path=ChartPoints}"
|
2020-04-17 19:09:09 +01:00
|
|
|
|
Color="{Binding LineColor}" />
|
|
|
|
|
|
</avalonia:Plot.Series>
|
|
|
|
|
|
<avalonia:Plot.Axes>
|
|
|
|
|
|
<avalonia:LinearAxis Position="Left" Maximum="{Binding MaxY}" Minimum="{Binding MinY}"
|
2022-11-16 21:40:54 +00:00
|
|
|
|
MajorStep="{Binding StepsY}" Title="{Binding SpeedLabel}"
|
|
|
|
|
|
Unit="{Binding KbsLabel}" AxislineColor="{Binding AxesColor}" />
|
2020-04-17 19:09:09 +01:00
|
|
|
|
<avalonia:LinearAxis Position="Bottom" Maximum="{Binding MaxX}" Minimum="{Binding MinX}"
|
2022-11-16 21:40:54 +00:00
|
|
|
|
MajorStep="{Binding StepsX}" Title="{Binding BlockLabel}"
|
2020-04-17 19:09:09 +01:00
|
|
|
|
AxislineColor="{Binding AxesColor}" />
|
|
|
|
|
|
</avalonia:Plot.Axes>
|
|
|
|
|
|
</avalonia:Plot>
|
2023-09-25 22:58:48 +01:00
|
|
|
|
-->
|
2020-04-16 03:18:10 +01:00
|
|
|
|
</TabItem>
|
|
|
|
|
|
</TabControl>
|
2024-05-01 04:05:22 +01:00
|
|
|
|
<StackPanel Orientation="Vertical"
|
|
|
|
|
|
IsVisible="{Binding ProgressVisible}">
|
|
|
|
|
|
<StackPanel Orientation="Vertical"
|
|
|
|
|
|
IsVisible="{Binding Progress1Visible}">
|
2020-04-16 03:18:10 +01:00
|
|
|
|
<TextBlock Text="{Binding ProgressText}" />
|
2024-05-01 04:05:22 +01:00
|
|
|
|
<ProgressBar Maximum="{Binding ProgressMaxValue}"
|
|
|
|
|
|
IsIndeterminate="{Binding ProgressIndeterminate}"
|
2020-04-16 03:18:10 +01:00
|
|
|
|
Value="{Binding ProgressValue}" />
|
|
|
|
|
|
</StackPanel>
|
|
|
|
|
|
</StackPanel>
|
|
|
|
|
|
<StackPanel Orientation="Horizontal">
|
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-16 03:18:10 +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-16 03:18:10 +01:00
|
|
|
|
</Button>
|
2024-05-01 04:05:22 +01:00
|
|
|
|
<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 03:18:10 +01:00
|
|
|
|
</Button>
|
|
|
|
|
|
</StackPanel>
|
|
|
|
|
|
</StackPanel>
|
|
|
|
|
|
</Window>
|