4#ifndef __GUI_BACKEND_FILE_MANAGER_H__
5#define __GUI_BACKEND_FILE_MANAGER_H__
7#include "gtk_wrapper.h"
28#define FILE_MANAGER (gZrythm->file_manager)
59 FB_SELECTION_TYPE_COLLECTIONS,
60 FB_SELECTION_TYPE_LOCATIONS,
80 char * collections[50];
119 bool save_to_settings);
128file_browser_location_new (
void);
130static inline const char *
135 case FileManagerSpecialLocation::FILE_MANAGER_NONE:
137 case FileManagerSpecialLocation::FILE_MANAGER_HOME:
139 case FileManagerSpecialLocation::FILE_MANAGER_DESKTOP:
141 case FileManagerSpecialLocation::FILE_MANAGER_DRIVE:
142 return "drive-harddisk-symbolic";
169 const char * location,
170 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.