Files
Aaru/Aaru.Gui/Views/Windows/MediaScan.xaml

124 lines
6.7 KiB
Plaintext
Raw Normal View History

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"
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}">
<Design.DataContext>
2020-04-16 20:40:25 +01:00
<windows:MediaScanViewModel />
</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}" />
</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}" /> -->
</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}"
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}"
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
-->
</TabItem>
</TabControl>
2024-05-01 04:05:22 +01:00
<StackPanel Orientation="Vertical"
IsVisible="{Binding ProgressVisible}">
<StackPanel Orientation="Vertical"
IsVisible="{Binding Progress1Visible}">
<TextBlock Text="{Binding ProgressText}" />
2024-05-01 04:05:22 +01:00
<ProgressBar Maximum="{Binding ProgressMaxValue}"
IsIndeterminate="{Binding ProgressIndeterminate}"
Value="{Binding ProgressValue}" />
</StackPanel>
</StackPanel>
<StackPanel Orientation="Horizontal">
2024-05-01 04:05:22 +01:00
<Button Command="{Binding StartCommand}"
IsVisible="{Binding StartVisible}">
<TextBlock Text="{Binding StartLabel}" />
</Button>
2024-05-01 04:05:22 +01:00
<Button Command="{Binding CloseCommand}"
IsVisible="{Binding CloseVisible}">
<TextBlock Text="{Binding CloseLabel}" />
</Button>
2024-05-01 04:05:22 +01:00
<Button Command="{Binding StopCommand}"
IsVisible="{Binding StopVisible}"
IsEnabled="{Binding StopEnabled}">
<TextBlock Text="{Binding StopLabel}" />
</Button>
</StackPanel>
</StackPanel>
</Window>