API Documentation
|
A dialog designed to allow the user to navigate a filesytem and select or create one or more files or folders that match a criteria. More...
#include <FileChooserDialog.h>
Public Types | |
enum | DisplayMode { e_browser , e_recents , e_favorites } |
Signals | |
void | finishedSignal () |
void | onCanceledSignal () |
void | onFileChoosenSignal () |
Public Member Functions | |
TranslatedString | actionName () const |
void | addToRecents (const Buffer< File > &files) |
void | addToRecents (const File &file) |
void | autoHideDialog (PopupInfo info=PopupInfo()) |
void | autoShowDialog (PopupInfo info=PopupInfo()) |
void | browseFile (PopupInfo popup_origin=PopupInfo()) |
const File & | currentDirectory () const |
bool | event (QEvent *e) override |
FileChooserDialog (bool save_dialog=false, QWidget *parent=nullptr) | |
FileChooserDialog (const File &ini_location, bool save_dialog=false, QWidget *parent=nullptr) | |
void | finishReadingINI (INIFactory &factory) override |
Buffer< File > | getSelected () const |
const Buffer< FileRequest > & | getSelectedRequests () const |
bool | isFolderBrowser () const |
bool | isSaveDialog () const |
void | prepareForINI (INIFactory &factory) override |
const Buffer< UUID > & | saveContent () const |
void | selectFileNameField () |
void | setActionName (const TranslatedString &action_name) |
void | setAdditionalFavorites (Buffer< File > favorites) |
void | setAllowAny (bool allow_any) |
void | setCanReadCallback (const std::function< bool(const FileFormat &, const File &)> &callback) |
void | setCurrentDirectory (const File ¤t_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) |
void | setNativeParent (QWidget *native_parent) |
void | setOptions (const Buffer< FileFormat > &extensions, bool save_dialog) |
void | setSaveContent (const Buffer< UUID > &save_content) |
void | setShowRecents (bool show_recent) |
void | showAccessedTime (bool show_accessed_time) |
bool | showFavorites () const |
void | showFileSize (bool show_modified_time) |
void | showModifiedTime (bool show_modified_time) |
void | showRecents () |
bool | showRecents () const |
QSize | sizeHint () const override |
TranslatedString | windowTitle () const |
~FileChooserDialog () | |
Public Member Functions inherited from INIInterface | |
INIInterface (const File &default_ini) | |
virtual bool | readINIOptions () |
virtual bool | readINIOptions (File &ini_file) |
virtual bool | saveINIOptions (bool multithead=false) |
virtual bool | saveINIOptions (File &ini_file, bool multithead=false) |
void | setDefaultINIFile (const File &file) |
virtual void | writeToLog (const String &title, ProgressInfo *log, uint01 log_level=2U) |
virtual void | writeToLog (ProgressInfo *log, uint01 log_level=2U) |
virtual | ~INIInterface () |
Protected Attributes | |
bool | m_allow_any |
bool | m_neeeds_to_update = false |
Buffer< FileRequest > | m_selected_files |
Protected Attributes inherited from INIInterface | |
File | m_default_ini |
Friends | |
class | ImageCacheThread |
A dialog designed to allow the user to navigate a filesytem and select or create one or more files or folders that match a criteria.
Supports browsing the filesystem using a native dialog or in touch mode a touch-friendly dialog. Also supports favorites and recents when available.
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 |
|
friend |
|
protected |
|
protected |
|
protected |