2014-05-13 05:19:55 -05:00
|
|
|
//
|
|
|
|
|
// OpenFileDialogProxy.h
|
|
|
|
|
// Tracks
|
|
|
|
|
//
|
|
|
|
|
// Created by User on 5/12/14.
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
|
|
|
|
|
#ifndef Tracks_OpenFileDialogProxy_h
|
|
|
|
|
#define Tracks_OpenFileDialogProxy_h
|
|
|
|
|
|
2014-05-14 03:44:14 -05:00
|
|
|
#include <string>
|
|
|
|
|
|
2014-05-13 05:19:55 -05:00
|
|
|
namespace ARDOUR
|
|
|
|
|
{
|
2014-05-14 05:11:52 -05:00
|
|
|
// This is the C "trampoline" function that will be used
|
|
|
|
|
// to invoke a specific Objective-C method FROM C++
|
2014-05-14 03:44:14 -05:00
|
|
|
#ifdef __APPLE__
|
2014-05-20 05:29:32 -05:00
|
|
|
std::string SaveFileDialog(std::string path = "", std::string title = "Save");
|
|
|
|
|
std::string OpenFileDialog(std::string path = "", std::string title = "Open");
|
|
|
|
|
std::string ChooseFolderDialog(std::string path = "", std::string title = "Choose Folder");
|
2014-05-13 08:53:17 -05:00
|
|
|
#endif
|
2014-05-14 05:11:52 -05:00
|
|
|
|
|
|
|
|
// OS Windows specific functions
|
2014-05-13 08:53:17 -05:00
|
|
|
#ifdef _WIN32
|
2014-05-21 08:27:14 -05:00
|
|
|
bool SaveFileDialog(std::string& fileName, std::string path = "", std::string title = "Save");
|
|
|
|
|
bool OpenFileDialog(std::string& fileName, std::string path = "", std::string title = "Open");
|
2014-05-21 10:58:00 -05:00
|
|
|
bool ChooseFolderDialog(std::string& selectedPath, std::string path = "", std::string title = "Choose Folder");
|
2014-05-13 08:53:17 -05:00
|
|
|
#endif
|
2014-05-13 05:19:55 -05:00
|
|
|
}
|
|
|
|
|
#endif
|