35#ifndef IGFDFileBrowser_h
36#define IGFDFileBrowser_h
38#include <ImGuiFileDialog.h>
49 const std::string&
title,
50 const std::string&
id,
Declaration of FileBrowser.
Definition AcceleratorBuffer.h:204
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:146
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:122
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:141
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:136