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

#include <SaveFileDialog.h>

Inheritance diagram for OvWindowing::Dialogs::SaveFileDialog:
OvWindowing::Dialogs::FileDialog

Public Member Functions

 SaveFileDialog (const std::string &p_dialogTitle)
 
virtual void Show (EExplorerFlags p_flags=EExplorerFlags::DONTADDTORECENT|EExplorerFlags::FILEMUSTEXIST|EExplorerFlags::HIDEREADONLY|EExplorerFlags::NOCHANGEDIR) override
 
void DefineExtension (const std::string &p_label, const std::string &p_extension)
 
- 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)
 
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 save a file to the disk

Constructor & Destructor Documentation

◆ SaveFileDialog()

OvWindowing::Dialogs::SaveFileDialog::SaveFileDialog ( 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

◆ DefineExtension()

void OvWindowing::Dialogs::SaveFileDialog::DefineExtension ( const std::string &  p_label,
const std::string &  p_extension 
)

Define the extension of the saved file

Parameters
p_label
p_extension

◆ Show()

void OvWindowing::Dialogs::SaveFileDialog::Show ( EExplorerFlags  p_flags = EExplorerFlags::DONTADDTORECENT | EExplorerFlags::FILEMUSTEXIST | EExplorerFlags::HIDEREADONLY | EExplorerFlags::NOCHANGEDIR)
overridevirtual

Show the file dialog

Parameters
p_flags

Reimplemented from OvWindowing::Dialogs::FileDialog.


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