170 lines
9.0 KiB
XML
170 lines
9.0 KiB
XML
<Window x:Class="XplorePlane.Views.SettingsWindow"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
Title="系统设置"
|
|
Width="860"
|
|
Height="620"
|
|
MinWidth="760"
|
|
MinHeight="540"
|
|
WindowStartupLocation="CenterOwner"
|
|
ShowInTaskbar="False"
|
|
Background="#F5F5F5">
|
|
<Window.Resources>
|
|
<Style x:Key="SectionTitleStyle" TargetType="TextBlock">
|
|
<Setter Property="FontSize" Value="16" />
|
|
<Setter Property="FontWeight" Value="SemiBold" />
|
|
<Setter Property="Foreground" Value="#1F1F1F" />
|
|
<Setter Property="Margin" Value="0,0,0,12" />
|
|
</Style>
|
|
|
|
<Style x:Key="CardStyle" TargetType="Border">
|
|
<Setter Property="Background" Value="White" />
|
|
<Setter Property="BorderBrush" Value="#D9D9D9" />
|
|
<Setter Property="BorderThickness" Value="1" />
|
|
<Setter Property="CornerRadius" Value="6" />
|
|
<Setter Property="Padding" Value="16" />
|
|
<Setter Property="Margin" Value="0,0,0,12" />
|
|
</Style>
|
|
|
|
<Style x:Key="ActionButtonStyle" TargetType="Button">
|
|
<Setter Property="Height" Value="32" />
|
|
<Setter Property="MinWidth" Value="96" />
|
|
<Setter Property="Margin" Value="0,0,10,10" />
|
|
<Setter Property="Padding" Value="12,0" />
|
|
</Style>
|
|
</Window.Resources>
|
|
|
|
<DockPanel Margin="12">
|
|
<TabControl Background="White">
|
|
<TabItem Header="通用">
|
|
<ScrollViewer VerticalScrollBarVisibility="Auto">
|
|
<StackPanel Margin="16">
|
|
<TextBlock Style="{StaticResource SectionTitleStyle}" Text="通用设置" />
|
|
|
|
<Border Style="{StaticResource CardStyle}">
|
|
<StackPanel>
|
|
<TextBlock FontSize="13"
|
|
FontWeight="SemiBold"
|
|
Text="XP 数据目录" />
|
|
<TextBlock Margin="0,8,0,8"
|
|
Foreground="#666666"
|
|
Text="Plan 用于 CNC 默认保存和加载,Tools 用于流程图配方 xpm,Data 用于执行结果和中间图像,Report 为报告预留目录。" />
|
|
|
|
<Grid Margin="0,4,0,0">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="120" />
|
|
<ColumnDefinition Width="*" />
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="Auto" />
|
|
</Grid.ColumnDefinitions>
|
|
<TextBlock Grid.Column="0"
|
|
VerticalAlignment="Center"
|
|
Text="数据根目录" />
|
|
<TextBox Grid.Column="1"
|
|
Height="30"
|
|
Margin="0,0,10,0"
|
|
Padding="8,0"
|
|
Text="{Binding DataRootPath, UpdateSourceTrigger=PropertyChanged}" />
|
|
<Button Grid.Column="2"
|
|
Command="{Binding BrowseDataRootPathCommand}"
|
|
Content="浏览"
|
|
Style="{StaticResource ActionButtonStyle}" />
|
|
<Button Grid.Column="3"
|
|
Command="{Binding ResetDataRootPathCommand}"
|
|
Content="恢复默认"
|
|
Style="{StaticResource ActionButtonStyle}" />
|
|
<Button Grid.Column="4"
|
|
Command="{Binding SaveDataRootPathCommand}"
|
|
Content="保存"
|
|
Style="{StaticResource ActionButtonStyle}" />
|
|
</Grid>
|
|
|
|
</StackPanel>
|
|
</Border>
|
|
|
|
<Border Style="{StaticResource CardStyle}">
|
|
<StackPanel>
|
|
<TextBlock FontSize="13"
|
|
FontWeight="SemiBold"
|
|
Text="界面与使用习惯" />
|
|
<CheckBox Margin="0,12,0,0"
|
|
Content="启动时默认显示实时图像" />
|
|
<CheckBox Margin="0,8,0,0"
|
|
Content="允许自动恢复上次工作状态" />
|
|
<CheckBox Margin="0,8,0,0"
|
|
Content="启用状态栏详细提示" />
|
|
</StackPanel>
|
|
</Border>
|
|
|
|
<Border Style="{StaticResource CardStyle}">
|
|
<StackPanel>
|
|
<TextBlock FontSize="13"
|
|
FontWeight="SemiBold"
|
|
Text="调试" />
|
|
<WrapPanel>
|
|
<Button Command="{Binding OpenLibraryVersionsCommand}"
|
|
Content="版本信息"
|
|
Style="{StaticResource ActionButtonStyle}" />
|
|
</WrapPanel>
|
|
</StackPanel>
|
|
</Border>
|
|
</StackPanel>
|
|
</ScrollViewer>
|
|
</TabItem>
|
|
|
|
<TabItem Header="报告">
|
|
<ScrollViewer VerticalScrollBarVisibility="Auto">
|
|
<StackPanel Margin="16">
|
|
<TextBlock Style="{StaticResource SectionTitleStyle}" Text="报告设置" />
|
|
|
|
<Border Style="{StaticResource CardStyle}">
|
|
<StackPanel>
|
|
<TextBlock FontSize="13"
|
|
FontWeight="SemiBold"
|
|
Text="报告模板" />
|
|
<TextBlock Margin="0,10,0,8"
|
|
Foreground="#666666"
|
|
Text="这里预留报告输出相关设置,可继续扩展公司信息、模板路径、签核信息和导出规则。" />
|
|
|
|
<Grid Margin="0,4,0,0">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="120" />
|
|
<ColumnDefinition Width="*" />
|
|
</Grid.ColumnDefinitions>
|
|
<TextBlock Grid.Column="0"
|
|
VerticalAlignment="Center"
|
|
Text="报告标题" />
|
|
<TextBox Grid.Column="1"
|
|
Height="30"
|
|
Padding="8,0"
|
|
Text="检测报告" />
|
|
</Grid>
|
|
|
|
<Grid Margin="0,10,0,0">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="120" />
|
|
<ColumnDefinition Width="*" />
|
|
</Grid.ColumnDefinitions>
|
|
<TextBlock Grid.Column="0"
|
|
VerticalAlignment="Center"
|
|
Text="模板路径" />
|
|
<TextBox Grid.Column="1"
|
|
Height="30"
|
|
Padding="8,0"
|
|
Text="D:\XPData\Report\Templates\Default" />
|
|
</Grid>
|
|
|
|
<CheckBox Margin="0,12,0,0"
|
|
Content="导出时自动附带原始图像" />
|
|
<CheckBox Margin="0,8,0,0"
|
|
Content="导出时自动附带处理结果图像" />
|
|
</StackPanel>
|
|
</Border>
|
|
</StackPanel>
|
|
</ScrollViewer>
|
|
</TabItem>
|
|
</TabControl>
|
|
</DockPanel>
|
|
</Window>
|