add linux definitions for FileDialogWrapper
This commit is contained in:
@@ -54,6 +54,7 @@ if (WIN32 OR MINGW OR UNIX AND NOT APPLE)
|
|||||||
list(APPEND YAZE_APP_CORE_SRC
|
list(APPEND YAZE_APP_CORE_SRC
|
||||||
app/core/platform/font_loader.cc
|
app/core/platform/font_loader.cc
|
||||||
app/core/platform/clipboard.cc
|
app/core/platform/clipboard.cc
|
||||||
|
app/core/platform/file_dialog.cc
|
||||||
)
|
)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|||||||
23
src/app/core/platform/file_dialog.cc
Normal file
23
src/app/core/platform/file_dialog.cc
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
#include "file_dialog.h"
|
||||||
|
|
||||||
|
#if defined(__linux__)
|
||||||
|
|
||||||
|
std::string FileDialogWrapper::ShowOpenFileDialog() {
|
||||||
|
return "Linux: Open file dialog";
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string FileDialogWrapper::ShowOpenFolderDialog() {
|
||||||
|
return "Linux: Open folder dialog";
|
||||||
|
}
|
||||||
|
|
||||||
|
std::vector<std::string> FileDialogWrapper::GetSubdirectoriesInFolder(
|
||||||
|
const std::string& folder_path) {
|
||||||
|
return {"Linux: Subdirectories in folder"};
|
||||||
|
}
|
||||||
|
|
||||||
|
std::vector<std::string> FileDialogWrapper::GetFilesInFolder(
|
||||||
|
const std::string& folder_path) {
|
||||||
|
return {"Linux: Files in folder"};
|
||||||
|
}
|
||||||
|
|
||||||
|
#endif
|
||||||
Reference in New Issue
Block a user