-
-
Notifications
You must be signed in to change notification settings - Fork 106
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- (Add) Layer action - Export layers to HTML: Export file information and layers to an html file - (Change) CXDLP: Validate header and footer value must start with "CXSW3D" instead of force equal to "CXSW3DV2" (#501) - (Upgrade) .NET from 6.0.5 to 6.0.6
- Loading branch information
Showing
18 changed files
with
22,048 additions
and
7,072 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,4 @@ | ||
- **PCB Exposure:** | ||
- (Add) Gerber file extensions: gko, gtl, gto, gts, gbl, gbo, gbs, gml | ||
- (Fix) Trailing zeros suppression mode and improve the parsing of the coordinate string (#492) | ||
- (Fix) Allow coordinates without number `XYD0*` to indicate `X=0` and `Y=0` | ||
- (Fix) Do not try to fetch apertures lower than index 10 when a `D02` (closed shutter) is found alone | ||
- (Add) Layer action - Export layers to HTML: Export file information and layers to an html file | ||
- (Change) CXDLP: Validate header and footer value must start with "CXSW3D" instead of force equal to "CXSW3DV2" (#501) | ||
- (Upgrade) .NET from 6.0.5 to 6.0.6 | ||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 43 additions & 0 deletions
43
UVtools.WPF/Controls/Tools/ToolLayerExportHtmlControl.axaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
<UserControl xmlns="https://github.com/avaloniaui" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | ||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | ||
xmlns:i="clr-namespace:Projektanker.Icons.Avalonia;assembly=Projektanker.Icons.Avalonia" | ||
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450" | ||
x:Class="UVtools.WPF.Controls.Tools.ToolLayerExportHtmlControl"> | ||
<StackPanel Spacing="10"> | ||
|
||
<StackPanel Orientation="Horizontal" Spacing="5"> | ||
<TextBox Watermark="Output filepath" | ||
UseFloatingWatermark="True" | ||
VerticalAlignment="Center" | ||
IsReadOnly="True" | ||
Width="500" | ||
Text="{Binding Operation.FilePath}"/> | ||
<Button VerticalAlignment="Stretch" | ||
Command="{Binding ChooseFilePath}" | ||
i:Attached.Icon="fa-solid fa-folder"/> | ||
</StackPanel> | ||
|
||
<CheckBox Content="Export thumbnails" | ||
ToolTip.Tip="If enabled it will export all the available thumbnails" | ||
IsChecked="{Binding Operation.ExportThumbnails}"/> | ||
|
||
<CheckBox Content="Export file raw data structure" | ||
ToolTip.Tip="If enabled it will export the raw data structure of the file" | ||
IsChecked="{Binding Operation.ExportRawData}"/> | ||
|
||
<CheckBox Content="Export layer settings" | ||
ToolTip.Tip="If enabled it will export an table with all the layer settings" | ||
IsChecked="{Binding Operation.ExportLayerSettings}"/> | ||
|
||
<CheckBox Content="Export GCode" | ||
ToolTip.Tip="If enabled it will export the GCode text" | ||
IsChecked="{Binding Operation.ExportGCode}"/> | ||
|
||
<CheckBox Content="Export layer preview" | ||
ToolTip.Tip="If enabled it will export all the layers images and able to navigate between them but will produce a larger and slower file" | ||
IsChecked="{Binding Operation.ExportLayerPreview}"/> | ||
|
||
</StackPanel> | ||
</UserControl> |
44 changes: 44 additions & 0 deletions
44
UVtools.WPF/Controls/Tools/ToolLayerExportHtmlControl.axaml.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
using System.Collections.Generic; | ||
using System.IO; | ||
using Avalonia.Controls; | ||
using Avalonia.Markup.Xaml; | ||
using UVtools.Core.Operations; | ||
|
||
namespace UVtools.WPF.Controls.Tools | ||
{ | ||
public partial class ToolLayerExportHtmlControl : ToolControl | ||
{ | ||
public OperationLayerExportHtml Operation => BaseOperation as OperationLayerExportHtml; | ||
public ToolLayerExportHtmlControl() | ||
{ | ||
BaseOperation = new OperationLayerExportHtml(SlicerFile); | ||
if (!ValidateSpawn()) return; | ||
InitializeComponent(); | ||
} | ||
|
||
private void InitializeComponent() | ||
{ | ||
AvaloniaXamlLoader.Load(this); | ||
} | ||
|
||
public async void ChooseFilePath() | ||
{ | ||
var dialog = new SaveFileDialog | ||
{ | ||
Filters = new List<FileDialogFilter> | ||
{ | ||
new() | ||
{ | ||
Extensions = new List<string>{"html"}, | ||
Name = "HTML files" | ||
} | ||
}, | ||
InitialFileName = Path.GetFileName(SlicerFile.FileFullPath) + ".html", | ||
Directory = Path.GetDirectoryName(SlicerFile.FileFullPath) | ||
}; | ||
var file = await dialog.ShowAsync(ParentWindow); | ||
if (string.IsNullOrWhiteSpace(file)) return; | ||
Operation.FilePath = file; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.