35#ifndef IGFDFileBrowser_h
36#define IGFDFileBrowser_h
38#include <ImGuiFileDialog.h>
48 const std::string& initialPath,
49 const std::string& title,
50 const std::string&
id,
51 const std::string& filterName,
52 const std::string& filterMask,
Declaration of FileBrowser.
Abstract base class for a dialog that displays a file picker window.
Definition: FileBrowser.h:44
File browser backed by ImGuiFileDialog.
Definition: IGFDFileBrowser.h:45
virtual std::string GetFileName()
Gets the filename the user selected.
Definition: IGFDFileBrowser.cpp:143
ImGuiFileDialog m_dialog
The underlying dialog.
Definition: IGFDFileBrowser.h:71
bool m_closed
True if the dialog has been closed.
Definition: IGFDFileBrowser.h:65
virtual void Render()
Run imgui tasks (if needed) for the dialog.
Definition: IGFDFileBrowser.cpp:119
std::map< std::string, std::string > m_bookmarks
Bookmark paths.
Definition: IGFDFileBrowser.h:74
virtual bool IsClosedOK()
Returns true if the dialog has been closed with an "OK" response.
Definition: IGFDFileBrowser.cpp:138
bool m_closedOK
True if the dialog has been closed with an "OK" result.
Definition: IGFDFileBrowser.h:68
std::string m_id
Dialog ID.
Definition: IGFDFileBrowser.h:77
virtual bool IsClosed()
Returns true if the dialog has been closed.
Definition: IGFDFileBrowser.cpp:133