ardour/gtk2_ardour/OpenFileDialogProxy.h
Nikolay Polyanovskii 41a72dbecf [Summary] choose default save/open folder on Windows
[Review] GZharun

[git-p4: depot-paths = "//Abdaw/dev_main/tracks/": change = 462392]
2014-05-21 08:27:14 -05:00

31 lines
959 B
C++

//
// OpenFileDialogProxy.h
// Tracks
//
// Created by User on 5/12/14.
//
//
#ifndef Tracks_OpenFileDialogProxy_h
#define Tracks_OpenFileDialogProxy_h
#include <string>
namespace ARDOUR
{
// This is the C "trampoline" function that will be used
// to invoke a specific Objective-C method FROM C++
#ifdef __APPLE__
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");
#endif
// OS Windows specific functions
#ifdef _WIN32
bool SaveFileDialog(std::string& fileName, std::string path = "", std::string title = "Save");
bool OpenFileDialog(std::string& fileName, std::string path = "", std::string title = "Open");
bool ChooseFolderDialog(std::string& selectedPath, std::string title = "Choose Folder");
#endif
}
#endif