|
|
@@ -308,11 +308,18 @@
|
|
|
Grid.Column="1"
|
|
|
Margin="0,2,0,0"
|
|
|
IsChecked="{Binding SelectProcedure.IsExcludeNearPoint,Mode=TwoWay}" />
|
|
|
- <!--点位输出的模式-->
|
|
|
<TextBlock Grid.Row="4"
|
|
|
+ Grid.Column="0"
|
|
|
+ Text="是否启用当前流程图像显示" />
|
|
|
+ <CheckBox Grid.Row="4"
|
|
|
+ Grid.Column="1"
|
|
|
+ Margin="0,2,0,0"
|
|
|
+ IsChecked="{Binding SelectProcedure.IsImageVisibility,Mode=TwoWay}" />
|
|
|
+ <!--点位输出的模式-->
|
|
|
+ <TextBlock Grid.Row="5"
|
|
|
Grid.Column="0"
|
|
|
Text="{lex:Loc 点位输出的模式,Converter={StaticResource StringFormatConverter},ConverterParameter='{}{0}: '}" />
|
|
|
- <ComboBox Grid.Row="4"
|
|
|
+ <ComboBox Grid.Row="5"
|
|
|
Grid.Column="1"
|
|
|
SelectedItem="{Binding SelectProcedure.OutputPointMode,Mode=TwoWay}"
|
|
|
ItemsSource="{ext:EnumBindingSource EnumType=enums:OutputPointMode}"
|
|
|
@@ -320,10 +327,10 @@
|
|
|
BorderThickness="1"
|
|
|
Margin="0,2,0,0" />
|
|
|
<!--视觉引导模式(先拍再振/先振再拍)-->
|
|
|
- <TextBlock Grid.Row="5"
|
|
|
+ <TextBlock Grid.Row="6"
|
|
|
Grid.Column="0"
|
|
|
Text="{lex:Loc 视觉引导模式,Converter={StaticResource StringFormatConverter},ConverterParameter='{}{0}: '}" />
|
|
|
- <ComboBox Grid.Row="5"
|
|
|
+ <ComboBox Grid.Row="6"
|
|
|
Grid.Column="1"
|
|
|
SelectedItem="{Binding SelectProcedure.VibrationModel,Mode=TwoWay}"
|
|
|
ItemsSource="{ext:EnumBindingSource EnumType=enums:VibrationModel}"
|
|
|
@@ -331,30 +338,30 @@
|
|
|
BorderThickness="1"
|
|
|
Margin="0,2,0,0" />
|
|
|
<!--拍照失败Feeder振动最大次数-->
|
|
|
- <TextBlock Grid.Row="6"
|
|
|
+ <TextBlock Grid.Row="7"
|
|
|
Grid.Column="0"
|
|
|
Text="{lex:Loc Feeder最大振动拍照次数,Converter={StaticResource StringFormatConverter},ConverterParameter='{}{0}: '}" />
|
|
|
- <mah:NumericUpDown Grid.Row="6"
|
|
|
+ <mah:NumericUpDown Grid.Row="7"
|
|
|
Grid.Column="1"
|
|
|
Maximum="100"
|
|
|
Minimum="1"
|
|
|
StringFormat="{}{0:N0}"
|
|
|
Value="{Binding SelectProcedure.FeederFailLimit,Mode=TwoWay}" />
|
|
|
<!--每次发送给机器人的点数最大值-->
|
|
|
- <TextBlock Grid.Row="7"
|
|
|
+ <TextBlock Grid.Row="8"
|
|
|
Grid.Column="0"
|
|
|
Text="{lex:Loc 发送给机器人的最大点位数量,Converter={StaticResource StringFormatConverter},ConverterParameter='{}{0}: '}" />
|
|
|
- <mah:NumericUpDown Grid.Row="7"
|
|
|
+ <mah:NumericUpDown Grid.Row="8"
|
|
|
Grid.Column="1"
|
|
|
Maximum="100"
|
|
|
Minimum="1"
|
|
|
StringFormat="{}{0:N0}"
|
|
|
Value="{Binding SelectProcedure.OutputPointCountMax,Mode=TwoWay}" />
|
|
|
<!--视觉流程输出项之间的分割符-->
|
|
|
- <TextBlock Grid.Row="8"
|
|
|
+ <TextBlock Grid.Row="9"
|
|
|
Grid.Column="0"
|
|
|
Text="{lex:Loc 视觉流程输出项之间的分割符,Converter={StaticResource StringFormatConverter},ConverterParameter='{}{0}: '}" />
|
|
|
- <TextBox Grid.Row="8"
|
|
|
+ <TextBox Grid.Row="9"
|
|
|
Grid.Column="1"
|
|
|
Text="{Binding SelectProcedure.OutputSeparator,Mode=TwoWay}"
|
|
|
BorderThickness="1"
|
|
|
@@ -362,44 +369,44 @@
|
|
|
HorizontalAlignment="Stretch"
|
|
|
Margin="0,2,0,0" />
|
|
|
<!--保存图像-->
|
|
|
- <TextBlock Grid.Row="9"
|
|
|
+ <TextBlock Grid.Row="10"
|
|
|
Grid.Column="0"
|
|
|
Text="{lex:Loc 保存图像,Converter={StaticResource StringFormatConverter},ConverterParameter='{}{0}: '}" />
|
|
|
<CheckBox x:Name="chbSaveImage"
|
|
|
- Grid.Row="9"
|
|
|
+ Grid.Row="10"
|
|
|
Grid.Column="1"
|
|
|
d:IsChecked="True"
|
|
|
Content="{lex:Loc 是否保存,Converter={StaticResource StringFormatConverter},ConverterParameter='{}{0}: '}"
|
|
|
IsChecked="{Binding SelectProcedure.IsSaveImage,Mode=TwoWay}"
|
|
|
Style="{StaticResource MaterialDesignLightCheckBox}" />
|
|
|
<!--保存图像模式-->
|
|
|
- <TextBlock Grid.Row="10"
|
|
|
+ <TextBlock Grid.Row="11"
|
|
|
Grid.Column="0"
|
|
|
Visibility="{Binding ElementName=chbSaveImage,Path=IsChecked, Converter={StaticResource BooleanToVisibilityConverter}}"
|
|
|
Text="{lex:Loc 图像存储模式,Converter={StaticResource StringFormatConverter},ConverterParameter='{}{0}: '}" />
|
|
|
- <ComboBox Grid.Row="10"
|
|
|
+ <ComboBox Grid.Row="11"
|
|
|
Grid.Column="1"
|
|
|
Visibility="{Binding ElementName=chbSaveImage,Path=IsChecked, Converter={StaticResource BooleanToVisibilityConverter}}"
|
|
|
materialDesign:HintAssist.Hint="{lex:Loc 图像存储模式}"
|
|
|
SelectedItem="{Binding SelectProcedure.SaveImageModel,Mode=TwoWay}"
|
|
|
ItemsSource="{ext:EnumBindingSource EnumType=enums:ProcedureSaveImageModel}" />
|
|
|
<!--保存图像路径存放模式-->
|
|
|
- <TextBlock Grid.Row="11"
|
|
|
+ <TextBlock Grid.Row="12"
|
|
|
Grid.Column="0"
|
|
|
Visibility="{Binding ElementName=chbSaveImage,Path=IsChecked, Converter={StaticResource BooleanToVisibilityConverter}}"
|
|
|
Text="{lex:Loc 图像路径存储方式,Converter={StaticResource StringFormatConverter},ConverterParameter='{}{0}: '}" />
|
|
|
- <ComboBox Grid.Row="11"
|
|
|
+ <ComboBox Grid.Row="12"
|
|
|
Grid.Column="1"
|
|
|
Visibility="{Binding ElementName=chbSaveImage,Path=IsChecked, Converter={StaticResource BooleanToVisibilityConverter}}"
|
|
|
materialDesign:HintAssist.Hint="{lex:Loc 图像路径存储方式}"
|
|
|
SelectedItem="{Binding SelectProcedure.SaveImagePathModel,Mode=TwoWay}"
|
|
|
ItemsSource="{ext:EnumBindingSource EnumType=enums:ProcedureSaveImagePathModel}" />
|
|
|
<!--保存路径-->
|
|
|
- <TextBlock Grid.Row="12"
|
|
|
+ <TextBlock Grid.Row="13"
|
|
|
Grid.Column="0"
|
|
|
Visibility="{Binding ElementName=chbSaveImage,Path=IsChecked, Converter={StaticResource BooleanToVisibilityConverter}}"
|
|
|
Text="{lex:Loc 保存路径,Converter={StaticResource StringFormatConverter},ConverterParameter='{}{0}: '}" />
|
|
|
- <Grid Grid.Row="12"
|
|
|
+ <Grid Grid.Row="13"
|
|
|
Grid.Column="1"
|
|
|
Visibility="{Binding ElementName=chbSaveImage,Path=IsChecked, Converter={StaticResource BooleanToVisibilityConverter}}">
|
|
|
<Grid.ColumnDefinitions>
|
|
|
@@ -421,40 +428,40 @@
|
|
|
</Button>
|
|
|
</Grid>
|
|
|
<!--是否压缩图像-->
|
|
|
- <TextBlock Grid.Row="13"
|
|
|
+ <TextBlock Grid.Row="14"
|
|
|
Grid.Column="0"
|
|
|
Visibility="{Binding ElementName=chbSaveImage,Path=IsChecked, Converter={StaticResource BooleanToVisibilityConverter}}"
|
|
|
Text="{lex:Loc 压缩图像,Converter={StaticResource StringFormatConverter},ConverterParameter='{}{0}: '}" />
|
|
|
- <CheckBox Grid.Row="13"
|
|
|
+ <CheckBox Grid.Row="14"
|
|
|
Grid.Column="1"
|
|
|
Content="{lex:Loc 是否压缩}"
|
|
|
Visibility="{Binding ElementName=chbSaveImage,Path=IsChecked, Converter={StaticResource BooleanToVisibilityConverter}}"
|
|
|
IsChecked="{Binding SelectProcedure.IsCompress,Mode=TwoWay}"
|
|
|
Style="{StaticResource MaterialDesignLightCheckBox}" />
|
|
|
<!--是否延迟保存图片-->
|
|
|
- <TextBlock Grid.Row="14"
|
|
|
+ <TextBlock Grid.Row="15"
|
|
|
Grid.Column="0"
|
|
|
Visibility="{Binding ElementName=chbSaveImage,Path=IsChecked, Converter={StaticResource BooleanToVisibilityConverter}}"
|
|
|
Text="{lex:Loc 延迟保存图片,Converter={StaticResource StringFormatConverter},ConverterParameter='{}{0}: '}" />
|
|
|
- <CheckBox Grid.Row="14"
|
|
|
+ <CheckBox Grid.Row="15"
|
|
|
Grid.Column="1"
|
|
|
Content="{lex:Loc 是否延迟保存图片}"
|
|
|
Visibility="{Binding ElementName=chbSaveImage,Path=IsChecked, Converter={StaticResource BooleanToVisibilityConverter}}"
|
|
|
IsChecked="{Binding SelectProcedure.IsDelaySaveImage,Mode=TwoWay}"
|
|
|
Style="{StaticResource MaterialDesignLightCheckBox}" />
|
|
|
<!--图片名称格式-->
|
|
|
- <TextBlock Grid.Row="15"
|
|
|
+ <TextBlock Grid.Row="16"
|
|
|
Grid.Column="0"
|
|
|
Visibility="{Binding ElementName=chbSaveImage,Path=IsChecked, Converter={StaticResource BooleanToVisibilityConverter}}"
|
|
|
- Text="图片名称格式:" />
|
|
|
- <TextBox Grid.Row="15"
|
|
|
+ Text="{lex:Loc 图片名称格式}" />
|
|
|
+ <TextBox Grid.Row="16"
|
|
|
Grid.Column="1"
|
|
|
HorizontalAlignment="Stretch"
|
|
|
Visibility="{Binding ElementName=chbSaveImage,Path=IsChecked, Converter={StaticResource BooleanToVisibilityConverter}}"
|
|
|
Text="{Binding SelectProcedure.ImageFileNameFormat,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}">
|
|
|
</TextBox>
|
|
|
<!--示例-->
|
|
|
- <StackPanel Grid.Row="16"
|
|
|
+ <StackPanel Grid.Row="17"
|
|
|
Grid.Column="0"
|
|
|
Grid.ColumnSpan="2"
|
|
|
Orientation="Vertical"
|
|
|
@@ -465,7 +472,7 @@
|
|
|
TextTrimming="CharacterEllipsis"
|
|
|
TextWrapping="Wrap"
|
|
|
Width="{Binding Width, ElementName=grid}" />
|
|
|
- <TextBlock Text="转换后的名称:"
|
|
|
+ <TextBlock Text="{lex:Loc 转换后的名称}"
|
|
|
Foreground="Gray"
|
|
|
FontSize="10" />
|
|
|
<TextBlock Text="{Binding SelectProcedure.ImageFileNameFormat,Converter={StaticResource ImageFileNameFormatConverter},Mode=TwoWay}"
|
|
|
@@ -477,7 +484,7 @@
|
|
|
</StackPanel>
|
|
|
|
|
|
<!--自定义参数-->
|
|
|
- <GroupBox Grid.Row="17"
|
|
|
+ <GroupBox Grid.Row="18"
|
|
|
Grid.Column="0"
|
|
|
Grid.ColumnSpan="2"
|
|
|
HorizontalAlignment="Stretch"
|
|
|
@@ -547,10 +554,10 @@
|
|
|
</DataGrid>
|
|
|
</DockPanel>
|
|
|
</GroupBox>
|
|
|
- <TextBlock Grid.Row="18"
|
|
|
+ <TextBlock Grid.Row="19"
|
|
|
Grid.Column="0"
|
|
|
Text="{lex:Loc 重写视觉处理逻辑}" />
|
|
|
- <Button Grid.Row="18"
|
|
|
+ <Button Grid.Row="19"
|
|
|
Grid.Column="1"
|
|
|
Margin="0,2,0,0"
|
|
|
Command="{Binding OverrideVisionTaskCommand}">
|