<!--
// /***************************************************************************
// 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/>.
//
// ‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐
// Copyright © 2011-2026 Natalia Portillo
// ****************************************************************************/
-->
<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"
             xmlns:tabs="clr-namespace:Aaru.Gui.ViewModels.Tabs"
             xmlns:localization="clr-namespace:Aaru.Localization;assembly=Aaru.Localization"
             xmlns:controls="clr-namespace:Aaru.Gui.Controls"
             mc:Ignorable="d"
             d:DesignWidth="800"
             d:DesignHeight="450"
             x:DataType="tabs:AtaInfoViewModel"
             x:Class="Aaru.Gui.Views.Tabs.AtaInfo">
    <Design.DataContext>
        <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>
        <CheckBox IsEnabled="False"
                  Grid.Row="2"
                  IsChecked="{Binding AtaMcptChecked, Mode=OneWay}"
                  IsVisible="{Binding AtaMcptVisible, Mode=OneWay}">
            <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}">
            <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}">
                <TextBlock Text="{x:Static localization:UI.ButtonLabel_Save_binary_to_file}" />
            </Button>
            <Button Command="{Binding SaveAtaTextCommand, Mode=OneWay}">
                <TextBlock Text="{x:Static localization:UI.ButtonLabel_Save_text_to_file}" />
            </Button>
        </StackPanel>
    </Grid>
</UserControl>