yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
yaze::util::FileDialogWrapper Class Reference

#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)
 

Detailed Description

Definition at line 20 of file file_util.h.

Member Function Documentation

◆ ShowOpenFileDialog() [1/2]

std::string yaze::util::FileDialogWrapper::ShowOpenFileDialog ( )
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().

Here is the call graph for this function:

◆ ShowOpenFileDialog() [2/2]

std::string yaze::util::FileDialogWrapper::ShowOpenFileDialog ( const FileDialogOptions & options)
static

Definition at line 14 of file file_dialog_nfd.cc.

References yaze::util::FileDialogOptions::filters.

◆ ShowOpenFileDialogAsync()

void yaze::util::FileDialogWrapper::ShowOpenFileDialogAsync ( const FileDialogOptions & options,
std::function< void(const std::string &)> callback )
static

◆ ShowOpenFolderDialog()

std::string yaze::util::FileDialogWrapper::ShowOpenFolderDialog ( )
static

◆ ShowSaveFileDialog()

std::string yaze::util::FileDialogWrapper::ShowSaveFileDialog ( const std::string & default_name = "",
const std::string & default_extension = "" )
static

◆ ShowOpenFileDialogNFD()

std::string yaze::util::FileDialogWrapper::ShowOpenFileDialogNFD ( )
static

Definition at line 134 of file file_dialog_nfd.cc.

References ShowOpenFileDialog().

Referenced by yaze::test::TestManager::DrawTestDashboard().

Here is the call graph for this function:

◆ ShowOpenFileDialogBespoke()

std::string yaze::util::FileDialogWrapper::ShowOpenFileDialogBespoke ( )
static

Definition at line 138 of file file_dialog_nfd.cc.

References ShowOpenFileDialog().

Referenced by yaze::test::TestManager::DrawTestDashboard().

Here is the call graph for this function:

◆ ShowSaveFileDialogNFD()

std::string yaze::util::FileDialogWrapper::ShowSaveFileDialogNFD ( const std::string & default_name = "",
const std::string & default_extension = "" )
static

Definition at line 142 of file file_dialog_nfd.cc.

References ShowSaveFileDialog().

Here is the call graph for this function:

◆ ShowSaveFileDialogBespoke()

std::string yaze::util::FileDialogWrapper::ShowSaveFileDialogBespoke ( const std::string & default_name = "",
const std::string & default_extension = "" )
static

Definition at line 147 of file file_dialog_nfd.cc.

References ShowSaveFileDialog().

Here is the call graph for this function:

◆ ShowOpenFolderDialogNFD()

std::string yaze::util::FileDialogWrapper::ShowOpenFolderDialogNFD ( )
static

Definition at line 152 of file file_dialog_nfd.cc.

References ShowOpenFolderDialog().

Here is the call graph for this function:

◆ ShowOpenFolderDialogBespoke()

std::string yaze::util::FileDialogWrapper::ShowOpenFolderDialogBespoke ( )
static

Definition at line 156 of file file_dialog_nfd.cc.

References ShowOpenFolderDialog().

Here is the call graph for this function:

◆ GetSubdirectoriesInFolder()

std::vector< std::string > yaze::util::FileDialogWrapper::GetSubdirectoriesInFolder ( const std::string & folder_path)
static

◆ GetFilesInFolder()

std::vector< std::string > yaze::util::FileDialogWrapper::GetFilesInFolder ( const std::string & folder_path)
static

The documentation for this class was generated from the following files: