2020-04-17 21:45:50 +01:00
|
|
|
|
<!--
|
|
|
|
|
|
// /***************************************************************************
|
|
|
|
|
|
// Aaru Data Preservation Suite
|
|
|
|
|
|
// ‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐
|
|
|
|
|
|
//
|
|
|
|
|
|
// Filename : Console.xaml
|
|
|
|
|
|
// Author(s) : Natalia Portillo <claunia@claunia.com>
|
|
|
|
|
|
//
|
|
|
|
|
|
// Component : GUI dialogs.
|
|
|
|
|
|
//
|
|
|
|
|
|
// ‐‐[ Description ] ‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐
|
|
|
|
|
|
//
|
|
|
|
|
|
// Console dialog.
|
|
|
|
|
|
//
|
|
|
|
|
|
// ‐‐[ 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
|
|
|
|
<Window xmlns="https://github.com/avaloniaui"
|
|
|
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
2020-04-11 03:05:21 +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-25 12:53:52 +01:00
|
|
|
|
xmlns:localization="clr-namespace:Aaru.Localization;assembly=Aaru.Localization"
|
2025-10-27 16:35:41 +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"
|
|
|
|
|
|
Width="600"
|
|
|
|
|
|
Height="450"
|
|
|
|
|
|
x:Class="Aaru.Gui.Views.Dialogs.Console"
|
|
|
|
|
|
Icon="/Assets/aaru-logo.png"
|
2025-10-25 12:53:52 +01:00
|
|
|
|
Title="{x:Static localization:UI.Title_Console}">
|
2020-04-11 03:05:21 +01:00
|
|
|
|
<Design.DataContext>
|
2020-04-16 21:29:40 +01:00
|
|
|
|
<dialogs:ConsoleViewModel />
|
2020-04-11 03:05:21 +01:00
|
|
|
|
</Design.DataContext>
|
2025-10-27 16:35:41 +00:00
|
|
|
|
<Grid Margin="12"
|
|
|
|
|
|
RowSpacing="8"
|
|
|
|
|
|
RowDefinitions="*,Auto,Auto">
|
|
|
|
|
|
<DataGrid ItemsSource="{Binding Entries, Mode=OneWay}">
|
|
|
|
|
|
<DataGrid.Columns>
|
|
|
|
|
|
<DataGridTextColumn Binding="{Binding Timestamp, Mode=OneWay}"
|
|
|
|
|
|
Width="Auto"
|
|
|
|
|
|
IsReadOnly="True">
|
|
|
|
|
|
<DataGridTextColumn.Header>
|
|
|
|
|
|
<controls:SpectreTextBlock Text="{x:Static localization:UI.Title_Time}" />
|
|
|
|
|
|
</DataGridTextColumn.Header>
|
|
|
|
|
|
</DataGridTextColumn>
|
|
|
|
|
|
<DataGridTextColumn Binding="{Binding Type, Mode=OneWay}"
|
|
|
|
|
|
Width="Auto"
|
|
|
|
|
|
IsReadOnly="True">
|
|
|
|
|
|
<DataGridTextColumn.Header>
|
|
|
|
|
|
<controls:SpectreTextBlock Text="{x:Static localization:UI.Title_Type}" />
|
|
|
|
|
|
</DataGridTextColumn.Header>
|
|
|
|
|
|
</DataGridTextColumn>
|
|
|
|
|
|
<DataGridTextColumn Binding="{Binding Module, Mode=OneWay}"
|
|
|
|
|
|
Width="Auto"
|
|
|
|
|
|
IsReadOnly="True">
|
|
|
|
|
|
<DataGridTextColumn.Header>
|
|
|
|
|
|
<controls:SpectreTextBlock Text="{x:Static localization:UI.Title_Module}" />
|
|
|
|
|
|
</DataGridTextColumn.Header>
|
|
|
|
|
|
</DataGridTextColumn>
|
|
|
|
|
|
<DataGridTextColumn Binding="{Binding Message, Mode=OneWay}"
|
|
|
|
|
|
Width="Auto"
|
|
|
|
|
|
IsReadOnly="True">
|
|
|
|
|
|
<DataGridTextColumn.Header>
|
|
|
|
|
|
<controls:SpectreTextBlock Text="{x:Static localization:UI.Title_Message}" />
|
|
|
|
|
|
</DataGridTextColumn.Header>
|
|
|
|
|
|
</DataGridTextColumn>
|
|
|
|
|
|
</DataGrid.Columns>
|
|
|
|
|
|
</DataGrid>
|
|
|
|
|
|
<CheckBox Grid.Row="1"
|
|
|
|
|
|
IsChecked="{Binding DebugChecked, Mode=TwoWay}">
|
|
|
|
|
|
<TextBlock Text="{x:Static localization:UI.Enable_debug_console}" />
|
|
|
|
|
|
</CheckBox>
|
|
|
|
|
|
<StackPanel Grid.Row="2"
|
|
|
|
|
|
Spacing="10"
|
|
|
|
|
|
Orientation="Horizontal"
|
|
|
|
|
|
HorizontalAlignment="Right">
|
|
|
|
|
|
<Button Command="{Binding ClearCommand, Mode=OneWay}">
|
|
|
|
|
|
<TextBlock Text="{x:Static localization:UI.ButtonLabel_Clear}" />
|
|
|
|
|
|
</Button>
|
|
|
|
|
|
<Button Command="{Binding SaveCommand, Mode=OneWay}">
|
|
|
|
|
|
<TextBlock Text="{x:Static localization:UI.ButtonLabel_Save}" />
|
|
|
|
|
|
</Button>
|
|
|
|
|
|
</StackPanel>
|
|
|
|
|
|
</Grid>
|
2020-04-11 03:05:21 +01:00
|
|
|
|
</Window>
|