#include <FileDialog.h>
|
| | FileDialogImpl ()=default |
| |
| virtual | ~FileDialogImpl ()=default |
| |
| virtual void | OpenFile (const std::string &title, const std::string &defaultPathOrFile, const std::vector< std::string > &filters, const std::string &filterDescription, bool allowMultiple)=0 |
| |
| virtual void | SaveFile (const std::string &title, const std::string &defaultPathOrFile, const std::vector< std::string > &filters, const std::string &filterDescription)=0 |
| |
| virtual void | SelectFolder (const std::string &title, const std::string &defaultPath)=0 |
| |
| virtual bool | DisplayAndGetResult (std::string &outPath) |
| |
| bool | HasResult () |
| |
| std::string | ConsumeResult () |
| |
Definition at line 8 of file FileDialog.h.
◆ FileDialogImpl()
| Elevate::FileDialogImpl::FileDialogImpl |
( |
| ) |
|
|
default |
◆ ~FileDialogImpl()
| virtual Elevate::FileDialogImpl::~FileDialogImpl |
( |
| ) |
|
|
virtualdefault |
◆ ConsumeResult()
| std::string Elevate::FileDialogImpl::ConsumeResult |
( |
| ) |
|
Definition at line 31 of file FileDialog.cpp.
32 {
33 m_hasResult = false;
34 return m_result;
35 }
◆ DisplayAndGetResult()
| bool Elevate::FileDialogImpl::DisplayAndGetResult |
( |
std::string & |
outPath | ) |
|
|
virtual |
Definition at line 16 of file FileDialog.cpp.
17 {
19 {
21 return true;
22 }
23 return false;
24 }
std::string ConsumeResult()
◆ HasResult()
| bool Elevate::FileDialogImpl::HasResult |
( |
| ) |
|
◆ OpenFile()
| virtual void Elevate::FileDialogImpl::OpenFile |
( |
const std::string & |
title, |
|
|
const std::string & |
defaultPathOrFile, |
|
|
const std::vector< std::string > & |
filters, |
|
|
const std::string & |
filterDescription, |
|
|
bool |
allowMultiple |
|
) |
| |
|
pure virtual |
◆ SaveFile()
| virtual void Elevate::FileDialogImpl::SaveFile |
( |
const std::string & |
title, |
|
|
const std::string & |
defaultPathOrFile, |
|
|
const std::vector< std::string > & |
filters, |
|
|
const std::string & |
filterDescription |
|
) |
| |
|
pure virtual |
◆ SelectFolder()
| virtual void Elevate::FileDialogImpl::SelectFolder |
( |
const std::string & |
title, |
|
|
const std::string & |
defaultPath |
|
) |
| |
|
pure virtual |
◆ SetResult()
| void Elevate::FileDialogImpl::SetResult |
( |
const std::string & |
result | ) |
|
|
protected |
Definition at line 37 of file FileDialog.cpp.
38 {
39 m_hasResult = true;
40 m_result = result;
41 }
The documentation for this class was generated from the following files: