mirror of
https://github.com/riegera2412/UVtools.git
synced 2026-07-09 01:52:32 +02:00
c968eaedf9
- **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
42 lines
1.3 KiB
C#
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; }
|
|
}
|
|
}
|