<commit_before>﻿<!-- Copyright (c) <NAME>. All rights reserved. -->
<!-- Licensed under the MIT license. See LICENSE file in the project root for full license information. -->
<UserControl x:Class="Core2D.Avalonia.Views.EditorControl"
             xmlns="https://github.com/avaloniaui"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:sys="clr-namespace:System;assembly=mscorlib"
             xmlns:local="clr-namespace:Core2D.Avalonia;assembly=Core2D.Avalonia"
             xmlns:converters="clr-namespace:Core2D.Avalonia.Converters;assembly=Core2D.Avalonia"
             xmlns:Editor="clr-namespace:Core2D.Editor;assembly=Core2D.Editor"
             xmlns:Designer="clr-namespace:Core2D.Editor.Designer;assembly=Core2D.Editor"
             xmlns:paz="clr-namespace:Avalonia.Controls.PanAndZoom;assembly=Avalonia.Controls.PanAndZoom"
             xmlns:data="clr-namespace:Core2D.Avalonia.Controls.Data;assembly=Core2D.Avalonia"
             xmlns:path="clr-namespace:Core2D.Avalonia.Controls.Path;assembly=Core2D.Avalonia"
             xmlns:project="clr-namespace:Core2D.Avalonia.Controls.Containers;assembly=Core2D.Avalonia"
             xmlns:settings="clr-namespace:Core2D.Avalonia.Controls.Settings;assembly=Core2D.Avalonia"
             xmlns:shapes="clr-namespace:Core2D.Avalonia.Controls.Shapes;assembly=Core2D.Avalonia"
             xmlns:state="clr-namespace:Core2D.Avalonia.Controls.State;assembly=Core2D.Avalonia"
             xmlns:style="clr-namespace:Core2D.Avalonia.Controls.Style;assembly=Core2D.Avalonia"
             xmlns:editor="clr-namespace:Core2D.Avalonia.Controls.Editor;assembly=Core2D.Avalonia"
             xmlns:views="clr-namespace:Core2D.Avalonia.Views;assembly=Core2D.Avalonia"
             Design.DataContext="{Static Designer:DesignerContext.Editor}"
             Design.Width="1200" Design.Height="540">
    <Grid Name="rootPanel" ColumnDefinitions="180,Auto,*,Auto,240" RowDefinitions="*,Auto" Margin="6,6,6,2">
        <GridSplitter Name="leftPanelVSplitter" Classes="vertical" Grid.Column="1" Grid.Row="0" Width="6"/>
        <Grid Name="containerPanel" Grid.Row="0" Grid.Column="2">
            <Border Classes="container">
                <Border Classes="transparent" ClipToBounds="True">
                    <paz:ZoomBorder Name="zoomBorder" Stretch="None" ZoomSpeed="1.2" PanButton="Right" EnableInput="{Binding IsToolIdle}" Background="Transparent" ClipToBounds="False" VerticalAlignment="Stretch" HorizontalAlignment="Stretch">
                        <views:ContainerViewControl Name="containerControl" Renderer="{Binding Renderers[0]}" Container="{Binding Project.CurrentContainer}" ClipToBounds="False"/>
                    </paz:ZoomBorder>
                </Border>
            </Border>
        </Grid>
        <Grid Name="leftPanel" RowDefinitions="50*,Auto,50*" Grid.Column="0" Grid.Row="0">
            <Border Name="leftPanelTop" Classes="leftTop" Grid.Row="0">
                <TabControl Classes="bottom">
                    <TabItem Header="Project" Classes="property">
                        <project:ProjectControl DataContext="{Binding Project}"/>
                    </TabItem>
                    <TabItem Header="Options" Classes="property">
                        <ContentControl Content="{Binding Project.Options}"/>
                    </TabItem>
                    <TabItem Header="Images" Classes="property">
                        <project:ImagesControl DataContext="{Binding Project}"/>
                    </TabItem>
                </TabControl>
            </Border>
            <GridSplitter Name="leftPanelHSplitter" Classes="horizontal" Grid.Row="1" Height="7"/>
            <Border Name="leftPanelBottom" Classes="leftBottom" Grid.Row="2">
                <TabControl Classes="bottom">
                    <TabItem Header="Groups" Classes="property">
                        <project:GroupsControl DataContext="{Binding Project}"/>
                    </TabItem>
                    <TabItem Header="Databases" Classes="property">
                        <project:DatabasesControl DataContext="{Binding Project}"/>
                    </TabItem>
                </TabControl>
            </Border>
        </Grid>
        <GridSplitter Name="rightPanelVSplitter" Classes="vertical" Grid.Column="3" Grid.Row="0" Width="6"/>
        <Grid Name="rightPanel" RowDefinitions="50*,Auto,50*" Grid.Column="4" Grid.Row="0">
            <Border Name="rightPanelTop" Classes="rightTop" Grid.Row="0">
                <TabControl Classes="bottom">
                    <TabItem Header="Styles" Classes="property">
                        <project:StylesControl DataContext="{Binding Project}"/>
                    </TabItem>
                    <TabItem Header="Templates" Classes="property">
                        <project:TemplatesControl DataContext="{Binding Project}"/>
                    </TabItem>
                    <TabItem Header="Container" Classes="property">
                        <ScrollViewer>
                            <ContentControl Content="{Binding Project.CurrentContainer}"/>
                        </ScrollViewer>
                    </TabItem>
                    <TabItem Header="Zoom" Classes="property">
                        <TabControl Classes="default">
                            <TabItem Header="Status" Classes="property">
                                <ScrollViewer>
                                    <Grid RowDefinitions="Auto,Auto,Auto,Auto,Auto" ColumnDefinitions="Auto,*">
                                        <TextBlock Text="ZoomX:" Classes="left" Grid.Row="0" Grid.Column="0"/>
                                        <TextBlock Text="{Binding #zoomBorder.ZoomY}" Classes="left" Grid.Row="0" Grid.Column="1"/>
                                        <TextBlock Text="ZoomY:" Classes="left" Grid.Row="1" Grid.Column="0"/>
                                        <TextBlock Text="{Binding #zoomBorder.ZoomY}" Classes="left" Grid.Row="1" Grid.Column="1"/>
                                        <TextBlock Text="OffsetX:" Classes="left" Grid.Row="2" Grid.Column="0"/>
                                        <TextBlock Text="{Binding #zoomBorder.OffsetX}" Classes="left" Grid.Row="2" Grid.Column="1"/>
                                        <TextBlock Text="OffsetY:" Classes="left" Grid.Row="2" Grid.Column="0"/>
                                        <TextBlock Text="{Binding #zoomBorder.OffsetY}" Classes="left" Grid.Row="2" Grid.Column="1"/>
                                        <Button Content="Reset" Classes="autofit" Command="{Static Editor:ProjectEditorCommands.ZoomResetCommand}" Classes="default" Grid.Row="3" Grid.Column="0" Grid.ColumnSpan="2"/>
                                        <Button Content="AutoFit" Classes="autofit" Command="{Static Editor:ProjectEditorCommands.ZoomAutoFitCommand}" Classes="default" Grid.Row="4" Grid.Column="0" Grid.ColumnSpan="2"/>  
                                    </Grid>
                                </ScrollViewer>
                            </TabItem>
                            <TabItem Header="Options" Classes="property">
                                <ScrollViewer>
                                    <Grid RowDefinitions="Auto,Auto,Auto,Auto" ColumnDefinitions="Auto,*">
                                        <TextBlock Text="PanButton:" Classes="left" Grid.Row="0" Grid.Column="0"/>
                                        <DropDown Items="{Static paz:ZoomBorder.ButtonNames}" SelectedItem="{Binding #zoomBorder.PanButton, Mode=TwoWay}" Classes="default" Grid.Row="0" Grid.Column="1"/>
                                        <TextBlock Text="Stretch:" Classes="left" Grid.Row="1" Grid.Column="0"/>
                                        <DropDown Items="{Static paz:ZoomBorder.StretchModes}" SelectedItem="{Binding #zoomBorder.Stretch, Mode=TwoWay}" Classes="default" Grid.Row="1" Grid.Column="1"/>
                                        <TextBlock Text="ZoomSpeed:" Classes="left" Grid.Row="2" Grid.Column="0"/>
                                        <TextBox Text="{Binding #zoomBorder.ZoomSpeed, Mode=TwoWay}" Classes="left" Grid.Row="2" Grid.Column="1"/>
                                        <TextBlock Text="EnableInput:" Classes="left" Grid.Row="3" Grid.Column="0"/>
                                        <CheckBox IsChecked="{Binding #zoomBorder.EnableInput}" Content="" Classes="default" Grid.Row="3" Grid.Column="1"/>   
                                    </Grid>
                                </ScrollViewer>
                            </TabItem>    
                            <TabItem Header="Constrains" Classes="property">
                                <ScrollViewer>
                                    <Grid RowDefinitions="Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto" ColumnDefinitions="Auto,*">
                                        <TextBlock Text="MinZoomX:" Classes="left" Grid.Row="0" Grid.Column="0"/>
                                        <TextBox Text="{Binding #zoomBorder.MinZoomX, Mode=TwoWay}" Classes="left" Grid.Row="0" Grid.Column="1"/>
                                        <TextBlock Text="MaxZoomX:" Classes="left" Grid.Row="1" Grid.Column="0"/><commit_msg>Fixed zoom tab<commit_after>﻿<!-- Copyright (c) <NAME>. All rights reserved. -->
<!-- Licensed under the MIT license. See LICENSE file in the project root for full license information. -->
<UserControl x:Class="Core2D.Avalonia.Views.EditorControl"
             xmlns="https://github.com/avaloniaui"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:sys="clr-namespace:System;assembly=mscorlib"
             xmlns:local="clr-namespace:Core2D.Avalonia;assembly=Core2D.Avalonia"
             xmlns:converters="clr-namespace:Core2D.Avalonia.Converters;assembly=Core2D.Avalonia"
             xmlns:Editor="clr-namespace:Core2D.Editor;assembly=Core2D.Editor"
             xmlns:Designer="clr-namespace:Core2D.Editor.Designer;assembly=Core2D.Editor"
             xmlns:paz="clr-namespace:Avalonia.Controls.PanAndZoom;assembly=Avalonia.Controls.PanAndZoom"
             xmlns:data="clr-namespace:Core2D.Avalonia.Controls.Data;assembly=Core2D.Avalonia"
             xmlns:path="clr-namespace:Core2D.Avalonia.Controls.Path;assembly=Core2D.Avalonia"
             xmlns:project="clr-namespace:Core2D.Avalonia.Controls.Containers;assembly=Core2D.Avalonia"
             xmlns:settings="clr-namespace:Core2D.Avalonia.Controls.Settings;assembly=Core2D.Avalonia"
             xmlns:shapes="clr-namespace:Core2D.Avalonia.Controls.Shapes;assembly=Core2D.Avalonia"
             xmlns:state="clr-namespace:Core2D.Avalonia.Controls.State;assembly=Core2D.Avalonia"
             xmlns:style="clr-namespace:Core2D.Avalonia.Controls.Style;assembly=Core2D.Avalonia"
             xmlns:editor="clr-namespace:Core2D.Avalonia.Controls.Editor;assembly=Core2D.Avalonia"
             xmlns:views="clr-namespace:Core2D.Avalonia.Views;assembly=Core2D.Avalonia"
             Design.DataContext="{Static Designer:DesignerContext.Editor}"
             Design.Width="1200" Design.Height="540">
    <Grid Name="rootPanel" ColumnDefinitions="180,Auto,*,Auto,240" RowDefinitions="*,Auto" Margin="6,6,6,2">
        <GridSplitter Name="leftPanelVSplitter" Classes="vertical" Grid.Column="1" Grid.Row="0" Width="6"/>
        <Grid Name="containerPanel" Grid.Row="0" Grid.Column="2">
            <Border Classes="container">
                <Border Classes="transparent" ClipToBounds="True">
                    <paz:ZoomBorder Name="zoomBorder" Stretch="None" ZoomSpeed="1.2" PanButton="Right" EnableInput="{Binding IsToolIdle}" Background="Transparent" ClipToBounds="False" VerticalAlignment="Stretch" HorizontalAlignment="Stretch">
                        <views:ContainerViewControl Name="containerControl" Renderer="{Binding Renderers[0]}" Container="{Binding Project.CurrentContainer}" ClipToBounds="False"/>
                    </paz:ZoomBorder>
                </Border>
            </Border>
        </Grid>
        <Grid Name="leftPanel" RowDefinitions="50*,Auto,50*" Grid.Column="0" Grid.Row="0">
            <Border Name="leftPanelTop" Classes="leftTop" Grid.Row="0">
                <TabControl Classes="bottom">
                    <TabItem Header="Project" Classes="property">
                        <project:ProjectControl DataContext="{Binding Project}"/>
                    </TabItem>
                    <TabItem Header="Options" Classes="property">
                        <ContentControl Content="{Binding Project.Options}"/>
                    </TabItem>
                    <TabItem Header="Images" Classes="property">
                        <project:ImagesControl DataContext="{Binding Project}"/>
                    </TabItem>
                </TabControl>
            </Border>
            <GridSplitter Name="leftPanelHSplitter" Classes="horizontal" Grid.Row="1" Height="7"/>
            <Border Name="leftPanelBottom" Classes="leftBottom" Grid.Row="2">
                <TabControl Classes="bottom">
                    <TabItem Header="Groups" Classes="property">
                        <project:GroupsControl DataContext="{Binding Project}"/>
                    </TabItem>
                    <TabItem Header="Databases" Classes="property">
                        <project:DatabasesControl DataContext="{Binding Project}"/>
                    </TabItem>
                </TabControl>
            </Border>
        </Grid>
        <GridSplitter Name="rightPanelVSplitter" Classes="vertical" Grid.Column="3" Grid.Row="0" Width="6"/>
        <Grid Name="rightPanel" RowDefinitions="50*,Auto,50*" Grid.Column="4" Grid.Row="0">
            <Border Name="rightPanelTop" Classes="rightTop" Grid.Row="0">
                <TabControl Classes="bottom">
                    <TabItem Header="Styles" Classes="property">
                        <project:StylesControl DataContext="{Binding Project}"/>
                    </TabItem>
                    <TabItem Header="Templates" Classes="property">
                        <project:TemplatesControl DataContext="{Binding Project}"/>
                    </TabItem>
                    <TabItem Header="Container" Classes="property">
                        <ScrollViewer>
                            <ContentControl Content="{Binding Project.CurrentContainer}"/>
                        </ScrollViewer>
                    </TabItem>
                    <TabItem Header="Zoom" Classes="property">
                        <TabControl Classes="default">
                            <TabItem Header="Status" Classes="property">
                                <ScrollViewer>
                                    <Grid RowDefinitions="Auto,Auto,Auto,Auto,Auto,Auto" ColumnDefinitions="Auto,*">
                                        <TextBlock Text="ZoomX:" Classes="left" Grid.Row="0" Grid.Column="0"/>
                                        <TextBlock Text="{Binding #zoomBorder.ZoomX, Mode=OneWay}" Classes="left" Grid.Row="0" Grid.Column="1"/>
                                        <TextBlock Text="ZoomY:" Classes="left" Grid.Row="1" Grid.Column="0"/>
                                        <TextBlock Text="{Binding #zoomBorder.ZoomY, Mode=OneWay}" Classes="left" Grid.Row="1" Grid.Column="1"/>
                                        <TextBlock Text="OffsetX:" Classes="left" Grid.Row="2" Grid.Column="0"/>
                                        <TextBlock Text="{Binding #zoomBorder.OffsetX, Mode=OneWay}" Classes="left" Grid.Row="2" Grid.Column="1"/>
                                        <TextBlock Text="OffsetY:" Classes="left" Grid.Row="3" Grid.Column="0"/>
                                        <TextBlock Text="{Binding #zoomBorder.OffsetY, Mode=OneWay}" Classes="left" Grid.Row="3" Grid.Column="1"/>
                                        <Button Content="Reset" Command="{Static Editor:ProjectEditorCommands.ZoomResetCommand}" Classes="default" Grid.Row="4" Grid.Column="0" Grid.ColumnSpan="2"/>
                                        <Button Content="AutoFit" Command="{Static Editor:ProjectEditorCommands.ZoomAutoFitCommand}" Classes="default" Grid.Row="5" Grid.Column="0" Grid.ColumnSpan="2"/>  
                                    </Grid>
                                </ScrollViewer>
                            </TabItem>
                            <TabItem Header="Options" Classes="property">
                                <ScrollViewer>
                                    <Grid RowDefinitions="Auto,Auto,Auto,Auto" ColumnDefinitions="Auto,*">
                                        <TextBlock Text="PanButton:" Classes="left" Grid.Row="0" Grid.Column="0"/>
                                        <DropDown Items="{Static paz:ZoomBorder.ButtonNames}" SelectedItem="{Binding #zoomBorder.PanButton, Mode=TwoWay}" Classes="default" Grid.Row="0" Grid.Column="1"/>
                                        <TextBlock Text="Stretch:" Classes="left" Grid.Row="1" Grid.Column="0"/>
                                        <DropDown Items="{Static paz:ZoomBorder.StretchModes}" SelectedItem="{Binding #zoomBorder.Stretch, Mode=TwoWay}" Classes="default" Grid.Row="1" Grid.Column="1"/>
                                        <TextBlock Text="ZoomSpeed:" Classes="left" Grid.Row="2" Grid.Column="0"/>
                                        <TextBox Text="{Binding #zoomBorder.ZoomSpeed, Mode=TwoWay}" Classes="left" Grid.Row="2" Grid.Column="1"/>
                                        <TextBlock Text="EnableInput:" Classes="left" Grid.Row="3" Grid.Column="0"/>
                                        <CheckBox IsChecked="{Binding #zoomBorder.EnableInput}" Content="" Classes="default" Grid.Row="3" Grid.Column="1"/>   
                                    </Grid>
                                </ScrollViewer>
                            </TabItem>    
                            <TabItem Header="Constrains" Classes="property">
                                <ScrollViewer>
                                    <Grid RowDefinitions="Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto" ColumnDefinitions="Auto,*">
                                        <TextBlock Text="MinZoomX:" Classes="left" Grid.Row="0" Grid.Column="0"/>
                                        <TextBox Text="{Binding #zoomBorder.MinZoomX, Mode=TwoWay}" Classes="left" Grid.Row="0" Grid.Column="1"/>
                                        <TextBlock Text="MaxZoomX:" Classes="left" Grid.Row="1" Grid.Column="0"/>
{'fraction_non_alphanumeric': 0.1347460368812682, 'fraction_numerical': 0.012940795858945324, 'mean_word_length': 1.991934182932731, 'pattern_counts': {'":': 0, '<': 191, '<?xml version=': 0, '>': 191, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 34}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 52, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5316021', 'n_tokens_mistral': 4885, 'n_tokens_neox': 4556, 'n_words': 709}