diff options
Diffstat (limited to 'source/blender/editors/space_file/filelist.h')
-rw-r--r-- | source/blender/editors/space_file/filelist.h | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/source/blender/editors/space_file/filelist.h b/source/blender/editors/space_file/filelist.h index ff7e6869ee3..c5535b22f22 100644 --- a/source/blender/editors/space_file/filelist.h +++ b/source/blender/editors/space_file/filelist.h @@ -30,6 +30,11 @@ * ***** END GPL LICENSE BLOCK ***** */ +/** \file blender/editors/space_file/filelist.h + * \ingroup spfile + */ + + #ifndef FILELIST_H #define FILELIST_H @@ -45,6 +50,20 @@ struct Scene; struct Main; struct rcti; struct ReportList; +struct FileSelection; + +typedef enum FileSelType { + FILE_SEL_REMOVE = 0, + FILE_SEL_ADD = 1, + FILE_SEL_TOGGLE = 2 +} FileSelType; + +typedef enum FileCheckType +{ + CHECK_DIRS = 1, + CHECK_FILES = 2, + CHECK_ALL = 3 +} FileCheckType; struct FileList * filelist_new(short type); void filelist_init_icons(void); @@ -56,11 +75,13 @@ int filelist_numfiles(struct FileList* filelist); const char * filelist_dir(struct FileList* filelist); void filelist_setdir(struct FileList* filelist, const char *dir); struct direntry * filelist_file(struct FileList* filelist, int index); +void filelist_select(struct FileList* filelist, FileSelection* sel, FileSelType select, unsigned int flag, FileCheckType check); +void filelist_select_file(struct FileList* filelist, int index, FileSelType select, unsigned int flag, FileCheckType check); +int filelist_is_selected(struct FileList* filelist, int index, FileCheckType check); void filelist_hidedot(struct FileList* filelist, short hide); void filelist_setfilter(struct FileList* filelist, unsigned int filter); void filelist_setfilter_types(struct FileList* filelist, const char *filter_glob); void filelist_filter(struct FileList* filelist); -void filelist_swapselect(struct FileList* filelist); void filelist_imgsize(struct FileList* filelist, short w, short h); struct ImBuf * filelist_getimage(struct FileList* filelist, int index); struct ImBuf * filelist_geticon(struct FileList* filelist, int index); |