mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
144 lines
7.9 KiB
XML
144 lines
7.9 KiB
XML
<Window xmlns="https://github.com/avaloniaui"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:console="https://github.com/jinek/consolonia"
|
|
xmlns:windows="clr-namespace:Aaru.Tui.ViewModels.Windows"
|
|
xmlns:models="clr-namespace:Aaru.Tui.Models"
|
|
x:Class="Aaru.Tui.Views.Windows.MainWindow"
|
|
RequestedThemeVariant="Dark"
|
|
Title="Aaru">
|
|
<Design.DataContext>
|
|
<windows:MainWindowViewModel />
|
|
</Design.DataContext>
|
|
<DockPanel>
|
|
<Menu DockPanel.Dock="Bottom">
|
|
<MenuItem Header="F10 Exit"
|
|
Command="{Binding ExitCommand, Mode=OneWay}"
|
|
HotKey="F10" />
|
|
</Menu>
|
|
<Border BorderThickness="1">
|
|
<Border.BorderBrush>
|
|
<console:LineBrush LineStyle="DoubleLine"
|
|
Brush="Blue" />
|
|
</Border.BorderBrush>
|
|
<Grid ColumnDefinitions="*,*">
|
|
<ListBox Grid.Column="0"
|
|
ItemsSource="{Binding Files, Mode=OneWay}"
|
|
BorderThickness="1"
|
|
Background="Transparent"
|
|
SelectedItem="{Binding SelectedFile, Mode=TwoWay}"
|
|
KeyDown="ListBox_OnKeyDown">
|
|
<ListBox.ItemTemplate>
|
|
<DataTemplate DataType="models:FileModel">
|
|
<TextBox Text="{Binding Filename, Mode=OneWay}"
|
|
Foreground="{Binding ForegroundBrush, Mode=OneWay}"
|
|
Background="Transparent" />
|
|
</DataTemplate>
|
|
</ListBox.ItemTemplate>
|
|
<ListBox.BorderBrush>
|
|
<console:LineBrush LineStyle="DoubleLine"
|
|
Brush="Blue" />
|
|
</ListBox.BorderBrush>
|
|
</ListBox>
|
|
<Border Grid.Column="1"
|
|
BorderThickness="1">
|
|
<Border.BorderBrush>
|
|
<console:LineBrush LineStyle="DoubleLine"
|
|
Brush="Blue" />
|
|
</Border.BorderBrush>
|
|
<Grid RowDefinitions="*,Auto,Auto"
|
|
VerticalAlignment="Top">
|
|
<Border Grid.Row="0"
|
|
BorderThickness="1">
|
|
<Border.BorderBrush>
|
|
<console:LineBrush LineStyle="DoubleLine"
|
|
Brush="Blue" />
|
|
</Border.BorderBrush>
|
|
<StackPanel VerticalAlignment="Top"
|
|
HorizontalAlignment="Center">
|
|
<TextBlock Text="Aaru Data Preservation Suite"
|
|
Foreground="Red"
|
|
FontWeight="Bold" />
|
|
<TextBlock Text="{Binding InformationalVersion, Mode=OneWay}"
|
|
Foreground="Green"
|
|
FontWeight="Bold" />
|
|
<TextBlock Text="{Binding Copyright, Mode=OneWay}"
|
|
Foreground="Blue"
|
|
FontWeight="Bold" />
|
|
</StackPanel>
|
|
</Border>
|
|
<Border Grid.Row="1"
|
|
BorderThickness="1">
|
|
<Border.BorderBrush>
|
|
<console:LineBrush LineStyle="DoubleLine"
|
|
Brush="Blue" />
|
|
</Border.BorderBrush>
|
|
<Grid ColumnDefinitions="Auto, *">
|
|
<TextBlock Grid.Column="0"
|
|
Text="Path: "
|
|
Foreground="SlateBlue" />
|
|
<TextBlock Grid.Column="1"
|
|
Text="{Binding CurrentPath, Mode=OneWay}"
|
|
Foreground="Green" />
|
|
</Grid>
|
|
</Border>
|
|
<Border Grid.Row="2"
|
|
BorderThickness="1"
|
|
IsVisible="{Binding IsFileInfoAvailable, Mode=OneWay}">
|
|
<Border.BorderBrush>
|
|
<console:LineBrush LineStyle="DoubleLine"
|
|
Brush="Blue" />
|
|
</Border.BorderBrush>
|
|
<Grid RowDefinitions="Auto, *, *, *, *, *">
|
|
<TextBlock Text="File information"
|
|
Grid.Row="0"
|
|
HorizontalAlignment="Center"
|
|
Foreground="SlateBlue" />
|
|
<Grid ColumnDefinitions="Auto, *"
|
|
Grid.Row="1"
|
|
IsVisible="{Binding SelectedFileIsNotDirectory, Mode=OneWay}">
|
|
<TextBlock Grid.Column="0"
|
|
Text="Length: " />
|
|
<TextBlock Grid.Column="1"
|
|
Text="{Binding SelectedFileLength, Mode=OneWay}"
|
|
Foreground="Aqua" />
|
|
</Grid>
|
|
<Grid ColumnDefinitions="Auto, *"
|
|
Grid.Row="2">
|
|
<TextBlock Grid.Column="0"
|
|
Text="Creation time: " />
|
|
<TextBlock Grid.Column="1"
|
|
Text="{Binding SelectedFileCreationTime, Mode=OneWay}"
|
|
Foreground="Aqua" />
|
|
</Grid>
|
|
<Grid ColumnDefinitions="Auto, *"
|
|
Grid.Row="3">
|
|
<TextBlock Grid.Column="0"
|
|
Text="Last write time: " />
|
|
<TextBlock Grid.Column="1"
|
|
Text="{Binding SelectedFileLastWriteTime, Mode=OneWay}"
|
|
Foreground="Aqua" />
|
|
</Grid>
|
|
<Grid ColumnDefinitions="Auto, *"
|
|
Grid.Row="4">
|
|
<TextBlock Grid.Column="0"
|
|
Text="Attributes: " />
|
|
<TextBlock Grid.Column="1"
|
|
Text="{Binding SelectedFileAttributes, Mode=OneWay}"
|
|
Foreground="Aqua" />
|
|
</Grid>
|
|
<Grid ColumnDefinitions="Auto, *"
|
|
Grid.Row="5">
|
|
<TextBlock Grid.Column="0"
|
|
Text="Mode: " />
|
|
<TextBlock Grid.Column="1"
|
|
Text="{Binding SelectedFileUnixMode, Mode=OneWay}"
|
|
Foreground="Aqua" />
|
|
</Grid>
|
|
</Grid>
|
|
</Border>
|
|
</Grid>
|
|
</Border>
|
|
</Grid>
|
|
</Border>
|
|
</DockPanel>
|
|
</Window> |