Overload  1.1
Game engine with editor
Public Member Functions | List of all members
OvWindowing::Dialogs::OpenFileDialog Class Reference

#include <OpenFileDialog.h>

Inheritance diagram for OvWindowing::Dialogs::OpenFileDialog:
OvWindowing::Dialogs::FileDialog

Public Member Functions

 OpenFileDialog (const std::string &p_dialogTitle)
 
void AddFileType (const std::string &p_label, const std::string &p_filter)
 
- Public Member Functions inherited from OvWindowing::Dialogs::FileDialog
 FileDialog (std::function< int(tagOFNA *)> p_callback, const std::string &p_dialogTitle)
 
void SetInitialDirectory (const std::string &p_initialDirectory)
 
virtual void Show (EExplorerFlags p_flags=EExplorerFlags::DONTADDTORECENT|EExplorerFlags::FILEMUSTEXIST|EExplorerFlags::HIDEREADONLY|EExplorerFlags::NOCHANGEDIR)
 
bool HasSucceeded () const
 
std::string GetSelectedFileName ()
 
std::string GetSelectedFilePath ()
 
std::string GetErrorInfo ()
 
bool IsFileExisting () const
 

Additional Inherited Members

- Protected Attributes inherited from OvWindowing::Dialogs::FileDialog
std::function< int(tagOFNA *)> m_callback
 
const std::string m_dialogTitle
 
std::string m_initialDirectory
 
std::string m_filter
 
std::string m_error
 
std::string m_filename
 
std::string m_filepath
 
bool m_succeeded
 

Detailed Description

Dialog window that asks the user to select a file from the disk

Constructor & Destructor Documentation

◆ OpenFileDialog()

OvWindowing::Dialogs::OpenFileDialog::OpenFileDialog ( const std::string &  p_dialogTitle)

Constructor

Parameters
p_dialogTitle@project: Overload
Author
: Overload Tech. @restrictions: This software may not be resold, redistributed or otherwise conveyed to a third party.

Member Function Documentation

◆ AddFileType()

void OvWindowing::Dialogs::OpenFileDialog::AddFileType ( const std::string &  p_label,
const std::string &  p_filter 
)

Add a supported file type to the dialog window

Parameters
p_label
p_filter

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