35#ifndef KDialogFileBrowser_h
36#define KDialogFileBrowser_h
51 const std::string& initialPath,
52 const std::string& title,
53 const std::string& filterName,
54 const std::string& filterMask,
57 virtual ~KDialogFileBrowser();
65 std::optional<std::string> ThreadProc();
67 std::string m_initialPath;
69 std::string m_filterName;
70 std::string m_filterMask;
73 std::future<std::optional<std::string> > m_future;
75 std::optional<std::string> GetCachedResult();
77 bool m_cachedResultValid;
78 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
virtual std::string GetFileName()=0
Gets the filename the user selected.
virtual bool IsClosed()=0
Returns true if the dialog has been closed.
virtual void Render()=0
Run imgui tasks (if needed) for the dialog.
virtual bool IsClosedOK()=0
Returns true if the dialog has been closed with an "OK" response.