From cdd1f043e7c5552232d421df6e685b26a843dec4 Mon Sep 17 00:00:00 2001 From: QI Mingxuan Date: Wed, 6 May 2026 17:47:38 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E7=95=8C=E9=9D=A2=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=EF=BC=9A=E5=B0=84=E7=BA=BF=E6=BA=90=E6=A8=A1=E5=9D=97?= =?UTF-8?q?=E7=B4=A7=E5=87=91=E8=AE=BE=E8=AE=A1=EF=BC=8C=E6=8E=A2=E6=B5=8B?= =?UTF-8?q?=E5=99=A8=E4=BC=98=E5=8C=96=E5=B8=83=E5=B1=80=E5=92=8C=E5=A4=A7?= =?UTF-8?q?=E5=B0=8F=EF=BC=8C=E4=BC=98=E5=8C=96=E7=95=8C=E9=9D=A2=E6=8F=90?= =?UTF-8?q?=E7=A4=BA=E5=92=8C=E6=8F=90=E7=A4=BA=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Resources/Resources.Designer.cs | 139 +++++++++++++++++- .../Resources/Resources.en-US.resx | 18 ++- .../Resources/Resources.resx | 5 +- .../Resources/Resources.zh-CN.resx | 18 ++- .../Resources/Resources.zh-TW.resx | 18 ++- .../Views/AxisControlView.xaml | 90 ++++++------ .../Resources/Resources.Designer.cs | 17 ++- .../Resources/Resources.en-US.resx | 70 ++++++++- .../Resources/Resources.resx | 72 ++++++++- .../Resources/Resources.zh-CN.resx | 70 ++++++++- .../Resources/Resources.zh-TW.resx | 70 ++++++++- .../Views/RaySourceOperateView.xaml | 52 ++++--- 12 files changed, 530 insertions(+), 109 deletions(-) diff --git a/XP.Hardware.MotionControl/Resources/Resources.Designer.cs b/XP.Hardware.MotionControl/Resources/Resources.Designer.cs index 0830aba..9c897ae 100644 --- a/XP.Hardware.MotionControl/Resources/Resources.Designer.cs +++ b/XP.Hardware.MotionControl/Resources/Resources.Designer.cs @@ -1,4 +1,4 @@ -//------------------------------------------------------------------------------ +//------------------------------------------------------------------------------ // // 此代码由工具生成。 // 运行时版本:4.0.30319.42000 @@ -19,7 +19,7 @@ namespace XP.Hardware.MotionControl.Resources { // 类通过类似于 ResGen 或 Visual Studio 的工具自动生成的。 // 若要添加或移除成员,请编辑 .ResX 文件,然后重新运行 ResGen // (以 /str 作为命令选项),或重新生成 VS 项目。 - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "18.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "17.0.0.0")] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] internal class Resources { @@ -60,6 +60,132 @@ namespace XP.Hardware.MotionControl.Resources { } } + /// + /// 查找类似 轴位置 的本地化字符串。 + /// + internal static string AC_AxisPositions { + get { + return ResourceManager.GetString("AC_AxisPositions", resourceCulture); + } + } + + /// + /// 查找类似 校准计算值 的本地化字符串。 + /// + internal static string AC_CalibrationValue { + get { + return ResourceManager.GetString("AC_CalibrationValue", resourceCulture); + } + } + + /// + /// 查找类似 探测器摆动 的本地化字符串。 + /// + internal static string AC_DetectorSwing { + get { + return ResourceManager.GetString("AC_DetectorSwing", resourceCulture); + } + } + + /// + /// 查找类似 探测器 Z 的本地化字符串。 + /// + internal static string AC_DetectorZ { + get { + return ResourceManager.GetString("AC_DetectorZ", resourceCulture); + } + } + + /// + /// 查找类似 实体操作摇杆使能 的本地化字符串。 + /// + internal static string AC_Enable { + get { + return ResourceManager.GetString("AC_Enable", resourceCulture); + } + } + + /// + /// 查找类似 夹具旋转 的本地化字符串。 + /// + internal static string AC_FixtureRotation { + get { + return ResourceManager.GetString("AC_FixtureRotation", resourceCulture); + } + } + + /// + /// 查找类似 恢复前一位置 的本地化字符串。 + /// + internal static string AC_Restore { + get { + return ResourceManager.GetString("AC_Restore", resourceCulture); + } + } + + /// + /// 查找类似 安全高度 的本地化字符串。 + /// + internal static string AC_SafetyHeight { + get { + return ResourceManager.GetString("AC_SafetyHeight", resourceCulture); + } + } + + /// + /// 查找类似 安全参数 的本地化字符串。 + /// + internal static string AC_SafetyParams { + get { + return ResourceManager.GetString("AC_SafetyParams", resourceCulture); + } + } + + /// + /// 查找类似 保存当前位置 的本地化字符串。 + /// + internal static string AC_Save { + get { + return ResourceManager.GetString("AC_Save", resourceCulture); + } + } + + /// + /// 查找类似 射线源 Z 的本地化字符串。 + /// + internal static string AC_SourceZ { + get { + return ResourceManager.GetString("AC_SourceZ", resourceCulture); + } + } + + /// + /// 查找类似 载物台旋转 的本地化字符串。 + /// + internal static string AC_StageRotation { + get { + return ResourceManager.GetString("AC_StageRotation", resourceCulture); + } + } + + /// + /// 查找类似 载物台 X 的本地化字符串。 + /// + internal static string AC_StageX { + get { + return ResourceManager.GetString("AC_StageX", resourceCulture); + } + } + + /// + /// 查找类似 载物台 Y 的本地化字符串。 + /// + internal static string AC_StageY { + get { + return ResourceManager.GetString("AC_StageY", resourceCulture); + } + } + /// /// 查找类似 Actual 的本地化字符串。 /// @@ -327,6 +453,15 @@ namespace XP.Hardware.MotionControl.Resources { } } + /// + /// 查找类似 运动控制 的本地化字符串。 + /// + internal static string MC_MotionCtrl { + get { + return ResourceManager.GetString("MC_MotionCtrl", resourceCulture); + } + } + /// /// 查找类似 Move 的本地化字符串。 /// diff --git a/XP.Hardware.MotionControl/Resources/Resources.en-US.resx b/XP.Hardware.MotionControl/Resources/Resources.en-US.resx index c743526..90aaa7d 100644 --- a/XP.Hardware.MotionControl/Resources/Resources.en-US.resx +++ b/XP.Hardware.MotionControl/Resources/Resources.en-US.resx @@ -258,30 +258,29 @@ SourceZ → {3:F2}mm DetectorZ → {4:F2}mm Confirm to filll move matrix? - Axis Positions - Stage X + X mm - Stage Y + Y mm - Source Z + SZ mm - Detector Z + DZ mm - Detector Swing + DT' ° - Stage Rotation + R' ° - Fixture Rotation + FR' ° Safety Parameters @@ -301,4 +300,7 @@ Confirm to filll move matrix? Restore Position + + Motion Control + \ No newline at end of file diff --git a/XP.Hardware.MotionControl/Resources/Resources.resx b/XP.Hardware.MotionControl/Resources/Resources.resx index 6a8829a..42aa50b 100644 --- a/XP.Hardware.MotionControl/Resources/Resources.resx +++ b/XP.Hardware.MotionControl/Resources/Resources.resx @@ -301,7 +301,6 @@ DetectorZ → {4:F2}mm 确认填入信息? | Confirm to filll move matrix? 几何反算确认提示 | Geometry inverse confirmation message - 轴位置 轴位置分组标题 | Axis positions group title @@ -358,4 +357,8 @@ DetectorZ → {4:F2}mm 恢复前一位置 恢复按钮文本 | Restore button text + + 运动控制 + header + \ No newline at end of file diff --git a/XP.Hardware.MotionControl/Resources/Resources.zh-CN.resx b/XP.Hardware.MotionControl/Resources/Resources.zh-CN.resx index 2bc19e5..067d0d6 100644 --- a/XP.Hardware.MotionControl/Resources/Resources.zh-CN.resx +++ b/XP.Hardware.MotionControl/Resources/Resources.zh-CN.resx @@ -258,30 +258,29 @@ SourceZ → {3:F2}mm DetectorZ → {4:F2}mm 确认填入目标值信息? - 轴位置 - 载物台 X + X mm - 载物台 Y + Y mm - 射线源 Z + SZ mm - 探测器 Z + DZ mm - 探测器摆动 + DT' ° - 载物台旋转 + R' ° - 夹具旋转 + FR' ° 安全参数 @@ -301,4 +300,7 @@ DetectorZ → {4:F2}mm 恢复前一位置 + + 运动控制 + \ No newline at end of file diff --git a/XP.Hardware.MotionControl/Resources/Resources.zh-TW.resx b/XP.Hardware.MotionControl/Resources/Resources.zh-TW.resx index b7c1687..390cd2a 100644 --- a/XP.Hardware.MotionControl/Resources/Resources.zh-TW.resx +++ b/XP.Hardware.MotionControl/Resources/Resources.zh-TW.resx @@ -258,30 +258,29 @@ SourceZ → {3:F2}mm DetectorZ → {4:F2}mm 確填入目標值資料? - 軸位置 - 載物台 X + X mm - 載物台 Y + Y mm - 射線源 Z + SZ mm - 探測器 Z + DZ mm - 探測器擺動 + DT' ° - 載物台旋轉 + R' ° - 夾具旋轉 + FR' ° 安全參數 @@ -301,4 +300,7 @@ DetectorZ → {4:F2}mm 恢復前一位置 + + 運動控制 + \ No newline at end of file diff --git a/XP.Hardware.MotionControl/Views/AxisControlView.xaml b/XP.Hardware.MotionControl/Views/AxisControlView.xaml index 9b47949..4b9acd2 100644 --- a/XP.Hardware.MotionControl/Views/AxisControlView.xaml +++ b/XP.Hardware.MotionControl/Views/AxisControlView.xaml @@ -12,24 +12,43 @@ MinWidth="350" HorizontalAlignment="Stretch" Background="White"> - + - + + - + + + + + + + + + - + + - @@ -41,26 +60,26 @@ - - + + - - + + - - + + - - + + - - + + - - + + - - + + @@ -69,27 +88,27 @@ + RightButtonTopIcon="R+" RightButtonBottomIcon="R-" RightButtonLeftIcon="DT-" RightButtonRightIcon="DT+" + Margin="0,0,2,0" Cursor="Hand"/> - + @@ -147,24 +166,7 @@ Height="24" MinWidth="80" Padding="8,0" FontSize="11" telerik:StyleManager.Theme="Crystal"/> - - - - - - - + diff --git a/XP.Hardware.RaySource/Resources/Resources.Designer.cs b/XP.Hardware.RaySource/Resources/Resources.Designer.cs index 689e6f6..4e8793f 100644 --- a/XP.Hardware.RaySource/Resources/Resources.Designer.cs +++ b/XP.Hardware.RaySource/Resources/Resources.Designer.cs @@ -1,4 +1,4 @@ -//------------------------------------------------------------------------------ +//------------------------------------------------------------------------------ // // 此代码由工具生成。 // 运行时版本:4.0.30319.42000 @@ -19,7 +19,7 @@ namespace XP.Hardware.RaySource.Resources { // 类通过类似于 ResGen 或 Visual Studio 的工具自动生成的。 // 若要添加或移除成员,请编辑 .ResX 文件,然后重新运行 ResGen // (以 /str 作为命令选项),或重新生成 VS 项目。 - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "18.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "17.0.0.0")] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] internal class Resources { @@ -133,7 +133,7 @@ namespace XP.Hardware.RaySource.Resources { } /// - /// 查找类似 射线源配置 的本地化字符串。 + /// 查找类似 射线源高级选项 的本地化字符串。 /// internal static string RaySource_ConfigWindowTitle { get { @@ -604,7 +604,7 @@ namespace XP.Hardware.RaySource.Resources { /// /// 查找类似 射线源 - ///不可用 的本地化字符串。 + ///未连接 的本地化字符串。 /// internal static string RaySource_StatusUnavailable { get { @@ -855,6 +855,15 @@ namespace XP.Hardware.RaySource.Resources { } } + /// + /// 查找类似 射线 的本地化字符串。 + /// + internal static string RaySource_XRay { + get { + return ResourceManager.GetString("RaySource_XRay", resourceCulture); + } + } + /// /// 查找类似 关闭 的本地化字符串。 /// diff --git a/XP.Hardware.RaySource/Resources/Resources.en-US.resx b/XP.Hardware.RaySource/Resources/Resources.en-US.resx index cffa569..f93f57c 100644 --- a/XP.Hardware.RaySource/Resources/Resources.en-US.resx +++ b/XP.Hardware.RaySource/Resources/Resources.en-US.resx @@ -1,5 +1,64 @@ + @@ -179,7 +238,7 @@ Opened X-Ray -Unavailable +Not Connected Connect Ray Source @@ -215,7 +274,7 @@ Unavailable Config - X-Ray Source Configuration + X-Ray Source Advanced Options Warm-Up: @@ -244,8 +303,8 @@ Unavailable Normal - - X-Ray: + + X-Ray On @@ -334,4 +393,7 @@ Unavailable Operation command sent, waiting for device execution... + + X-Ray: + \ No newline at end of file diff --git a/XP.Hardware.RaySource/Resources/Resources.resx b/XP.Hardware.RaySource/Resources/Resources.resx index 2886a8a..20d7462 100644 --- a/XP.Hardware.RaySource/Resources/Resources.resx +++ b/XP.Hardware.RaySource/Resources/Resources.resx @@ -1,5 +1,64 @@ + @@ -190,7 +249,7 @@ 射线源 -不可用 +未连接 RaySourceOperateView - 射线源不可用状态文本 | X-Ray unavailable status text @@ -238,7 +297,7 @@ RaySourceOperateView - 配置按钮 | Config button - 射线源配置 + 射线源高级选项 RaySourceConfigWindow - 窗口标题 | Window title @@ -277,9 +336,8 @@ 正常 RaySourceConfigView - 连锁正常状态 | Interlock normal status - - 射线状态: - RaySourceConfigView - 射线开启状态标签 | X-ray on status label + + 射线 开启 @@ -383,4 +441,8 @@ 操作指令已发送,等待设备执行... + + 射线状态: + RaySourceConfigView - 射线开启状态标签 | X-ray on status label + \ No newline at end of file diff --git a/XP.Hardware.RaySource/Resources/Resources.zh-CN.resx b/XP.Hardware.RaySource/Resources/Resources.zh-CN.resx index acef58c..3166c7b 100644 --- a/XP.Hardware.RaySource/Resources/Resources.zh-CN.resx +++ b/XP.Hardware.RaySource/Resources/Resources.zh-CN.resx @@ -1,5 +1,64 @@ + @@ -179,7 +238,7 @@ 射线源 -不可用 +未连接 连接射线源 @@ -215,7 +274,7 @@ 配置 - 射线源配置 + 射线源高级选项 暖机: @@ -244,8 +303,8 @@ 正常 - - 射线状态: + + 射线源 开启 @@ -334,4 +393,7 @@ 操作指令已发送,等待设备执行... + + 射线状态: + \ No newline at end of file diff --git a/XP.Hardware.RaySource/Resources/Resources.zh-TW.resx b/XP.Hardware.RaySource/Resources/Resources.zh-TW.resx index 0667e23..9f499a3 100644 --- a/XP.Hardware.RaySource/Resources/Resources.zh-TW.resx +++ b/XP.Hardware.RaySource/Resources/Resources.zh-TW.resx @@ -1,5 +1,64 @@ + @@ -179,7 +238,7 @@ 射線源 -不可用 +未連線 連接射線源 @@ -215,7 +274,7 @@ 配置 - 射線源配置 + 射線源高級選項 暖機: @@ -244,8 +303,8 @@ 正常 - - 射線狀態: + + 射線源 開啟 @@ -334,4 +393,7 @@ 操作指令已發送,等待設備執行... + + 射線狀態: + \ No newline at end of file diff --git a/XP.Hardware.RaySource/Views/RaySourceOperateView.xaml b/XP.Hardware.RaySource/Views/RaySourceOperateView.xaml index 6af0097..163285f 100644 --- a/XP.Hardware.RaySource/Views/RaySourceOperateView.xaml +++ b/XP.Hardware.RaySource/Views/RaySourceOperateView.xaml @@ -9,7 +9,7 @@ xmlns:prism="http://prismlibrary.com/" xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" x:Class="XP.Hardware.RaySource.Views.RaySourceOperateView" mc:Ignorable="d" d:DesignWidth="350" - prism:ViewModelLocator.AutoWireViewModel="True" Height="249" Background="White" > + prism:ViewModelLocator.AutoWireViewModel="True" Height="245" Background="White" > @@ -61,26 +61,44 @@ + + + + + + + + - + - + + CornerRadius="35">