From 3e76e54bc38714f9af4670bd10a39f65a1cef97b Mon Sep 17 00:00:00 2001 From: Terje Io Date: Mon, 13 Jun 2022 07:59:15 +0200 Subject: [PATCH] Release 2.0.38, se changelog for details --- .../CNC Controls Camera/Camera.xaml.cs | 6 +- .../CNC Controls Camera/CameraControl.xaml.cs | 8 +- .../Properties/AssemblyInfo.cs | 4 +- .../CNC Controls Probing/Converters.cs | 18 ++- .../CNC Controls Probing/ProbingView.xaml | 2 +- .../Properties/AssemblyInfo.cs | 4 +- .../CNC Controls Probing/RotationControl.xaml | 7 +- .../RotationControl.xaml.cs | 26 ++-- CNC Controls/CNC Controls/AppConfig.cs | 6 +- .../CNC Controls/GCodeRotateDialog.xaml.cs | 14 +- CNC Controls/CNC Controls/LibStrings.xaml | 2 + CNC Controls/CNC Controls/NumericTextBox.cs | 30 +++- .../CNC Controls/Properties/AssemblyInfo.cs | 4 +- CNC Controls/CNC Controls/Widget.cs | 6 +- CNC Core/CNC Core/GCodeParser.cs | 95 ++++++++----- CNC Core/CNC Core/Grbl.cs | 52 +++++-- CNC Core/CNC Core/GrblViewModel.cs | 42 +++--- CNC Core/CNC Core/Properties/AssemblyInfo.cs | 4 +- .../Grbl Config App/MainWindow.xaml.cs | 6 +- .../Properties/AssemblyInfo.cs | 4 +- .../CNC.Controls.Probing.resources.de-DE.csv | 28 ++-- .../CNC.Controls.Viewer.resources.de-DE.csv | 12 +- .../csv/CNC.Controls.WPF.resources.de-DE.csv | 14 +- .../csv/CNC.Converters.resources.de-DE.csv | 4 +- Locale/de-DE/translation.txt | Bin 108324 -> 108934 bytes .../CNC.Controls.Probing.resources.en-US.csv | 28 ++-- .../CNC.Controls.Viewer.resources.en-US.csv | 12 +- .../csv/CNC.Controls.WPF.resources.en-US.csv | 14 +- .../csv/CNC.Converters.resources.en-US.csv | 4 +- Locale/en-US/translation.txt | Bin 103660 -> 104270 bytes .../CNC.Controls.Probing.resources.pt-BR.csv | 28 ++-- .../CNC.Controls.Viewer.resources.pt-BR.csv | 12 +- .../csv/CNC.Controls.WPF.resources.pt-BR.csv | 14 +- .../csv/CNC.Converters.resources.pt-BR.csv | 4 +- Locale/pt-BR/translation.txt | Bin 108096 -> 108706 bytes .../CNC.Controls.Camera.resources.ru-RU.csv | 16 +-- ...CNC.Controls.DragKnife.resources.ru-RU.csv | 8 +- .../CNC.Controls.Probing.resources.ru-RU.csv | 96 ++++++------- .../CNC.Controls.Viewer.resources.ru-RU.csv | 32 ++--- .../csv/CNC.Controls.WPF.resources.ru-RU.csv | 132 +++++++++--------- .../csv/CNC.Converters.resources.ru-RU.csv | 4 +- Locale/ru-RU/csv/CNC.Core.resources.ru-RU.csv | 12 +- Locale/ru-RU/csv/ioSender.resources.ru-RU.csv | 36 ++--- Locale/ru-RU/translation.txt | Bin 106142 -> 106382 bytes .../CNC.Controls.Probing.resources.zh-CN.csv | 28 ++-- .../CNC.Controls.Viewer.resources.zh-CN.csv | 12 +- .../csv/CNC.Controls.WPF.resources.zh-CN.csv | 14 +- .../csv/CNC.Converters.resources.zh-CN.csv | 4 +- Locale/zh-CN/translation.txt | Bin 103406 -> 104016 bytes changelog.md | 13 +- ioSender XL/ioSender XL/JobView.xaml.cs | 17 ++- ioSender XL/ioSender XL/MainWindow.xaml.cs | 6 +- .../ioSender XL/Properties/AssemblyInfo.cs | 4 +- ioSender/ioSender/JobView.xaml.cs | 27 ++-- ioSender/ioSender/MainWindow.xaml.cs | 6 +- ioSender/ioSender/Properties/AssemblyInfo.cs | 4 +- readme.md | 4 +- 57 files changed, 560 insertions(+), 429 deletions(-) diff --git a/CNC Controls Camera/CNC Controls Camera/Camera.xaml.cs b/CNC Controls Camera/CNC Controls Camera/Camera.xaml.cs index 12d9f4b..41eec63 100644 --- a/CNC Controls Camera/CNC Controls Camera/Camera.xaml.cs +++ b/CNC Controls Camera/CNC Controls Camera/Camera.xaml.cs @@ -1,7 +1,7 @@ /* * Camera.xaml.cs - part of CNC Controls Camera library * - * v0.37 / 2022-03-02 / Io Engineering (Terje Io) + * v0.38 / 2022-04-20 / Io Engineering (Terje Io) * */ @@ -108,8 +108,8 @@ private void Window_Closing(object sender, System.ComponentModel.CancelEventArgs e.Cancel = true; Hide(); } - else - CNCCamera.CloseCurrentVideoSource(); + + CNCCamera.CloseCurrentVideoSource(); IsVisibilityChanged?.Invoke(); } diff --git a/CNC Controls Camera/CNC Controls Camera/CameraControl.xaml.cs b/CNC Controls Camera/CNC Controls Camera/CameraControl.xaml.cs index 353b23e..1bb4a31 100644 --- a/CNC Controls Camera/CNC Controls Camera/CameraControl.xaml.cs +++ b/CNC Controls Camera/CNC Controls Camera/CameraControl.xaml.cs @@ -1,7 +1,7 @@ /* * CameraControl.xaml.cs - part of CNC Controls Camera library * - * v0.37 / 2022-03-02 / Io Engineering (Terje Io) + * v0.38 / 2022-04-20 / Io Engineering (Terje Io) * */ @@ -250,12 +250,12 @@ private void btnMove_Click(object sender, RoutedEventArgs e) if (!AppConfig.Settings.Camera.ConfirmMove || MessageBox.Show(UIUtils.TryFindParent(this), (string)FindResource(MoveCameraToSpindlePosition ? "MoveCameraTo" : "MoveSpindleTo"), "ioSender", MessageBoxButton.YesNo, MessageBoxImage.Question) == MessageBoxResult.Yes) { if (MoveCameraToSpindlePosition) - { - MoveCameraToSpindlePosition = false; MoveOffset?.Invoke(Mode, -XOffset, -YOffset); - } else MoveOffset?.Invoke(Mode, XOffset, YOffset); + + if (AppConfig.Settings.Camera.InitialMoveToSpindle) + MoveCameraToSpindlePosition = !MoveCameraToSpindlePosition; } } diff --git a/CNC Controls Camera/CNC Controls Camera/Properties/AssemblyInfo.cs b/CNC Controls Camera/CNC Controls Camera/Properties/AssemblyInfo.cs index d8f25de..d5a1514 100644 --- a/CNC Controls Camera/CNC Controls Camera/Properties/AssemblyInfo.cs +++ b/CNC Controls Camera/CNC Controls Camera/Properties/AssemblyInfo.cs @@ -52,5 +52,5 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("2.0.37.0")] -[assembly: AssemblyFileVersion("2.0.37.0")] +[assembly: AssemblyVersion("2.0.38.0")] +[assembly: AssemblyFileVersion("2.0.38.0")] diff --git a/CNC Controls Probing/CNC Controls Probing/Converters.cs b/CNC Controls Probing/CNC Controls Probing/Converters.cs index fbf8349..c03e59a 100644 --- a/CNC Controls Probing/CNC Controls Probing/Converters.cs +++ b/CNC Controls Probing/CNC Controls Probing/Converters.cs @@ -1,13 +1,13 @@ /* * Converters.cs - part of CNC Probing library * - * v0.14 / 2020-03-29 / Io Engineering (Terje Io) + * v0.38 / 2022-04-20 / Io Engineering (Terje Io) * */ /* -Copyright (c) 2019-2020, Io Engineering (Terje Io) +Copyright (c) 2019-2022, Io Engineering (Terje Io) All rights reserved. Redistribution and use in source and binary forms, with or without modification, @@ -47,6 +47,7 @@ namespace CNC.Controls.Probing public static class Converters { public static EnumValueToVisibleConverter EnumValueToVisibleConverter = new EnumValueToVisibleConverter(); + public static OriginToBooleanConverter OriginToBooleanConverter = new OriginToBooleanConverter(); } public class EnumValueToVisibleConverter : IMultiValueConverter @@ -65,4 +66,17 @@ public object[] ConvertBack(object value, Type[] targetTypes, object parameter, throw new NotImplementedException(); } } + + public class OriginToBooleanConverter : IValueConverter + { + public object Convert(object value, Type targetType, object parameter, CultureInfo culture) + { + return value is OriginControl.Origin && (OriginControl.Origin)value == OriginControl.Origin.None; + } + + public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture) + { + return (bool)value ? OriginControl.Origin.None : OriginControl.Origin.Center; + } + } } diff --git a/CNC Controls Probing/CNC Controls Probing/ProbingView.xaml b/CNC Controls Probing/CNC Controls Probing/ProbingView.xaml index 4807c6f..ef02f03 100644 --- a/CNC Controls Probing/CNC Controls Probing/ProbingView.xaml +++ b/CNC Controls Probing/CNC Controls Probing/ProbingView.xaml @@ -99,7 +99,7 @@ - + diff --git a/CNC Controls Probing/CNC Controls Probing/Properties/AssemblyInfo.cs b/CNC Controls Probing/CNC Controls Probing/Properties/AssemblyInfo.cs index 9f5478c..b7bfb99 100644 --- a/CNC Controls Probing/CNC Controls Probing/Properties/AssemblyInfo.cs +++ b/CNC Controls Probing/CNC Controls Probing/Properties/AssemblyInfo.cs @@ -34,5 +34,5 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("2.0.37.0")] -[assembly: AssemblyFileVersion("2.0.37.0")] +[assembly: AssemblyVersion("2.0.38.0")] +[assembly: AssemblyFileVersion("2.0.38.0")] diff --git a/CNC Controls Probing/CNC Controls Probing/RotationControl.xaml b/CNC Controls Probing/CNC Controls Probing/RotationControl.xaml index 3d89688..948b975 100644 --- a/CNC Controls Probing/CNC Controls Probing/RotationControl.xaml +++ b/CNC Controls Probing/CNC Controls Probing/RotationControl.xaml @@ -17,7 +17,8 @@ - + +