mirror of
https://github.com/riegera2412/UVtools.git
synced 2026-07-13 20:07:40 +02:00
ada646f92d
- **(Add) PrusaSlicer printers:** - Creality HALOT-MAX CL-133 - Nova3D Elfin2 - Nova3D Elfin2 Mono SE - Nova3D Elfin3 Mini - Nova3D Bene4 - Nova3D Bene5 - Nova3D Whale - Nova3D Whale2 - **About box:** - (Add) Runtime information - (Fix) Limit panels width and height to not overgrow - **(Fix) macOS:** - macOS version auto-upgrade (Will only work on future releases and if running v2.16.0 or greater) - Demo file not loading - Auto disable windows scaling factor when on Monjave or greater on new instalations - (Add) Tool: Raise platform on print finish - (Add) CXDLP: Support for Halot MAX CL-133 - (Improvement) Tools: Better handling/validation of tools that are unable to run with abstraction - (Improvement) CWS: Simplify filenames inside the archive - (Upgrade) EmguCV from 4.5.2 to 4.5.3 - (Change) Allow to set layer `LightPWM` to 0 - (Fix) Arrange dropdown arrow from layer image save icon to be at center
39 lines
1.2 KiB
C#
39 lines
1.2 KiB
C#
using System.Collections.Generic;
|
|
using System.IO;
|
|
using Avalonia;
|
|
using Avalonia.Controls;
|
|
using Avalonia.Markup.Xaml;
|
|
using UVtools.Core.Operations;
|
|
|
|
namespace UVtools.WPF.Controls.Tools
|
|
{
|
|
public partial class ToolLayerExportHeatMapControl : ToolControl
|
|
{
|
|
public OperationLayerExportHeatMap Operation => BaseOperation as OperationLayerExportHeatMap;
|
|
public ToolLayerExportHeatMapControl()
|
|
{
|
|
BaseOperation = new OperationLayerExportHeatMap(SlicerFile);
|
|
if (!ValidateSpawn()) return;
|
|
InitializeComponent();
|
|
}
|
|
|
|
private void InitializeComponent()
|
|
{
|
|
AvaloniaXamlLoader.Load(this);
|
|
}
|
|
|
|
public async void ChooseFilePath()
|
|
{
|
|
var dialog = new SaveFileDialog
|
|
{
|
|
Filters = Helpers.ImagesFullFileFilter,
|
|
InitialFileName = Path.GetFileName(SlicerFile.FileFullPath) + ".heatmap.png",
|
|
Directory = Path.GetDirectoryName(SlicerFile.FileFullPath),
|
|
};
|
|
var file = await dialog.ShowAsync(ParentWindow);
|
|
if (string.IsNullOrWhiteSpace(file)) return;
|
|
Operation.FilePath = file;
|
|
}
|
|
}
|
|
}
|