From 696f9417ba69c87ff3991b77b2f207fff4063ea2 Mon Sep 17 00:00:00 2001 From: Terje Io Date: Fri, 11 Mar 2022 07:10:16 +0100 Subject: [PATCH] Release 2.0.37 --- .../CNC Controls Camera/Camera.xaml | 2 +- .../CNC Controls Camera/Camera.xaml.cs | 7 +- .../CNC Controls Camera/CameraControl.xaml | 26 +- .../CNC Controls Camera/CameraControl.xaml.cs | 67 +++- .../CNC Controls Camera/ConfigControl.xaml | 6 +- .../Properties/AssemblyInfo.cs | 4 +- .../CenterFinderControl.xaml | 2 + .../CenterFinderControl.xaml.cs | 71 +++- .../EdgeFinderControl.xaml.cs | 9 +- .../EdgeFinderIntControl.xaml.cs | 9 +- .../HeightMapControl.xaml.cs | 15 +- .../CNC Controls Probing/IProbeTab.cs | 6 +- .../CNC Controls Probing/LibStrings.xaml | 1 + .../CNC Controls Probing/ProbingView.xaml | 1 + .../CNC Controls Probing/ProbingView.xaml.cs | 43 ++- .../CNC Controls Probing/ProbingViewModel.cs | 12 +- .../CNC Controls Probing/Program.cs | 1 + .../Properties/AssemblyInfo.cs | 4 +- .../CNC Controls Probing/RotationControl.xaml | 3 - .../RotationControl.xaml.cs | 43 ++- .../ToolLengthControl.xaml.cs | 17 +- CNC Controls/CNC Controls/AppConfig.cs | 12 +- CNC Controls/CNC Controls/AppConfigView.xaml | 5 +- .../CNC Controls/AppConfigView.xaml.cs | 14 +- CNC Controls/CNC Controls/CNC Controls.csproj | 29 ++ CNC Controls/CNC Controls/DROControl.xaml.cs | 63 +++- CNC Controls/CNC Controls/GCode.cs | 10 +- CNC Controls/CNC Controls/ICamera.cs | 5 +- CNC Controls/CNC Controls/JobControl.xaml.cs | 44 ++- .../CNC Controls/JogBaseControl.xaml.cs | 328 ++++++++++-------- CNC Controls/CNC Controls/LibStrings.xaml | 2 + .../CNC Controls/OutlineBaseControl.xaml | 10 +- CNC Controls/CNC Controls/OutlineControl.xaml | 4 +- CNC Controls/CNC Controls/OutlineFlyout.xaml | 6 +- .../CNC Controls/Properties/AssemblyInfo.cs | 4 +- CNC Core/CNC Core/GCodeParser.cs | 32 +- CNC Core/CNC Core/Grbl.cs | 125 +++++-- CNC Core/CNC Core/GrblViewModel.cs | 31 +- CNC Core/CNC Core/KeypressHandler.cs | 93 ++++- CNC Core/CNC Core/Properties/AssemblyInfo.cs | 4 +- .../CNC.Controls.Camera.resources.de-DE.csv | 6 + .../CNC.Controls.Probing.resources.de-DE.csv | 4 + .../csv/CNC.Controls.WPF.resources.de-DE.csv | 15 + Locale/de-DE/csv/ioSender.resources.de-DE.csv | 15 + Locale/de-DE/translation.txt | Bin 101038 -> 108324 bytes .../CNC.Controls.Camera.resources.en-US.csv | 6 + .../CNC.Controls.Probing.resources.en-US.csv | 4 + .../csv/CNC.Controls.WPF.resources.en-US.csv | 15 + Locale/en-US/csv/ioSender.resources.en-US.csv | 15 + Locale/en-US/translation.txt | Bin 96374 -> 103660 bytes .../CNC.Controls.Camera.resources.ru-RU.csv | 6 + .../CNC.Controls.Probing.resources.ru-RU.csv | 4 + .../csv/CNC.Controls.WPF.resources.ru-RU.csv | 15 + Locale/ru-RU/csv/ioSender.resources.ru-RU.csv | 15 + Locale/ru-RU/translation.txt | Bin 98856 -> 106142 bytes .../CNC.Controls.Camera.resources.zh-CN.csv | 6 + .../CNC.Controls.Probing.resources.zh-CN.csv | 4 + .../csv/CNC.Controls.WPF.resources.zh-CN.csv | 15 + Locale/zh-CN/csv/ioSender.resources.zh-CN.csv | 15 + Locale/zh-CN/translation.txt | Bin 96120 -> 103406 bytes changelog.md | 16 +- ioSender XL/ioSender XL/App.xaml.cs | 5 +- ioSender XL/ioSender XL/JobView.xaml | 8 +- ioSender XL/ioSender XL/JobView.xaml.cs | 50 ++- ioSender XL/ioSender XL/MainWindow.xaml | 5 + ioSender XL/ioSender XL/MainWindow.xaml.cs | 22 +- .../ioSender XL/Properties/AssemblyInfo.cs | 4 +- ioSender/ioSender/App.xaml.cs | 5 +- ioSender/ioSender/JobView.xaml.cs | 46 ++- ioSender/ioSender/MainWindow.xaml | 5 + ioSender/ioSender/MainWindow.xaml.cs | 24 +- ioSender/ioSender/Properties/AssemblyInfo.cs | 4 +- 72 files changed, 1133 insertions(+), 391 deletions(-) diff --git a/CNC Controls Camera/CNC Controls Camera/Camera.xaml b/CNC Controls Camera/CNC Controls Camera/Camera.xaml index 02da895..37cb78c 100644 --- a/CNC Controls Camera/CNC Controls Camera/Camera.xaml +++ b/CNC Controls Camera/CNC Controls Camera/Camera.xaml @@ -5,7 +5,7 @@ xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:local="clr-namespace:CNC.Controls.Camera" mc:Ignorable="d" - Title="Sender" Height="390" Width="504" + Title="Sender" Height="414" Width="504" Topmost="True" Closing="Window_Closing" Icon="App.ico" ShowInTaskbar="False" ResizeMode="NoResize"> diff --git a/CNC Controls Camera/CNC Controls Camera/Camera.xaml.cs b/CNC Controls Camera/CNC Controls Camera/Camera.xaml.cs index cb78d2b..12d9f4b 100644 --- a/CNC Controls Camera/CNC Controls Camera/Camera.xaml.cs +++ b/CNC Controls Camera/CNC Controls Camera/Camera.xaml.cs @@ -1,13 +1,13 @@ /* * Camera.xaml.cs - part of CNC Controls Camera library * - * v0.33 / 2021-05-04 / Io Engineering (Terje Io) + * v0.37 / 2022-03-02 / Io Engineering (Terje Io) * */ /* -Copyright (c) 2018-2021, Io Engineering (Terje Io) - parts derived from AForge example code +Copyright (c) 2018-2022, Io Engineering (Terje Io) - parts derived from AForge example code All rights reserved. Redistribution and use in source and binary forms, with or without modification, @@ -66,6 +66,7 @@ private void CNCCamera_MoveOffset(Core.CameraMoveMode Mode, double XOffset, doub public bool HasCamera { get { return CNCCamera.HasCamera; } } public CameraControl CameraControl { get { return CNCCamera; } } public new bool IsVisible { get { return CNCCamera.IsVisible; } } + public bool IsMoveEnabled { get { return CNCCamera.IsMoveEnabled; } set { CNCCamera.IsMoveEnabled = value && (CNCCamera.XOffset != 0d || CNCCamera.YOffset != 0d); } } public void Setup(UIViewModel model) { @@ -89,6 +90,8 @@ public void Open() Show(); + CameraControl.MoveCameraToSpindlePosition = AppConfig.Settings.Camera.InitialMoveToSpindle; + if (CNCCamera.OpenVideoSource()) IsVisibilityChanged?.Invoke(); } diff --git a/CNC Controls Camera/CNC Controls Camera/CameraControl.xaml b/CNC Controls Camera/CNC Controls Camera/CameraControl.xaml index 2e65930..816248d 100644 --- a/CNC Controls Camera/CNC Controls Camera/CameraControl.xaml +++ b/CNC Controls Camera/CNC Controls Camera/CameraControl.xaml @@ -3,22 +3,32 @@ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" + xmlns:system="clr-namespace:System;assembly=mscorlib" xmlns:local="clr-namespace:CNC.Controls.Camera" mc:Ignorable="d" - d:DesignHeight="360" d:DesignWidth="500" + d:DesignHeight="370" d:DesignWidth="500" Background="#FFF0F0F0" Loaded="CameraControl_Loaded"> + + Move spindle to camera position? + Move camera to spindle position? + - - + + + - + - - -