mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
126 lines
6.9 KiB
XML
126 lines
6.9 KiB
XML
<!--
|
||
// /***************************************************************************
|
||
// 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/>.
|
||
//
|
||
// ‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐
|
||
// Copyright © 2011-2025 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"
|
||
xmlns:localization="clr-namespace:Aaru.Localization;assembly=Aaru.Localization"
|
||
mc:Ignorable="d"
|
||
d:DesignWidth="800"
|
||
d:DesignHeight="450"
|
||
x:Class="Aaru.Gui.Views.Windows.MediaScan"
|
||
Icon="/Assets/aaru-logo.png"
|
||
x:DataType="windows:MediaScanViewModel"
|
||
Title="{Binding Title}">
|
||
<Design.DataContext>
|
||
<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}" />
|
||
<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>
|
||
<!-- <controls:BlockMap Width="750" Height="400" Blocks="{Binding Blocks}" ItemsSource="{Binding BlockMapList}" /> -->
|
||
</TabItem>
|
||
<TabItem>
|
||
<TabItem.Header>
|
||
<TextBlock Text="Chart" />
|
||
</TabItem.Header>
|
||
<!-- TODO: Abandoned project need to find replacement
|
||
<avalonia:Plot Height="300" PlotMargins="50 0 0 0" PlotAreaBorderColor="#999999"
|
||
PlotAreaBackground="#2974c1">
|
||
<avalonia:Plot.Series>
|
||
<avalonia:LineSeries DataFieldX="Index" DataFieldY="Value" ItemsSource="{Binding Path=ChartPoints}"
|
||
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}" />
|
||
<avalonia:LinearAxis Position="Bottom" Maximum="{Binding MaxX}" Minimum="{Binding MinX}"
|
||
MajorStep="{Binding StepsX}" Title="{Binding BlockLabel}"
|
||
AxislineColor="{Binding AxesColor}" />
|
||
</avalonia:Plot.Axes>
|
||
</avalonia:Plot>
|
||
-->
|
||
</TabItem>
|
||
</TabControl>
|
||
<StackPanel Orientation="Vertical"
|
||
IsVisible="{Binding ProgressVisible}">
|
||
<StackPanel Orientation="Vertical"
|
||
IsVisible="{Binding Progress1Visible}">
|
||
<TextBlock Text="{Binding ProgressText}" />
|
||
<ProgressBar Maximum="{Binding ProgressMaxValue}"
|
||
IsIndeterminate="{Binding ProgressIndeterminate}"
|
||
Value="{Binding ProgressValue}" />
|
||
</StackPanel>
|
||
</StackPanel>
|
||
<StackPanel Orientation="Horizontal">
|
||
<Button Command="{Binding StartCommand}"
|
||
IsVisible="{Binding StartVisible}">
|
||
<TextBlock Text="{x:Static localization:UI.ButtonLabel_Start}" />
|
||
</Button>
|
||
<Button Command="{Binding CloseCommand}"
|
||
IsVisible="{Binding CloseVisible}">
|
||
<TextBlock Text="{x:Static localization:UI.ButtonLabel_Close}" />
|
||
</Button>
|
||
<Button Command="{Binding StopCommand}"
|
||
IsVisible="{Binding StopVisible}"
|
||
IsEnabled="{Binding StopEnabled}">
|
||
<TextBlock Text="{x:Static localization:UI.ButtonLabel_Stop}" />
|
||
</Button>
|
||
</StackPanel>
|
||
</StackPanel>
|
||
</Window> |