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"
|
2025-10-25 12:53:52 +01:00
|
|
|
|
xmlns:localization="clr-namespace:Aaru.Localization;assembly=Aaru.Localization"
|
2025-11-19 23:05:55 +00:00
|
|
|
|
xmlns:controls="clr-namespace:Aaru.Gui.Controls"
|
2024-05-01 04:05:22 +01:00
|
|
|
|
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"
|
2025-11-19 05:26:14 +00:00
|
|
|
|
x:DataType="windows:MediaScanViewModel"
|
2025-11-19 23:05:55 +00:00
|
|
|
|
Width="900"
|
|
|
|
|
|
Height="580"
|
|
|
|
|
|
Title="{Binding Title, Mode=OneWay}">
|
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>
|
2025-11-19 23:05:55 +00:00
|
|
|
|
<Grid RowDefinitions="*, Auto, Auto"
|
|
|
|
|
|
Margin="12"
|
|
|
|
|
|
RowSpacing="8">
|
|
|
|
|
|
<TabControl Grid.Row="0"
|
|
|
|
|
|
IsVisible="{Binding ResultsVisible, Mode=OneWay}">
|
2020-04-16 03:18:10 +01:00
|
|
|
|
<TabItem>
|
|
|
|
|
|
<TabItem.Header>
|
2025-11-19 23:05:55 +00:00
|
|
|
|
<TextBlock Text="{x:Static localization:UI.Title_Log}" />
|
2020-04-16 03:18:10 +01:00
|
|
|
|
</TabItem.Header>
|
2025-11-19 23:05:55 +00:00
|
|
|
|
<StackPanel Orientation="Vertical"
|
|
|
|
|
|
Margin="8">
|
|
|
|
|
|
<controls:SpectreTextBlock Text="{Binding A, Mode=OneWay}" />
|
|
|
|
|
|
<controls:SpectreTextBlock Text="{Binding B, Mode=OneWay}" />
|
|
|
|
|
|
<controls:SpectreTextBlock Text="{Binding C, Mode=OneWay}" />
|
|
|
|
|
|
<controls:SpectreTextBlock Text="{Binding D, Mode=OneWay}" />
|
|
|
|
|
|
<controls:SpectreTextBlock Text="{Binding E, Mode=OneWay}" />
|
|
|
|
|
|
<controls:SpectreTextBlock Text="{Binding F, Mode=OneWay}" />
|
|
|
|
|
|
<controls:SpectreTextBlock Text="{Binding UnreadableSectors, Mode=OneWay}"
|
|
|
|
|
|
IsVisible="{Binding !!UnreadableSectors, Mode=OneWay}" />
|
|
|
|
|
|
<controls:SpectreTextBlock Text="{Binding TotalTime, Mode=OneWay}"
|
|
|
|
|
|
IsVisible="{Binding !!TotalTime, Mode=OneWay}" />
|
|
|
|
|
|
<controls:SpectreTextBlock Text="{Binding AvgSpeed, Mode=OneWay}"
|
|
|
|
|
|
IsVisible="{Binding !!AvgSpeed, Mode=OneWay}" />
|
|
|
|
|
|
<controls:SpectreTextBlock Text="{Binding MaxSpeed, Mode=OneWay}"
|
|
|
|
|
|
IsVisible="{Binding !!MaxSpeed, Mode=OneWay}" />
|
|
|
|
|
|
<controls:SpectreTextBlock Text="{Binding MinSpeed, Mode=OneWay}"
|
|
|
|
|
|
IsVisible="{Binding !!MinSpeed, Mode=OneWay}" />
|
2020-04-16 03:18:10 +01:00
|
|
|
|
</StackPanel>
|
|
|
|
|
|
</TabItem>
|
|
|
|
|
|
<TabItem>
|
|
|
|
|
|
<TabItem.Header>
|
2025-11-19 23:05:55 +00:00
|
|
|
|
<TextBlock Text="{x:Static localization:UI.Title_Block_map}" />
|
2020-04-16 03:18:10 +01:00
|
|
|
|
</TabItem.Header>
|
2025-11-20 01:27:38 +00:00
|
|
|
|
<Border Margin="8"
|
|
|
|
|
|
BorderThickness="1"
|
|
|
|
|
|
BorderBrush="LightGray"
|
|
|
|
|
|
CornerRadius="8">
|
|
|
|
|
|
<ScrollViewer HorizontalScrollBarVisibility="Disabled"
|
|
|
|
|
|
VerticalScrollBarVisibility="Auto">
|
|
|
|
|
|
<controls:BlockMap SectorData="{Binding BlockMapSectorData, Mode=OneWay}"
|
|
|
|
|
|
VerticalAlignment="Top"
|
|
|
|
|
|
ScanBlockSize="{Binding ScanBlockSize, Mode=OneWay}"
|
|
|
|
|
|
Margin="4" />
|
|
|
|
|
|
</ScrollViewer>
|
|
|
|
|
|
</Border>
|
2020-04-16 03:18:10 +01:00
|
|
|
|
</TabItem>
|
|
|
|
|
|
<TabItem>
|
|
|
|
|
|
<TabItem.Header>
|
2025-11-19 23:05:55 +00:00
|
|
|
|
<TextBlock Text="{x:Static localization:UI.Title_Chart}" />
|
2020-04-16 03:18:10 +01:00
|
|
|
|
</TabItem.Header>
|
2025-11-20 02:27:43 +00:00
|
|
|
|
<controls:DiscSpeedGraph SpeedData="{Binding SpeedData, Mode=OneWay}"
|
|
|
|
|
|
MaxSector="{Binding MaxSector, Mode=OneWay}"
|
|
|
|
|
|
MaxSpeed="{Binding MaxGraphSpeed, Mode=OneWay}"
|
|
|
|
|
|
Multiplier="{Binding SpeedMultiplier, Mode=OneWay}" />
|
2020-04-16 03:18:10 +01:00
|
|
|
|
</TabItem>
|
|
|
|
|
|
</TabControl>
|
2025-11-19 23:05:55 +00:00
|
|
|
|
<StackPanel Grid.Row="1"
|
|
|
|
|
|
Orientation="Vertical"
|
|
|
|
|
|
IsVisible="{Binding ProgressVisible, Mode=OneWay}"
|
|
|
|
|
|
Spacing="8">
|
2024-05-01 04:05:22 +01:00
|
|
|
|
<StackPanel Orientation="Vertical"
|
2025-11-19 23:05:55 +00:00
|
|
|
|
IsVisible="{Binding Progress1Visible, Mode=OneWay}"
|
|
|
|
|
|
Spacing="8">
|
|
|
|
|
|
<controls:SpectreTextBlock Text="{Binding ProgressText, Mode=OneWay}" />
|
|
|
|
|
|
<ProgressBar Maximum="{Binding ProgressMaxValue, Mode=OneWay}"
|
|
|
|
|
|
IsIndeterminate="{Binding ProgressIndeterminate, Mode=OneWay}"
|
|
|
|
|
|
Value="{Binding ProgressValue, Mode=OneWay}" />
|
2020-04-16 03:18:10 +01:00
|
|
|
|
</StackPanel>
|
|
|
|
|
|
</StackPanel>
|
2025-11-19 23:05:55 +00:00
|
|
|
|
<StackPanel Grid.Row="2"
|
|
|
|
|
|
Orientation="Horizontal"
|
|
|
|
|
|
Spacing="8"
|
|
|
|
|
|
HorizontalAlignment="Right">
|
|
|
|
|
|
<Button Command="{Binding StartCommand, Mode=OneWay}"
|
|
|
|
|
|
IsVisible="{Binding StartVisible, Mode=OneWay}">
|
2025-10-25 12:53:52 +01:00
|
|
|
|
<TextBlock Text="{x:Static localization:UI.ButtonLabel_Start}" />
|
2020-04-16 03:18:10 +01:00
|
|
|
|
</Button>
|
2025-11-19 23:05:55 +00:00
|
|
|
|
<Button Command="{Binding CloseCommand, Mode=OneWay}"
|
|
|
|
|
|
IsVisible="{Binding CloseVisible, Mode=OneWay}">
|
2025-10-25 12:53:52 +01:00
|
|
|
|
<TextBlock Text="{x:Static localization:UI.ButtonLabel_Close}" />
|
2020-04-16 03:18:10 +01:00
|
|
|
|
</Button>
|
2025-11-19 23:05:55 +00:00
|
|
|
|
<Button Command="{Binding StopCommand, Mode=OneWay}"
|
|
|
|
|
|
IsVisible="{Binding StopVisible, Mode=OneWay}"
|
|
|
|
|
|
IsEnabled="{Binding StopEnabled, Mode=OneWay}">
|
2025-10-25 12:53:52 +01:00
|
|
|
|
<TextBlock Text="{x:Static localization:UI.ButtonLabel_Stop}" />
|
2020-04-16 03:18:10 +01:00
|
|
|
|
</Button>
|
|
|
|
|
|
</StackPanel>
|
2025-11-19 23:05:55 +00:00
|
|
|
|
</Grid>
|
2020-04-16 03:18:10 +01:00
|
|
|
|
</Window>
|