|
Blender V4.3
|
#include <cstring>#include "BLI_listbase.h"#include "BLI_path_utils.hh"#include "BLI_string.h"#include "BKE_context.hh"#include "DNA_space_types.h"#include "ED_fileselect.hh"#include "MEM_guardedalloc.h"#include "file_intern.hh"Go to the source code of this file.
Classes | |
| struct | FolderList |
Functions | |
FOLDERLIST (previous/next) | |
| void | folderlist_popdir (ListBase *folderlist, char *dir) |
| void | folderlist_pushdir (ListBase *folderlist, const char *dir) |
| const char * | folderlist_peeklastdir (ListBase *folderlist) |
| bool | folderlist_clear_next (SpaceFile *sfile) |
| void | folderlist_free (ListBase *folderlist) |
| static ListBase | folderlist_duplicate (ListBase *folderlist) |
Folder-History (wraps/owns file list above) | |
| static FileFolderHistory * | folder_history_find (const SpaceFile *sfile, eFileBrowse_Mode browse_mode) |
| void | folder_history_list_ensure_for_active_browse_mode (SpaceFile *sfile) |
| static void | folder_history_entry_free (SpaceFile *sfile, FileFolderHistory *history) |
| void | folder_history_list_free (SpaceFile *sfile) |
| ListBase | folder_history_list_duplicate (ListBase *listbase) |
Storage for a list of folders for history backward and forward navigation.
Definition in file folder_history.cc.
|
static |
Definition at line 167 of file folder_history.cc.
References BLI_freelinkN(), SpaceFile::folder_histories, folderlist_free(), FileFolderHistory::folders_next, SpaceFile::folders_next, FileFolderHistory::folders_prev, and SpaceFile::folders_prev.
Referenced by folder_history_list_free().
|
static |
Definition at line 142 of file folder_history.cc.
References SpaceFile::folder_histories, and LISTBASE_FOREACH.
Referenced by folder_history_list_ensure_for_active_browse_mode().
Definition at line 187 of file folder_history.cc.
References BLI_addtail(), folderlist_duplicate(), FileFolderHistory::folders_next, FileFolderHistory::folders_prev, LISTBASE_FOREACH, and MEM_dupallocN.
Referenced by file_duplicate().
| void folder_history_list_ensure_for_active_browse_mode | ( | SpaceFile * | sfile | ) |
Definition at line 153 of file folder_history.cc.
References BLI_addtail(), FileFolderHistory::browse_mode, SpaceFile::browse_mode, SpaceFile::folder_histories, folder_history_find(), FileFolderHistory::folders_next, SpaceFile::folders_next, FileFolderHistory::folders_prev, and SpaceFile::folders_prev.
Referenced by file_refresh(), and fileselect_initialize_params_common().
| void folder_history_list_free | ( | SpaceFile * | sfile | ) |
Definition at line 180 of file folder_history.cc.
References SpaceFile::folder_histories, folder_history_entry_free(), and LISTBASE_FOREACH_MUTABLE.
Referenced by ED_fileselect_exit(), and file_free().
| bool folderlist_clear_next | ( | SpaceFile * | sfile | ) |
Definition at line 92 of file folder_history.cc.
References BLI_listbase_is_empty(), BLI_path_cmp, ED_fileselect_get_active_params(), FolderList::foldername, SpaceFile::folders_next, SpaceFile::folders_prev, ListBase::last, and params.
Referenced by ED_file_change_dir_ex().
Definition at line 124 of file folder_history.cc.
References BLI_duplicatelist(), LISTBASE_FOREACH, and MEM_dupallocN.
Referenced by folder_history_list_duplicate().
| void folderlist_free | ( | ListBase * | folderlist | ) |
Definition at line 113 of file folder_history.cc.
References BLI_listbase_clear(), LISTBASE_FOREACH_MUTABLE, and MEM_freeN().
Referenced by ED_file_change_dir_ex(), and folder_history_entry_free().
| const char * folderlist_peeklastdir | ( | ListBase * | folderlist | ) |
Definition at line 80 of file folder_history.cc.
References FolderList::foldername, and ListBase::last.
Referenced by file_directory_enter_handle().
| void folderlist_popdir | ( | ListBase * | folderlist, |
| char * | dir ) |
Definition at line 36 of file folder_history.cc.
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 56 of file folder_history.cc.
References BLI_addtail(), BLI_path_cmp, BLI_strdup(), FolderList::foldername, and ListBase::last.
Referenced by ED_file_change_dir_ex(), file_next_exec(), file_previous_exec(), and fileselect_initialize_params_common().