#include <file_util.h>
Static Public Member Functions | |
| static std::string | ShowOpenFileDialog () |
| ShowOpenFileDialog opens a file dialog and returns the selected filepath. Uses global feature flag to choose implementation. | |
| static std::string | ShowOpenFileDialog (const FileDialogOptions &options) |
| static void | ShowOpenFileDialogAsync (const FileDialogOptions &options, std::function< void(const std::string &)> callback) |
| static std::string | ShowOpenFolderDialog () |
| ShowOpenFolderDialog opens a file dialog and returns the selected folder path. Uses global feature flag to choose implementation. | |
| static std::string | ShowSaveFileDialog (const std::string &default_name="", const std::string &default_extension="") |
| ShowSaveFileDialog opens a save file dialog and returns the selected filepath. Uses global feature flag to choose implementation. | |
| static std::string | ShowOpenFileDialogNFD () |
| static std::string | ShowOpenFileDialogBespoke () |
| static std::string | ShowSaveFileDialogNFD (const std::string &default_name="", const std::string &default_extension="") |
| static std::string | ShowSaveFileDialogBespoke (const std::string &default_name="", const std::string &default_extension="") |
| static std::string | ShowOpenFolderDialogNFD () |
| static std::string | ShowOpenFolderDialogBespoke () |
| static std::vector< std::string > | GetSubdirectoriesInFolder (const std::string &folder_path) |
| static std::vector< std::string > | GetFilesInFolder (const std::string &folder_path) |
Definition at line 20 of file file_util.h.
|
static |
ShowOpenFileDialog opens a file dialog and returns the selected filepath. Uses global feature flag to choose implementation.
Definition at line 53 of file file_dialog_nfd.cc.
References ShowOpenFileDialog().
Referenced by yaze::editor::ProjectFileEditor::Draw(), yaze::editor::GraphicsEditor::DrawCgxImport(), yaze::editor::SpriteEditor::DrawCustomSpritesMetadata(), yaze::editor::MessageEditor::DrawExpandedMessageSettings(), yaze::editor::GraphicsEditor::DrawFileImport(), yaze::editor::AssemblyEditor::DrawFileMenu(), yaze::editor::PopupManager::DrawNewProjectPopup(), yaze::editor::GraphicsEditor::DrawObjImport(), yaze::editor::ScreenEditor::DrawOverworldMapEditor(), yaze::editor::GraphicsEditor::DrawPaletteControls(), yaze::editor::GraphicsEditor::DrawScrImport(), yaze::test::TestManager::DrawTestDashboard(), yaze::editor::GraphicsEditor::DrawTilemapImport(), yaze::editor::AssemblyEditor::DrawToolbarContent(), yaze::editor::EditorManager::EditorManager(), yaze::editor::ProjectFileEditor::ImportLabelsFromZScream(), yaze::editor::LinkSpritePanel::ImportZspr(), yaze::editor::ScreenEditor::LoadBinaryGfx(), yaze::zelda3::LoadDungeonMapGfxFromBinary(), yaze::editor::EditorManager::LoadProjectWithRom(), yaze::editor::EditorManager::LoadRom(), yaze::editor::EditorManager::OpenProject(), yaze::emu::ui::RenderNavBar(), ShowOpenFileDialog(), ShowOpenFileDialogAsync(), ShowOpenFileDialogBespoke(), ShowOpenFileDialogNFD(), yaze::gui::ThemeManager::ShowSimpleThemeEditor(), yaze::gui::ThemeManager::ShowThemeSelector(), and yaze::editor::MemoryEditor::Update().

|
static |
Definition at line 14 of file file_dialog_nfd.cc.
References yaze::util::FileDialogOptions::filters.
|
static |
Definition at line 57 of file file_dialog_nfd.cc.
References ShowOpenFileDialog().
Referenced by yaze::editor::EditorManager::LoadProjectWithRom(), yaze::editor::EditorManager::LoadRom(), and yaze::editor::EditorManager::OpenProject().

|
static |
ShowOpenFolderDialog opens a file dialog and returns the selected folder path. Uses global feature flag to choose implementation.
Definition at line 66 of file file_dialog_nfd.cc.
Referenced by yaze::editor::AssemblyEditor::DrawFileBrowser(), yaze::editor::PopupManager::DrawNewProjectPopup(), yaze::editor::AssemblyEditor::DrawToolbarContent(), yaze::editor::AssemblyEditor::DrawToolset(), yaze::editor::EditorManager::EditorManager(), ShowOpenFolderDialogBespoke(), and ShowOpenFolderDialogNFD().
|
static |
ShowSaveFileDialog opens a save file dialog and returns the selected filepath. Uses global feature flag to choose implementation.
Definition at line 79 of file file_dialog_nfd.cc.
Referenced by yaze::editor::ProjectFileEditor::Draw(), yaze::editor::MessageEditor::DrawExpandedMessageSettings(), yaze::editor::PopupManager::DrawNewProjectPopup(), yaze::editor::ScreenEditor::DrawOverworldMapEditor(), yaze::editor::PopupManager::DrawSaveAsPopup(), yaze::editor::EditorManager::SaveProjectAs(), yaze::editor::SpriteEditor::SaveZsmFileAs(), ShowSaveFileDialogBespoke(), ShowSaveFileDialogNFD(), and yaze::gui::ThemeManager::ShowSimpleThemeEditor().
|
static |
Definition at line 134 of file file_dialog_nfd.cc.
References ShowOpenFileDialog().
Referenced by yaze::test::TestManager::DrawTestDashboard().

|
static |
Definition at line 138 of file file_dialog_nfd.cc.
References ShowOpenFileDialog().
Referenced by yaze::test::TestManager::DrawTestDashboard().

|
static |
Definition at line 142 of file file_dialog_nfd.cc.
References ShowSaveFileDialog().

|
static |
Definition at line 147 of file file_dialog_nfd.cc.
References ShowSaveFileDialog().

|
static |
Definition at line 152 of file file_dialog_nfd.cc.
References ShowOpenFolderDialog().

|
static |
Definition at line 156 of file file_dialog_nfd.cc.
References ShowOpenFolderDialog().

|
static |
Definition at line 99 of file file_dialog_nfd.cc.
Referenced by yaze::editor::anonymous_namespace{assembly_editor.cc}::LoadFolder().
|
static |
Definition at line 116 of file file_dialog_nfd.cc.
Referenced by yaze::gui::ThemeManager::DiscoverAvailableThemeFiles(), and yaze::editor::anonymous_namespace{assembly_editor.cc}::LoadFolder().