Files
UVtools/UVtools.WPF/Controls/Tools/ToolLayerExportGifControl.axaml
Tiago Conceição 15c500ecaf v3.5.0
- **PCB Exposure:**
   - (Add) Able to select multiple files and create a layer per file or merge them into one layer
   - (Add) Able to import files from a zip file
   - (Improvement) Round pixel coordinates and line thickness
   - (Improvement) Better position precision for primitives
   - (Improvement) Disable the ok button if no files were selected
   - (Change) Do not auto mirror based on printer lcd mirror type
   - (Fix) Limit line thickness to 1px minimum
   - (Fix) Allow leading zero omit from XY coordinates (#492)
   - (Fix) Mirror option was shifting the board position
- (Add) Calibrate - Blooming effect: Generates test models with various strategies and increments to measure the blooming effect
- (Add) Setting: Issues - Default order by, changes the default order on the issues list (#482)
- (Improvement) CTBv4 and encrypted: Fetch `BottomWaitTimes` virtual property from first bottom layer that has at least 2 pixels (#483)
- (Fix) Linux: Enable desktop integration for AppImages (#490)
- (Fix) Extracting zip contents inside folders would cause a error and not extract those contents
- (Upgrade) AvaloniaUI from 0.10.14 to 0.10.15 [Fixes auto-size problems]
2022-06-19 04:19:23 +01:00

127 lines
5.2 KiB
XML

<UserControl xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:i="clr-namespace:Projektanker.Icons.Avalonia;assembly=Projektanker.Icons.Avalonia"
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
x:Class="UVtools.WPF.Controls.Tools.ToolLayerExportGifControl">
<StackPanel Spacing="10">
<StackPanel Orientation="Horizontal" Spacing="5">
<TextBox
Watermark="Output filepath"
UseFloatingWatermark="True"
VerticalAlignment="Center"
IsReadOnly="True"
Width="500"
Text="{Binding Operation.FilePath}"/>
<Button
VerticalAlignment="Stretch"
Command="{Binding ChooseFilePath}"
i:Attached.Icon="fa-solid fa-folder"/>
</StackPanel>
<CheckBox
Content="Clip layer image by volume bounds"
IsChecked="{Binding Operation.ClipByVolumeBounds}"/>
<CheckBox
Content="Render the layer number/count"
IsChecked="{Binding Operation.RenderLayerCount}"/>
<Grid RowDefinitions="Auto,10,Auto,10,Auto,10,Auto,10,Auto,10,Auto,10"
ColumnDefinitions="Auto,10,180,5,Auto,20,Auto">
<TextBlock Grid.Row="0" Grid.Column="0"
VerticalAlignment="Center"
ToolTip.Tip="Frames-per-second: Number of shown layers within a second"
Text="FPS:" />
<NumericUpDown Grid.Row="0" Grid.Column="2"
Minimum="1"
Maximum="255"
Value="{Binding Operation.FPS}"/>
<TextBlock Grid.Row="0" Grid.Column="4"
VerticalAlignment="Center"
ToolTip.Tip="Time that each layer is visible in milliseconds"
Text="{Binding Operation.FPSToMilliseconds, StringFormat={}{0}ms}" />
<TextBlock Grid.Row="0" Grid.Column="6"
VerticalAlignment="Center"
Text="{Binding Operation.GifDurationSeconds, StringFormat=GIF duration: {0}s}" />
<TextBlock Grid.Row="2" Grid.Column="0"
VerticalAlignment="Center"
ToolTip.Tip="Number of times to loop the animation.
&#x0a;0 = Infinite loop."
Text="Repeats:" />
<NumericUpDown Grid.Row="2" Grid.Column="2"
Classes="ValueLabel ValueLabel_times"
Minimum="0"
Maximum="65535"
Value="{Binding Operation.Repeats}"/>
<TextBlock Grid.Row="2" Grid.Column="4"
VerticalAlignment="Center"
Text="times" />
<TextBlock Grid.Row="4" Grid.Column="0"
VerticalAlignment="Center"
ToolTip.Tip="After pack a layer, skip the following layers by this value"
Text="Skip:" />
<NumericUpDown Grid.Row="4" Grid.Column="2"
Classes="ValueLabel ValueLabel_layers"
Minimum="0"
Maximum="65535"
Value="{Binding Operation.Skip}"/>
<TextBlock Grid.Row="4" Grid.Column="4"
VerticalAlignment="Center"
Text="layers" />
<TextBlock Grid.Row="4" Grid.Column="6"
VerticalAlignment="Center"
Text="{Binding Operation.TotalLayers, StringFormat=Layers to pack: {0}}" />
<TextBlock Grid.Row="6" Grid.Column="0"
VerticalAlignment="Center"
ToolTip.Tip="Scale layer resolution by this percentage amount."
Text="Scale:" />
<NumericUpDown Grid.Row="6" Grid.Column="2"
Classes="ValueLabel ValueLabel_percent"
Minimum="1"
Maximum="100"
FormatString="F2"
Value="{Binding Operation.Scale}"/>
<TextBlock Grid.Row="8" Grid.Column="0"
VerticalAlignment="Center"
Text="Rotate:" />
<ComboBox Grid.Row="8" Grid.Column="2"
Grid.ColumnSpan="3"
HorizontalAlignment="Stretch"
Items="{Binding Operation.RotateDirection, Converter={StaticResource EnumToCollectionConverter}, Mode=OneTime}"
SelectedItem="{Binding Operation.RotateDirection, Converter={StaticResource FromValueDescriptionToEnumConverter}}"/>
<TextBlock Grid.Row="10" Grid.Column="0"
VerticalAlignment="Center"
Text="Flip:" />
<ComboBox Grid.Row="10" Grid.Column="2"
Grid.ColumnSpan="3"
HorizontalAlignment="Stretch"
Items="{Binding Operation.FlipDirection, Converter={StaticResource EnumToCollectionConverter}, Mode=OneTime}"
SelectedItem="{Binding Operation.FlipDirection, Converter={StaticResource FromValueDescriptionToEnumConverter}}"/>
</Grid>
</StackPanel>
</UserControl>