You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
167 lines
7.0 KiB
XML
167 lines
7.0 KiB
XML
<!--Copyright Epic Games, Inc. All Rights Reserved.-->
|
|
|
|
<UserControl x:Class="UnsyncUI.BuildSelectorControl"
|
|
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:local="clr-namespace:UnsyncUI"
|
|
xmlns:dat="clr-namespace:System.ComponentModel;assembly=WindowsBase"
|
|
mc:Ignorable="d"
|
|
d:DesignHeight="450" d:DesignWidth="800">
|
|
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="*" />
|
|
<RowDefinition Height="auto" />
|
|
<RowDefinition Height="auto" />
|
|
<RowDefinition Height="auto" />
|
|
</Grid.RowDefinitions>
|
|
|
|
<!-- Builds Groupbox -->
|
|
<GroupBox Grid.Row="0">
|
|
|
|
<GroupBox.Header>
|
|
<Grid>
|
|
<TextBlock Margin="4" Visibility="{Binding Path=OnRefreshBuildsClicked.Enabled, Converter={StaticResource VisConv_Collapsed}}">
|
|
<Run Text="Builds -"/>
|
|
<Hyperlink Command="{Binding OnRefreshBuildsClicked}">Refresh</Hyperlink>
|
|
</TextBlock>
|
|
|
|
<TextBlock Margin="4" Visibility="{Binding Path=OnStopRefreshBuildsClicked.Enabled, Converter={StaticResource VisConv_Collapsed}}">
|
|
<Run Text="Builds -"/>
|
|
<Hyperlink Command="{Binding OnStopRefreshBuildsClicked}">Stop</Hyperlink>
|
|
</TextBlock>
|
|
</Grid>
|
|
</GroupBox.Header>
|
|
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="auto"/>
|
|
<RowDefinition Height="auto"/>
|
|
<RowDefinition Height="*"/>
|
|
</Grid.RowDefinitions>
|
|
|
|
<ProgressBar Grid.Row="0" IsIndeterminate="True" Visibility="{Binding Path=OnStopRefreshBuildsClicked.Enabled, Converter={StaticResource VisConv_Hidden}}" Margin="4,2,4,2"/>
|
|
|
|
<Grid Grid.Row="1">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="*"/>
|
|
<ColumnDefinition Width="auto"/>
|
|
</Grid.ColumnDefinitions>
|
|
<TextBox Grid.Row ="0" Grid.Column="0" Text="{Binding SearchTerms, UpdateSourceTrigger=PropertyChanged}" />
|
|
<TextBlock Grid.Row="0" Grid.Column="1" Text="Search" Margin="8,4,8,4"/>
|
|
</Grid>
|
|
|
|
<ListView Grid.Row="2" SelectionMode="Single" ItemsSource="{Binding Builds}" SelectedItem="{Binding SelectedBuild}" BorderBrush="Transparent" Name="SelectedBuild" GridViewColumnHeader.Click="BuildsHeader_Click">
|
|
<ListView.ContextMenu>
|
|
<ContextMenu>
|
|
<MenuItem Header="Copy Build CL" Command="{Binding CopyBuildCLClicked}" />
|
|
<MenuItem Header="Open Build Location" Command="{Binding OpenBuildLocationClicked}" />
|
|
</ContextMenu>
|
|
</ListView.ContextMenu>
|
|
<ListView.View>
|
|
<GridView>
|
|
<GridViewColumn x:Name="colStream" Width="200" Header="Stream" DisplayMemberBinding="{Binding Stream}" />
|
|
<GridViewColumn x:Name="colCL" Width="100" Header="CL" DisplayMemberBinding="{Binding CL}" />
|
|
<GridViewColumn x:Name="colSuffix" Width="100" Header="Suffix" DisplayMemberBinding="{Binding Suffix}" />
|
|
</GridView>
|
|
</ListView.View>
|
|
</ListView>
|
|
</Grid>
|
|
</GroupBox>
|
|
|
|
<!-- Platforms Groupbox -->
|
|
<GroupBox Grid.Row="1" MinHeight="62" DataContext="{Binding SelectedItem, ElementName=SelectedBuild}" Visibility="{Binding SelectedItem, ElementName=SelectedBuild, Converter={StaticResource VisConv_Collapsed}}">
|
|
|
|
<GroupBox.Header>
|
|
<Grid>
|
|
<TextBlock Margin="4" Visibility="{Binding Path=OnRefreshPlatformsClicked.Enabled, Converter={StaticResource VisConv_Collapsed}}">
|
|
<Run Text="Platforms -"/>
|
|
<Hyperlink Command="{Binding OnRefreshPlatformsClicked}">Refresh</Hyperlink>
|
|
</TextBlock>
|
|
|
|
<TextBlock Margin="4" Visibility="{Binding Path=OnStopRefreshPlatformsClicked.Enabled, Converter={StaticResource VisConv_Collapsed}}">
|
|
<Run Text="Platforms -"/>
|
|
<Hyperlink Command="{Binding OnStopRefreshPlatformsClicked}">Stop</Hyperlink>
|
|
</TextBlock>
|
|
</Grid>
|
|
</GroupBox.Header>
|
|
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="auto"/>
|
|
<RowDefinition Height="*"/>
|
|
</Grid.RowDefinitions>
|
|
|
|
<ProgressBar Grid.Row="0" IsIndeterminate="True" Visibility="{Binding Path=OnStopRefreshPlatformsClicked.Enabled, Converter={StaticResource VisConv_Hidden}}" Margin="4,2,4,2"/>
|
|
|
|
<TextBlock Grid.Row="0" Grid.RowSpan="2" Text="No platforms found for this build" VerticalAlignment="Center" HorizontalAlignment="Center">
|
|
<TextBlock.Visibility>
|
|
<MultiBinding Converter="{StaticResource VisConv_All_Collapsed}">
|
|
<Binding Path="Platforms.Count" Converter="{StaticResource NotConv}"/>
|
|
<Binding Path="OnRefreshPlatformsClicked.Enabled"/>
|
|
</MultiBinding>
|
|
</TextBlock.Visibility>
|
|
</TextBlock>
|
|
|
|
<ListView Grid.Row="1" Foreground="Transparent" Background="Transparent" BorderBrush="Transparent" ItemsSource="{Binding Platforms}" Name="SelectedPlatforms">
|
|
<ListView.ItemTemplate>
|
|
<DataTemplate>
|
|
<CheckBox Margin="4,0,4,0" Content="{Binding Platform}" IsChecked="{Binding Path=IsSelected, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type ListViewItem}}}"/>
|
|
</DataTemplate>
|
|
</ListView.ItemTemplate>
|
|
<ListView.ItemsPanel>
|
|
<ItemsPanelTemplate>
|
|
<WrapPanel Orientation="Horizontal"
|
|
Width="{Binding RelativeSource={RelativeSource FindAncestor,AncestorType={x:Type ScrollViewer}},Path=ActualWidth}"/>
|
|
</ItemsPanelTemplate>
|
|
</ListView.ItemsPanel>
|
|
<ListView.ItemContainerStyle>
|
|
<Style TargetType="ListViewItem">
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="ListViewItem">
|
|
<ContentPresenter/>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
</ListView.ItemContainerStyle>
|
|
</ListView>
|
|
</Grid>
|
|
|
|
</GroupBox>
|
|
|
|
<!-- Destination Path -->
|
|
<GroupBox Grid.Row="2">
|
|
<GroupBox.Header>
|
|
<Grid>
|
|
<TextBlock Margin="4" Visibility="{Binding Path=!ResetDestinationClicked.Enabled, Converter={StaticResource VisConv_Collapsed}}">
|
|
<Run Text="Destination"/>
|
|
</TextBlock>
|
|
<TextBlock Margin="4" Visibility="{Binding Path=ResetDestinationClicked.Enabled, Converter={StaticResource VisConv_Collapsed}}">
|
|
<Run Text="Destination - "/>
|
|
<Hyperlink Command="{Binding ResetDestinationClicked}">Reset</Hyperlink>
|
|
</TextBlock>
|
|
</Grid>
|
|
</GroupBox.Header>
|
|
|
|
<local:SelectFolderControl SelectedPath="{Binding DstPath, UpdateSourceTrigger=PropertyChanged}" Description="Select a destination directory to sync builds to."/>
|
|
</GroupBox>
|
|
|
|
<!-- Start sync -->
|
|
<TextBlock Grid.Row="3" Margin="4" HorizontalAlignment="Center">
|
|
<Hyperlink Command="{Binding OnStartSync}" CommandParameter="{Binding SelectedItems, ElementName=SelectedPlatforms}">
|
|
<Hyperlink.IsEnabled>
|
|
<MultiBinding Converter="{StaticResource BoolConv_All}">
|
|
<Binding ElementName="SelectedPlatforms" Path="SelectedItems.Count"/>
|
|
<Binding Path="DstPath.Length"/>
|
|
</MultiBinding>
|
|
</Hyperlink.IsEnabled>
|
|
Start Sync
|
|
</Hyperlink>
|
|
</TextBlock>
|
|
</Grid>
|
|
</UserControl>
|