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:
Diffstat (limited to 'UVtools.Core/Scripting/ScriptFileDialogInput.cs')
-rw-r--r--UVtools.Core/Scripting/ScriptFileDialogInput.cs41
1 files changed, 41 insertions, 0 deletions
diff --git a/UVtools.Core/Scripting/ScriptFileDialogInput.cs b/UVtools.Core/Scripting/ScriptFileDialogInput.cs
new file mode 100644
index 0000000..a8b4aef
--- /dev/null
+++ b/UVtools.Core/Scripting/ScriptFileDialogInput.cs
@@ -0,0 +1,41 @@
+/*
+ * GNU AFFERO GENERAL PUBLIC LICENSE
+ * Version 3, 19 November 2007
+ * Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
+ * Everyone is permitted to copy and distribute verbatim copies
+ * of this license document, but changing it is not allowed.
+ */
+
+using System.Collections.Generic;
+
+namespace UVtools.Core.Scripting
+{
+ public abstract class ScriptFileDialogInput : ScriptBaseInput<string>
+ {
+ public class ScriptFileDialogFilter
+ {
+ public string Name { get; set; }
+ public List<string> Extensions { get; set; } = new();
+ }
+
+ /// <summary>
+ /// Gets or sets the title for the dialog
+ /// </summary>
+ public string Title { get; set; }
+
+ /// <summary>
+ /// Gets or sets the default directory to open the dialog in
+ /// </summary>
+ public string Directory { get; set; }
+
+ /// <summary>
+ /// Gets or sets the initial filename to be on the dialog
+ /// </summary>
+ public string InitialFilename { get; set; }
+
+ /// <summary>
+ /// Gets or sets the file filters on the dropdown list
+ /// </summary>
+ public List<ScriptFileDialogFilter> Filters { get; set; }
+ }
+}