2020-04-17 21:45:50 +01:00
|
|
|
|
<!--
|
|
|
|
|
|
// /***************************************************************************
|
|
|
|
|
|
// Aaru Data Preservation Suite
|
|
|
|
|
|
// ‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐
|
|
|
|
|
|
//
|
|
|
|
|
|
// Filename : ScsiInfo.xaml
|
|
|
|
|
|
// Author(s) : Natalia Portillo <claunia@claunia.com>
|
|
|
|
|
|
//
|
|
|
|
|
|
// Component : GUI tabs.
|
|
|
|
|
|
//
|
|
|
|
|
|
// ‐‐[ Description ] ‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐
|
|
|
|
|
|
//
|
|
|
|
|
|
// SCSI 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"
|
2020-04-12 04:14:48 +01:00
|
|
|
|
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"
|
2025-10-26 03:19:04 +00:00
|
|
|
|
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:ScsiInfoViewModel"
|
2024-05-01 04:05:22 +01:00
|
|
|
|
x:Class="Aaru.Gui.Views.Tabs.ScsiInfo">
|
2020-04-12 04:14:48 +01:00
|
|
|
|
<Design.DataContext>
|
2020-04-16 20:40:25 +01:00
|
|
|
|
<tabs:ScsiInfoViewModel />
|
2020-04-12 04:14:48 +01:00
|
|
|
|
</Design.DataContext>
|
2025-12-15 16:15:22 +00:00
|
|
|
|
<UserControl.Styles>
|
|
|
|
|
|
<Style Selector="DataGridRow:nth-child(2n)">
|
|
|
|
|
|
<Setter Property="Background">
|
|
|
|
|
|
<SolidColorBrush Color="#0CFFFFFF" />
|
|
|
|
|
|
</Setter>
|
|
|
|
|
|
</Style>
|
|
|
|
|
|
<Style Selector="DataGridRow:nth-child(2n) DataGridCell">
|
|
|
|
|
|
<Setter Property="Background">
|
|
|
|
|
|
<SolidColorBrush Color="#0CFFFFFF" />
|
|
|
|
|
|
</Setter>
|
|
|
|
|
|
</Style>
|
|
|
|
|
|
<Style Selector="DataGridRow:nth-child(2n):pointerover">
|
|
|
|
|
|
<Setter Property="Background"
|
|
|
|
|
|
Value="{DynamicResource SystemControlHighlightListLowBrush}" />
|
|
|
|
|
|
</Style>
|
|
|
|
|
|
<Style Selector="DataGridRow:nth-child(2n):pointerover DataGridCell">
|
|
|
|
|
|
<Setter Property="Background"
|
|
|
|
|
|
Value="{DynamicResource SystemControlHighlightListLowBrush}" />
|
|
|
|
|
|
</Style>
|
|
|
|
|
|
<Style Selector="DataGridRow:nth-child(2n):selected">
|
|
|
|
|
|
<Setter Property="Background"
|
|
|
|
|
|
Value="{DynamicResource SystemControlHighlightAccentBrush}" />
|
|
|
|
|
|
</Style>
|
|
|
|
|
|
<Style Selector="DataGridRow:nth-child(2n):selected DataGridCell">
|
|
|
|
|
|
<Setter Property="Background"
|
|
|
|
|
|
Value="{DynamicResource SystemControlHighlightAccentBrush}" />
|
|
|
|
|
|
</Style>
|
|
|
|
|
|
</UserControl.Styles>
|
2020-04-12 04:14:48 +01:00
|
|
|
|
<TabControl>
|
2025-11-24 03:03:47 +00:00
|
|
|
|
<TabItem IsVisible="{Binding !!InquiryData, Mode=OneWay}">
|
2020-04-12 04:14:48 +01:00
|
|
|
|
<TabItem.Header>
|
2025-10-25 12:53:52 +01:00
|
|
|
|
<TextBlock Text="{x:Static localization:UI.Title_INQUIRY}" />
|
2020-04-12 04:14:48 +01:00
|
|
|
|
</TabItem.Header>
|
2025-10-26 03:19:04 +00:00
|
|
|
|
<Grid RowDefinitions="*, Auto"
|
|
|
|
|
|
RowSpacing="8"
|
|
|
|
|
|
Margin="8">
|
|
|
|
|
|
<Border Grid.Row="0"
|
|
|
|
|
|
BorderThickness="1"
|
2025-12-15 16:19:19 +00:00
|
|
|
|
BorderBrush="{DynamicResource SystemControlForegroundBaseMediumLowBrush}"
|
2025-10-26 03:19:04 +00:00
|
|
|
|
CornerRadius="8">
|
|
|
|
|
|
<ScrollViewer Padding="8">
|
|
|
|
|
|
<controls:SpectreTextBlock Text="{Binding ScsiInquiryText, Mode=OneWay}"
|
|
|
|
|
|
TextWrapping="Wrap" />
|
|
|
|
|
|
</ScrollViewer>
|
|
|
|
|
|
</Border>
|
|
|
|
|
|
<StackPanel Orientation="Horizontal"
|
|
|
|
|
|
Grid.Row="1"
|
|
|
|
|
|
Spacing="8">
|
|
|
|
|
|
<Button Command="{Binding SaveInquiryBinaryCommand, Mode=OneWay}">
|
2025-10-25 12:53:52 +01:00
|
|
|
|
<TextBlock Text="{x:Static localization:UI.ButtonLabel_Save_binary_to_file}" />
|
2020-04-12 04:14:48 +01:00
|
|
|
|
</Button>
|
2025-10-26 03:19:04 +00:00
|
|
|
|
<Button Command="{Binding SaveInquiryTextCommand, Mode=OneWay}">
|
2025-10-25 12:53:52 +01:00
|
|
|
|
<TextBlock Text="{x:Static localization:UI.ButtonLabel_Save_text_to_file}" />
|
2020-04-12 04:14:48 +01:00
|
|
|
|
</Button>
|
|
|
|
|
|
</StackPanel>
|
2025-10-26 03:19:04 +00:00
|
|
|
|
</Grid>
|
2020-04-12 04:14:48 +01:00
|
|
|
|
</TabItem>
|
2025-10-26 03:19:04 +00:00
|
|
|
|
<TabItem IsVisible="{Binding !!ModeSensePages.Count, Mode=OneWay}">
|
2020-04-12 04:14:48 +01:00
|
|
|
|
<TabItem.Header>
|
2025-10-25 12:53:52 +01:00
|
|
|
|
<TextBlock Text="{x:Static localization:UI.Title_MODE_SENSE}" />
|
2020-04-12 04:14:48 +01:00
|
|
|
|
</TabItem.Header>
|
2025-10-26 03:19:04 +00:00
|
|
|
|
<Grid RowDefinitions="*, Auto"
|
|
|
|
|
|
RowSpacing="8"
|
|
|
|
|
|
Margin="8">
|
|
|
|
|
|
<Grid Grid.Row="0"
|
2025-12-15 16:28:23 +00:00
|
|
|
|
ColumnDefinitions="0.3*, 0.7*"
|
2025-10-26 03:19:04 +00:00
|
|
|
|
ColumnSpacing="8">
|
|
|
|
|
|
<DataGrid Grid.Column="0"
|
2025-12-15 16:28:23 +00:00
|
|
|
|
HorizontalAlignment="Stretch"
|
2024-05-01 04:05:22 +01:00
|
|
|
|
VerticalAlignment="Stretch"
|
2025-10-26 03:19:04 +00:00
|
|
|
|
ItemsSource="{Binding ModeSensePages, Mode=OneWay}"
|
|
|
|
|
|
SelectedItem="{Binding SelectedModeSensePage, Mode=TwoWay}"
|
2024-05-01 04:05:22 +01:00
|
|
|
|
IsReadOnly="True">
|
2020-04-12 04:14:48 +01:00
|
|
|
|
<DataGrid.Columns>
|
2025-10-25 12:53:52 +01:00
|
|
|
|
<DataGridTextColumn Header="{x:Static localization:UI.Title_Page}"
|
2025-12-15 16:24:11 +00:00
|
|
|
|
Binding="{Binding Page, Mode=OneWay}"
|
|
|
|
|
|
Width="*" />
|
2020-04-12 04:14:48 +01:00
|
|
|
|
</DataGrid.Columns>
|
|
|
|
|
|
</DataGrid>
|
2025-10-26 03:19:04 +00:00
|
|
|
|
<Border Grid.Column="1"
|
|
|
|
|
|
BorderThickness="1"
|
2025-12-15 16:19:19 +00:00
|
|
|
|
BorderBrush="{DynamicResource SystemControlForegroundBaseMediumLowBrush}"
|
2025-10-26 03:19:04 +00:00
|
|
|
|
CornerRadius="8">
|
|
|
|
|
|
<ScrollViewer Padding="8">
|
|
|
|
|
|
<controls:SpectreTextBlock HorizontalAlignment="Stretch"
|
|
|
|
|
|
VerticalAlignment="Stretch"
|
|
|
|
|
|
Text="{Binding ModeSensePageText, Mode=OneWay}"
|
|
|
|
|
|
TextWrapping="Wrap" />
|
|
|
|
|
|
</ScrollViewer>
|
|
|
|
|
|
</Border>
|
|
|
|
|
|
</Grid>
|
|
|
|
|
|
<StackPanel Grid.Row="1"
|
|
|
|
|
|
Orientation="Horizontal"
|
|
|
|
|
|
Spacing="8"
|
|
|
|
|
|
VerticalAlignment="Bottom">
|
|
|
|
|
|
<Button Command="{Binding SaveModeSense6Command, Mode=OneWay}">
|
2025-10-25 12:53:52 +01:00
|
|
|
|
<TextBlock Text="{x:Static localization:UI.ButtonLabel_Save_MODE_SENSE_6_response_to_file}" />
|
2020-04-12 04:14:48 +01:00
|
|
|
|
</Button>
|
2025-10-26 03:19:04 +00:00
|
|
|
|
<Button Command="{Binding SaveModeSense10Command, Mode=OneWay}">
|
2025-10-25 12:53:52 +01:00
|
|
|
|
<TextBlock Text="{x:Static localization:UI.ButtonLabel_Save_MODE_SENSE_10_response_to_file}" />
|
2020-04-12 04:14:48 +01:00
|
|
|
|
</Button>
|
|
|
|
|
|
</StackPanel>
|
2025-10-26 03:19:04 +00:00
|
|
|
|
</Grid>
|
2020-04-12 04:14:48 +01:00
|
|
|
|
</TabItem>
|
2025-10-26 03:19:04 +00:00
|
|
|
|
<TabItem IsVisible="{Binding !!EvpdPages.Count, Mode=OneWay}">
|
2020-04-12 04:14:48 +01:00
|
|
|
|
<TabItem.Header>
|
2025-10-25 12:53:52 +01:00
|
|
|
|
<TextBlock Text="{x:Static localization:UI.Title_EVPD}" />
|
2020-04-12 04:14:48 +01:00
|
|
|
|
</TabItem.Header>
|
2025-10-26 03:19:04 +00:00
|
|
|
|
<Grid RowDefinitions="*, Auto"
|
|
|
|
|
|
RowSpacing="8"
|
|
|
|
|
|
Margin="8">
|
|
|
|
|
|
<Grid Grid.Row="0"
|
2025-12-15 16:28:23 +00:00
|
|
|
|
ColumnDefinitions="0.3*, 0.7*"
|
2025-10-26 03:19:04 +00:00
|
|
|
|
ColumnSpacing="8">
|
|
|
|
|
|
<DataGrid Grid.Column="0"
|
2025-12-15 16:28:23 +00:00
|
|
|
|
HorizontalAlignment="Stretch"
|
2024-05-01 04:05:22 +01:00
|
|
|
|
VerticalAlignment="Stretch"
|
2025-10-26 03:19:04 +00:00
|
|
|
|
ItemsSource="{Binding EvpdPages, Mode=OneWay}"
|
|
|
|
|
|
SelectedItem="{Binding SelectedEvpdPage, Mode=TwoWay}"
|
2024-05-01 04:05:22 +01:00
|
|
|
|
IsReadOnly="True">
|
2020-04-12 04:14:48 +01:00
|
|
|
|
<DataGrid.Columns>
|
2025-10-25 12:53:52 +01:00
|
|
|
|
<DataGridTextColumn Header="{x:Static localization:UI.Title_Page}"
|
2025-12-15 16:24:11 +00:00
|
|
|
|
Binding="{Binding Page, Mode=OneWay}"
|
|
|
|
|
|
Width="*" />
|
2020-04-12 04:14:48 +01:00
|
|
|
|
</DataGrid.Columns>
|
|
|
|
|
|
</DataGrid>
|
2025-10-26 03:19:04 +00:00
|
|
|
|
<Border Grid.Column="1"
|
|
|
|
|
|
BorderThickness="1"
|
2025-12-15 16:19:19 +00:00
|
|
|
|
BorderBrush="{DynamicResource SystemControlForegroundBaseMediumLowBrush}"
|
2025-10-26 03:19:04 +00:00
|
|
|
|
CornerRadius="8">
|
|
|
|
|
|
<ScrollViewer Padding="8">
|
|
|
|
|
|
<controls:SpectreTextBlock HorizontalAlignment="Stretch"
|
|
|
|
|
|
VerticalAlignment="Stretch"
|
|
|
|
|
|
Text="{Binding EvpdPageText, Mode=OneWay}"
|
|
|
|
|
|
TextWrapping="Wrap" />
|
|
|
|
|
|
</ScrollViewer>
|
|
|
|
|
|
</Border>
|
|
|
|
|
|
</Grid>
|
|
|
|
|
|
<StackPanel Grid.Row="1"
|
|
|
|
|
|
Orientation="Horizontal"
|
|
|
|
|
|
Spacing="8"
|
|
|
|
|
|
VerticalAlignment="Bottom">
|
|
|
|
|
|
<Button Command="{Binding SaveEvpdPageCommand, Mode=OneWay}">
|
2025-10-25 12:53:52 +01:00
|
|
|
|
<TextBlock Text="{x:Static localization:UI.ButtonLabel_Save_EVPD_page_to_file}" />
|
2020-04-12 04:14:48 +01:00
|
|
|
|
</Button>
|
|
|
|
|
|
</StackPanel>
|
2025-10-26 03:19:04 +00:00
|
|
|
|
</Grid>
|
2020-04-12 04:14:48 +01:00
|
|
|
|
</TabItem>
|
2025-10-26 03:19:04 +00:00
|
|
|
|
<TabItem IsVisible="{Binding !!MmcFeatures.Count, Mode=OneWay}">
|
2020-04-12 04:14:48 +01:00
|
|
|
|
<TabItem.Header>
|
2025-10-25 12:53:52 +01:00
|
|
|
|
<TextBlock Text="{x:Static localization:UI.Title_MMC_FEATURES}" />
|
2020-04-12 04:14:48 +01:00
|
|
|
|
</TabItem.Header>
|
2025-10-26 03:19:04 +00:00
|
|
|
|
<Grid RowDefinitions="*, Auto"
|
|
|
|
|
|
RowSpacing="8"
|
|
|
|
|
|
Margin="8">
|
|
|
|
|
|
<Grid Grid.Row="0"
|
2025-12-15 16:28:23 +00:00
|
|
|
|
ColumnDefinitions="0.3*, 0.7*"
|
2025-10-26 03:19:04 +00:00
|
|
|
|
ColumnSpacing="8">
|
|
|
|
|
|
<DataGrid Grid.Column="0"
|
2025-12-15 16:28:23 +00:00
|
|
|
|
HorizontalAlignment="Stretch"
|
2024-05-01 04:05:22 +01:00
|
|
|
|
VerticalAlignment="Stretch"
|
2025-10-26 03:19:04 +00:00
|
|
|
|
ItemsSource="{Binding MmcFeatures, Mode=OneWay}"
|
|
|
|
|
|
SelectedItem="{Binding SelectedMmcFeature, Mode=TwoWay}"
|
2024-05-01 04:05:22 +01:00
|
|
|
|
IsReadOnly="True">
|
2020-04-12 04:14:48 +01:00
|
|
|
|
<DataGrid.Columns>
|
2025-10-25 12:53:52 +01:00
|
|
|
|
<DataGridTextColumn Header="{x:Static localization:UI.Title_Feature}"
|
2025-12-15 16:24:11 +00:00
|
|
|
|
Binding="{Binding Page, Mode=OneWay}"
|
|
|
|
|
|
Width="*" />
|
2020-04-12 04:14:48 +01:00
|
|
|
|
</DataGrid.Columns>
|
|
|
|
|
|
</DataGrid>
|
2025-10-26 03:19:04 +00:00
|
|
|
|
<Border Grid.Column="1"
|
|
|
|
|
|
BorderThickness="1"
|
2025-12-15 16:19:19 +00:00
|
|
|
|
BorderBrush="{DynamicResource SystemControlForegroundBaseMediumLowBrush}"
|
2025-10-26 03:19:04 +00:00
|
|
|
|
CornerRadius="8">
|
|
|
|
|
|
<ScrollViewer Padding="8">
|
|
|
|
|
|
<controls:SpectreTextBlock HorizontalAlignment="Stretch"
|
|
|
|
|
|
VerticalAlignment="Stretch"
|
|
|
|
|
|
Text="{Binding MmcFeatureText, Mode=OneWay}"
|
|
|
|
|
|
TextWrapping="Wrap" />
|
|
|
|
|
|
</ScrollViewer>
|
|
|
|
|
|
</Border>
|
|
|
|
|
|
</Grid>
|
|
|
|
|
|
<StackPanel Grid.Row="1"
|
|
|
|
|
|
Orientation="Horizontal"
|
|
|
|
|
|
Spacing="8"
|
|
|
|
|
|
VerticalAlignment="Bottom">
|
|
|
|
|
|
<Button Command="{Binding SaveMmcFeaturesCommand, Mode=OneWay}">
|
2025-10-25 12:53:52 +01:00
|
|
|
|
<TextBlock
|
|
|
|
|
|
Text="{x:Static localization:UI.ButtonLabel_Save_MMC_GET_CONFIGURATION_response_to_file}" />
|
2020-04-12 04:14:48 +01:00
|
|
|
|
</Button>
|
|
|
|
|
|
</StackPanel>
|
2025-10-26 03:19:04 +00:00
|
|
|
|
</Grid>
|
2020-04-12 04:14:48 +01:00
|
|
|
|
</TabItem>
|
|
|
|
|
|
</TabControl>
|
|
|
|
|
|
</UserControl>
|