Files
Aaru/Aaru.Gui/Views/Panels/DeviceInfo.xaml

475 lines
26 KiB
Plaintext
Raw Normal View History

2020-04-17 21:45:50 +01:00
<!--
// /***************************************************************************
// Aaru Data Preservation Suite
//
//
// Filename : DeviceInfo.xaml
// Author(s) : Natalia Portillo <claunia@claunia.com>
//
// Component : GUI panel.
//
// [ Description ]
//
// Device information panel.
//
// [ 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:panels="clr-namespace:Aaru.Gui.ViewModels.Panels"
mc:Ignorable="d"
d:DesignWidth="800"
d:DesignHeight="450"
x:Class="Aaru.Gui.Views.Panels.DeviceInfo">
<Design.DataContext>
2020-04-16 20:40:25 +01:00
<panels:DeviceInfoViewModel />
</Design.DataContext>
<StackPanel Orientation="Vertical">
<TextBlock Text="{Binding DeviceInformationLabel}" />
<TabControl>
<TabItem>
<TabItem.Header>
<TextBlock Text="{Binding GeneralLabel}" />
</TabItem.Header>
<StackPanel Orientation="Vertical">
<StackPanel Orientation="Horizontal">
<TextBlock Text="{Binding DeviceTypeLabel}" />
2024-05-01 04:05:22 +01:00
<TextBox Text="{Binding DeviceType}"
IsReadOnly="True" />
</StackPanel>
<StackPanel Orientation="Horizontal">
<TextBlock Text="{Binding ManufacturerLabel}" />
2024-05-01 04:05:22 +01:00
<TextBox Text="{Binding Manufacturer}"
IsReadOnly="True" />
</StackPanel>
<StackPanel Orientation="Horizontal">
2024-05-01 04:05:22 +01:00
<TextBlock Text="{Binding ModelLabel}" />
<TextBox Text="{Binding Model}"
IsReadOnly="True" />
</StackPanel>
<StackPanel Orientation="Horizontal">
<TextBlock Text="{Binding RevisionLabel}" />
2024-05-01 04:05:22 +01:00
<TextBox Text="{Binding Revision}"
IsReadOnly="True" />
</StackPanel>
<StackPanel Orientation="Horizontal">
<TextBlock Text="{Binding SerialNumberLabel}" />
2024-05-01 04:05:22 +01:00
<TextBox Text="{Binding Serial}"
IsReadOnly="True" />
</StackPanel>
<StackPanel Orientation="Horizontal">
<TextBlock Text="{Binding ScsiTypeLabel}" />
2024-05-01 04:05:22 +01:00
<TextBox Text="{Binding ScsiType}"
IsReadOnly="True" />
</StackPanel>
2024-05-01 04:05:22 +01:00
<CheckBox IsChecked="{Binding RemovableChecked}"
IsEnabled="False">
<TextBlock Text="{Binding RemovableMediaLabel}" />
</CheckBox>
2024-05-01 04:05:22 +01:00
<CheckBox IsChecked="{Binding UsbConnected}"
IsEnabled="False">
<TextBlock Text="{Binding UsbConnectedLabel}" />
</CheckBox>
</StackPanel>
</TabItem>
<TabItem IsVisible="{Binding UsbVisible}">
<TabItem.Header>
2023-10-05 01:52:48 +01:00
<TextBlock Text="{Binding UsbLabel}" />
</TabItem.Header>
<StackPanel Orientation="Vertical">
<StackPanel Orientation="Horizontal">
<TextBlock Text="{Binding VendorIDLabel}" />
2024-05-01 04:05:22 +01:00
<TextBox Text="{Binding UsbVendorId}"
IsReadOnly="True" />
</StackPanel>
<StackPanel Orientation="Horizontal">
<TextBlock Text="{Binding ProductIDLabel}" />
2024-05-01 04:05:22 +01:00
<TextBox Text="{Binding UsbProductId}"
IsReadOnly="True" />
</StackPanel>
<StackPanel Orientation="Horizontal">
<TextBlock Text="{Binding ManufacturerLabel}" />
2024-05-01 04:05:22 +01:00
<TextBox Text="{Binding UsbManufacturer}"
IsReadOnly="True" />
</StackPanel>
<StackPanel Orientation="Horizontal">
<TextBlock Text="{Binding ProductLabel}" />
2024-05-01 04:05:22 +01:00
<TextBox Text="{Binding UsbProduct}"
IsReadOnly="True" />
</StackPanel>
<StackPanel Orientation="Horizontal">
<TextBlock Text="{Binding SerialNumberLabel}" />
2024-05-01 04:05:22 +01:00
<TextBox Text="{Binding UsbSerial}"
IsReadOnly="True" />
</StackPanel>
<Button Command="{Binding SaveUsbDescriptorsCommand}"
IsVisible="{Binding SaveUsbDescriptorsEnabled}">
<TextBlock Text="{Binding SaveUsbDescriptorsLabel}" />
</Button>
</StackPanel>
</TabItem>
<TabItem IsVisible="{Binding FirewireVisible}">
<TabItem.Header>
<TextBlock Text="{Binding FireWireLabel}" />
</TabItem.Header>
<StackPanel Orientation="Vertical">
<StackPanel Orientation="Horizontal">
<TextBlock Text="{Binding VendorIDLabel}" />
2024-05-01 04:05:22 +01:00
<TextBox Text="{Binding FirewireVendorId}"
IsReadOnly="True" />
</StackPanel>
<StackPanel Orientation="Horizontal">
<TextBlock Text="{Binding ModelIDLabel}" />
2024-05-01 04:05:22 +01:00
<TextBox Text="{Binding FirewireModelId}"
IsReadOnly="True" />
</StackPanel>
<StackPanel Orientation="Horizontal">
<TextBlock Text="{Binding ManufacturerLabel}" />
2024-05-01 04:05:22 +01:00
<TextBox Text="{Binding FirewireManufacturer}"
IsReadOnly="True" />
</StackPanel>
<StackPanel Orientation="Horizontal">
<TextBlock Text="{Binding ModelLabel}" />
2024-05-01 04:05:22 +01:00
<TextBox Text="{Binding FirewireModel}"
IsReadOnly="True" />
</StackPanel>
<StackPanel Orientation="Horizontal">
2023-10-05 01:52:48 +01:00
<TextBlock Text="{Binding GuidLabel}" />
2024-05-01 04:05:22 +01:00
<TextBox Text="{Binding FirewireGuid}"
IsReadOnly="True" />
</StackPanel>
</StackPanel>
</TabItem>
<TabItem IsVisible="{Binding PlextorVisible}">
<TabItem.Header>
<TextBlock Text="{Binding PlextorLabel}" />
</TabItem.Header>
<StackPanel Orientation="Vertical">
2024-05-01 04:05:22 +01:00
<StackPanel Orientation="Vertical"
IsVisible="{Binding PlextorEepromVisible}">
<StackPanel Orientation="Horizontal">
<TextBlock Text="{Binding PlextorDiscsLabel}" />
2024-05-01 04:05:22 +01:00
<TextBox Text="{Binding PlextorDiscs}"
IsReadOnly="True" />
</StackPanel>
<StackPanel Orientation="Horizontal">
<TextBlock Text="{Binding PlextorCdReadTimeLabel}" />
2024-05-01 04:05:22 +01:00
<TextBox Text="{Binding PlextorCdReadTime}"
IsReadOnly="True" />
</StackPanel>
<StackPanel Orientation="Horizontal">
<TextBlock Text="{Binding PlextorCdWriteTimeLabel}" />
2024-05-01 04:05:22 +01:00
<TextBox Text="{Binding PlextorCdWriteTime}"
IsReadOnly="True" />
</StackPanel>
2024-05-01 04:05:22 +01:00
<StackPanel Orientation="Vertical"
IsVisible="{Binding PlextorDvdTimesVisible}">
<StackPanel Orientation="Horizontal">
<TextBlock Text="{Binding PlextorDvdReadTimeLabel}" />
2024-05-01 04:05:22 +01:00
<TextBox Text="{Binding PlextorDvdReadTime}"
IsReadOnly="True" />
</StackPanel>
<StackPanel Orientation="Horizontal">
<TextBlock Text="{Binding PlextorDvdWriteTimeLabel}" />
2024-05-01 04:05:22 +01:00
<TextBox Text="{Binding PlextorDvdWriteTime}"
IsReadOnly="True" />
</StackPanel>
</StackPanel>
</StackPanel>
2024-05-01 04:05:22 +01:00
<CheckBox IsChecked="{Binding PlextorPoweRec}"
IsEnabled="False">
<TextBlock Text="{Binding PlextorPoweRecLabel}" />
</CheckBox>
2024-05-01 04:05:22 +01:00
<CheckBox IsChecked="{Binding PlextorPoweRecEnabled}"
IsEnabled="False"
IsVisible="{Binding PlextorPoweRec}">
<TextBlock Text="{Binding PlextorPoweRecEnabledLabel}" />
</CheckBox>
2024-05-01 04:05:22 +01:00
<StackPanel Orientation="Vertical"
IsVisible="{Binding PlextorPoweRecEnabled}">
<StackPanel Orientation="Vertical"
IsVisible="{Binding PlextorPoweRecRecommendedVisible}">
<StackPanel Orientation="Horizontal">
<TextBlock Text="{Binding PlextorPoweRecRecommendedLabel}" />
2024-05-01 04:05:22 +01:00
<TextBox Text="{Binding PlextorPoweRecRecommended}"
IsReadOnly="True" />
</StackPanel>
</StackPanel>
2024-05-01 04:05:22 +01:00
<StackPanel Orientation="Vertical"
IsVisible="{Binding PlextorPoweRecSelectedVisible}">
<StackPanel Orientation="Horizontal">
<TextBlock Text="{Binding PlextorPoweRecSelectedLabel}" />
2024-05-01 04:05:22 +01:00
<TextBox Text="{Binding PlextorPoweRecSelected}"
IsReadOnly="True" />
</StackPanel>
</StackPanel>
2024-05-01 04:05:22 +01:00
<StackPanel Orientation="Vertical"
IsVisible="{Binding PlextorPoweRecMaxVisible}">
<StackPanel Orientation="Horizontal">
<TextBlock Text="{Binding PlextorPoweRecMaxLabel}" />
2024-05-01 04:05:22 +01:00
<TextBox Text="{Binding PlextorPoweRecMax}"
IsReadOnly="True" />
</StackPanel>
</StackPanel>
2024-05-01 04:05:22 +01:00
<StackPanel Orientation="Vertical"
IsVisible="{Binding PlextorPoweRecLastVisible}">
<StackPanel Orientation="Horizontal">
<TextBlock Text="{Binding PlextorPoweRecLastLabel}" />
2024-05-01 04:05:22 +01:00
<TextBox Text="{Binding PlextorPoweRecLast}"
IsReadOnly="True" />
</StackPanel>
</StackPanel>
</StackPanel>
2024-05-01 04:05:22 +01:00
<CheckBox IsChecked="{Binding PlextorSilentMode}"
IsEnabled="False">
<TextBlock Text="{Binding PlextorSilentModeLabel}" />
</CheckBox>
2024-05-01 04:05:22 +01:00
<CheckBox IsChecked="{Binding PlextorSilentModeEnabled}"
IsEnabled="False"
IsVisible="{Binding PlextorSilentMode}">
<TextBlock Text="{Binding PlextorSilentModeEnabledLabel}" />
</CheckBox>
2024-05-01 04:05:22 +01:00
<StackPanel Orientation="Vertical"
IsVisible="{Binding PlextorSilentModeEnabled}">
<TextBlock Text="{Binding PlextorSilentModeAccessTime}" />
<StackPanel Orientation="Horizontal">
<TextBlock Text="{Binding PlextorSilentModeCdReadSpeedLimitLabel}" />
2024-05-01 04:05:22 +01:00
<TextBox Text="{Binding PlextorSilentModeCdReadSpeedLimit}"
IsReadOnly="True" />
</StackPanel>
<StackPanel Orientation="Horizontal">
<TextBlock Text="{Binding PlextorSilentModeCdWriteSpeedLimitLabel}" />
2024-05-01 04:05:22 +01:00
<TextBox Text="{Binding PlextorSilentModeCdWriteSpeedLimit}"
IsReadOnly="True" />
</StackPanel>
<StackPanel Orientation="Vertical"
IsVisible="{Binding PlextorSilentModeDvdReadSpeedLimitVisible}">
<StackPanel Orientation="Horizontal">
<TextBlock Text="{Binding PlextorSilentModeDvdReadSpeedLimitLabel}" />
2024-05-01 04:05:22 +01:00
<TextBox Text="{Binding PlextorSilentModeDvdReadSpeedLimit}"
IsReadOnly="True" />
</StackPanel>
</StackPanel>
</StackPanel>
2024-05-01 04:05:22 +01:00
<CheckBox IsChecked="{Binding PlextorGigaRec}"
IsEnabled="False">
<TextBlock Text="{Binding PlextorGigaRecLabel}" />
</CheckBox>
2024-05-01 04:05:22 +01:00
<CheckBox IsChecked="{Binding PlextorSecuRec}"
IsEnabled="False">
<TextBlock Text="{Binding PlextorSecuRecLabel}" />
</CheckBox>
2024-05-01 04:05:22 +01:00
<CheckBox IsChecked="{Binding PlextorSpeedRead}"
IsEnabled="False">
<TextBlock Text="{Binding PlextorSpeedReadLabel}" />
</CheckBox>
2024-05-01 04:05:22 +01:00
<CheckBox IsChecked="{Binding PlextorSpeedEnabled}"
IsEnabled="False">
<TextBlock Text="{Binding PlextorSpeedEnabledLabel}" />
</CheckBox>
2024-05-01 04:05:22 +01:00
<CheckBox IsChecked="{Binding PlextorHiding}"
IsEnabled="False">
<TextBlock Text="{Binding PlextorHidingLabel}" />
</CheckBox>
2024-05-01 04:05:22 +01:00
<StackPanel Orientation="Vertical"
IsVisible="{Binding PlextorHiding}">
<CheckBox IsChecked="{Binding PlextorHidesRecordables}"
IsEnabled="False">
<TextBlock Text="{Binding PlextorHidesRecordablesLabel}" />
</CheckBox>
2024-05-01 04:05:22 +01:00
<CheckBox IsChecked="{Binding PlextorHidesSessions}"
IsEnabled="False">
<TextBlock Text="{Binding PlextorHidesSessionsLabel}" />
</CheckBox>
</StackPanel>
2024-05-01 04:05:22 +01:00
<CheckBox IsChecked="{Binding PlextorVariRec}"
IsEnabled="False">
<TextBlock Text="{Binding PlextorVariRecLabel}" />
</CheckBox>
2024-05-01 04:05:22 +01:00
<StackPanel Orientation="Vertical"
IsVisible="{Binding PlextorDvd}">
<CheckBox IsChecked="{Binding PlextorVariRecDvd}"
IsEnabled="False">
<TextBlock Text="{Binding PlextorVariRecDvdLabel}" />
</CheckBox>
2024-05-01 04:05:22 +01:00
<CheckBox IsChecked="{Binding PlextorBitSetting}"
IsEnabled="False">
<TextBlock Text="{Binding PlextorBitSettingLabel}" />
</CheckBox>
2024-05-01 04:05:22 +01:00
<CheckBox IsChecked="{Binding PlextorBitSettingDl}"
IsEnabled="False">
<TextBlock Text="{Binding PlextorBitSettingDlLabel}" />
</CheckBox>
2024-05-01 04:05:22 +01:00
<CheckBox IsChecked="{Binding PlextorDvdPlusWriteTest}"
IsEnabled="False">
<TextBlock Text="{Binding PlextorDvdPlusWriteTestLabel}" />
</CheckBox>
</StackPanel>
</StackPanel>
</TabItem>
<TabItem IsVisible="{Binding Kreon}">
<TabItem.Header>
<TextBlock Text="{Binding KreonLabel}" />
</TabItem.Header>
<StackPanel Orientation="Vertical">
2024-05-01 04:05:22 +01:00
<CheckBox IsChecked="{Binding KreonChallengeResponse}"
IsEnabled="False">
<TextBlock Text="{Binding KreonChallengeResponseLabel}" />
</CheckBox>
2024-05-01 04:05:22 +01:00
<CheckBox IsChecked="{Binding KreonDecryptSs}"
IsEnabled="False">
<TextBlock Text="{Binding KreonDecryptSsLabel}" />
</CheckBox>
2024-05-01 04:05:22 +01:00
<CheckBox IsChecked="{Binding KreonXtremeUnlock}"
IsEnabled="False">
<TextBlock Text="{Binding KreonXtremeUnlockLabel}" />
</CheckBox>
2024-05-01 04:05:22 +01:00
<CheckBox IsChecked="{Binding KreonWxripperUnlock}"
IsEnabled="False">
<TextBlock Text="{Binding KreonWxripperUnlockLabel}" />
</CheckBox>
2024-05-01 04:05:22 +01:00
<CheckBox IsChecked="{Binding KreonChallengeResponse360}"
IsEnabled="False">
<TextBlock Text="{Binding KreonChallengeResponse360Label}" />
</CheckBox>
2024-05-01 04:05:22 +01:00
<CheckBox IsChecked="{Binding KreonDecryptSs360}"
IsEnabled="False">
<TextBlock Text="{Binding KreonDecryptSs360Label}" />
</CheckBox>
2024-05-01 04:05:22 +01:00
<CheckBox IsChecked="{Binding KreonXtremeUnlock360}"
IsEnabled="False">
<TextBlock Text="{Binding KreonXtremeUnlock360Label}" />
</CheckBox>
2024-05-01 04:05:22 +01:00
<CheckBox IsChecked="{Binding KreonWxripperUnlock360}"
IsEnabled="False">
<TextBlock Text="{Binding KreonWxripperUnlock360Label}" />
</CheckBox>
2024-05-01 04:05:22 +01:00
<CheckBox IsChecked="{Binding KreonLock}"
IsEnabled="False">
<TextBlock Text="{Binding KreonSetLockedLabel}" />
</CheckBox>
2024-05-01 04:05:22 +01:00
<CheckBox IsChecked="{Binding KreonErrorSkipping}"
IsEnabled="False">
<TextBlock Text="{Binding KreonErrorSkippingLabel}" />
</CheckBox>
</StackPanel>
</TabItem>
<TabItem IsVisible="{Binding Ssc}">
<TabItem.Header>
<TextBlock Text="{Binding SSCLabel}" />
</TabItem.Header>
<StackPanel Orientation="Vertical">
2024-05-01 04:05:22 +01:00
<StackPanel Orientation="Vertical"
IsVisible="{Binding BlockLimits}">
<TextBlock Text="{Binding MinBlockSize}"
IsVisible="{Binding !!MinBlockSize}" />
<TextBlock Text="{Binding MaxBlockSize}"
IsVisible="{Binding !!MaxBlockSize}" />
<TextBlock Text="{Binding BlockSizeGranularity}"
IsVisible="{Binding !!BlockSizeGranularity}" />
</StackPanel>
2024-05-01 04:05:22 +01:00
<StackPanel Orientation="Vertical"
IsVisible="{Binding !!Densities}">
<TextBlock Text="{Binding DensitiesSupportedByDeviceLabel}" />
2024-05-01 04:05:22 +01:00
<TextBox Text="{Binding Densities}"
IsReadOnly="True" />
</StackPanel>
2024-05-01 04:05:22 +01:00
<StackPanel Orientation="Vertical"
IsVisible="{Binding !!MediumTypes}">
<TextBlock Text="{Binding MediumTypesSupportedByDeviceLabel}" />
2024-05-01 04:05:22 +01:00
<TextBox Text="{Binding MediumTypes}"
IsReadOnly="True" />
</StackPanel>
2024-05-01 04:05:22 +01:00
<TextBox Text="{Binding MediumDensity}"
IsReadOnly="True"
IsVisible="{Binding !!MediumDensity}" />
</StackPanel>
</TabItem>
<TabItem IsVisible="{Binding SecureDigital}">
<TabItem.Header>
<TextBlock Text="{Binding SdMmcText}" />
</TabItem.Header>
<TabControl>
<TabItem IsVisible="{Binding !!Cid}">
<TabItem.Header>
<TextBlock Text="{Binding CIDLabel}" />
</TabItem.Header>
2024-05-01 04:05:22 +01:00
<TextBox Text="{Binding Cid}"
IsReadOnly="True" />
</TabItem>
<TabItem IsVisible="{Binding !!Csd}">
<TabItem.Header>
<TextBlock Text="{Binding CSDLabel}" />
</TabItem.Header>
2024-05-01 04:05:22 +01:00
<TextBox Text="{Binding Csd}"
IsReadOnly="True" />
</TabItem>
<TabItem IsVisible="{Binding !!Ocr}">
<TabItem.Header>
<TextBlock Text="{Binding OCRLabel}" />
</TabItem.Header>
2024-05-01 04:05:22 +01:00
<TextBox Text="{Binding Ocr}"
IsReadOnly="True" />
</TabItem>
<TabItem IsVisible="{Binding !!ExtendedCsd}">
<TabItem.Header>
<TextBlock Text="{Binding ExtendedCSDLabel}" />
</TabItem.Header>
2024-05-01 04:05:22 +01:00
<TextBox Text="{Binding ExtendedCsd}"
IsReadOnly="True" />
</TabItem>
<TabItem IsVisible="{Binding !!Scr}">
<TabItem.Header>
<TextBlock Text="{Binding SCRLabel}" />
</TabItem.Header>
2024-05-01 04:05:22 +01:00
<TextBox Text="{Binding Scr}"
IsReadOnly="True" />
</TabItem>
</TabControl>
</TabItem>
<TabItem IsVisible="{Binding !!PcmciaInfo}">
<TabItem.Header>
2023-10-05 01:52:48 +01:00
<TextBlock Text="{Binding PcmciaLabel}" />
</TabItem.Header>
<ContentControl Content="{Binding PcmciaInfo}" />
</TabItem>
<TabItem IsVisible="{Binding !!AtaInfo}">
<TabItem.Header>
<TextBlock Text="{Binding ATA_ATAPILabel}" />
</TabItem.Header>
<ContentControl Content="{Binding AtaInfo}" />
</TabItem>
<TabItem IsVisible="{Binding !!ScsiInfo}">
<TabItem.Header>
<TextBlock Text="{Binding SCSILabel}" />
</TabItem.Header>
<ContentControl Content="{Binding ScsiInfo}" />
</TabItem>
<TabItem IsVisible="{Binding !!SdMmcInfo}">
<TabItem.Header>
2023-10-05 01:52:48 +01:00
<TextBlock Text="{Binding Sd_MMCLabel}" />
</TabItem.Header>
<ContentControl Content="{Binding SdMmcInfo}" />
</TabItem>
</TabControl>
</StackPanel>
</UserControl>