Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/sn4k3/UVtools.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTiago Conceição <Tiago_caza@hotmail.com>2021-05-09 01:37:59 +0300
committerTiago Conceição <Tiago_caza@hotmail.com>2021-05-09 01:37:59 +0300
commitdc0e90a61311b2d78104e46ac34c8faf382dcbd3 (patch)
tree03afc3cceb7dbacbddea34c535700f042d42502e /UVtools.WPF/Controls/Helpers.cs
parentea410468fcb8c8ba93c955b3a69e6654e48f0b2f (diff)
v2.11.0v2.11.0
- **Tools:** - (Add) Pixel Arithmetic - (Add) Layer arithmetic: Operator $ to perform a absolute difference - (Add) Allow to save and auto restore operation settings per session (#195) - (Add) Allow to auto select the print volume ROI - (Add) Allow to export and import operation settings from files - (Improvement) Calculator - LightOff delay: Hide the bottom properties or the tab if the file format don't support them (#193) - (Change) 'Arithmetic' to 'Layer arithmetic' - (Remove) 'Threshold pixels' - (Fix) Solidfy was unable to save profiles - (Fix) A redo operation (Ctrl + Shift + Z) wasn't restoring the settings when a default profile is set - **Operations:** - (Fix) Passing a roi mat to `ApplyMask` would cause unwanted results - (Improvement) Allow pass a full/original size mask to `ApplyMask` - **Scripting:** - (Add) an script to create an printable file to clean the VAT (#170) - (Improvement) Allow to change user input properties outside the initialization - (Improvement) Auto format numerical input box with the fixed decimal cases - (Add) Settings: Section 'Tools' - (Improvement) GUI: The 'Lift, Retract and Light-off' at status bar now only shows for the supported formats - (Fix) Print time estimation calculation was wrong since v2.9.3 due a lacking of parentheses on the logic
Diffstat (limited to 'UVtools.WPF/Controls/Helpers.cs')
-rw-r--r--UVtools.WPF/Controls/Helpers.cs32
1 files changed, 22 insertions, 10 deletions
diff --git a/UVtools.WPF/Controls/Helpers.cs b/UVtools.WPF/Controls/Helpers.cs
index ca66103..61046f2 100644
--- a/UVtools.WPF/Controls/Helpers.cs
+++ b/UVtools.WPF/Controls/Helpers.cs
@@ -15,7 +15,7 @@ namespace UVtools.WPF.Controls
{
public static readonly List<FileDialogFilter> ImagesFileFilter = new()
{
- new FileDialogFilter
+ new()
{
Name = "Image Files",
Extensions = new List<string>
@@ -29,9 +29,9 @@ namespace UVtools.WPF.Controls
}
};
- public static readonly List<FileDialogFilter> PngFileFilter = new List<FileDialogFilter>
+ public static readonly List<FileDialogFilter> PngFileFilter = new()
{
- new FileDialogFilter
+ new()
{
Name = "Image Files",
Extensions = new List<string>
@@ -41,9 +41,9 @@ namespace UVtools.WPF.Controls
}
};
- public static readonly List<FileDialogFilter> TxtFileFilter = new List<FileDialogFilter>
+ public static readonly List<FileDialogFilter> TxtFileFilter = new()
{
- new FileDialogFilter
+ new()
{
Name = "Text Files",
Extensions = new List<string>
@@ -53,9 +53,9 @@ namespace UVtools.WPF.Controls
}
};
- public static readonly List<FileDialogFilter> IniFileFilter = new List<FileDialogFilter>
+ public static readonly List<FileDialogFilter> IniFileFilter = new()
{
- new FileDialogFilter
+ new()
{
Name = "Ini Files",
Extensions = new List<string>
@@ -65,9 +65,21 @@ namespace UVtools.WPF.Controls
}
};
+ public static readonly List<FileDialogFilter> OperationSettingFileFilter = new()
+ {
+ new()
+ {
+ Name = "UVtools operation settings",
+ Extensions = new List<string>
+ {
+ "uvtop",
+ }
+ }
+ };
+
public static readonly List<FileDialogFilter> ScriptsFileFilter = new()
{
- new FileDialogFilter
+ new()
{
Name = "Script Files",
Extensions = new List<string>
@@ -87,9 +99,9 @@ namespace UVtools.WPF.Controls
public static List<FileDialogFilter> ToAvaloniaFilter(string name, string extension)
{
- return new List<FileDialogFilter>(1)
+ return new(1)
{
- new FileDialogFilter {Name = name, Extensions = new List<string>(1) {extension}}
+ new() {Name = name, Extensions = new List<string>(1) {extension}}
};
}
}