mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
cppkore uses string/wstring as StringBase while we use std::string/std::wstring as string/wstring. Changed all types in cppkore to String/WString instead.
22 lines
780 B
C++
22 lines
780 B
C++
#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:
|
|
static String ShowFolderDialog(const String& Title, const String& BasePath = "", Control* Owner = nullptr);
|
|
|
|
// Opens the dialog and allows the user to select one file
|
|
static String ShowFileDialog(const String& Title, const String& BasePath = "", const String& Filter = " |*.*", Control* Owner = nullptr);
|
|
// Opens the dialog and allows the user to select multiple files
|
|
static List<String> ShowMultiFileDialog(const String& Title, const String& BasePath = "", const String& Filter = " |*.*", Control* Owner = nullptr);
|
|
};
|
|
} |