mirror of
https://github.com/azaion/annotations.git
synced 2026-04-22 21:56:31 +00:00
149 lines
6.1 KiB
XML
149 lines
6.1 KiB
XML
<Window x:Class="Azaion.Annotator.DatasetExplorer"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:vwp="clr-namespace:WpfToolkit.Controls;assembly=VirtualizingWrapPanel"
|
|
xmlns:dto="clr-namespace:Azaion.Annotator.DTO"
|
|
xmlns:controls="clr-namespace:Azaion.Annotator.Controls"
|
|
xmlns:ScottPlot="clr-namespace:ScottPlot.WPF;assembly=ScottPlot.WPF"
|
|
mc:Ignorable="d"
|
|
Title="Переглядач анотацій" Height="900" Width="1200">
|
|
|
|
<Window.Resources>
|
|
<DataTemplate x:Key="ThumbnailTemplate" DataType="{x:Type dto:ThumbnailDto}">
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="*"></RowDefinition>
|
|
<RowDefinition Height="32"></RowDefinition>
|
|
</Grid.RowDefinitions>
|
|
<Image
|
|
Grid.Row="0"
|
|
Source="{Binding Image}"
|
|
Width="480"
|
|
Height="270"
|
|
Margin="2" />
|
|
<TextBlock
|
|
Grid.Row="1"
|
|
Foreground="LightGray"
|
|
Text="{Binding ImageName}" />
|
|
</Grid>
|
|
</DataTemplate>
|
|
</Window.Resources>
|
|
|
|
<Grid
|
|
Name="MainGrid"
|
|
ShowGridLines="False"
|
|
Background="Black"
|
|
HorizontalAlignment="Stretch">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="*"></RowDefinition>
|
|
<RowDefinition Height="32"></RowDefinition>
|
|
</Grid.RowDefinitions>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="150" />
|
|
<ColumnDefinition Width="4"/>
|
|
<ColumnDefinition Width="*" />
|
|
</Grid.ColumnDefinitions>
|
|
<controls:AnnotationClasses
|
|
x:Name="LvClasses"
|
|
Grid.Column="0"
|
|
Grid.Row="0">
|
|
</controls:AnnotationClasses>
|
|
|
|
<TabControl
|
|
Name="Switcher"
|
|
Grid.Column="2"
|
|
Grid.Row="0"
|
|
HorizontalAlignment="Stretch"
|
|
VerticalAlignment="Stretch"
|
|
Background="Black">
|
|
<TabItem Name="AnnotationsTab" Header="Анотації">
|
|
<vwp:GridView
|
|
Name="ThumbnailsView"
|
|
HorizontalAlignment="Stretch"
|
|
VerticalAlignment="Stretch"
|
|
Background="Black"
|
|
Margin="2,5,2,2"
|
|
ItemsSource="{Binding ThumbnailsDtos, Mode=OneWay}"
|
|
ItemTemplate="{StaticResource ThumbnailTemplate}"
|
|
>
|
|
</vwp:GridView>
|
|
</TabItem>
|
|
<TabItem Name="EditorTab"
|
|
Header="Редактор"
|
|
Visibility="Collapsed">
|
|
<controls:CanvasEditor x:Name="ExplorerEditor"
|
|
VerticalAlignment="Stretch"
|
|
HorizontalAlignment="Stretch" >
|
|
</controls:CanvasEditor>
|
|
</TabItem>
|
|
<TabItem Name="ClassDistributionTab" Header="Розподіл класів">
|
|
<ScottPlot:WpfPlot x:Name="ClassDistribution" />
|
|
</TabItem>
|
|
</TabControl>
|
|
<StatusBar
|
|
Grid.Row="1"
|
|
Grid.Column="0"
|
|
Grid.ColumnSpan="3"
|
|
Background="#252525"
|
|
Foreground="White"
|
|
>
|
|
<StatusBar.ItemsPanel>
|
|
<ItemsPanelTemplate>
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="Auto" />
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="*" />
|
|
</Grid.RowDefinitions>
|
|
</Grid>
|
|
</ItemsPanelTemplate>
|
|
</StatusBar.ItemsPanel>
|
|
<StatusBarItem Grid.Column="0" Background="Black">
|
|
<TextBlock Name="LoadingAnnsCaption">Завантаження:</TextBlock>
|
|
</StatusBarItem>
|
|
<StatusBarItem Grid.Column="1" Background="Black">
|
|
<ProgressBar x:Name="LoadingAnnsBar"
|
|
Width="150"
|
|
Height="15"
|
|
HorizontalAlignment="Stretch"
|
|
Background="#252525"
|
|
BorderBrush="#252525"
|
|
Foreground="LightBlue"
|
|
Maximum="100"
|
|
Minimum="0"
|
|
Value="0">
|
|
</ProgressBar>
|
|
</StatusBarItem>
|
|
<StatusBarItem Grid.Column="2" Background="Black">
|
|
<TextBlock Name="RefreshThumbCaption">База іконок:</TextBlock>
|
|
</StatusBarItem>
|
|
<StatusBarItem Grid.Column="3" Background="Black">
|
|
<ProgressBar x:Name="RefreshThumbBar"
|
|
Width="150"
|
|
Height="15"
|
|
HorizontalAlignment="Stretch"
|
|
Background="#252525"
|
|
BorderBrush="#252525"
|
|
Foreground="LightBlue"
|
|
Maximum="100"
|
|
Minimum="0"
|
|
Value="0">
|
|
</ProgressBar>
|
|
</StatusBarItem>
|
|
<Separator Grid.Column="4"/>
|
|
<StatusBarItem Grid.Column="5" Background="Black">
|
|
<TextBlock Name="StatusText" Text=""/>
|
|
</StatusBarItem>
|
|
</StatusBar>
|
|
</Grid>
|
|
</Window>
|