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/>.
|
|
|
|
|
|
//
|
|
|
|
|
|
// ‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐
|
2022-12-03 16:07:10 +00:00
|
|
|
|
// Copyright © 2011‐2023 Natalia Portillo
|
2020-04-17 21:45:50 +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"
|
2021-08-17 21:23:10 +01:00
|
|
|
|
xmlns:tabs="clr-namespace:Aaru.Gui.ViewModels.Tabs" mc:Ignorable="d" d:DesignWidth="800"
|
|
|
|
|
|
d:DesignHeight="450" 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>
|
|
|
|
|
|
<TabControl>
|
|
|
|
|
|
<TabItem IsVisible="{Binding !!InquiryData}">
|
|
|
|
|
|
<TabItem.Header>
|
2022-11-16 21:40:54 +00:00
|
|
|
|
<TextBlock Text="{Binding InquiryLabel}" />
|
2020-04-12 04:14:48 +01:00
|
|
|
|
</TabItem.Header>
|
|
|
|
|
|
<StackPanel>
|
2022-11-16 21:40:54 +00:00
|
|
|
|
<TextBlock Text="{Binding ScsiInquiryLabel}" HorizontalAlignment="Center" />
|
2020-04-12 04:14:48 +01:00
|
|
|
|
<TextBox Text="{Binding ScsiInquiryText}" IsReadOnly="True" />
|
|
|
|
|
|
<StackPanel Orientation="Horizontal">
|
|
|
|
|
|
<Button Command="{Binding SaveInquiryBinaryCommand}">
|
2022-11-16 21:40:54 +00:00
|
|
|
|
<TextBlock Text="{Binding SaveInquiryBinaryLabel}" />
|
2020-04-12 04:14:48 +01:00
|
|
|
|
</Button>
|
|
|
|
|
|
<Button Command="{Binding SaveInquiryTextCommand}">
|
2022-11-16 21:40:54 +00:00
|
|
|
|
<TextBlock Text="{Binding SaveInquiryTextLabel}" />
|
2020-04-12 04:14:48 +01:00
|
|
|
|
</Button>
|
|
|
|
|
|
</StackPanel>
|
|
|
|
|
|
</StackPanel>
|
|
|
|
|
|
</TabItem>
|
|
|
|
|
|
<TabItem IsVisible="{Binding !!ModeSensePages.Count}">
|
|
|
|
|
|
<TabItem.Header>
|
2022-11-16 21:40:54 +00:00
|
|
|
|
<TextBlock Text="{Binding ModeSenseLabel}" />
|
2020-04-12 04:14:48 +01:00
|
|
|
|
</TabItem.Header>
|
|
|
|
|
|
<StackPanel>
|
|
|
|
|
|
<StackPanel Orientation="Horizontal">
|
2023-10-03 23:27:57 +01:00
|
|
|
|
<DataGrid HorizontalAlignment="Left" VerticalAlignment="Stretch"
|
|
|
|
|
|
ItemsSource="{Binding ModeSensePages}"
|
2020-04-12 04:14:48 +01:00
|
|
|
|
SelectedItem="{Binding SelectedModeSensePage}" IsReadOnly="True">
|
|
|
|
|
|
<DataGrid.Columns>
|
2022-11-16 21:40:54 +00:00
|
|
|
|
<DataGridTextColumn Header="{Binding PageLabel}" Binding="{Binding Page}" />
|
2020-04-12 04:14:48 +01:00
|
|
|
|
</DataGrid.Columns>
|
|
|
|
|
|
</DataGrid>
|
|
|
|
|
|
<TextBox HorizontalAlignment="Right" VerticalAlignment="Stretch" Text="{Binding ModeSensePageText}"
|
|
|
|
|
|
IsReadOnly="True" />
|
|
|
|
|
|
</StackPanel>
|
|
|
|
|
|
<StackPanel Orientation="Horizontal">
|
|
|
|
|
|
<Button Command="{Binding SaveModeSense6Command}">
|
2022-11-16 21:40:54 +00:00
|
|
|
|
<TextBlock Text="{Binding SaveModeSense6Label}" />
|
2020-04-12 04:14:48 +01:00
|
|
|
|
</Button>
|
|
|
|
|
|
<Button Command="{Binding SaveModeSense10Command}">
|
2022-11-16 21:40:54 +00:00
|
|
|
|
<TextBlock Text="{Binding SaveModeSense10Label}" />
|
2020-04-12 04:14:48 +01:00
|
|
|
|
</Button>
|
|
|
|
|
|
</StackPanel>
|
|
|
|
|
|
</StackPanel>
|
|
|
|
|
|
</TabItem>
|
|
|
|
|
|
<TabItem IsVisible="{Binding !!EvpdPages.Count}">
|
|
|
|
|
|
<TabItem.Header>
|
2022-11-16 21:40:54 +00:00
|
|
|
|
<TextBlock Text="{Binding EvpdLabel}" />
|
2020-04-12 04:14:48 +01:00
|
|
|
|
</TabItem.Header>
|
|
|
|
|
|
<StackPanel>
|
|
|
|
|
|
<StackPanel Orientation="Horizontal">
|
2023-09-25 22:58:48 +01:00
|
|
|
|
<DataGrid HorizontalAlignment="Left" VerticalAlignment="Stretch" ItemsSource="{Binding EvpdPages}"
|
2020-04-12 04:14:48 +01:00
|
|
|
|
SelectedItem="{Binding SelectedEvpdPage}" IsReadOnly="True">
|
|
|
|
|
|
<DataGrid.Columns>
|
2022-11-16 21:40:54 +00:00
|
|
|
|
<DataGridTextColumn Header="{Binding PageLabel}" Binding="{Binding Page}" />
|
2020-04-12 04:14:48 +01:00
|
|
|
|
</DataGrid.Columns>
|
|
|
|
|
|
</DataGrid>
|
|
|
|
|
|
<TextBox HorizontalAlignment="Right" VerticalAlignment="Stretch" Text="{Binding EvpdPageText}"
|
|
|
|
|
|
IsReadOnly="True" />
|
|
|
|
|
|
</StackPanel>
|
|
|
|
|
|
<StackPanel Orientation="Horizontal">
|
|
|
|
|
|
<Button Command="{Binding SaveEvpdPageCommand}">
|
2022-11-16 21:40:54 +00:00
|
|
|
|
<TextBlock Text="{Binding SaveEvpdPageLabel}" />
|
2020-04-12 04:14:48 +01:00
|
|
|
|
</Button>
|
|
|
|
|
|
</StackPanel>
|
|
|
|
|
|
</StackPanel>
|
|
|
|
|
|
</TabItem>
|
|
|
|
|
|
<TabItem IsVisible="{Binding !!MmcFeatures.Count}">
|
|
|
|
|
|
<TabItem.Header>
|
2022-11-16 21:40:54 +00:00
|
|
|
|
<TextBlock Text="{Binding MmcFeaturesLabel}" />
|
2020-04-12 04:14:48 +01:00
|
|
|
|
</TabItem.Header>
|
|
|
|
|
|
<StackPanel>
|
|
|
|
|
|
<StackPanel Orientation="Horizontal">
|
2023-10-03 23:27:57 +01:00
|
|
|
|
<DataGrid HorizontalAlignment="Left" VerticalAlignment="Stretch"
|
|
|
|
|
|
ItemsSource="{Binding MmcFeatures}"
|
2020-04-12 04:14:48 +01:00
|
|
|
|
SelectedItem="{Binding SelectedMmcFeature}" IsReadOnly="True">
|
|
|
|
|
|
<DataGrid.Columns>
|
2022-11-16 21:40:54 +00:00
|
|
|
|
<DataGridTextColumn Header="{Binding FeatureLabel}" Binding="{Binding Page}" />
|
2020-04-12 04:14:48 +01:00
|
|
|
|
</DataGrid.Columns>
|
|
|
|
|
|
</DataGrid>
|
|
|
|
|
|
<TextBox HorizontalAlignment="Right" VerticalAlignment="Stretch" Text="{Binding MmcFeatureText}"
|
|
|
|
|
|
IsReadOnly="True" />
|
|
|
|
|
|
</StackPanel>
|
|
|
|
|
|
<StackPanel Orientation="Horizontal">
|
|
|
|
|
|
<Button Command="{Binding SaveMmcFeaturesCommand}">
|
2022-11-16 21:40:54 +00:00
|
|
|
|
<TextBlock Text="{Binding SaveMmcFeaturesLabel}" />
|
2020-04-12 04:14:48 +01:00
|
|
|
|
</Button>
|
|
|
|
|
|
</StackPanel>
|
|
|
|
|
|
</StackPanel>
|
|
|
|
|
|
</TabItem>
|
|
|
|
|
|
</TabControl>
|
|
|
|
|
|
</UserControl>
|