Files
Aaru/Aaru.Gui/Views/Tabs/CompactDiscInfo.xaml

148 lines
6.9 KiB
Plaintext
Raw Normal View History

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"
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"
mc:Ignorable="d"
d:DesignWidth="800"
d:DesignHeight="450"
x:Class="Aaru.Gui.Views.Tabs.CompactDiscInfo">
<Design.DataContext>
2020-04-16 20:40:25 +01:00
<tabs:CompactDiscInfoViewModel />
</Design.DataContext>
<TabControl>
<TabItem IsVisible="{Binding !!CdInformationText}">
<TabItem.Header>
<TextBlock Text="{Binding CdInformationLabel}" />
</TabItem.Header>
<StackPanel>
2024-05-01 04:05:22 +01:00
<TextBox IsReadOnly="True"
Text="{Binding CdInformationText}" />
<Button Command="{Binding SaveCdInformationCommand}">
<TextBlock Text="{Binding SaveCdInformationLabel}" />
</Button>
</StackPanel>
</TabItem>
<TabItem IsVisible="{Binding !!CdTocText}">
<TabItem.Header>
<TextBlock Text="{Binding CdTocLabel}" />
</TabItem.Header>
<StackPanel>
2024-05-01 04:05:22 +01:00
<TextBox IsReadOnly="True"
Text="{Binding CdTocText}" />
<Button Command="{Binding SaveCdTocCommand}">
<TextBlock Text="{Binding SaveCdTocLabel}" />
</Button>
</StackPanel>
</TabItem>
<TabItem IsVisible="{Binding !!CdFullTocText}">
<TabItem.Header>
<TextBlock Text="{Binding CdFullTocLabel}" />
</TabItem.Header>
<StackPanel>
2024-05-01 04:05:22 +01:00
<TextBox IsReadOnly="True"
Text="{Binding CdFullTocText}" />
<Button Command="{Binding SaveCdFullTocCommand}">
<TextBlock Text="{Binding SaveCdFullTocLabel}" />
</Button>
</StackPanel>
</TabItem>
<TabItem IsVisible="{Binding !!CdSessionText}">
<TabItem.Header>
<TextBlock Text="{Binding CdSessionLabel}" />
</TabItem.Header>
<StackPanel>
2024-05-01 04:05:22 +01:00
<TextBox IsReadOnly="True"
Text="{Binding CdSessionText}" />
<Button Command="{Binding SaveCdSessionCommand}">
<TextBlock Text="{Binding SaveCdSessionLabel}" />
</Button>
</StackPanel>
</TabItem>
<TabItem IsVisible="{Binding !!CdTextText}">
<TabItem.Header>
<TextBlock Text="{Binding CdTextLabel}" />
</TabItem.Header>
<StackPanel>
2024-05-01 04:05:22 +01:00
<TextBox IsReadOnly="True"
Text="{Binding CdTextText}" />
<Button Command="{Binding SaveCdTextCommand}">
<TextBlock Text="{Binding SaveCdTextLabel}" />
</Button>
</StackPanel>
</TabItem>
<TabItem IsVisible="{Binding !!CdAtipText}">
<TabItem.Header>
<TextBlock Text="{Binding CdAtipLabel}" />
</TabItem.Header>
<StackPanel>
2024-05-01 04:05:22 +01:00
<TextBox IsReadOnly="True"
Text="{Binding CdAtipText}" />
<Button Command="{Binding SaveCdAtipCommand}">
<TextBlock Text="{Binding SaveCdAtipLabel}" />
</Button>
</StackPanel>
</TabItem>
<TabItem IsVisible="{Binding MiscellaneousVisible}">
<TabItem.Header>
<TextBlock Text="{Binding MiscellaneousLabel}" />
</TabItem.Header>
<StackPanel>
2024-05-01 04:05:22 +01:00
<StackPanel Orientation="Horizontal"
IsVisible="{Binding !!McnText}">
<TextBlock Text="{Binding McnLabel}" />
<TextBox IsReadOnly="True"
Text="{Binding McnText}" />
</StackPanel>
<StackPanel IsVisible="{Binding !!IsrcList.Count}">
2023-10-05 01:52:48 +01:00
<TextBlock Text="{Binding IsrCsLabel}" />
2023-09-25 22:58:48 +01:00
<DataGrid ItemsSource="{Binding IsrcList}">
<DataGrid.Columns>
2024-05-01 04:05:22 +01:00
<DataGridTextColumn Binding="{Binding Track}"
Header="{Binding TrackLabel}" />
<DataGridTextColumn Binding="{Binding ISRC}"
Header="{Binding ISRCLabel}" />
</DataGrid.Columns>
</DataGrid>
</StackPanel>
2024-05-01 04:05:22 +01:00
<Button Command="{Binding SaveCdPmaCommand}"
IsVisible="{Binding CdPmaVisible}">
<TextBlock Text="{Binding SaveCdPmaLabel}" />
</Button>
</StackPanel>
</TabItem>
</TabControl>
</UserControl>