Files
UVtools/UVtools.Core/Scripting/ScriptFileDialogInput.cs
T
Tiago Conceição c968eaedf9 v2.25.0
- **File formats:**
   - (Add) Allow to partial open the files for read and/or change properties, the layer images won't be read nor cached (Fast)
   - (Add) More abstraction on partial save
- **Scripting:**
   - (Add) ScriptOpenFolderDialogInput - Selects a folder path
   - (Add) ScriptOpenFileDialogInput - Selectes a file to open
   - (Add) ScriptSaveFileDialogInput - Selects a file to save
- (Add) [UNSAVED] tag to the title bar when there are unsaved changes on the current session
- (Improvement) Better handling of empty images on the UI
2021-11-18 03:29:08 +00:00

42 lines
1.3 KiB
C#

/*
* 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; }
}
}