Blender V2.61 - r43446
|
#include <stdlib.h>
#include <math.h>
#include <string.h>
#include <unistd.h>
#include "MEM_guardedalloc.h"
#include "BLI_blenlib.h"
#include "BLI_linklist.h"
#include "BLI_threads.h"
#include "BLI_utildefines.h"
#include "BKE_context.h"
#include "BKE_global.h"
#include "BKE_library.h"
#include "BKE_icons.h"
#include "BKE_main.h"
#include "BKE_report.h"
#include "BLO_readfile.h"
#include "BKE_idcode.h"
#include "DNA_space_types.h"
#include "ED_fileselect.h"
#include "ED_datafiles.h"
#include "IMB_imbuf.h"
#include "IMB_imbuf_types.h"
#include "IMB_thumbs.h"
#include "PIL_time.h"
#include "WM_api.h"
#include "WM_types.h"
#include "UI_resources.h"
#include "filelist.h"
Go to the source code of this file.
Classes | |
struct | FileImage |
struct | ThumbnailJob |
struct | FileList |
struct | FolderList |
Defines | |
#define | GROUP_MAX 32 |
#define | SPECIAL_IMG_SIZE 48 |
#define | SPECIAL_IMG_ROWS 4 |
#define | SPECIAL_IMG_COLS 4 |
#define | SPECIAL_IMG_FOLDER 0 |
#define | SPECIAL_IMG_PARENT 1 |
#define | SPECIAL_IMG_REFRESH 2 |
#define | SPECIAL_IMG_BLENDFILE 3 |
#define | SPECIAL_IMG_SOUNDFILE 4 |
#define | SPECIAL_IMG_MOVIEFILE 5 |
#define | SPECIAL_IMG_PYTHONFILE 6 |
#define | SPECIAL_IMG_TEXTFILE 7 |
#define | SPECIAL_IMG_FONTFILE 8 |
#define | SPECIAL_IMG_UNKNOWNFILE 9 |
#define | SPECIAL_IMG_LOADING 10 |
#define | SPECIAL_IMG_MAX SPECIAL_IMG_LOADING + 1 |
Typedefs | |
typedef struct FileImage | FileImage |
typedef struct ThumbnailJob | ThumbnailJob |
typedef struct FileList | FileList |
typedef struct FolderList | FolderList |
Functions | |
static int | compare_name (const void *a1, const void *a2) |
static int | compare_date (const void *a1, const void *a2) |
static int | compare_size (const void *a1, const void *a2) |
static int | compare_extension (const void *a1, const void *a2) |
static int | is_hidden_file (const char *filename, short hide_dot) |
static int | is_filtered_file (struct direntry *file, const char *UNUSED(dir), unsigned int filter, short hide_dot) |
static int | is_filtered_lib (struct direntry *file, const char *dir, unsigned int filter, short hide_dot) |
static int | is_filtered_main (struct direntry *file, const char *UNUSED(dir), unsigned int UNUSED(filter), short hide_dot) |
void | filelist_filter (FileList *filelist) |
void | filelist_init_icons (void) |
void | filelist_free_icons (void) |
struct ListBase * | folderlist_new (void) |
void | folderlist_popdir (struct ListBase *folderlist, char *dir) |
void | folderlist_pushdir (ListBase *folderlist, const char *dir) |
int | folderlist_clear_next (struct SpaceFile *sfile) |
void | folderlist_free (ListBase *folderlist) |
ListBase * | folderlist_duplicate (ListBase *folderlist) |
static void | filelist_read_main (struct FileList *filelist) |
static void | filelist_read_library (struct FileList *filelist) |
static void | filelist_read_dir (struct FileList *filelist) |
struct FileList * | filelist_new (short type) |
void | filelist_free (struct FileList *filelist) |
void | filelist_freelib (struct FileList *filelist) |
struct BlendHandle * | filelist_lib (struct FileList *filelist) |
int | filelist_numfiles (struct FileList *filelist) |
const char * | filelist_dir (struct FileList *filelist) |
void | filelist_setdir (struct FileList *filelist, const char *dir) |
void | filelist_imgsize (struct FileList *filelist, short w, short h) |
short | filelist_changed (struct FileList *filelist) |
struct ImBuf * | filelist_getimage (struct FileList *filelist, int index) |
struct ImBuf * | filelist_geticon (struct FileList *filelist, int index) |
struct direntry * | filelist_file (struct FileList *filelist, int index) |
int | filelist_find (struct FileList *filelist, const char *filename) |
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) |
static int | file_is_blend_backup (const char *str) |
static int | file_extension_type (const char *relname) |
int | ED_file_extension_icon (const char *relname) |
static void | filelist_setfiletypes (struct FileList *filelist) |
void | filelist_readdir (struct FileList *filelist) |
int | filelist_empty (struct FileList *filelist) |
void | filelist_parent (struct FileList *filelist) |
void | filelist_select_file (struct FileList *filelist, int index, FileSelType select, unsigned int flag, FileCheckType check) |
void | filelist_select (struct FileList *filelist, FileSelection *sel, FileSelType select, unsigned int flag, FileCheckType check) |
int | filelist_is_selected (struct FileList *filelist, int index, FileCheckType check) |
void | filelist_sort (struct FileList *filelist, short sort) |
int | filelist_islibrary (struct FileList *filelist, char *dir, char *group) |
static int | groupname_to_code (const char *group) |
void | filelist_from_library (struct FileList *filelist) |
void | filelist_hideparent (struct FileList *filelist, short hide) |
void | filelist_from_main (struct FileList *filelist) |
static void | thumbnail_joblist_free (ThumbnailJob *tj) |
static void | thumbnails_startjob (void *tjv, short *stop, short *do_update, float *UNUSED(progress)) |
static void | thumbnails_update (void *tjv) |
static void | thumbnails_free (void *tjv) |
void | thumbnails_start (struct FileList *filelist, const struct bContext *C) |
void | thumbnails_stop (struct FileList *filelist, const struct bContext *C) |
int | thumbnails_running (struct FileList *filelist, const struct bContext *C) |
Variables | |
static ImBuf * | gSpecialFileImages [SPECIAL_IMG_MAX] |
Definition in file filelist.c.
#define GROUP_MAX 32 |
Definition at line 84 of file filelist.c.
Referenced by filelist_from_library(), and is_filtered_lib().
#define SPECIAL_IMG_BLENDFILE 3 |
Definition at line 140 of file filelist.c.
Referenced by filelist_geticon().
#define SPECIAL_IMG_COLS 4 |
Definition at line 135 of file filelist.c.
Referenced by filelist_init_icons().
#define SPECIAL_IMG_FOLDER 0 |
Definition at line 137 of file filelist.c.
Referenced by filelist_geticon().
#define SPECIAL_IMG_FONTFILE 8 |
Definition at line 145 of file filelist.c.
Referenced by filelist_geticon().
#define SPECIAL_IMG_LOADING 10 |
Definition at line 147 of file filelist.c.
Referenced by filelist_geticon().
#define SPECIAL_IMG_MAX SPECIAL_IMG_LOADING + 1 |
Definition at line 148 of file filelist.c.
Referenced by filelist_free_icons(), and filelist_init_icons().
#define SPECIAL_IMG_MOVIEFILE 5 |
Definition at line 142 of file filelist.c.
Referenced by filelist_geticon().
#define SPECIAL_IMG_PARENT 1 |
Definition at line 138 of file filelist.c.
Referenced by filelist_geticon().
#define SPECIAL_IMG_PYTHONFILE 6 |
Definition at line 143 of file filelist.c.
Referenced by filelist_geticon().
#define SPECIAL_IMG_REFRESH 2 |
Definition at line 139 of file filelist.c.
Referenced by filelist_geticon().
#define SPECIAL_IMG_ROWS 4 |
Definition at line 134 of file filelist.c.
Referenced by filelist_init_icons().
#define SPECIAL_IMG_SIZE 48 |
Definition at line 133 of file filelist.c.
Referenced by filelist_init_icons().
#define SPECIAL_IMG_SOUNDFILE 4 |
Definition at line 141 of file filelist.c.
Referenced by filelist_geticon().
#define SPECIAL_IMG_TEXTFILE 7 |
Definition at line 144 of file filelist.c.
Referenced by filelist_geticon().
#define SPECIAL_IMG_UNKNOWNFILE 9 |
Definition at line 146 of file filelist.c.
Referenced by filelist_geticon().
typedef struct FolderList FolderList |
typedef struct ThumbnailJob ThumbnailJob |
static int compare_date | ( | const void * | a1, |
const void * | a2 | ||
) | [static] |
Definition at line 183 of file filelist.c.
References BLI_natstrcmp(), direntry::relname, direntry::s, and direntry::type.
Referenced by filelist_sort().
static int compare_extension | ( | const void * | a1, |
const void * | a2 | ||
) | [static] |
Definition at line 244 of file filelist.c.
References BLI_strcasecmp(), direntry::relname, and direntry::type.
Referenced by filelist_sort().
static int compare_name | ( | const void * | a1, |
const void * | a2 | ||
) | [static] |
Definition at line 155 of file filelist.c.
References BLI_natstrcmp(), direntry::relname, and direntry::type.
Referenced by filelist_from_main(), and filelist_sort().
static int compare_size | ( | const void * | a1, |
const void * | a2 | ||
) | [static] |
Definition at line 214 of file filelist.c.
References BLI_natstrcmp(), direntry::relname, direntry::s, and direntry::type.
Referenced by filelist_sort().
int ED_file_extension_icon | ( | const char * | relname | ) |
Definition at line 769 of file filelist.c.
References BLENDERFILE, BLENDERFILE_BACKUP, BTXFILE, COLLADAFILE, file_extension_type(), FTFONTFILE, IMAGEFILE, MOVIEFILE, PYSCRIPTFILE, SOUNDFILE, and direntry::type.
Referenced by ghost_event_proc().
static int file_extension_type | ( | const char * | relname | ) | [static] |
Definition at line 736 of file filelist.c.
References BLENDERFILE, BLENDERFILE_BACKUP, BLI_testextensie(), BLI_testextensie_array(), BLO_has_bfile_extension(), BTXFILE, COLLADAFILE, file_is_blend_backup(), FTFONTFILE, G, IMAGEFILE, imb_ext_audio, imb_ext_image, imb_ext_image_qt, imb_ext_movie, MOVIEFILE, PYSCRIPTFILE, SOUNDFILE, and TEXTFILE.
Referenced by ED_file_extension_icon(), and filelist_setfiletypes().
static int file_is_blend_backup | ( | const char * | str | ) | [static] |
Definition at line 710 of file filelist.c.
References BLI_strcasestr(), and strlen().
Referenced by file_extension_type().
short filelist_changed | ( | struct FileList * | filelist | ) |
Definition at line 598 of file filelist.c.
References FileList::changed.
const char* filelist_dir | ( | struct FileList * | filelist | ) |
Definition at line 582 of file filelist.c.
References FileList::dir.
Referenced by file_change_dir(), and file_refresh().
int filelist_empty | ( | struct FileList * | filelist | ) |
Definition at line 875 of file filelist.c.
References FileList::filelist, and NULL.
Referenced by file_main_area_draw(), and file_refresh().
Definition at line 657 of file filelist.c.
References FileList::fidx, FileList::filelist, NULL, and FileList::numfiltered.
Referenced by autocomplete_file(), column_widths(), file_delete_exec(), file_delete_poll(), file_draw_list(), file_refresh(), file_rename_exec(), file_select_do(), file_select_match(), file_sfile_to_operator(), filelist_is_selected(), and filelist_select_file().
void filelist_filter | ( | FileList * | filelist | ) |
Definition at line 338 of file filelist.c.
References FileList::dir, FileList::fidx, FileList::filelist, FileList::filter, FileList::filterf, FileList::hide_dot, i, MEM_callocN(), MEM_freeN(), NULL, FileList::numfiles, and FileList::numfiltered.
Referenced by file_refresh(), filelist_from_library(), filelist_from_main(), filelist_read_dir(), and filelist_sort().
int filelist_find | ( | struct FileList * | filelist, |
const char * | filename | ||
) |
Definition at line 669 of file filelist.c.
References FileList::fidx, FileList::filelist, i, FileList::numfiles, FileList::numfiltered, and direntry::relname.
Referenced by file_refresh().
void filelist_free | ( | struct FileList * | filelist | ) |
Definition at line 527 of file filelist.c.
References FileList::fidx, FileList::filelist, FileList::filter, FileList::filter_glob, addon::engine::free(), FileList::hide_dot, i, direntry::image, IMB_freeImBuf(), MEM_freeN(), NULL, FileList::numfiles, FileList::numfiltered, direntry::path, direntry::relname, and direntry::string.
Referenced by ED_fileselect_clear(), and file_free().
void filelist_free_icons | ( | void | ) |
Definition at line 396 of file filelist.c.
References i, IMB_freeImBuf(), NULL, and SPECIAL_IMG_MAX.
Referenced by ED_file_exit().
void filelist_freelib | ( | struct FileList * | filelist | ) |
Definition at line 565 of file filelist.c.
References BLO_blendhandle_close(), FileList::libfiledata, and NULL.
Referenced by ED_fileselect_clear(), and file_free().
void filelist_from_library | ( | struct FileList * | filelist | ) |
Definition at line 986 of file filelist.c.
References BKE_previewimg_freefunc(), BLI_linklist_free(), BLI_linklist_length(), BLI_strdup(), BLI_strncpy(), BLO_blendhandle_close(), BLO_blendhandle_from_file(), BLO_blendhandle_get_datablock_names(), BLO_blendhandle_get_linkable_groups(), BLO_blendhandle_get_previews(), FILE_MAX, FILE_SORT_ALPHA, FileList::filelist, filelist_filter(), filelist_islibrary(), filelist_sort(), FileList::filter, direntry::flags, addon::engine::free(), G, GROUP_MAX, groupname_to_code(), PreviewImage::h, i, IB_rect, ICON_SIZE_PREVIEW, direntry::image, IMAGEFILE, IMB_allocImBuf(), FileList::libfiledata, names, LinkNode::next, NULL, FileList::numfiles, ImBuf::rect, PreviewImage::rect, direntry::relname, direntry::type, simple_enum_gen::w, and PreviewImage::w.
Referenced by filelist_read_library().
void filelist_from_main | ( | struct FileList * | filelist | ) |
Definition at line 1087 of file filelist.c.
References BLI_snprintf(), BLI_strdup(), compare_name(), FileList::dir, direntry::extra, FILE_MAX, FILE_SORT_ALPHA, FileList::filelist, filelist_filter(), filelist_sort(), files, FileList::filter, ListBase::first, ID::flag, direntry::flags, G, groupname_to_code(), FileList::hide_dot, FileList::hide_parent, ID_IM, ID_LA, ID_MA, ID_OB, ID_SCE, ID_TE, ID_WO, IMAGEFILE, ID::lib, LIB_FAKEUSER, MEM_mallocN(), Library::name, ID::name, direntry::nr, NULL, FileList::numfiles, direntry::poin, R_BG_RENDER, direntry::relname, SELECT, SELECTED_FILE, direntry::selflag, direntry::type, ID::us, and which_libbase().
Referenced by filelist_read_main().
Definition at line 616 of file filelist.c.
References BLENDERFILE, FileList::fidx, FileList::filelist, direntry::flags, FTFONTFILE, IMAGEFILE, MOVIEFILE, MOVIEFILE_ICON, NULL, FileList::numfiltered, PYSCRIPTFILE, direntry::relname, SOUNDFILE, SPECIAL_IMG_BLENDFILE, SPECIAL_IMG_FOLDER, SPECIAL_IMG_FONTFILE, SPECIAL_IMG_LOADING, SPECIAL_IMG_MOVIEFILE, SPECIAL_IMG_PARENT, SPECIAL_IMG_PYTHONFILE, SPECIAL_IMG_REFRESH, SPECIAL_IMG_SOUNDFILE, SPECIAL_IMG_TEXTFILE, SPECIAL_IMG_UNKNOWNFILE, TEXTFILE, and direntry::type.
Referenced by file_draw_list().
Definition at line 603 of file filelist.c.
References FileList::fidx, FileList::filelist, direntry::image, ImBuf::index, NULL, and FileList::numfiltered.
Referenced by file_draw_list().
void filelist_hidedot | ( | struct FileList * | filelist, |
short | hide | ||
) |
Definition at line 695 of file filelist.c.
References FileList::hide_dot.
Referenced by file_refresh().
void filelist_hideparent | ( | struct FileList * | filelist, |
short | hide | ||
) |
Definition at line 1082 of file filelist.c.
References FileList::hide_parent.
void filelist_imgsize | ( | struct FileList * | filelist, |
short | w, | ||
short | h | ||
) |
Definition at line 592 of file filelist.c.
References FileList::prv_h, FileList::prv_w, and simple_enum_gen::w.
void filelist_init_icons | ( | void | ) |
Definition at line 369 of file filelist.c.
References datatoc_prvicons, datatoc_prvicons_size, IB_rect, IMB_allocImBuf(), IMB_freeImBuf(), IMB_ibImageFromMemory(), NULL, ImBuf::rect, SPECIAL_IMG_COLS, SPECIAL_IMG_MAX, SPECIAL_IMG_ROWS, and SPECIAL_IMG_SIZE.
Referenced by ED_file_init().
int filelist_is_selected | ( | struct FileList * | filelist, |
int | index, | ||
FileCheckType | check | ||
) |
Definition at line 931 of file filelist.c.
References CHECK_ALL, CHECK_DIRS, CHECK_FILES, filelist_file(), SELECTED_FILE, direntry::selflag, and direntry::type.
Referenced by file_exec(), file_select(), file_select_all_exec(), file_selection_get(), file_sfile_to_operator(), and file_smoothscroll_invoke().
int filelist_islibrary | ( | struct FileList * | filelist, |
char * | dir, | ||
char * | group | ||
) |
Definition at line 968 of file filelist.c.
References BLO_is_a_library(), and FileList::dir.
Referenced by file_delete_poll(), file_rename_poll(), and filelist_from_library().
struct BlendHandle* filelist_lib | ( | struct FileList * | filelist | ) | [read] |
Definition at line 572 of file filelist.c.
References FileList::libfiledata.
Referenced by file_directory_poll().
struct FileList* filelist_new | ( | short | type | ) | [read] |
Definition at line 506 of file filelist.c.
References FILE_LOADLIB, FILE_MAIN, filelist_read_dir(), filelist_read_library(), filelist_read_main(), FileList::filterf, is_filtered_file(), is_filtered_lib(), is_filtered_main(), MEM_callocN(), p, and FileList::readf.
Referenced by file_duplicate(), and file_refresh().
int filelist_numfiles | ( | struct FileList * | filelist | ) |
Definition at line 577 of file filelist.c.
References FileList::numfiltered.
Referenced by autocomplete_file(), column_widths(), ED_fileselect_init_layout(), file_deselect_all(), file_draw_list(), file_exec(), file_hilight_set(), file_rename_exec(), file_select_all_exec(), file_select_do(), file_select_match(), file_selection_get(), file_sfile_to_operator(), and file_smoothscroll_invoke().
void filelist_parent | ( | struct FileList * | filelist | ) |
Definition at line 880 of file filelist.c.
References BLI_make_exist(), BLI_parent_dir(), FileList::dir, and filelist_readdir().
static void filelist_read_dir | ( | struct FileList * | filelist | ) | [static] |
Definition at line 817 of file filelist.c.
References BLI_cleanup_dir(), BLI_current_working_dir(), BLI_dir_contents(), FileList::dir, FileList::fidx, FILE_MAX, FileList::filelist, filelist_filter(), filelist_setfiletypes(), G, NULL, and FileList::numfiles.
Referenced by filelist_new(), and filelist_read_library().
static void filelist_read_library | ( | struct FileList * | filelist | ) | [static] |
Definition at line 841 of file filelist.c.
References BLI_cleanup_dir(), BLI_make_exist(), BLI_path_cmp, BLI_strncpy(), BLO_has_bfile_extension(), FileList::dir, FILE_MAX, FileList::filelist, filelist_from_library(), filelist_read_dir(), G, FileList::libfiledata, FileList::numfiles, direntry::relname, and direntry::type.
Referenced by filelist_new().
static void filelist_read_main | ( | struct FileList * | filelist | ) | [static] |
Definition at line 835 of file filelist.c.
References filelist_from_main().
Referenced by filelist_new().
void filelist_readdir | ( | struct FileList * | filelist | ) |
Definition at line 870 of file filelist.c.
References FileList::readf.
Referenced by file_refresh(), and filelist_parent().
void filelist_select | ( | struct FileList * | filelist, |
FileSelection * | sel, | ||
FileSelType | select, | ||
unsigned int | flag, | ||
FileCheckType | check | ||
) |
Definition at line 920 of file filelist.c.
References filelist_select_file(), FileSelection::first, FileSelection::last, and FileList::numfiltered.
Referenced by file_border_select_modal(), file_deselect_all(), file_select(), and file_select_all_exec().
void filelist_select_file | ( | struct FileList * | filelist, |
int | index, | ||
FileSelType | select, | ||
unsigned int | flag, | ||
FileCheckType | check | ||
) |
Definition at line 887 of file filelist.c.
References CHECK_ALL, CHECK_DIRS, CHECK_FILES, FILE_SEL_ADD, FILE_SEL_REMOVE, FILE_SEL_TOGGLE, filelist_file(), NULL, direntry::selflag, and direntry::type.
Referenced by file_rename_exec(), and filelist_select().
void filelist_setdir | ( | struct FileList * | filelist, |
const char * | dir | ||
) |
Definition at line 587 of file filelist.c.
References BLI_strncpy(), FileList::dir, and FILE_MAX.
Referenced by file_change_dir(), file_duplicate(), and file_refresh().
static void filelist_setfiletypes | ( | struct FileList * | filelist | ) | [static] |
Definition at line 793 of file filelist.c.
References BLI_testextensie_glob(), file_extension_type(), FileList::filelist, FileList::filter_glob, direntry::flags, FileList::numfiles, OPERATORFILE, direntry::relname, direntry::s, and direntry::type.
Referenced by filelist_read_dir().
void filelist_setfilter | ( | struct FileList * | filelist, |
unsigned int | filter | ||
) |
Definition at line 700 of file filelist.c.
References FileList::filter, and filter().
Referenced by file_refresh().
void filelist_setfilter_types | ( | struct FileList * | filelist, |
const char * | filter_glob | ||
) |
Definition at line 705 of file filelist.c.
References BLI_strncpy(), and FileList::filter_glob.
Referenced by file_refresh().
void filelist_sort | ( | struct FileList * | filelist, |
short | sort | ||
) |
Definition at line 948 of file filelist.c.
References compare_date(), compare_extension(), compare_name(), compare_size(), FILE_SORT_ALPHA, FILE_SORT_EXTENSION, FILE_SORT_SIZE, FILE_SORT_TIME, FileList::filelist, filelist_filter(), and FileList::numfiles.
Referenced by file_refresh(), filelist_from_library(), and filelist_from_main().
int folderlist_clear_next | ( | struct SpaceFile * | sfile | ) |
Definition at line 455 of file filelist.c.
References BLI_path_cmp, FileSelectParams::dir, FolderList::foldername, SpaceFile::folders_next, SpaceFile::folders_prev, ListBase::last, and SpaceFile::params.
Referenced by file_change_dir().
Definition at line 483 of file filelist.c.
References BLI_duplicatelist(), ListBase::first, FolderList::foldername, MEM_callocN(), MEM_dupallocN(), FolderList::next, and NULL.
Referenced by file_duplicate().
void folderlist_free | ( | ListBase * | folderlist | ) |
Definition at line 473 of file filelist.c.
References BLI_freelistN(), ListBase::first, FolderList::foldername, MEM_freeN(), and FolderList::next.
Referenced by ED_fileselect_exit(), file_change_dir(), and file_free().
struct ListBase* folderlist_new | ( | void | ) | [read] |
Definition at line 406 of file filelist.c.
References MEM_callocN(), and p.
Referenced by ED_fileselect_set_params(), file_next_exec(), file_previous_exec(), and file_refresh().
void folderlist_popdir | ( | struct ListBase * | folderlist, |
char * | dir | ||
) |
Definition at line 412 of file filelist.c.
References BLI_freelinkN(), BLI_strncpy(), FILE_MAXDIR, FolderList::foldername, ListBase::last, and MEM_freeN().
Referenced by file_next_exec(), and file_previous_exec().
void folderlist_pushdir | ( | ListBase * | folderlist, |
const char * | dir | ||
) |
Definition at line 432 of file filelist.c.
References BLI_addtail(), BLI_path_cmp, BLI_strncpy(), FILE_MAXDIR, FolderList::foldername, ListBase::last, MEM_mallocN(), and strlen().
Referenced by ED_fileselect_set_params(), file_change_dir(), file_next_exec(), and file_previous_exec().
static int groupname_to_code | ( | const char * | group | ) | [static] |
Definition at line 973 of file filelist.c.
References BKE_idcode_from_name(), BLI_last_slash(), and BLI_strncpy().
Referenced by filelist_from_library(), and filelist_from_main().
static int is_filtered_file | ( | struct direntry * | file, |
const char * | UNUSEDdir, | ||
unsigned int | filter, | ||
short | hide_dot | ||
) | [static] |
Definition at line 304 of file filelist.c.
References direntry::flags, FOLDERFILE, is_hidden_file(), direntry::relname, and direntry::type.
Referenced by filelist_new(), and is_filtered_lib().
static int is_filtered_lib | ( | struct direntry * | file, |
const char * | dir, | ||
unsigned int | filter, | ||
short | hide_dot | ||
) | [static] |
Definition at line 321 of file filelist.c.
References BLO_is_a_library(), FILE_MAX, GROUP_MAX, is_filtered_file(), is_hidden_file(), and direntry::relname.
Referenced by filelist_new().
static int is_filtered_main | ( | struct direntry * | file, |
const char * | UNUSEDdir, | ||
unsigned int | UNUSEDfilter, | ||
short | hide_dot | ||
) | [static] |
Definition at line 333 of file filelist.c.
References is_hidden_file(), and direntry::relname.
Referenced by filelist_new().
static int is_hidden_file | ( | const char * | filename, |
short | hide_dot | ||
) | [static] |
Definition at line 281 of file filelist.c.
References len(), and strlen().
Referenced by is_filtered_file(), is_filtered_lib(), and is_filtered_main().
static void thumbnail_joblist_free | ( | ThumbnailJob * | tj | ) | [static] |
Definition at line 1229 of file filelist.c.
References BLI_freelistN(), FileImage::done, ListBase::first, IMB_freeImBuf(), FileImage::img, ThumbnailJob::loadimages, and FileImage::next.
Referenced by thumbnails_free().
static void thumbnails_free | ( | void * | tjv | ) | [static] |
Definition at line 1290 of file filelist.c.
References MEM_freeN(), and thumbnail_joblist_free().
Referenced by thumbnails_start().
Definition at line 1336 of file filelist.c.
References CTX_wm_manager(), and WM_jobs_test().
Referenced by file_refresh().
Definition at line 1298 of file filelist.c.
References BKE_reports_init(), BLENDERFILE, BLI_addtail(), BLI_strncpy(), CTX_wm_manager(), CTX_wm_window(), FILE_MAX, ThumbnailJob::filelist, FileList::filelist, direntry::flags, FileImage::flags, direntry::image, IMAGEFILE, FileImage::index, ThumbnailJob::loadimages, MEM_callocN(), MOVIEFILE, NC_WINDOW, NULL, FileList::numfiles, FileImage::path, direntry::path, ThumbnailJob::reports, RPT_PRINT, thumbnails_free(), thumbnails_startjob(), thumbnails_update(), WM_jobs_callbacks(), WM_jobs_customdata(), WM_jobs_get(), WM_jobs_start(), and WM_jobs_timer().
Referenced by file_refresh().
static void thumbnails_startjob | ( | void * | tjv, |
short * | stop, | ||
short * | do_update, | ||
float * | UNUSEDprogress | ||
) | [static] |
Definition at line 1242 of file filelist.c.
References BLENDERFILE, ThumbnailJob::do_update, ListBase::first, FileImage::flags, IMAGEFILE, IMB_thumb_manage(), FileImage::img, ThumbnailJob::loadimages, MOVIEFILE, MOVIEFILE_ICON, FileImage::next, FileImage::path, PIL_sleep_ms(), ThumbnailJob::stop, THB_NORMAL, THB_SOURCE_BLEND, THB_SOURCE_IMAGE, and THB_SOURCE_MOVIE.
Referenced by thumbnails_start().
Definition at line 1331 of file filelist.c.
References CTX_wm_manager(), NULL, and WM_jobs_kill().
Referenced by ED_fileselect_clear(), and file_refresh().
static void thumbnails_update | ( | void * | tjv | ) | [static] |
Definition at line 1269 of file filelist.c.
References FileImage::done, ThumbnailJob::filelist, FileList::filelist, ListBase::first, direntry::flags, FileImage::flags, direntry::image, FileImage::img, FileImage::index, ThumbnailJob::loadimages, MOVIEFILE, MOVIEFILE_ICON, and FileImage::next.
Referenced by thumbnails_start().
ImBuf* gSpecialFileImages[SPECIAL_IMG_MAX] [static] |
Definition at line 150 of file filelist.c.