35#ifndef NFDFileBrowser_h
36#define NFDFileBrowser_h
49 const std::string& initialPath,
50 const std::string& title,
51 const std::string& filterName,
52 const std::string& filterMask,
66 std::optional<std::string> ThreadProc();
68 std::string m_initialPath;
70 std::string m_filterName;
71 std::string m_filterMask;
74 std::future<std::optional<std::string> > m_future;
76 std::optional<std::string> GetCachedResult();
78 bool m_cachedResultValid;
79 std::optional<std::string> m_cachedResult;
Declaration of FileBrowser.
Abstract base class for a dialog that displays a file picker window.
Definition: FileBrowser.h:44
Top level application window.
Definition: MainWindow.h:115
File browser backed by NativeFileDialog-extended.
Definition: NFDFileBrowser.h:46
virtual void Render()
Run imgui tasks (if needed) for the dialog.
Definition: NFDFileBrowser.cpp:89
virtual bool IsClosed()
Returns true if the dialog has been closed.
Definition: NFDFileBrowser.cpp:94
virtual std::string GetFileName()
Gets the filename the user selected.
Definition: NFDFileBrowser.cpp:110
virtual bool IsClosedOK()
Returns true if the dialog has been closed with an "OK" response.
Definition: NFDFileBrowser.cpp:102