2021-08-26 14:22:54 +02:00
|
|
|
|
using System.Runtime.Versioning;
|
|
|
|
|
|
|
|
|
|
|
|
namespace ElectronNET.API.Entities
|
2017-10-17 05:12:35 +02:00
|
|
|
|
{
|
2017-10-24 21:43:27 +02:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
///
|
|
|
|
|
|
/// </summary>
|
2017-10-17 05:12:35 +02:00
|
|
|
|
public enum OpenDialogProperty
|
|
|
|
|
|
{
|
2017-10-24 21:43:27 +02:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// The open file
|
|
|
|
|
|
/// </summary>
|
2017-10-17 05:12:35 +02:00
|
|
|
|
openFile,
|
2017-10-24 21:43:27 +02:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// The open directory
|
|
|
|
|
|
/// </summary>
|
2017-10-17 05:12:35 +02:00
|
|
|
|
openDirectory,
|
2017-10-24 21:43:27 +02:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// The multi selections
|
|
|
|
|
|
/// </summary>
|
2017-10-17 05:12:35 +02:00
|
|
|
|
multiSelections,
|
2017-10-24 21:43:27 +02:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// The show hidden files
|
|
|
|
|
|
/// </summary>
|
2017-10-17 05:12:35 +02:00
|
|
|
|
showHiddenFiles,
|
2017-10-24 21:43:27 +02:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// The create directory
|
|
|
|
|
|
/// </summary>
|
2021-08-26 14:22:54 +02:00
|
|
|
|
[SupportedOSPlatform("macos")]
|
2017-10-17 05:12:35 +02:00
|
|
|
|
createDirectory,
|
2017-10-24 21:43:27 +02:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// The prompt to create
|
|
|
|
|
|
/// </summary>
|
2021-08-26 14:22:54 +02:00
|
|
|
|
[SupportedOSPlatform("windows")]
|
2017-10-17 05:12:35 +02:00
|
|
|
|
promptToCreate,
|
2017-10-24 21:43:27 +02:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// The no resolve aliases
|
|
|
|
|
|
/// </summary>
|
2021-08-26 14:22:54 +02:00
|
|
|
|
[SupportedOSPlatform("macos")]
|
2017-10-17 05:12:35 +02:00
|
|
|
|
noResolveAliases,
|
2017-10-24 21:43:27 +02:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2021-08-26 14:22:54 +02:00
|
|
|
|
/// Treat packages, such as .app folders, as a directory instead of a file.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[SupportedOSPlatform("macos")]
|
|
|
|
|
|
treatPackageAsDirectory,
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Don't add the item being opened to recent documents list
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[SupportedOSPlatform("windows")]
|
|
|
|
|
|
dontAddToRecent
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
///
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public enum SaveDialogProperty
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// The show hidden files
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
showHiddenFiles,
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// The create directory
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[SupportedOSPlatform("macos")]
|
|
|
|
|
|
createDirectory,
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Treat packages, such as .app folders, as a directory instead of a file.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[SupportedOSPlatform("macos")]
|
|
|
|
|
|
treatPackageAsDirectory,
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Sets whether the user will be presented a confirmation dialog if the user types a file name that already exists.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[SupportedOSPlatform("linux")]
|
|
|
|
|
|
showOverwriteConfirmation,
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Don't add the item being opened to recent documents list
|
2017-10-24 21:43:27 +02:00
|
|
|
|
/// </summary>
|
2021-08-26 14:22:54 +02:00
|
|
|
|
[SupportedOSPlatform("windows")]
|
|
|
|
|
|
dontAddToRecent
|
2017-10-17 05:12:35 +02:00
|
|
|
|
}
|
|
|
|
|
|
}
|