2022-05-21 19:58:09 +02:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <cstdint>
|
|
|
|
#include "Control.h"
|
|
|
|
#include "ListBase.h"
|
|
|
|
#include "StringBase.h"
|
|
|
|
#include "DialogResult.h"
|
|
|
|
|
|
|
|
namespace Forms
|
|
|
|
{
|
|
|
|
// Handles a dialog prompt that asks for a file or files to open
|
|
|
|
class OpenFileDialog
|
|
|
|
{
|
|
|
|
public:
|
2022-05-21 21:51:35 +02:00
|
|
|
static String ShowFolderDialog(const String& Title, const String& BasePath = "", Control* Owner = nullptr);
|
2022-05-21 19:58:09 +02:00
|
|
|
|
|
|
|
// Opens the dialog and allows the user to select one file
|
2022-05-21 21:51:35 +02:00
|
|
|
static String ShowFileDialog(const String& Title, const String& BasePath = "", const String& Filter = " |*.*", Control* Owner = nullptr);
|
2022-05-21 19:58:09 +02:00
|
|
|
// Opens the dialog and allows the user to select multiple files
|
2022-05-21 21:51:35 +02:00
|
|
|
static List<String> ShowMultiFileDialog(const String& Title, const String& BasePath = "", const String& Filter = " |*.*", Control* Owner = nullptr);
|
2022-05-21 19:58:09 +02:00
|
|
|
};
|
|
|
|
}
|