ngscopeclient 0.1-dev+51fbda87c
Public Member Functions | Protected Attributes | List of all members
IGFDFileBrowser Class Reference

File browser backed by ImGuiFileDialog. More...

#include <IGFDFileBrowser.h>

Inheritance diagram for IGFDFileBrowser:
Inheritance graph
[legend]
Collaboration diagram for IGFDFileBrowser:
Collaboration graph
[legend]

Public Member Functions

 IGFDFileBrowser (const std::string &initialPath, const std::string &title, const std::string &id, const std::string &filterName, const std::string &filterMask, bool saveDialog)
 
virtual void Render ()
 Run imgui tasks (if needed) for the dialog. More...
 
virtual bool IsClosed ()
 Returns true if the dialog has been closed. More...
 
virtual bool IsClosedOK ()
 Returns true if the dialog has been closed with an "OK" response. More...
 
virtual std::string GetFileName ()
 Gets the filename the user selected. More...
 
virtual void Render ()=0
 Run imgui tasks (if needed) for the dialog. More...
 
virtual bool IsClosed ()=0
 Returns true if the dialog has been closed. More...
 
virtual bool IsClosedOK ()=0
 Returns true if the dialog has been closed with an "OK" response. More...
 
virtual std::string GetFileName ()=0
 Gets the filename the user selected. More...
 

Protected Attributes

bool m_closed
 True if the dialog has been closed.
 
bool m_closedOK
 True if the dialog has been closed with an "OK" result.
 
ImGuiFileDialog m_dialog
 The underlying dialog.
 
std::map< std::string, std::string > m_bookmarks
 Bookmark paths.
 
std::string m_id
 Dialog ID.
 

Detailed Description

File browser backed by ImGuiFileDialog.

Member Function Documentation

◆ GetFileName()

string IGFDFileBrowser::GetFileName ( )
virtual

Gets the filename the user selected.

Implements FileBrowser.

◆ IsClosed()

bool IGFDFileBrowser::IsClosed ( )
virtual

Returns true if the dialog has been closed.

Implements FileBrowser.

◆ IsClosedOK()

bool IGFDFileBrowser::IsClosedOK ( )
virtual

Returns true if the dialog has been closed with an "OK" response.

Implements FileBrowser.

◆ Render()

void IGFDFileBrowser::Render ( )
virtual

Run imgui tasks (if needed) for the dialog.

Implements FileBrowser.


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