Files
UVtools/UVtools.WPF/Controls/Tools/ToolDynamicLiftsControl.axaml
Tiago Conceição 439e0d162c v3.8.2
- **Dynamic lifts:**
  - (Improvement) Remove the 'light-off delay' set logic as it is now better integrated on 'Wait time before cure' suggestion and should run/applied there if intended
  - (Fix) Prevent set NaN values to lift height and/or speed
  - (Fix) Lift height and speed for the current layer must be calculated from previous layer (#618)
- (Improvement) Windows auto-updater will install the update without dialogs, just displaying installation progress
2022-12-11 05:18:33 +00:00

213 lines
9.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"
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
x:Class="UVtools.WPF.Controls.Tools.ToolDynamicLiftsControl">
<StackPanel Spacing="10">
<Grid RowDefinitions="Auto,20,Auto,10,Auto,10,Auto,10,Auto,10,Auto"
ColumnDefinitions="Auto,10,180,Auto,210,10,Auto">
<TextBlock Grid.Row="0" Grid.Column="0"
VerticalAlignment="Center"
Text="Set method:"/>
<ComboBox Grid.Row="0" Grid.Column="2" Grid.ColumnSpan="5"
HorizontalAlignment="Stretch"
Width="500"
Items="{Binding Operation.SetMethod, Converter={StaticResource EnumToCollectionConverter}, Mode=OneTime}"
SelectedItem="{Binding Operation.SetMethod, Converter={StaticResource FromValueDescriptionToEnumConverter}}"/>
<TextBlock Grid.Row="2" Grid.Column="0"
VerticalAlignment="Center"
HorizontalAlignment="Center"
FontWeight="Bold"
Text="Property"/>
<TextBlock Grid.Row="2" Grid.Column="2"
VerticalAlignment="Center"
HorizontalAlignment="Center"
FontWeight="Bold"
Text="Height"/>
<TextBlock Grid.Row="2" Grid.Column="4"
VerticalAlignment="Center"
HorizontalAlignment="Center"
FontWeight="Bold"
Text="Speed"/>
<TextBlock Grid.Row="2" Grid.Column="6"
VerticalAlignment="Center"
HorizontalAlignment="Center"
FontWeight="Bold"
Text="View"/>
<TextBlock Grid.Row="4" Grid.Column="0"
IsEnabled="{Binding Operation.LayerRangeHaveBottoms}"
VerticalAlignment="Center"
Text="Smallest bottom lift:"/>
<NumericUpDown Grid.Row="4" Grid.Column="2"
Classes="ValueLabel ValueLabel_mm"
IsEnabled="{Binding Operation.LayerRangeHaveBottoms}"
VerticalAlignment="Center"
Minimum="1"
Maximum="100"
Increment="0.5"
FormatString="F2"
Value="{Binding Operation.SmallestBottomLiftHeight}"/>
<TextBlock Grid.Row="4" Grid.Column="3"
Margin="5,0"
IsEnabled="{Binding Operation.LayerRangeHaveBottoms}"
VerticalAlignment="Center"
Text="@"/>
<NumericUpDown Grid.Row="4" Grid.Column="4"
Classes="ValueLabel ValueLabel_mmmin"
IsEnabled="{Binding Operation.LayerRangeHaveBottoms}"
VerticalAlignment="Center"
Minimum="5"
Maximum="1000"
Increment="1"
FormatString="F2"
Value="{Binding Operation.FastestBottomLiftSpeed}"/>
<Button Grid.Row="4" Grid.Column="6"
IsEnabled="{Binding Operation.LayerRangeHaveBottoms}"
VerticalAlignment="Stretch"
HorizontalAlignment="Stretch"
HorizontalContentAlignment="Center"
ToolTip.Tip="View the smallest bottom layer for the selected layer range"
Command="{Binding ViewSmallestLayer}"
CommandParameter="True"
Content="Smallest"/>
<TextBlock Grid.Row="6" Grid.Column="0"
IsEnabled="{Binding Operation.LayerRangeHaveBottoms}"
VerticalAlignment="Center"
Text="Largest bottom lift:"/>
<NumericUpDown Grid.Row="6" Grid.Column="2"
Classes="ValueLabel ValueLabel_mm"
IsEnabled="{Binding Operation.LayerRangeHaveBottoms}"
VerticalAlignment="Center"
Minimum="1"
Maximum="100"
Increment="0.5"
FormatString="F2"
Value="{Binding Operation.LargestBottomLiftHeight}"/>
<TextBlock Grid.Row="6" Grid.Column="3"
Margin="5,0"
IsEnabled="{Binding Operation.LayerRangeHaveBottoms}"
VerticalAlignment="Center"
Text="@"/>
<NumericUpDown Grid.Row="6" Grid.Column="4"
Classes="ValueLabel ValueLabel_mmmin"
IsEnabled="{Binding Operation.LayerRangeHaveBottoms}"
VerticalAlignment="Center"
Minimum="5"
Maximum="1000"
Increment="1"
FormatString="F2"
Value="{Binding Operation.SlowestBottomLiftSpeed}"/>
<Button Grid.Row="6" Grid.Column="6"
IsEnabled="{Binding Operation.LayerRangeHaveBottoms}"
VerticalAlignment="Stretch"
HorizontalAlignment="Stretch"
HorizontalContentAlignment="Center"
Command="{Binding ViewLargestLayer}"
CommandParameter="True"
ToolTip.Tip="View the largest bottom layer for the selected layer range"
Content="Largest"/>
<TextBlock Grid.Row="8" Grid.Column="0"
IsEnabled="{Binding Operation.LayerRangeHaveNormals}"
VerticalAlignment="Center"
Text="Smallest lift:"/>
<NumericUpDown Grid.Row="8" Grid.Column="2"
Classes="ValueLabel ValueLabel_mm"
IsEnabled="{Binding Operation.LayerRangeHaveNormals}"
VerticalAlignment="Center"
Minimum="1"
Maximum="100"
Increment="0.5"
FormatString="F2"
Value="{Binding Operation.SmallestLiftHeight}"/>
<TextBlock Grid.Row="8" Grid.Column="3"
Margin="5,0"
IsEnabled="{Binding Operation.LayerRangeHaveBottoms}"
VerticalAlignment="Center"
Text="@"/>
<NumericUpDown Grid.Row="8" Grid.Column="4"
Classes="ValueLabel ValueLabel_mmmin"
IsEnabled="{Binding Operation.LayerRangeHaveNormals}"
VerticalAlignment="Center"
Minimum="5"
Maximum="1000"
Increment="1"
FormatString="F2"
Value="{Binding Operation.FastestLiftSpeed}"/>
<Button Grid.Row="8" Grid.Column="6"
IsEnabled="{Binding Operation.LayerRangeHaveNormals}"
VerticalAlignment="Stretch"
HorizontalAlignment="Stretch"
HorizontalContentAlignment="Center"
Command="{Binding ViewSmallestLayer}"
CommandParameter="False"
ToolTip.Tip="View the smallest normal layer for the selected layer range"
Content="Smallest"/>
<TextBlock Grid.Row="10" Grid.Column="0"
IsEnabled="{Binding Operation.LayerRangeHaveNormals}"
VerticalAlignment="Center"
Text="Largest lift:"/>
<NumericUpDown Grid.Row="10" Grid.Column="2"
Classes="ValueLabel ValueLabel_mm"
IsEnabled="{Binding Operation.LayerRangeHaveNormals}"
VerticalAlignment="Center"
Minimum="1"
Maximum="100"
Increment="0.5"
FormatString="F2"
Value="{Binding Operation.LargestLiftHeight}"/>
<TextBlock Grid.Row="10" Grid.Column="3"
Margin="5,0"
IsEnabled="{Binding Operation.LayerRangeHaveBottoms}"
VerticalAlignment="Center"
Text="@"/>
<NumericUpDown Grid.Row="10" Grid.Column="4"
Classes="ValueLabel ValueLabel_mmmin"
IsEnabled="{Binding Operation.LayerRangeHaveNormals}"
VerticalAlignment="Center"
Minimum="5"
Maximum="1000"
Increment="1"
FormatString="F2"
Value="{Binding Operation.SlowestLiftSpeed}"/>
<Button Grid.Row="10" Grid.Column="6"
IsEnabled="{Binding Operation.LayerRangeHaveNormals}"
VerticalAlignment="Stretch"
HorizontalAlignment="Stretch"
HorizontalContentAlignment="Center"
Command="{Binding ViewLargestLayer}"
CommandParameter="False"
ToolTip.Tip="View the largest normal layer for the selected layer range"
Content="Largest"/>
</Grid>
</StackPanel>
</UserControl>