4#ifndef __GUI_BACKEND_FILE_MANAGER_H__
5#define __GUI_BACKEND_FILE_MANAGER_H__
28#define FILE_MANAGER (ZRYTHM->file_manager)
60 FB_SELECTION_TYPE_COLLECTIONS,
61 FB_SELECTION_TYPE_LOCATIONS,
81 char * collections[50];
120 bool save_to_settings);
129file_browser_location_new (
void);
143 const char * abs_path);
155 const char * location,
156 bool skip_if_standard);
void file_manager_add_location_and_save(FileManager *self, const char *abs_path)
Adds a location and saves the settings.
FileManagerSpecialLocation
Special location type.
void file_manager_free(FileManager *self)
Frees the file manager.
void file_manager_load_files(FileManager *self)
Loads the files under the current selection.
void file_manager_remove_location_and_save(FileManager *self, const char *location, bool skip_if_standard)
Removes the given location (bookmark) from the saved locations.
FileBrowserSelectionType
Current selection in the top window.
NONNULL void file_manager_set_selection(FileManager *self, FileBrowserLocation *sel, bool load_files, bool save_to_settings)
FileManager * file_manager_new(void)
Creates the file manager.
Locations to be used in the file browser.
char * path
Absolute path.
char * label
Human readable label.
FileManagerSpecialLocation special_location
Whether this is a standard (undeletable) location.
GPtrArray * locations
Default locations & user defined locations.
GPtrArray * files
Descriptors for files under the current collection / location.
FileBrowserLocation * selection
Current selection in the top window.
Metadata for a supported file.