Files
Aaru/Aaru.Gui/Views/Tabs/AtaInfo.xaml

93 lines
4.8 KiB
Plaintext
Raw Normal View History

2020-04-17 21:45:50 +01:00
<!--
// /***************************************************************************
// Aaru Data Preservation Suite
//
//
// Filename : AtaInfo.xaml
// Author(s) : Natalia Portillo <claunia@claunia.com>
//
// Component : GUI tabs.
//
// [ Description ]
//
// ATA tab.
//
// [ 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
<UserControl 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"
2024-05-01 04:05:22 +01:00
xmlns:tabs="clr-namespace:Aaru.Gui.ViewModels.Tabs"
2025-10-25 12:53:52 +01:00
xmlns:localization="clr-namespace:Aaru.Localization;assembly=Aaru.Localization"
xmlns:controls="clr-namespace:Aaru.Gui.Controls"
2024-05-01 04:05:22 +01:00
mc:Ignorable="d"
d:DesignWidth="800"
d:DesignHeight="450"
2025-11-19 05:26:14 +00:00
x:DataType="tabs:AtaInfoViewModel"
2024-05-01 04:05:22 +01:00
x:Class="Aaru.Gui.Views.Tabs.AtaInfo">
<Design.DataContext>
2020-04-16 20:40:25 +01:00
<tabs:AtaInfoViewModel />
</Design.DataContext>
<Grid RowDefinitions="Auto,*,Auto,Auto,Auto,Auto,Auto"
Margin="8"
RowSpacing="8">
<TextBlock Grid.Row="0"
FontWeight="Bold"
Text="{Binding AtaOrAtapiText, Mode=OneWay}" />
<Border Grid.Row="1"
BorderThickness="1"
BorderBrush="{DynamicResource SystemControlForegroundBaseMediumLowBrush}"
CornerRadius="8">
<ScrollViewer Padding="8">
<controls:SpectreTextBlock Text="{Binding AtaIdentifyText, Mode=OneWay}"
TextWrapping="Wrap" />
</ScrollViewer>
</Border>
2024-05-01 04:05:22 +01:00
<CheckBox IsEnabled="False"
Grid.Row="2"
IsChecked="{Binding AtaMcptChecked, Mode=OneWay}"
IsVisible="{Binding AtaMcptVisible, Mode=OneWay}">
2025-10-25 12:53:52 +01:00
<TextBlock Text="{x:Static localization:Core.Device_supports_MCPT_Command_Set}" />
</CheckBox>
<TextBlock Grid.Row="3"
Text="{Binding AtaMcptText, Mode=OneWay}" />
<CheckBox Grid.Row="4"
IsEnabled="False"
IsChecked="{Binding AtaMcptWriteProtectionChecked, Mode=OneWay}"
IsVisible="{Binding AtaMcptChecked, Mode=OneWay}">
2025-10-25 12:53:52 +01:00
<TextBlock Text="{x:Static localization:Core.Media_card_is_write_protected}" />
</CheckBox>
<TextBlock Grid.Row="5"
Text="{Binding AtaMcptSpecificDataText, Mode=OneWay}" />
<StackPanel Grid.Row="6"
Orientation="Horizontal"
HorizontalAlignment="Left"
VerticalAlignment="Bottom"
Spacing="8">
<Button Command="{Binding SaveAtaBinaryCommand, Mode=OneWay}">
2025-10-25 12:53:52 +01:00
<TextBlock Text="{x:Static localization:UI.ButtonLabel_Save_binary_to_file}" />
</Button>
<Button Command="{Binding SaveAtaTextCommand, Mode=OneWay}">
2025-10-25 12:53:52 +01:00
<TextBlock Text="{x:Static localization:UI.ButtonLabel_Save_text_to_file}" />
</Button>
</StackPanel>
</Grid>
</UserControl>