diff options
Diffstat (limited to 'UVtools.WPF/Controls/Calibrators/CalibrateExposureFinderControl.axaml')
-rw-r--r-- | UVtools.WPF/Controls/Calibrators/CalibrateExposureFinderControl.axaml | 185 |
1 files changed, 158 insertions, 27 deletions
diff --git a/UVtools.WPF/Controls/Calibrators/CalibrateExposureFinderControl.axaml b/UVtools.WPF/Controls/Calibrators/CalibrateExposureFinderControl.axaml index 5e7456b..c61c1f5 100644 --- a/UVtools.WPF/Controls/Calibrators/CalibrateExposureFinderControl.axaml +++ b/UVtools.WPF/Controls/Calibrators/CalibrateExposureFinderControl.axaml @@ -25,7 +25,7 @@ ToolTip.Tip="The printer display width. Required to calculate the pixels per mm." Text="Display width:"/> <NumericUpDown Grid.Row="0" Grid.Column="2" - ClipValueToMinMax="True" + Increment="0.1" Minimum="0" Maximum="10000" @@ -40,7 +40,7 @@ ToolTip.Tip="The printer display height. Required to calculate the pixels per mm." Text="Display height:"/> <NumericUpDown Grid.Row="0" Grid.Column="8" - ClipValueToMinMax="True" + Increment="0.1" Minimum="0" Maximum="10000" @@ -68,7 +68,7 @@ VerticalAlignment="Center" Text="Bottom layers:"/> <NumericUpDown Grid.Row="2" Grid.Column="8" - ClipValueToMinMax="True" + Increment="1" Minimum="1" Maximum="1000" @@ -81,7 +81,7 @@ VerticalAlignment="Center" Text="Bottom exposure:"/> <NumericUpDown Grid.Row="4" Grid.Column="2" - ClipValueToMinMax="True" + Increment="0.5" Minimum="0.1" Maximum="200" @@ -95,7 +95,7 @@ VerticalAlignment="Center" Text="Normal exposure:"/> <NumericUpDown Grid.Row="4" Grid.Column="8" - ClipValueToMinMax="True" + Increment="0.5" Minimum="0.1" Maximum="200" @@ -109,7 +109,7 @@ VerticalAlignment="Center" Text="Top/bottom margin:"/> <NumericUpDown Grid.Row="6" Grid.Column="2" - ClipValueToMinMax="True" + Increment="0.5" Minimum="0" Maximum="1000" @@ -122,7 +122,7 @@ VerticalAlignment="Center" Text="Left/right margin:"/> <NumericUpDown Grid.Row="6" Grid.Column="8" - ClipValueToMinMax="True" + Increment="0.5" Minimum="0" Maximum="1000" @@ -135,7 +135,7 @@ VerticalAlignment="Center" Text="Part margin:"/> <NumericUpDown Grid.Row="8" Grid.Column="2" - ClipValueToMinMax="True" + Increment="1" Minimum="0" Maximum="10000" @@ -149,7 +149,7 @@ ToolTip.Tip="Chamfer the bottom and top layers" Text="Chamfer layers:"/> <NumericUpDown Grid.Row="10" Grid.Column="2" - ClipValueToMinMax="True" + Increment="1" Minimum="0" Maximum="255" @@ -161,7 +161,7 @@ ToolTip.Tip="Erode bottom iterations to counter the elephant foot" Text="Erode bottom iter.:"/> <NumericUpDown Grid.Row="10" Grid.Column="8" - ClipValueToMinMax="True" + Increment="1" Minimum="0" Maximum="255" @@ -191,13 +191,13 @@ </Expander.Header> - <Grid RowDefinitions="Auto,10,Auto,10,Auto" + <Grid RowDefinitions="Auto,10,Auto,10,Auto,10,Auto,10,Auto,10,Auto,10,Auto,10,Auto,10,Auto,10,Auto" ColumnDefinitions="Auto,10,Auto,5,Auto,20,Auto,10,Auto,5,Auto,20,Auto,10,Auto,5,Auto"> <TextBlock Grid.Row="0" Grid.Column="0" Text="Base height:" VerticalAlignment="Center"/> <NumericUpDown Grid.Row="0" Grid.Column="2" - ClipValueToMinMax="True" + Increment="0.5" Minimum="0.3" Maximum="100" @@ -208,79 +208,210 @@ Text="mm"/> <TextBlock Grid.Row="0" Grid.Column="6" - Text="Hole height:" + Text="Features height:" VerticalAlignment="Center"/> <NumericUpDown Grid.Row="0" Grid.Column="8" - ClipValueToMinMax="True" + Increment="0.5" Minimum="1" Maximum="100" FormatString="F02" - Value="{Binding Operation.HoleHeight}"/> + Value="{Binding Operation.FeaturesHeight}"/> <TextBlock Grid.Row="0" Grid.Column="10" VerticalAlignment="Center" Text="mm"/> <TextBlock Grid.Row="0" Grid.Column="12" - Text="Hole margin:" + Text="Features margin:" VerticalAlignment="Center"/> <NumericUpDown Grid.Row="0" Grid.Column="14" - ClipValueToMinMax="True" + Increment="0.5" Minimum="1" Maximum="100" FormatString="F02" - Value="{Binding Operation.HoleMargin}"/> + Value="{Binding Operation.FeaturesMargin}"/> <TextBlock Grid.Row="0" Grid.Column="16" VerticalAlignment="Center" Text="mm"/> <TextBlock Grid.Row="2" Grid.Column="0" + Grid.ColumnSpan="17" + FontWeight="Bold" + Text="Pin (positive) / holes (negative):" + VerticalAlignment="Center"/> + + <TextBlock Grid.Row="4" Grid.Column="0" Text="Shape:" VerticalAlignment="Center"/> - <ComboBox Grid.Row="2" Grid.Column="2" + <ComboBox Grid.Row="4" Grid.Column="2" HorizontalAlignment="Stretch" Items="{Binding Operation.ShapesItems}" SelectedItem="{Binding Operation.HoleShape}"/> - <TextBlock Grid.Row="2" Grid.Column="6" + <TextBlock Grid.Row="4" Grid.Column="6" Text="Unit of measure:" VerticalAlignment="Center"/> - <ComboBox Grid.Row="2" Grid.Column="8" + <ComboBox Grid.Row="4" Grid.Column="8" HorizontalAlignment="Stretch" Items="{Binding Operation.MeasuresItems}" SelectedItem="{Binding Operation.UnitOfMeasure}"/> - - <TextBlock Grid.Row="4" Grid.Column="0" + <TextBlock Grid.Row="6" Grid.Column="0" Text="Diameters:" ToolTip.Tip="Diameters separated by a comma (,). 
Order doesn't matter. 
Values are pixel square, eg: 3 = 3x3 = 9 pixel hole" VerticalAlignment="Center"/> - <TextBox Grid.Row="4" Grid.Column="2" + <TextBox Grid.Row="6" Grid.Column="2" Grid.ColumnSpan="13" IsVisible="{Binding Operation.IsUnitOfMeasureMm}" Text="{Binding Operation.HoleDiametersMm}"/> - <TextBox Grid.Row="4" Grid.Column="2" + <TextBox Grid.Row="6" Grid.Column="2" Grid.ColumnSpan="13" IsVisible="{Binding !Operation.IsUnitOfMeasureMm}" Text="{Binding Operation.HoleDiametersPx}"/> - <TextBlock Grid.Row="4" Grid.Column="16" + <TextBlock Grid.Row="6" Grid.Column="16" IsVisible="{Binding Operation.IsUnitOfMeasureMm}" VerticalAlignment="Center" Text="mm"/> - <TextBlock Grid.Row="4" Grid.Column="16" + <TextBlock Grid.Row="6" Grid.Column="16" + IsVisible="{Binding !Operation.IsUnitOfMeasureMm}" + VerticalAlignment="Center" + Text="px"/> + + <TextBlock Grid.Row="8" Grid.Column="0" + Grid.ColumnSpan="17" + FontWeight="Bold" + Text="Zebra bars:" + VerticalAlignment="Center"/> + + + <TextBlock Grid.Row="10" Grid.Column="0" + Text="Bar spacing:" + VerticalAlignment="Center"/> + <NumericUpDown Grid.Row="10" Grid.Column="2" + + Increment="0.5" + Minimum="0.01" + Maximum="100" + FormatString="F02" + Value="{Binding Operation.BarSpacing}"/> + <TextBlock Grid.Row="10" Grid.Column="4" + VerticalAlignment="Center" + Text="mm"/> + + <TextBlock Grid.Row="10" Grid.Column="6" + Text="Bar length:" + HorizontalAlignment="Right" + VerticalAlignment="Center"/> + <NumericUpDown Grid.Row="10" Grid.Column="8" + + Increment="0.5" + Minimum="0.01" + Maximum="100" + FormatString="F02" + Value="{Binding Operation.BarLength}"/> + <TextBlock Grid.Row="10" Grid.Column="10" + VerticalAlignment="Center" + Text="mm"/> + + <TextBlock Grid.Row="10" Grid.Column="12" + Text="Vertical splitter:" + HorizontalAlignment="Right" + VerticalAlignment="Center"/> + <NumericUpDown Grid.Row="10" Grid.Column="14" + + Increment="1" + Minimum="0" + Maximum="255" + FormatString="F02" + Value="{Binding Operation.BarVerticalSplitter}"/> + <TextBlock Grid.Row="10" Grid.Column="16" + VerticalAlignment="Center" + Text="px"/> + + <TextBlock Grid.Row="12" Grid.Column="0" + Text="Thicknesses:" + VerticalAlignment="Center"/> + + <TextBox Grid.Row="12" Grid.Column="2" + Grid.ColumnSpan="13" + IsVisible="{Binding Operation.IsUnitOfMeasureMm}" + Text="{Binding Operation.BarThicknessesMm}"/> + + <TextBox Grid.Row="12" Grid.Column="2" + Grid.ColumnSpan="13" + IsVisible="{Binding !Operation.IsUnitOfMeasureMm}" + Text="{Binding Operation.BarThicknessesPx}"/> + <TextBlock Grid.Row="12" Grid.Column="16" + IsVisible="{Binding Operation.IsUnitOfMeasureMm}" + VerticalAlignment="Center" + Text="mm"/> + <TextBlock Grid.Row="12" Grid.Column="16" IsVisible="{Binding !Operation.IsUnitOfMeasureMm}" VerticalAlignment="Center" Text="px"/> + + <TextBlock Grid.Row="14" Grid.Column="0" + Grid.ColumnSpan="17" + FontWeight="Bold" + Text="Text:" + VerticalAlignment="Center"/> + + <TextBlock Grid.Row="16" Grid.Column="0" + Text="Font:" + VerticalAlignment="Center"/> + <ComboBox Grid.Row="16" Grid.Column="2" + Grid.ColumnSpan="2" + VerticalAlignment="Center" + HorizontalAlignment="Stretch" + Items="{Binding Operation.TextFonts}" + SelectedItem="{Binding Operation.TextFont}" + /> + + <TextBlock Grid.Row="16" Grid.Column="6" + Text="Text scale:" + HorizontalAlignment="Right" + VerticalAlignment="Center"/> + <NumericUpDown Grid.Row="16" Grid.Column="8" + Increment="0.5" + Minimum="0.1" + Maximum="100" + FormatString="F02" + Value="{Binding Operation.TextScale}"/> + <TextBlock Grid.Row="16" Grid.Column="10" + VerticalAlignment="Center" + Text="x"/> + + <TextBlock Grid.Row="16" Grid.Column="12" + Text="Text thickness:" + HorizontalAlignment="Right" + VerticalAlignment="Center"/> + <NumericUpDown Grid.Row="16" Grid.Column="14" + Increment="1" + Minimum="1" + Maximum="255" + Value="{Binding Operation.TextThickness}"/> + <TextBlock Grid.Row="16" Grid.Column="16" + VerticalAlignment="Center" + Text="px"/> + + <TextBlock Grid.Row="18" Grid.Column="0" + Text="Thicknesses:" + VerticalAlignment="Center"/> + + <TextBox Grid.Row="18" Grid.Column="2" + Grid.ColumnSpan="13" + Text="{Binding Operation.Text}"/> + </Grid> </Expander> |