2020-04-10 02:50:38 +01:00
|
|
|
|
<!--
|
|
|
|
|
|
// /***************************************************************************
|
2020-04-17 21:45:50 +01:00
|
|
|
|
// Aaru Data Preservation Suite
|
|
|
|
|
|
// ‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐
|
2020-04-10 02:50:38 +01:00
|
|
|
|
//
|
2020-04-17 21:45:50 +01:00
|
|
|
|
// Filename : Encodings.xaml
|
2020-04-10 02:50:38 +01:00
|
|
|
|
// Author(s) : Natalia Portillo <claunia@claunia.com>
|
|
|
|
|
|
//
|
2020-04-17 21:45:50 +01:00
|
|
|
|
// Component : GUI dialogs.
|
2020-04-10 02:50:38 +01:00
|
|
|
|
//
|
2020-04-17 21:45:50 +01:00
|
|
|
|
// ‐‐[ Description ] ‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐
|
2020-04-10 02:50:38 +01:00
|
|
|
|
//
|
2020-04-17 21:45:50 +01:00
|
|
|
|
// Encodings list dialog.
|
2020-04-10 02:50:38 +01:00
|
|
|
|
//
|
2020-04-17 21:45:50 +01:00
|
|
|
|
// ‐‐[ License ] ‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐
|
2020-04-10 02:50:38 +01:00
|
|
|
|
//
|
|
|
|
|
|
// 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/>.
|
|
|
|
|
|
//
|
2020-04-17 21:45:50 +01:00
|
|
|
|
// ‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐
|
2024-12-19 10:45:18 +00:00
|
|
|
|
// Copyright © 2011-2025 Natalia Portillo
|
2020-04-10 02:50:38 +01:00
|
|
|
|
// ****************************************************************************/
|
|
|
|
|
|
-->
|
2024-05-01 04:05:22 +01:00
|
|
|
|
<Window xmlns="https://github.com/avaloniaui"
|
|
|
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
2020-04-10 02:50:38 +01:00
|
|
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
2020-04-16 20:40:25 +01:00
|
|
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
2024-05-01 04:05:22 +01:00
|
|
|
|
xmlns:dialogs="clr-namespace:Aaru.Gui.ViewModels.Dialogs"
|
2025-10-27 16:13:50 +00:00
|
|
|
|
xmlns:controls="clr-namespace:Aaru.Gui.Controls"
|
2025-10-25 12:53:52 +01:00
|
|
|
|
xmlns:localization="clr-namespace:Aaru.Localization;assembly=Aaru.Localization"
|
2024-05-01 04:05:22 +01:00
|
|
|
|
mc:Ignorable="d"
|
|
|
|
|
|
d:DesignWidth="800"
|
|
|
|
|
|
d:DesignHeight="450"
|
|
|
|
|
|
Width="480"
|
|
|
|
|
|
Height="320"
|
|
|
|
|
|
x:Class="Aaru.Gui.Views.Dialogs.Encodings"
|
|
|
|
|
|
Icon="/Assets/aaru-logo.png"
|
|
|
|
|
|
CanResize="False"
|
2025-11-19 05:26:14 +00:00
|
|
|
|
x:DataType="dialogs:EncodingsViewModel"
|
2025-10-25 12:53:52 +01:00
|
|
|
|
Title="{x:Static localization:UI.Encodings}">
|
2020-04-10 02:50:38 +01:00
|
|
|
|
<Design.DataContext>
|
2020-04-16 21:29:40 +01:00
|
|
|
|
<dialogs:EncodingsViewModel />
|
2020-04-10 02:50:38 +01:00
|
|
|
|
</Design.DataContext>
|
2025-10-27 16:13:50 +00:00
|
|
|
|
<Grid Margin="12"
|
|
|
|
|
|
HorizontalAlignment="Stretch"
|
|
|
|
|
|
VerticalAlignment="Stretch"
|
|
|
|
|
|
RowDefinitions="*,Auto"
|
|
|
|
|
|
RowSpacing="8">
|
|
|
|
|
|
<DataGrid Grid.Row="0"
|
|
|
|
|
|
ItemsSource="{Binding Encodings, Mode=OneWay}"
|
|
|
|
|
|
HorizontalScrollBarVisibility="Visible">
|
|
|
|
|
|
<DataGrid.Columns>
|
|
|
|
|
|
<DataGridTemplateColumn Width="Auto">
|
|
|
|
|
|
<DataGridTemplateColumn.HeaderTemplate>
|
|
|
|
|
|
<DataTemplate>
|
|
|
|
|
|
<controls:SpectreTextBlock Text="{x:Static localization:UI.Title_Code_for_encoding}" />
|
|
|
|
|
|
</DataTemplate>
|
|
|
|
|
|
</DataGridTemplateColumn.HeaderTemplate>
|
|
|
|
|
|
<DataGridTemplateColumn.CellTemplate>
|
|
|
|
|
|
<DataTemplate>
|
|
|
|
|
|
<TextBlock Text="{Binding Name, Mode=OneWay}" />
|
|
|
|
|
|
</DataTemplate>
|
|
|
|
|
|
</DataGridTemplateColumn.CellTemplate>
|
|
|
|
|
|
</DataGridTemplateColumn>
|
|
|
|
|
|
<DataGridTemplateColumn Width="Auto">
|
|
|
|
|
|
<DataGridTemplateColumn.HeaderTemplate>
|
|
|
|
|
|
<DataTemplate>
|
|
|
|
|
|
<controls:SpectreTextBlock Text="{x:Static localization:UI.Title_Name}" />
|
|
|
|
|
|
</DataTemplate>
|
|
|
|
|
|
</DataGridTemplateColumn.HeaderTemplate>
|
|
|
|
|
|
<DataGridTemplateColumn.CellTemplate>
|
|
|
|
|
|
<DataTemplate>
|
|
|
|
|
|
<TextBlock Text="{Binding DisplayName, Mode=OneWay}" />
|
|
|
|
|
|
</DataTemplate>
|
|
|
|
|
|
</DataGridTemplateColumn.CellTemplate>
|
|
|
|
|
|
</DataGridTemplateColumn>
|
|
|
|
|
|
</DataGrid.Columns>
|
|
|
|
|
|
</DataGrid>
|
|
|
|
|
|
<Button Grid.Row="1"
|
|
|
|
|
|
HorizontalAlignment="Right"
|
|
|
|
|
|
VerticalAlignment="Bottom"
|
|
|
|
|
|
Command="{Binding CloseCommand, Mode=OneWay}">
|
|
|
|
|
|
<TextBlock Text="{x:Static localization:UI.ButtonLabel_Close}" />
|
|
|
|
|
|
</Button>
|
|
|
|
|
|
</Grid>
|
2020-04-10 02:50:38 +01:00
|
|
|
|
</Window>
|