API Documentation
|
#include <FileChooserDialog.h>
Public Types | |
enum | DisplayMode { e_browser , e_recents , e_favorites } |
Signals | |
void | finishedSignal () |
void | onFileChoosenSignal () |
void | onCanceledSignal () |
Public Member Functions | |
FileChooserDialog (bool save_dialog=false, QWidget *parent=nullptr) | |
FileChooserDialog (const File &ini_location, bool save_dialog=false, QWidget *parent=nullptr) | |
~FileChooserDialog () | |
void | setOptions (const Buffer< FileFormat > &extensions, bool save_dialog) |
QSize | sizeHint () const override |
Buffer< File > | getSelected () const |
void | autoShowDialog (PopupInfo info=PopupInfo()) |
void | autoHideDialog (PopupInfo info=PopupInfo()) |
const Buffer< FileRequest > & | getSelectedRequests () const |
void | setAllowAny (bool allow_any) |
bool | isSaveDialog () const |
void | setCurrentDirectory (const File ¤t_directory) |
void | setFallbackDirectory (const File &file) |
void | setSaveContent (const Buffer< UUID > &save_content) |
const Buffer< UUID > & | saveContent () const |
void | showModifiedTime (bool show_modified_time) |
void | showAccessedTime (bool show_accessed_time) |
void | showFileSize (bool show_modified_time) |
void | setShowRecents (bool show_recent) |
void | setCurrentFileName (const String &name) |
void | setCurrentFile (const File &file) |
void | setCurrentExtension (const String &extension, bool update_format_to_first_match) |
bool | event (QEvent *e) override |
bool | isFolderBrowser () const |
bool | showRecents () const |
bool | showFavorites () const |
void | prepareForINI (INIFactory &factory) override |
void | finishReadingINI (INIFactory &factory) override |
void | selectFileNameField () |
void | setAdditionalFavorites (Buffer< File > favorites) |
void | browseFile (PopupInfo popup_origin=PopupInfo()) |
void | setIconProvider (const std::function< String(const FileRequest &)> &icon_provider) |
void | setCanReadCallback (const std::function< bool(const FileFormat &, const File &)> &callback) |
TranslatedString | actionName () const |
void | setActionName (const TranslatedString &action_name) |
void | addToRecents (const Buffer< File > &files) |
void | addToRecents (const File &file) |
TranslatedString | windowTitle () const |
void | showRecents () |
const File & | currentDirectory () const |
void | setNativeParent (QWidget *native_parent) |
Public Member Functions inherited from INIInterface | |
INIInterface (const File &default_ini) | |
virtual | ~INIInterface () |
virtual void | writeToLog (ProgressInfo *log, uint01 log_level=2U) |
virtual void | writeToLog (const String &title, ProgressInfo *log, uint01 log_level=2U) |
void | setDefaultINIFile (const File &file) |
virtual bool | readINIOptions () |
virtual bool | readINIOptions (File &ini_file) |
virtual bool | saveINIOptions (bool multithead=false) |
virtual bool | saveINIOptions (File &ini_file, bool multithead=false) |
Protected Attributes | |
Buffer< FileRequest > | m_selected_files |
bool | m_allow_any |
bool | m_neeeds_to_update = false |
Protected Attributes inherited from INIInterface | |
File | m_default_ini |
enum DisplayMode |
FileChooserDialog | ( | bool | save_dialog = false, |
QWidget * | parent = nullptr ) |
FileChooserDialog | ( | const File & | ini_location, |
bool | save_dialog = false, | ||
QWidget * | parent = nullptr ) |
~FileChooserDialog | ( | ) |
TranslatedString actionName | ( | ) | const |
|
protected |
void addToRecents | ( | const File & | file | ) |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
inline |
|
protected |
|
override |
|
protected |
|
signal |
|
overridevirtual |
Reimplemented from INIInterface.
|
protected |
|
protected |
|
protected |
const Buffer< FileRequest > & getSelectedRequests | ( | ) | const |
|
protected |
bool isFolderBrowser | ( | ) | const |
|
inline |
|
signal |
|
signal |
|
protected |
|
protected |
|
overridevirtual |
Reimplemented from INIInterface.
|
protected |
|
protected |
void selectFileNameField | ( | ) |
void setActionName | ( | const TranslatedString & | action_name | ) |
|
inline |
void setCanReadCallback | ( | const std::function< bool(const FileFormat &, const File &)> & | callback | ) |
void setCurrentDirectory | ( | const File & | current_directory | ) |
void setCurrentExtension | ( | const String & | extension, |
bool | update_format_to_first_match ) |
void setCurrentFile | ( | const File & | file | ) |
void setCurrentFileName | ( | const String & | name | ) |
void setFallbackDirectory | ( | const File & | file | ) |
void setIconProvider | ( | const std::function< String(const FileRequest &)> & | icon_provider | ) |
|
protected |
void setNativeParent | ( | QWidget * | native_parent | ) |
void setOptions | ( | const Buffer< FileFormat > & | extensions, |
bool | save_dialog ) |
void setShowRecents | ( | bool | show_recent | ) |
|
protected |
|
protected |
|
protected |
|
protected |
void showAccessedTime | ( | bool | show_accessed_time | ) |
bool showFavorites | ( | ) | const |
void showFileSize | ( | bool | show_modified_time | ) |
void showModifiedTime | ( | bool | show_modified_time | ) |
void showRecents | ( | ) |
|
inline |
|
override |
|
protected |
|
protected |
|
protected |
TranslatedString windowTitle | ( | ) | const |
|
protected |
|
protected |
|
protected |