2020-04-17 21:45:50 +01:00
|
|
|
|
<!--
|
|
|
|
|
|
// /***************************************************************************
|
|
|
|
|
|
// Aaru Data Preservation Suite
|
|
|
|
|
|
// ‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐
|
|
|
|
|
|
//
|
|
|
|
|
|
// Filename : CompactDiscInfo.xaml
|
|
|
|
|
|
// Author(s) : Natalia Portillo <claunia@claunia.com>
|
|
|
|
|
|
//
|
|
|
|
|
|
// Component : GUI tabs.
|
|
|
|
|
|
//
|
|
|
|
|
|
// ‐‐[ Description ] ‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐
|
|
|
|
|
|
//
|
|
|
|
|
|
// Compact Disc 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 14:19:12 +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 01:28:54 +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:CompactDiscInfoViewModel"
|
2024-05-01 04:05:22 +01:00
|
|
|
|
x:Class="Aaru.Gui.Views.Tabs.CompactDiscInfo">
|
2020-04-12 14:19:12 +01:00
|
|
|
|
<Design.DataContext>
|
2020-04-16 20:40:25 +01:00
|
|
|
|
<tabs:CompactDiscInfoViewModel />
|
2020-04-12 14:19:12 +01:00
|
|
|
|
</Design.DataContext>
|
2025-12-15 16:15:22 +00:00
|
|
|
|
<UserControl.Styles>
|
|
|
|
|
|
<Style Selector="DataGridRow:nth-child(2n)">
|
|
|
|
|
|
<Setter Property="Background">
|
2025-12-16 09:19:14 +00:00
|
|
|
|
<SolidColorBrush Color="#15FFFFFF" />
|
2025-12-15 16:15:22 +00:00
|
|
|
|
</Setter>
|
|
|
|
|
|
</Style>
|
|
|
|
|
|
<Style Selector="DataGridRow:nth-child(2n):pointerover">
|
|
|
|
|
|
<Setter Property="Background"
|
|
|
|
|
|
Value="{DynamicResource SystemControlHighlightListLowBrush}" />
|
|
|
|
|
|
</Style>
|
|
|
|
|
|
<Style Selector="DataGridRow:nth-child(2n):selected">
|
|
|
|
|
|
<Setter Property="Background"
|
|
|
|
|
|
Value="{DynamicResource SystemControlHighlightAccentBrush}" />
|
|
|
|
|
|
</Style>
|
|
|
|
|
|
</UserControl.Styles>
|
2020-04-12 14:19:12 +01:00
|
|
|
|
<TabControl>
|
2025-10-26 01:27:50 +01:00
|
|
|
|
<TabItem IsVisible="False">
|
|
|
|
|
|
<TabItem.Header>
|
|
|
|
|
|
<TextBlock Text="Landing placeholder" />
|
|
|
|
|
|
</TabItem.Header>
|
|
|
|
|
|
</TabItem>
|
2025-10-26 01:33:19 +01:00
|
|
|
|
<TabItem IsVisible="{Binding !!CdInformationText, Mode=OneWay}">
|
2020-04-12 14:19:12 +01:00
|
|
|
|
<TabItem.Header>
|
2025-10-26 01:28:54 +00:00
|
|
|
|
<controls:SpectreTextBlock Text="{x:Static localization:UI.Title_Information}" />
|
2020-04-12 14:19:12 +01:00
|
|
|
|
</TabItem.Header>
|
2025-10-26 01:28:54 +00:00
|
|
|
|
<Grid RowDefinitions="*, Auto"
|
|
|
|
|
|
Margin="8"
|
|
|
|
|
|
RowSpacing="8">
|
|
|
|
|
|
<Border Grid.Row="0"
|
|
|
|
|
|
BorderThickness="1"
|
2025-12-15 16:19:19 +00:00
|
|
|
|
BorderBrush="{DynamicResource SystemControlForegroundBaseMediumLowBrush}"
|
2025-10-26 01:28:54 +00:00
|
|
|
|
CornerRadius="8">
|
|
|
|
|
|
<ScrollViewer Padding="8">
|
|
|
|
|
|
<controls:SpectreTextBlock TextWrapping="Wrap"
|
|
|
|
|
|
Text="{Binding CdInformationText, Mode=OneWay}" />
|
|
|
|
|
|
</ScrollViewer>
|
|
|
|
|
|
</Border>
|
|
|
|
|
|
<Button Grid.Row="1"
|
|
|
|
|
|
Command="{Binding SaveCdInformationCommand, Mode=OneWay}"
|
|
|
|
|
|
VerticalAlignment="Bottom"
|
|
|
|
|
|
HorizontalAlignment="Left">
|
2025-10-25 12:53:52 +01:00
|
|
|
|
<TextBlock Text="{x:Static localization:UI.ButtonLabel_Save_READ_DISC_INFORMATION_response}" />
|
2020-04-12 14:19:12 +01:00
|
|
|
|
</Button>
|
2025-10-26 01:28:54 +00:00
|
|
|
|
</Grid>
|
2020-04-12 14:19:12 +01:00
|
|
|
|
</TabItem>
|
2025-10-26 01:33:19 +01:00
|
|
|
|
<TabItem IsVisible="{Binding !!CdTocText, Mode=OneWay}">
|
2020-04-12 14:19:12 +01:00
|
|
|
|
<TabItem.Header>
|
2025-10-26 01:28:54 +00:00
|
|
|
|
<controls:SpectreTextBlock Text="{x:Static localization:UI.Title_TOC}" />
|
2020-04-12 14:19:12 +01:00
|
|
|
|
</TabItem.Header>
|
2025-10-26 01:28:54 +00:00
|
|
|
|
<Grid RowDefinitions="*, Auto"
|
|
|
|
|
|
Margin="8"
|
|
|
|
|
|
RowSpacing="8">
|
|
|
|
|
|
<Border Grid.Row="0"
|
|
|
|
|
|
BorderThickness="1"
|
2025-12-15 16:19:19 +00:00
|
|
|
|
BorderBrush="{DynamicResource SystemControlForegroundBaseMediumLowBrush}"
|
2025-10-26 01:28:54 +00:00
|
|
|
|
CornerRadius="8">
|
|
|
|
|
|
<ScrollViewer Padding="8">
|
|
|
|
|
|
<controls:SpectreTextBlock TextWrapping="Wrap"
|
|
|
|
|
|
Text="{Binding CdTocText, Mode=OneWay}" />
|
|
|
|
|
|
</ScrollViewer>
|
|
|
|
|
|
</Border>
|
|
|
|
|
|
<Button Grid.Row="1"
|
|
|
|
|
|
Command="{Binding SaveCdTocCommand, Mode=OneWay}">
|
2025-10-25 12:53:52 +01:00
|
|
|
|
<TextBlock Text="{x:Static localization:UI.ButtonLabel_Save_READ_TOC_response}" />
|
2020-04-12 14:19:12 +01:00
|
|
|
|
</Button>
|
2025-10-26 01:28:54 +00:00
|
|
|
|
</Grid>
|
2020-04-12 14:19:12 +01:00
|
|
|
|
</TabItem>
|
2025-10-26 01:33:19 +01:00
|
|
|
|
<TabItem IsVisible="{Binding !!CdFullTocText, Mode=OneWay}">
|
2020-04-12 14:19:12 +01:00
|
|
|
|
<TabItem.Header>
|
2025-10-26 01:28:54 +00:00
|
|
|
|
<controls:SpectreTextBlock Text="{x:Static localization:UI.Title_TOC_full}" />
|
2020-04-12 14:19:12 +01:00
|
|
|
|
</TabItem.Header>
|
2025-10-26 01:28:54 +00:00
|
|
|
|
<Grid RowDefinitions="*, Auto"
|
|
|
|
|
|
Margin="8"
|
|
|
|
|
|
RowSpacing="8">
|
|
|
|
|
|
<Border Grid.Row="0"
|
|
|
|
|
|
BorderThickness="1"
|
2025-12-15 16:19:19 +00:00
|
|
|
|
BorderBrush="{DynamicResource SystemControlForegroundBaseMediumLowBrush}"
|
2025-10-26 01:28:54 +00:00
|
|
|
|
CornerRadius="8">
|
|
|
|
|
|
<ScrollViewer Padding="8">
|
|
|
|
|
|
<controls:SpectreTextBlock TextWrapping="Wrap"
|
|
|
|
|
|
Text="{Binding CdFullTocText, Mode=OneWay}" />
|
|
|
|
|
|
</ScrollViewer>
|
|
|
|
|
|
</Border>
|
|
|
|
|
|
<Button Grid.Row="1"
|
|
|
|
|
|
Command="{Binding SaveCdFullTocCommand, Mode=OneWay}">
|
2025-10-25 12:53:52 +01:00
|
|
|
|
<TextBlock Text="{x:Static localization:UI.ButtonLabel_Save_READ_RAW_TOC_response}" />
|
2020-04-12 14:19:12 +01:00
|
|
|
|
</Button>
|
2025-10-26 01:28:54 +00:00
|
|
|
|
</Grid>
|
2020-04-12 14:19:12 +01:00
|
|
|
|
</TabItem>
|
2025-10-26 01:33:19 +01:00
|
|
|
|
<TabItem IsVisible="{Binding !!CdSessionText, Mode=OneWay}">
|
2020-04-12 14:19:12 +01:00
|
|
|
|
<TabItem.Header>
|
2025-10-26 01:28:54 +00:00
|
|
|
|
<controls:SpectreTextBlock Text="{x:Static localization:Core.Title_Session}" />
|
2020-04-12 14:19:12 +01:00
|
|
|
|
</TabItem.Header>
|
2025-10-26 01:28:54 +00:00
|
|
|
|
<Grid RowDefinitions="*, Auto"
|
|
|
|
|
|
Margin="8"
|
|
|
|
|
|
RowSpacing="8">
|
|
|
|
|
|
<Border Grid.Row="0"
|
|
|
|
|
|
BorderThickness="1"
|
2025-12-15 16:19:19 +00:00
|
|
|
|
BorderBrush="{DynamicResource SystemControlForegroundBaseMediumLowBrush}"
|
2025-10-26 01:28:54 +00:00
|
|
|
|
CornerRadius="8">
|
|
|
|
|
|
<ScrollViewer Padding="8">
|
|
|
|
|
|
<controls:SpectreTextBlock TextWrapping="Wrap"
|
|
|
|
|
|
Text="{Binding CdSessionText, Mode=OneWay}" />
|
|
|
|
|
|
</ScrollViewer>
|
|
|
|
|
|
</Border>
|
|
|
|
|
|
<Button Grid.Row="1"
|
|
|
|
|
|
Command="{Binding SaveCdSessionCommand, Mode=OneWay}">
|
2025-10-25 12:53:52 +01:00
|
|
|
|
<TextBlock Text="{x:Static localization:UI.ButtonLabel_Save_READ_SESSION_response}" />
|
2020-04-12 14:19:12 +01:00
|
|
|
|
</Button>
|
2025-10-26 01:28:54 +00:00
|
|
|
|
</Grid>
|
2020-04-12 14:19:12 +01:00
|
|
|
|
</TabItem>
|
2025-10-26 01:33:19 +01:00
|
|
|
|
<TabItem IsVisible="{Binding !!CdTextText, Mode=OneWay}">
|
2020-04-12 14:19:12 +01:00
|
|
|
|
<TabItem.Header>
|
2025-10-26 01:28:54 +00:00
|
|
|
|
<controls:SpectreTextBlock Text="{x:Static localization:UI.Title_CD_TEXT}" />
|
2020-04-12 14:19:12 +01:00
|
|
|
|
</TabItem.Header>
|
2025-10-26 01:28:54 +00:00
|
|
|
|
<Grid RowDefinitions="*, Auto"
|
|
|
|
|
|
Margin="8"
|
|
|
|
|
|
RowSpacing="8">
|
|
|
|
|
|
<Border Grid.Row="0"
|
|
|
|
|
|
BorderThickness="1"
|
2025-12-15 16:19:19 +00:00
|
|
|
|
BorderBrush="{DynamicResource SystemControlForegroundBaseMediumLowBrush}"
|
2025-10-26 01:28:54 +00:00
|
|
|
|
CornerRadius="8">
|
|
|
|
|
|
<ScrollViewer Padding="8">
|
|
|
|
|
|
<controls:SpectreTextBlock TextWrapping="Wrap"
|
|
|
|
|
|
Text="{Binding CdTextText, Mode=OneWay}" />
|
|
|
|
|
|
</ScrollViewer>
|
|
|
|
|
|
</Border>
|
|
|
|
|
|
<Button Grid.Row="1"
|
|
|
|
|
|
Command="{Binding SaveCdTextCommand, Mode=OneWay}">
|
2025-10-25 12:53:52 +01:00
|
|
|
|
<TextBlock Text="{x:Static localization:UI.ButtonLabel_Save_Lead_In_CD_TEXT}" />
|
2020-04-12 14:19:12 +01:00
|
|
|
|
</Button>
|
2025-10-26 01:28:54 +00:00
|
|
|
|
</Grid>
|
2020-04-12 14:19:12 +01:00
|
|
|
|
</TabItem>
|
2025-10-26 01:33:19 +01:00
|
|
|
|
<TabItem IsVisible="{Binding !!CdAtipText, Mode=OneWay}">
|
2020-04-12 14:19:12 +01:00
|
|
|
|
<TabItem.Header>
|
2025-10-26 01:28:54 +00:00
|
|
|
|
<controls:SpectreTextBlock Text="{x:Static localization:UI.Title_ATIP}" />
|
2020-04-12 14:19:12 +01:00
|
|
|
|
</TabItem.Header>
|
2025-10-26 01:28:54 +00:00
|
|
|
|
<Grid RowDefinitions="*, Auto"
|
|
|
|
|
|
Margin="8"
|
|
|
|
|
|
RowSpacing="8">
|
|
|
|
|
|
<Border Grid.Row="0"
|
|
|
|
|
|
BorderThickness="1"
|
2025-12-15 16:19:19 +00:00
|
|
|
|
BorderBrush="{DynamicResource SystemControlForegroundBaseMediumLowBrush}"
|
2025-10-26 01:28:54 +00:00
|
|
|
|
CornerRadius="8">
|
|
|
|
|
|
<ScrollViewer Padding="8">
|
|
|
|
|
|
<controls:SpectreTextBlock TextWrapping="Wrap"
|
|
|
|
|
|
Text="{Binding CdAtipText, Mode=OneWay}" />
|
|
|
|
|
|
</ScrollViewer>
|
|
|
|
|
|
</Border>
|
|
|
|
|
|
<Button Grid.Row="1"
|
|
|
|
|
|
Command="{Binding SaveCdAtipCommand, Mode=OneWay}">
|
2025-10-25 12:53:52 +01:00
|
|
|
|
<TextBlock Text="{x:Static localization:UI.ButtonLabel_Save_READ_ATIP_response}" />
|
2020-04-12 14:19:12 +01:00
|
|
|
|
</Button>
|
2025-10-26 01:28:54 +00:00
|
|
|
|
</Grid>
|
2020-04-12 14:19:12 +01:00
|
|
|
|
</TabItem>
|
2025-10-26 01:33:19 +01:00
|
|
|
|
<TabItem IsVisible="{Binding MiscellaneousVisible, Mode=OneWay}">
|
2020-04-12 14:19:12 +01:00
|
|
|
|
<TabItem.Header>
|
2025-10-26 01:28:54 +00:00
|
|
|
|
<controls:SpectreTextBlock Text="{x:Static localization:UI.Title_Miscellaneous}" />
|
2020-04-12 14:19:12 +01:00
|
|
|
|
</TabItem.Header>
|
2025-10-26 01:28:54 +00:00
|
|
|
|
<Grid RowDefinitions="Auto, *, Auto"
|
|
|
|
|
|
Margin="8"
|
|
|
|
|
|
RowSpacing="8">
|
|
|
|
|
|
<Grid ColumnDefinitions="Auto, *"
|
|
|
|
|
|
Grid.Row="0"
|
|
|
|
|
|
IsVisible="{Binding !!McnText, Mode=OneWay}"
|
|
|
|
|
|
ColumnSpacing="8">
|
|
|
|
|
|
<controls:SpectreTextBlock Text="{x:Static localization:UI.Title_Media_catalog_number}"
|
|
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
|
|
Grid.Column="0" />
|
|
|
|
|
|
<TextBox Grid.Column="1"
|
|
|
|
|
|
IsReadOnly="True"
|
|
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
|
|
HorizontalAlignment="Stretch"
|
2025-12-15 16:30:17 +00:00
|
|
|
|
Text="{Binding McnText, Mode=OneWay}"
|
|
|
|
|
|
Background="Transparent"
|
|
|
|
|
|
BorderThickness="0"
|
|
|
|
|
|
Cursor="Arrow"
|
|
|
|
|
|
Padding="0" />
|
2025-10-26 01:28:54 +00:00
|
|
|
|
</Grid>
|
|
|
|
|
|
<Grid Grid.Row="1"
|
|
|
|
|
|
IsVisible="{Binding !!IsrcList.Count, Mode=OneWay}"
|
|
|
|
|
|
RowDefinitions="Auto, *"
|
|
|
|
|
|
RowSpacing="8">
|
|
|
|
|
|
<controls:SpectreTextBlock Text="{x:Static localization:UI.Title_ISRCs}"
|
|
|
|
|
|
Grid.Row="0" />
|
|
|
|
|
|
<DataGrid ItemsSource="{Binding IsrcList, Mode=OneWay}"
|
|
|
|
|
|
Grid.Row="1"
|
|
|
|
|
|
AutoGenerateColumns="False"
|
|
|
|
|
|
IsReadOnly="True">
|
2020-04-12 14:19:12 +01:00
|
|
|
|
<DataGrid.Columns>
|
2025-12-15 16:24:11 +00:00
|
|
|
|
<DataGridTemplateColumn Header="{x:Static localization:Core.Title_Track}"
|
|
|
|
|
|
Width="Auto">
|
2025-10-26 01:28:54 +00:00
|
|
|
|
<DataGridTemplateColumn.HeaderTemplate>
|
|
|
|
|
|
<DataTemplate>
|
|
|
|
|
|
<controls:SpectreTextBlock Text="{x:Static localization:Core.Title_Track}" />
|
|
|
|
|
|
</DataTemplate>
|
|
|
|
|
|
</DataGridTemplateColumn.HeaderTemplate>
|
|
|
|
|
|
<DataGridTemplateColumn.CellTemplate>
|
|
|
|
|
|
<DataTemplate>
|
|
|
|
|
|
<controls:SpectreTextBlock Text="{Binding Track, Mode=OneWay}" />
|
|
|
|
|
|
</DataTemplate>
|
|
|
|
|
|
</DataGridTemplateColumn.CellTemplate>
|
|
|
|
|
|
</DataGridTemplateColumn>
|
2025-12-15 16:24:11 +00:00
|
|
|
|
<DataGridTemplateColumn Header="{x:Static localization:UI.Title_ISRC}"
|
|
|
|
|
|
Width="*">
|
2025-10-26 01:28:54 +00:00
|
|
|
|
<DataGridTemplateColumn.HeaderTemplate>
|
|
|
|
|
|
<DataTemplate>
|
|
|
|
|
|
<controls:SpectreTextBlock Text="{x:Static localization:UI.Title_ISRC}" />
|
|
|
|
|
|
</DataTemplate>
|
|
|
|
|
|
</DataGridTemplateColumn.HeaderTemplate>
|
|
|
|
|
|
<DataGridTemplateColumn.CellTemplate>
|
|
|
|
|
|
<DataTemplate>
|
|
|
|
|
|
<controls:SpectreTextBlock Text="{Binding Isrc, Mode=OneWay}" />
|
|
|
|
|
|
</DataTemplate>
|
|
|
|
|
|
</DataGridTemplateColumn.CellTemplate>
|
|
|
|
|
|
</DataGridTemplateColumn>
|
2020-04-12 14:19:12 +01:00
|
|
|
|
</DataGrid.Columns>
|
|
|
|
|
|
</DataGrid>
|
2025-10-26 01:28:54 +00:00
|
|
|
|
</Grid>
|
|
|
|
|
|
<Button Grid.Row="2"
|
|
|
|
|
|
Command="{Binding SaveCdPmaCommand, Mode=OneWay}"
|
2025-10-26 01:33:19 +01:00
|
|
|
|
IsVisible="{Binding CdPmaVisible, Mode=OneWay}">
|
2025-10-25 12:53:52 +01:00
|
|
|
|
<TextBlock Text="{x:Static localization:UI.ButtonLabel_Save_READ_PMA_response}" />
|
2020-04-12 14:19:12 +01:00
|
|
|
|
</Button>
|
2025-10-26 01:28:54 +00:00
|
|
|
|
</Grid>
|
2020-04-12 14:19:12 +01:00
|
|
|
|
</TabItem>
|
|
|
|
|
|
</TabControl>
|
|
|
|
|
|
</UserControl>
|