|
Blender V5.0
|
#include "BLI_fileops.h"#include "BLI_linklist.h"#include "BLI_listbase.h"#include "BLI_math_base.h"#include "BLI_path_utils.hh"#include "BLI_string.h"#include "BLI_string_utf8.h"#include "BLI_utildefines.h"#include "BKE_appdir.hh"#include "BKE_blendfile.hh"#include "BKE_context.hh"#include "BKE_main.hh"#include "BKE_report.hh"#include "BKE_screen.hh"#include "BLT_translation.hh"#include "ED_fileselect.hh"#include "ED_screen.hh"#include "ED_select_utils.hh"#include "UI_interface.hh"#include "UI_interface_icons.hh"#include "UI_interface_layout.hh"#include "UI_resources.hh"#include "MEM_guardedalloc.h"#include "RNA_access.hh"#include "RNA_define.hh"#include "UI_view2d.hh"#include "WM_api.hh"#include "WM_types.hh"#include "file_intern.hh"#include "filelist.hh"#include "fsmenu.h"#include <algorithm>#include <cctype>#include <cerrno>#include <cstdio>#include <cstdlib>#include <cstring>Go to the source code of this file.
File Selection Utilities | |
| enum | FileSelect { FILE_SELECT_NOTHING = 0 , FILE_SELECT_DIR = 1 , FILE_SELECT_FILE = 2 } |
| static FileSelection | find_file_mouse_rect (SpaceFile *sfile, ARegion *region, const rcti *rect_region) |
| static void | clamp_to_filelist (int numfiles, FileSelection *sel) |
| static FileSelection | file_selection_get (bContext *C, const rcti *rect, bool fill) |
| static FileSelect | file_select_do (bContext *C, int selected_idx, bool do_diropen) |
| static bool | file_is_any_selected (FileList *files) |
| static FileSelection | file_current_selection_range_get (FileList *files) |
| static void | file_ensure_inside_viewbounds (ARegion *region, SpaceFile *sfile, const int file) |
| static void | file_ensure_selection_inside_viewbounds (ARegion *region, SpaceFile *sfile, FileSelection *sel) |
| static FileSelect | file_select (bContext *C, const rcti *rect, FileSelType select, bool fill, bool do_diropen) |
Reorder Bookmark Operator | |
| enum | { FILE_BOOKMARK_MOVE_TOP = -2 , FILE_BOOKMARK_MOVE_UP = -1 , FILE_BOOKMARK_MOVE_DOWN = 1 , FILE_BOOKMARK_MOVE_BOTTOM = 2 } |
| static wmOperatorStatus | bookmark_move_exec (bContext *C, wmOperator *op) |
| static bool | file_bookmark_move_poll (bContext *C) |
| void | FILE_OT_bookmark_move (wmOperatorType *ot) |
External operations that can performed on files. | |
| static const EnumPropertyItem | file_external_operation [] |
| static wmOperatorStatus | file_external_operation_exec (bContext *C, wmOperator *op) |
| static std::string | file_external_operation_get_description (bContext *, wmOperatorType *, PointerRNA *ptr) |
| void | FILE_OT_external_operation (wmOperatorType *ot) |
| static void | file_os_operations_menu_item (uiLayout *layout, wmOperatorType *ot, const char *path, FileExternalOperation operation) |
| static void | file_os_operations_menu_draw (const bContext *C_const, Menu *menu) |
| static bool | file_os_operations_menu_poll (const bContext *C_const, MenuType *) |
| void | file_external_operations_menu_register () |
| anonymous enum |
| Enumerator | |
|---|---|
| FILE_BOOKMARK_MOVE_TOP | |
| FILE_BOOKMARK_MOVE_UP | |
| FILE_BOOKMARK_MOVE_DOWN | |
| FILE_BOOKMARK_MOVE_BOTTOM | |
Definition at line 1279 of file file_ops.cc.
| enum FileSelect |
| Enumerator | |
|---|---|
| FILE_SELECT_NOTHING | |
| FILE_SELECT_DIR | |
| FILE_SELECT_FILE | |
Definition at line 96 of file file_ops.cc.
|
static |
Definition at line 1153 of file file_ops.cc.
References C, CTX_wm_area(), CTX_wm_space_file(), ED_fileselect_get_active_params(), ED_fsmenu_get(), FS_CATEGORY_BOOKMARKS, FS_INSERT_SAVE, fsmenu_insert_entry(), fsmenu_write_file_and_refresh_or_report_error(), OPERATOR_FINISHED, params, and wmOperator::reports.
Referenced by FILE_OT_bookmark_add().
|
static |
Definition at line 1231 of file file_ops.cc.
References BLI_is_dir(), C, CTX_wm_area(), ED_fsmenu_get(), ED_fsmenu_get_category(), FS_CATEGORY_BOOKMARKS, fsmenu_remove_entry(), fsmenu_write_file_and_refresh_or_report_error(), FSMenuEntry::next, OPERATOR_FINISHED, FSMenuEntry::path, and wmOperator::reports.
Referenced by FILE_OT_bookmark_cleanup().
|
static |
Definition at line 1188 of file file_ops.cc.
References SpaceFile::bookmarknr, C, CTX_wm_area(), CTX_wm_space_file(), ED_fsmenu_get(), ED_fsmenu_get_nentries(), FS_CATEGORY_BOOKMARKS, fsmenu_remove_entry(), fsmenu_write_file_and_refresh_or_report_error(), OPERATOR_FINISHED, wmOperator::ptr, wmOperator::reports, RNA_property_int_get(), RNA_property_is_set(), and RNA_struct_find_property().
Referenced by FILE_OT_bookmark_delete().
|
static |
Definition at line 1286 of file file_ops.cc.
References BLI_linklist_move_item(), SpaceFile::bookmarknr, C, CTX_wm_area(), CTX_wm_space_file(), ED_fsmenu_get(), ED_fsmenu_get_category(), ED_fsmenu_get_nentries(), ED_fsmenu_set_category(), FILE_BOOKMARK_MOVE_BOTTOM, FILE_BOOKMARK_MOVE_DOWN, FILE_BOOKMARK_MOVE_TOP, FILE_BOOKMARK_MOVE_UP, FS_CATEGORY_BOOKMARKS, fsmenu_write_file_and_refresh_or_report_error(), OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, wmOperator::reports, and RNA_enum_get().
Referenced by FILE_OT_bookmark_move().
|
static |
Definition at line 1108 of file file_ops.cc.
References BKE_main_blendfile_path(), BLI_path_abs(), BLI_path_normalize_dir(), C, CTX_data_main(), CTX_wm_space_file(), ED_file_change_dir(), ED_fileselect_get_active_params(), NC_SPACE, ND_SPACE_FILE_LIST, OPERATOR_FINISHED, params, wmOperator::ptr, RNA_property_string_get(), RNA_struct_find_property(), STRNCPY(), and WM_event_add_notifier().
Referenced by FILE_OT_select_bookmark().
|
static |
| dir | A normalized path (from user input). |
Definition at line 2865 of file file_ops.cc.
References BLI_is_dir(), BLI_path_is_abs_from_cwd(), BLI_path_is_unc(), BLI_path_parent_dir(), BLI_path_parent_dir_until_exists(), FILE_MAX_LIBEXTRA, and STRNCPY().
Referenced by file_directory_enter_handle().
|
static |
Definition at line 102 of file file_ops.cc.
References FileSelection::first, and FileSelection::last.
Referenced by file_selection_get().
| void ED_operatormacros_file | ( | ) |
Definition at line 3405 of file file_ops.cc.
Referenced by ED_spacemacros_init().
|
static |
Definition at line 1334 of file file_ops.cc.
References SpaceFile::bookmarknr, C, CTX_wm_space_file(), and ED_operator_file_browsing_active().
Referenced by FILE_OT_bookmark_move().
|
static |
Definition at line 504 of file file_ops.cc.
References C, CHECK_ALL, CTX_wm_region(), CTX_wm_space_file(), ED_fileselect_layout_isect_rect(), FILE_SEL_ADD, FILE_SEL_REMOVE, FILE_SEL_SELECTED, file_select(), file_select_deselect_all(), FILE_SELECT_DIR, FILE_SELECT_FILE, filelist_entry_parent_select_set(), SpaceFile::files, SpaceFile::layout, NC_SPACE, ND_SPACE_FILE_LIST, ND_SPACE_FILE_PARAMS, OPERATOR_FINISHED, wmOperator::ptr, ret, RNA_enum_get(), SEL_OP_SUB, SEL_OP_USE_PRE_DESELECT, select, ARegion::v2d, WM_event_add_notifier(), and WM_operator_properties_border_to_rcti().
Referenced by FILE_OT_select_box().
|
static |
Definition at line 414 of file file_ops.cc.
References BLI_rcti_length_x(), BLI_rcti_length_y(), ED_fileselect_get_layout(), FILE_LAYOUT_HOR, FILE_LAYOUT_VER, file_tile_boundbox(), FileSelection::first, FileLayout::flag, FileSelection::last, UI_view2d_region_to_view(), UNPACK2, ARegion::v2d, rcti::xmin, and rcti::ymin.
Referenced by file_box_select_modal().
|
static |
Definition at line 448 of file file_ops.cc.
References C, CHECK_ALL, CTX_wm_region(), CTX_wm_space_file(), ED_fileselect_get_active_params(), ED_fileselect_layout_isect_rect(), file_box_select_find_last_selected(), FILE_SEL_ADD, FILE_SEL_HIGHLIGHTED, FILE_SEL_REMOVE, file_select_deselect_all(), file_selection_get(), filelist_entries_select_index_range_set(), filelist_entry_select_set(), filelist_file(), FILENAME_IS_CURRPAR, SpaceFile::files, fileselect_file_set(), FileSelection::first, FileSelection::last, SpaceFile::layout, wmEvent::mval, NC_SPACE, ND_SPACE_FILE_PARAMS, OPERATOR_RUNNING_MODAL, params, FileDirEntry::relpath, result, ARegion::v2d, WM_event_add_notifier(), WM_gesture_box_modal(), and WM_operator_properties_border_to_rcti().
Referenced by FILE_OT_select_box().
|
static |
Definition at line 1564 of file file_ops.cc.
References C, CTX_wm_manager(), CTX_wm_space_file(), EVT_FILESELECT_CANCEL, SpaceFile::op, OPERATOR_FINISHED, and WM_event_fileselect_event().
Referenced by FILE_OT_cancel().
|
static |
Definition at line 1497 of file file_ops.cc.
References FileLayout::attribute_columns, BLI_assert, C, COLUMN_NONE, CTX_wm_region(), CTX_wm_space_file(), ED_fileselect_get_active_params(), file_attribute_column_header_is_inside(), file_attribute_column_type_find_isect(), FILE_SORT_DEFAULT, FILE_SORT_INVERT, SpaceFile::layout, wmEvent::mval, NC_SPACE, ND_SPACE_FILE_PARAMS, OPERATOR_PASS_THROUGH, params, FileAttributeColumn::sort_type, ARegion::v2d, and WM_event_add_notifier().
Referenced by FILE_OT_sort_column_ui_context().
|
static |
Definition at line 245 of file file_ops.cc.
References filelist_entry_is_selected(), filelist_files_ensure(), FileSelection::first, and FileSelection::last.
Referenced by file_view_selected_exec().
|
static |
Definition at line 3274 of file file_ops.cc.
References BKE_reportf(), C, CHECK_ALL, CTX_wm_manager(), CTX_wm_space_file(), ED_fileselect_clear(), file_delete_single(), filelist_entry_select_index_get(), filelist_file(), filelist_files_ensure(), SpaceFile::files, i, NC_SPACE, ND_SPACE_FILE_LIST, OPERATOR_FINISHED, wmOperator::reports, RPT_ERROR, and WM_event_add_notifier().
Referenced by FILE_OT_delete().
|
static |
Definition at line 3309 of file file_ops.cc.
References ALERT_ICON_NONE, C, IFACE_, and WM_operator_confirm_ex().
Referenced by FILE_OT_delete().
|
static |
Definition at line 3233 of file file_ops.cc.
References C, CHECK_ALL, CTX_wm_space_file(), ED_fileselect_get_active_params(), ED_operator_file_browsing_active(), FILE_MAX_LIBEXTRA, filelist_entry_select_index_get(), filelist_files_ensure(), filelist_islibrary(), SpaceFile::files, i, and params.
Referenced by FILE_OT_delete().
|
static |
Definition at line 3261 of file file_ops.cc.
References BLI_delete_soft(), BLI_exists(), FILE_MAX_LIBEXTRA, and filelist_file_get_full_path().
Referenced by file_delete_exec().
| void file_directory_enter_handle | ( | bContext * | C, |
| void * | arg_unused, | ||
| void * | arg_but ) |
This callback runs when the user has entered a new path in the file selectors directory field.
Expand & normalize the path then:
Definition at line 2921 of file file_ops.cc.
References BKE_blendfile_library_path_explode(), BLI_assert, BLI_is_file(), BLI_path_append(), BLI_path_is_rel(), BLI_path_normalize_dir(), BLI_path_split_dir_file(), C, can_create_dir_from_user_input(), CTX_data_main(), CTX_wm_space_file(), ED_file_change_dir(), ED_fileselect_get_active_params(), file_expand_directory(), FILE_MAX_LIBEXTRA, filelist_is_dir(), SpaceFile::files, folderlist_peeklastdir(), SpaceFile::folders_prev, blender::wm::InvokeDefault, name, NC_SPACE, ND_SPACE_FILE_LIST, ot, params, ptr, RNA_boolean_set(), RNA_string_set(), STREQ, STRNCPY(), UNLIKELY, WM_event_add_notifier(), WM_operator_name_call_ptr(), WM_operator_properties_create_ptr(), WM_operator_properties_free(), and WM_operatortype_find().
Referenced by ED_file_path_button().
|
static |
Definition at line 2678 of file file_ops.cc.
References BKE_report(), BKE_reportf(), BLI_assert_msg, BLI_dir_create_recursive(), BLI_exists(), BLI_path_make_safe(), C, CTX_wm_manager(), CTX_wm_space_file(), CTX_wm_window(), dirname(), ED_file_change_dir(), ED_fileselect_clear(), ED_fileselect_get_active_params(), FILE_MAX, FILE_MAXFILE, file_params_invoke_rename_postscroll(), FILE_PARAMS_RENAME_PENDING, NC_SPACE, ND_SPACE_FILE_LIST, new_folder_path(), OPERATOR_CANCELLED, OPERATOR_FINISHED, params, wmOperator::ptr, wmOperator::reports, RNA_boolean_get(), RNA_property_string_get(), RNA_struct_find_property(), RPT_ERROR, RPT_WARNING, STRNCPY(), and WM_event_add_notifier().
Referenced by file_directory_new_invoke(), and FILE_OT_directory_new().
|
static |
Definition at line 2765 of file file_ops.cc.
References ALERT_ICON_NONE, C, file_directory_new_exec(), IFACE_, wmOperator::ptr, RNA_boolean_get(), and WM_operator_confirm_ex().
Referenced by FILE_OT_directory_new().
| void file_draw_check | ( | bContext * | C | ) |
Definition at line 1772 of file file_ops.cc.
References C, CTX_wm_area(), and file_draw_check_ex().
Referenced by file_draw_check_cb(), file_filename_enter_handle(), file_filenum_exec(), file_select(), file_select_all_exec(), file_view_selected_exec(), and filepath_drop_exec().
| void file_draw_check_cb | ( | bContext * | C, |
| void * | arg1, | ||
| void * | arg2 ) |
For use with; UI_block_func_set.
Definition at line 1778 of file file_ops.cc.
References C, and file_draw_check().
Referenced by ED_file_path_button(), file_panel_execution_buttons_draw(), and file_panel_operator().
Definition at line 1748 of file file_ops.cc.
References C, wmOperatorType::check, CTX_data_main(), ED_area_tag_redraw(), file_operator_to_sfile(), file_sfile_to_operator(), ListBase::first, SpaceFile::op, SPACE_FILE, ScrArea::spacedata, ScrArea::spacetype, wmOperator::type, and UNLIKELY.
Referenced by ED_file_change_dir_ex(), and file_draw_check().
| bool file_draw_check_exists | ( | SpaceFile * | sfile | ) |
Definition at line 1783 of file file_ops.cc.
References BLI_is_file(), BLI_path_join, ED_fileselect_get_active_params(), FILE_CHECK_EXISTING, FILE_MAX, SpaceFile::op, and params.
Referenced by file_panel_execution_buttons_draw().
|
static |
Definition at line 3370 of file file_ops.cc.
References C, CTX_wm_area(), CTX_wm_space_file(), ED_fileselect_get_active_params(), LISTBASE_FOREACH, OPERATOR_FINISHED, params, ScrArea::regionbase, and UI_textbutton_activate_rna().
Referenced by FILE_OT_edit_directory_path().
Definition at line 2200 of file file_ops.cc.
References C, FILE_SEL_ADD, file_select(), file_select_mval_to_select_rect(), FILE_SELECT_NOTHING, and wmEvent::mval.
Referenced by file_execute_mouse_invoke().
If file is outside viewbounds, this adjusts view to make sure it's inside
Definition at line 275 of file file_ops.cc.
References BLI_assert, View2D::cur, ED_fileselect_get_layout(), file_tile_boundbox(), FileLayout::offset_top, FileLayout::tile_border_x, FileLayout::tile_border_y, FileLayout::tile_h, FileLayout::tile_w, UI_view2d_curRect_validate(), ARegion::v2d, ARegion::winx, ARegion::winy, rctf::xmax, rcti::xmax, rctf::xmin, rcti::xmin, rctf::ymax, rcti::ymax, rctf::ymin, and rcti::ymin.
Referenced by file_ensure_selection_inside_viewbounds(), and file_walk_select_selection_set().
|
static |
Definition at line 315 of file file_ops.cc.
References ED_fileselect_get_layout(), file_ensure_inside_viewbounds(), FILE_LAYOUT_HOR, FILE_LAYOUT_VER, FileSelection::first, FileLayout::flag, FileSelection::last, FileLayout::tile_h, FileLayout::tile_w, ARegion::winx, and ARegion::winy.
Referenced by file_select(), and file_view_selected_exec().
|
static |
Definition at line 2156 of file file_ops.cc.
References C, CTX_wm_space_file(), file_execute(), OPERATOR_CANCELLED, and OPERATOR_FINISHED.
Referenced by FILE_OT_execute().
Execute the active file, as set in the file select params.
Definition at line 2092 of file file_ops.cc.
References BKE_main_blendfile_path(), BLI_exists(), BLI_path_abs(), BLI_path_append_dir(), BLI_path_normalize_native(), BLI_path_parent_dir(), BLI_path_split_dir_file(), BLI_strdup(), C, CTX_data_main(), CTX_wm_area(), CTX_wm_manager(), ED_file_change_dir(), ED_fileselect_get_active_params(), ED_fsmenu_get(), EVT_FILESELECT_EXEC, FILE_MAX, file_sfile_to_operator_ex(), FILE_TYPE_DIR, filelist_file(), FILENAME_IS_PARENT, SpaceFile::files, FS_CATEGORY_RECENT, FS_INSERT_FIRST, FS_INSERT_SAVE, fsmenu_insert_entry(), fsmenu_write_file_and_refresh_or_report_error(), MEM_freeN(), SpaceFile::op, params, FileDirEntry::redirection_path, FileDirEntry::relpath, wmOperator::reports, FileDirEntry::typeflag, and WM_event_fileselect_event().
Referenced by file_exec(), and file_execute_mouse_invoke().
|
static |
Definition at line 2167 of file file_ops.cc.
References C, CTX_wm_space_file(), wmOperatorType::description, SpaceFile::op, TIP_, and wmOperator::type.
Referenced by FILE_OT_execute().
|
static |
Definition at line 2210 of file file_ops.cc.
References C, CTX_wm_region(), CTX_wm_space_file(), ED_fileselect_layout_is_inside_pt(), file_ensure_hovered_is_active(), file_execute(), SpaceFile::layout, wmEvent::mval, OPERATOR_CANCELLED, OPERATOR_FINISHED, OPERATOR_PASS_THROUGH, and ARegion::v2d.
Referenced by FILE_OT_mouse_execute().
|
static |
Definition at line 2808 of file file_ops.cc.
References BKE_appdir_folder_root(), BKE_main_blendfile_path(), BLI_dir_home(), BLI_path_abs(), BLI_path_is_rel(), BLI_path_is_unc(), BLI_path_is_win32_drive_only(), BLI_path_join, params, SEP, and STRNCPY().
Referenced by file_directory_enter_handle(), and file_filename_enter_handle().
|
static |
Definition at line 1835 of file file_ops.cc.
References BKE_reportf(), BLI_file_external_operation_execute(), C, CHECK_ALL, CTX_wm_space_file(), CTX_wm_window(), ED_fileselect_get_active_params(), ED_operator_file_browsing_active(), ELEM, FILE_EXTERNAL_OPERATION_FOLDER_CMD, FILE_EXTERNAL_OPERATION_FOLDER_OPEN, FILE_MAX_LIBEXTRA, FILE_TYPE_DIR, filelist_dir(), filelist_entry_select_index_get(), filelist_file(), filelist_file_get_full_path(), filelist_files_ensure(), filelist_islibrary(), SpaceFile::files, i, blender::wm::InvokeDefault, OPERATOR_CANCELLED, OPERATOR_FINISHED, ot, params, wmOperator::ptr, wmOperator::reports, RNA_enum_get(), RNA_string_set(), RPT_ERROR, FileDirEntry::typeflag, WM_CURSOR_DEFAULT, WM_cursor_set(), WM_CURSOR_WAIT, WM_operator_name_call_ptr(), WM_operator_properties_create_ptr(), WM_operator_properties_free(), and WM_operatortype_find().
Referenced by FILE_OT_external_operation().
|
static |
Definition at line 1908 of file file_ops.cc.
References file_external_operation, ptr, RNA_enum_description(), RNA_enum_get(), and TIP_.
Referenced by FILE_OT_external_operation().
| void file_external_operations_menu_register | ( | ) |
Definition at line 2070 of file file_ops.cc.
References BLT_I18NCONTEXT_DEFAULT_BPYRNA, MenuType::draw, file_os_operations_menu_draw(), file_os_operations_menu_poll(), MenuType::idname, MenuType::label, MEM_callocN(), N_, MenuType::poll, STRNCPY_UTF8, MenuType::translation_context, and WM_menutype_add().
Referenced by ED_spacetype_file().
| void file_filename_enter_handle | ( | bContext * | C, |
| void * | arg_unused, | ||
| void * | arg_but ) |
Definition at line 3008 of file file_ops.cc.
References BKE_main_blendfile_path(), BLI_assert, BLI_path_abs(), BLI_path_join, BLI_path_make_safe_filename_ex(), BLI_path_normalize_dir(), C, CTX_data_main(), CTX_wm_space_file(), ED_file_change_dir(), ED_fileselect_get_active_params(), file_draw_check(), file_expand_directory(), FILE_MAX, FILE_PATH_TOKENS_ALLOW, file_select_match(), filelist_is_dir(), SpaceFile::files, NC_SPACE, ND_SPACE_FILE_PARAMS, params, STRNCPY(), UI_textbutton_activate_but(), UNLIKELY, and WM_event_add_notifier().
Referenced by file_panel_execution_buttons_draw().
|
static |
Definition at line 3140 of file file_ops.cc.
References C, CTX_wm_area(), CTX_wm_space_file(), ED_area_tag_redraw(), ED_fileselect_get_active_params(), file_draw_check(), filenum_newname(), OPERATOR_FINISHED, params, wmOperator::ptr, and RNA_int_get().
Referenced by FILE_OT_filenum().
|
static |
Definition at line 3098 of file file_ops.cc.
References C, CTX_wm_space_file(), ED_fileselect_get_active_params(), ED_operator_file_browsing_active(), FILE_CHECK_EXISTING, and params.
Referenced by FILE_OT_filenum().
|
static |
Definition at line 3064 of file file_ops.cc.
References C, CTX_wm_manager(), CTX_wm_space_file(), ED_fileselect_clear(), ED_fileselect_get_active_params(), FILE_HIDE_DOT, NC_SPACE, ND_SPACE_FILE_LIST, OPERATOR_FINISHED, params, and WM_event_add_notifier().
Referenced by FILE_OT_hidedot().
|
static |
Definition at line 1462 of file file_ops.cc.
References C, CTX_wm_area(), CTX_wm_region(), CTX_wm_space_file(), ED_area_tag_redraw(), file_highlight_set(), OPERATOR_PASS_THROUGH, and wmEvent::xy.
Referenced by FILE_OT_highlight().
Definition at line 1414 of file file_ops.cc.
References ED_fileselect_get_active_params(), ED_fileselect_layout_is_inside_pt(), ED_fileselect_layout_offset(), filelist_files_ensure(), SpaceFile::files, SpaceFile::layout, params, View2D::tot, UI_view2d_region_to_view(), ARegion::v2d, ARegion::winrct, rctf::xmin, rcti::xmin, rctf::ymax, and rcti::ymin.
Referenced by file_highlight_invoke(), and file_main_region_draw().
|
static |
Definition at line 230 of file file_ops.cc.
References CHECK_ALL, filelist_entry_select_index_get(), filelist_files_ensure(), and i.
Referenced by file_select(), file_select_all_exec(), and file_walk_select_do().
|
static |
Definition at line 2371 of file file_ops.cc.
References C, CTX_wm_space_file(), ED_file_change_dir(), ED_fileselect_get_active_params(), folderlist_popdir(), folderlist_pushdir(), SpaceFile::folders_next, SpaceFile::folders_prev, NC_SPACE, ND_SPACE_FILE_LIST, OPERATOR_FINISHED, params, and WM_event_add_notifier().
Referenced by FILE_OT_next().
|
static |
Definition at line 1552 of file file_ops.cc.
References C, CTX_wm_space_file(), ED_operator_file_browsing_active(), and SpaceFile::op.
Referenced by FILE_OT_cancel().
| void file_operator_to_sfile | ( | Main * | bmain, |
| SpaceFile * | sfile, | ||
| wmOperator * | op ) |
Definition at line 1701 of file file_ops.cc.
References BKE_main_blendfile_path(), BLI_path_abs(), BLI_path_split_dir_file(), ED_fileselect_get_active_params(), FILE_MAX, params, wmOperator::ptr, RNA_property_string_get(), and RNA_struct_find_property().
Referenced by file_draw_check_ex().
Definition at line 1964 of file file_ops.cc.
References C, CHECK_ALL, CTX_wm_space_file(), ED_fileselect_get_active_params(), ED_operator_file_browsing_active(), FILE_EXTERNAL_OPERATION_BROWSE, FILE_EXTERNAL_OPERATION_EDIT, FILE_EXTERNAL_OPERATION_FIND, FILE_EXTERNAL_OPERATION_FOLDER_CMD, FILE_EXTERNAL_OPERATION_FOLDER_OPEN, FILE_EXTERNAL_OPERATION_INSTALL, FILE_EXTERNAL_OPERATION_NEW, FILE_EXTERNAL_OPERATION_OPEN, FILE_EXTERNAL_OPERATION_PLAY, FILE_EXTERNAL_OPERATION_PREVIEW, FILE_EXTERNAL_OPERATION_PRINT, FILE_EXTERNAL_OPERATION_PROPERTIES, FILE_EXTERNAL_OPERATION_RUNAS, FILE_EXTERNAL_OPERATION_SHOW, FILE_MAX_LIBEXTRA, file_os_operations_menu_item(), FILE_TYPE_DIR, filelist_dir(), filelist_entry_select_index_get(), filelist_file(), filelist_file_get_full_path(), filelist_files_ensure(), filelist_islibrary(), SpaceFile::files, i, blender::wm::InvokeDefault, Menu::layout, uiLayout::operator_context_set(), ot, params, FileDirEntry::typeflag, and WM_operatortype_find().
Referenced by file_external_operations_menu_register().
|
static |
Definition at line 1940 of file file_ops.cc.
References BLI_file_external_operation_supported(), ELEM, file_external_operation, FILE_EXTERNAL_OPERATION_FOLDER_OPEN, FILE_EXTERNAL_OPERATION_OPEN, IFACE_, blender::wm::InvokeDefault, uiLayout::op(), ot, RNA_enum_name(), RNA_enum_set(), UI_ITEM_NONE, and UNUSED_VARS.
Referenced by file_os_operations_menu_draw().
Definition at line 2030 of file file_ops.cc.
References C, CHECK_ALL, CTX_wm_operator_poll_msg_set(), CTX_wm_space_file(), ED_fileselect_get_active_params(), ED_operator_file_browsing_active(), FILE_MAX_LIBEXTRA, filelist_entry_select_index_get(), filelist_files_ensure(), filelist_islibrary(), SpaceFile::files, i, and params.
Referenced by file_external_operations_menu_register().
| void FILE_OT_bookmark_add | ( | wmOperatorType * | ot | ) |
Definition at line 1169 of file file_ops.cc.
References bookmark_add_exec(), ED_operator_file_browsing_active(), and ot.
Referenced by file_operatortypes().
| void FILE_OT_bookmark_cleanup | ( | wmOperatorType * | ot | ) |
Definition at line 1258 of file file_ops.cc.
References bookmark_cleanup_exec(), ED_operator_file_browsing_active(), and ot.
Referenced by file_operatortypes().
| void FILE_OT_bookmark_delete | ( | wmOperatorType * | ot | ) |
Definition at line 1206 of file file_ops.cc.
References bookmark_delete_exec(), ED_operator_file_browsing_active(), ot, PROP_SKIP_SAVE, RNA_def_int(), and RNA_def_property_flag().
Referenced by file_operatortypes().
| void FILE_OT_bookmark_move | ( | wmOperatorType * | ot | ) |
Definition at line 1346 of file file_ops.cc.
References bookmark_move_exec(), FILE_BOOKMARK_MOVE_BOTTOM, FILE_BOOKMARK_MOVE_DOWN, file_bookmark_move_poll(), FILE_BOOKMARK_MOVE_TOP, FILE_BOOKMARK_MOVE_UP, OPTYPE_REGISTER, ot, and RNA_def_enum().
Referenced by file_operatortypes().
| void FILE_OT_cancel | ( | wmOperatorType * | ot | ) |
Definition at line 1577 of file file_ops.cc.
References file_cancel_exec(), file_operator_poll(), and ot.
Referenced by file_operatortypes().
| void FILE_OT_delete | ( | wmOperatorType * | ot | ) |
Definition at line 3315 of file file_ops.cc.
References file_delete_exec(), file_delete_invoke(), file_delete_poll(), and ot.
Referenced by file_operatortypes().
| void FILE_OT_directory_new | ( | wmOperatorType * | ot | ) |
Definition at line 2779 of file file_ops.cc.
References ED_operator_file_browsing_active(), file_directory_new_exec(), file_directory_new_invoke(), FILE_MAX, ot, PROP_SKIP_SAVE, RNA_def_boolean(), RNA_def_property_flag(), RNA_def_string_dir_path(), and WM_operator_properties_confirm_or_exec().
Referenced by file_operatortypes().
| void FILE_OT_edit_directory_path | ( | wmOperatorType * | ot | ) |
Definition at line 3387 of file file_ops.cc.
References ED_operator_file_active(), file_edit_directory_path_exec(), and ot.
Referenced by file_operatortypes().
| void FILE_OT_execute | ( | wmOperatorType * | ot | ) |
Definition at line 2180 of file file_ops.cc.
References ED_operator_file_browsing_active(), file_exec(), file_execute_get_description(), and ot.
Referenced by file_operatortypes().
| void FILE_OT_external_operation | ( | wmOperatorType * | ot | ) |
Definition at line 1917 of file file_ops.cc.
References file_external_operation, file_external_operation_exec(), file_external_operation_get_description(), FILE_EXTERNAL_OPERATION_OPEN, OPTYPE_REGISTER, ot, and RNA_def_enum().
Referenced by file_operatortypes().
| void FILE_OT_filenum | ( | wmOperatorType * | ot | ) |
Definition at line 3157 of file file_ops.cc.
References file_filenum_exec(), file_filenum_poll(), ot, and RNA_def_int().
Referenced by file_operatortypes().
| void FILE_OT_filepath_drop | ( | wmOperatorType * | ot | ) |
Definition at line 2633 of file file_ops.cc.
References ED_operator_file_browsing_active(), FILE_MAX, filepath_drop_exec(), ot, and RNA_def_string_file_path().
Referenced by file_operatortypes().
| void FILE_OT_hidedot | ( | wmOperatorType * | ot | ) |
Definition at line 3079 of file file_ops.cc.
References ED_operator_file_browsing_active(), file_hidedot_exec(), and ot.
Referenced by file_operatortypes().
| void FILE_OT_highlight | ( | wmOperatorType * | ot | ) |
Definition at line 1478 of file file_ops.cc.
References ED_operator_file_active(), file_highlight_invoke(), and ot.
Referenced by file_operatortypes().
| void FILE_OT_mouse_execute | ( | wmOperatorType * | ot | ) |
Variation of FILE_OT_execute that accounts for some mouse specific handling. Otherwise calls the same logic.
Definition at line 2238 of file file_ops.cc.
References ED_operator_file_browsing_active(), file_execute_mouse_invoke(), OPTYPE_INTERNAL, and ot.
Referenced by file_operatortypes().
| void FILE_OT_next | ( | wmOperatorType * | ot | ) |
Definition at line 2389 of file file_ops.cc.
References ED_operator_file_browsing_active(), file_next_exec(), and ot.
Referenced by file_operatortypes().
| void FILE_OT_parent | ( | wmOperatorType * | ot | ) |
Definition at line 2316 of file file_ops.cc.
References ED_operator_file_browsing_active(), file_parent_exec(), and ot.
Referenced by file_operatortypes().
| void FILE_OT_previous | ( | wmOperatorType * | ot | ) |
Definition at line 2352 of file file_ops.cc.
References ED_operator_file_browsing_active(), file_previous_exec(), and ot.
Referenced by file_operatortypes().
| void FILE_OT_refresh | ( | wmOperatorType * | ot | ) |
Definition at line 2275 of file file_ops.cc.
References ED_operator_file_browsing_active(), file_refresh_exec(), and ot.
Referenced by file_operatortypes().
| void FILE_OT_rename | ( | wmOperatorType * | ot | ) |
Definition at line 3214 of file file_ops.cc.
References ED_operator_file_browsing_active(), file_rename_exec(), and ot.
Referenced by file_operatortypes().
| void FILE_OT_reset_recent | ( | wmOperatorType * | ot | ) |
Definition at line 1395 of file file_ops.cc.
References ED_operator_file_browsing_active(), ot, and reset_recent_exec().
Referenced by file_operatortypes().
| void FILE_OT_select | ( | wmOperatorType * | ot | ) |
Definition at line 654 of file file_ops.cc.
References BLT_I18NCONTEXT_EDITOR_FILEBROWSER, ED_operator_file_active(), file_select_exec(), ot, PROP_HIDDEN, PROP_SKIP_SAVE, RNA_def_boolean(), RNA_def_property_flag(), RNA_def_property_translation_context(), WM_generic_select_invoke(), WM_generic_select_modal(), and WM_operator_properties_generic_select().
Referenced by file_operatortypes().
| void FILE_OT_select_all | ( | wmOperatorType * | ot | ) |
Definition at line 1031 of file file_ops.cc.
References ED_operator_file_active(), file_select_all_exec(), ot, and WM_operator_properties_select_all().
Referenced by file_operatortypes().
| void FILE_OT_select_bookmark | ( | wmOperatorType * | ot | ) |
Definition at line 1128 of file file_ops.cc.
References bookmark_select_exec(), ED_operator_file_browsing_active(), FILE_MAXDIR, ot, PROP_SKIP_SAVE, RNA_def_property_flag(), and RNA_def_string().
Referenced by file_operatortypes().
| void FILE_OT_select_box | ( | wmOperatorType * | ot | ) |
Definition at line 536 of file file_ops.cc.
References ED_operator_file_active(), file_box_select_exec(), file_box_select_modal(), ot, WM_gesture_box_cancel(), WM_gesture_box_invoke(), WM_operator_properties_gesture_box(), and WM_operator_properties_select_operation_simple().
Referenced by file_operatortypes().
| void FILE_OT_select_walk | ( | wmOperatorType * | ot | ) |
Definition at line 940 of file file_ops.cc.
References BLT_I18NCONTEXT_EDITOR_FILEBROWSER, ED_operator_file_active(), file_walk_select_invoke(), ot, PROP_SKIP_SAVE, RNA_def_boolean(), RNA_def_property_flag(), RNA_def_property_translation_context(), and WM_operator_properties_select_walk_direction().
Referenced by file_operatortypes().
| void FILE_OT_smoothscroll | ( | wmOperatorType * | ot | ) |
Definition at line 2586 of file file_ops.cc.
References ED_operator_file_active(), file_smoothscroll_invoke(), and ot.
Referenced by file_operatortypes().
| void FILE_OT_sort_column_ui_context | ( | wmOperatorType * | ot | ) |
Definition at line 1531 of file file_ops.cc.
References ED_operator_file_active(), file_column_sort_ui_context_invoke(), OPTYPE_INTERNAL, and ot.
Referenced by file_operatortypes().
| void FILE_OT_start_filter | ( | wmOperatorType * | ot | ) |
Definition at line 3351 of file file_ops.cc.
References ED_operator_file_active(), file_start_filter_exec(), and ot.
Referenced by file_operatortypes().
| void FILE_OT_view_selected | ( | wmOperatorType * | ot | ) |
Definition at line 1087 of file file_ops.cc.
References ED_operator_file_active(), file_view_selected_exec(), and ot.
Referenced by file_operatortypes().
|
static |
Definition at line 2293 of file file_ops.cc.
References BKE_main_blendfile_path(), BLI_path_abs(), BLI_path_normalize_dir(), BLI_path_parent_dir(), C, CTX_data_main(), CTX_wm_space_file(), ED_file_change_dir(), ED_fileselect_get_active_params(), filelist_setrecursion(), SpaceFile::files, NC_SPACE, ND_SPACE_FILE_LIST, OPERATOR_FINISHED, params, and WM_event_add_notifier().
Referenced by FILE_OT_parent().
|
static |
Definition at line 2335 of file file_ops.cc.
References C, CTX_wm_space_file(), ED_file_change_dir(), ED_fileselect_get_active_params(), folderlist_popdir(), folderlist_pushdir(), SpaceFile::folders_next, SpaceFile::folders_prev, NC_SPACE, ND_SPACE_FILE_LIST, OPERATOR_FINISHED, params, and WM_event_add_notifier().
Referenced by FILE_OT_previous().
|
static |
Definition at line 2259 of file file_ops.cc.
References C, CTX_wm_manager(), CTX_wm_space_file(), ED_fileselect_clear(), ED_fsmenu_get(), fsmenu_refresh_system_category(), NC_SPACE, ND_SPACE_FILE_LIST, OPERATOR_FINISHED, and WM_event_add_notifier().
Referenced by FILE_OT_refresh().
|
static |
Definition at line 3200 of file file_ops.cc.
References C, CTX_wm_area(), CTX_wm_space_data(), ED_area_tag_redraw(), ED_fileselect_get_active_params(), file_rename_state_activate(), OPERATOR_FINISHED, and params.
Referenced by FILE_OT_rename().
|
static |
Definition at line 3178 of file file_ops.cc.
References CHECK_ALL, ED_fileselect_get_active_params(), FILE_PARAMS_RENAME_ACTIVE, FILE_SEL_ADD, FILE_SEL_EDITING, FILE_SEL_SELECTED, filelist_entry_select_get(), filelist_entry_select_index_set(), filelist_file(), filelist_files_ensure(), SpaceFile::files, params, FileDirEntry::relpath, and STRNCPY().
Referenced by file_rename_exec().
|
static |
Definition at line 334 of file file_ops.cc.
References C, CHECK_ALL, CHECK_DIRS, CTX_wm_region(), CTX_wm_space_file(), ED_fileselect_get_active_params(), FILE_DIRSEL_ONLY, file_draw_check(), file_ensure_selection_inside_viewbounds(), file_is_any_selected(), FILE_SEL_ADD, FILE_SEL_REMOVE, FILE_SEL_SELECTED, file_select_do(), FILE_SELECT_NOTHING, file_selection_get(), filelist_entries_select_index_range_set(), filelist_entry_select_index_get(), SpaceFile::files, FileSelection::first, FileSelection::last, params, and select.
Referenced by file_box_select_exec(), file_ensure_hovered_is_active(), and file_select_exec().
|
static |
Definition at line 974 of file file_ops.cc.
References BLI_assert, C, CHECK_ALL, CHECK_DIRS, CHECK_FILES, CTX_wm_area(), CTX_wm_space_file(), CTX_wm_window(), ED_area_tag_redraw(), ED_fileselect_get_active_params(), FILE_DIRSEL_ONLY, file_draw_check(), file_is_any_selected(), FILE_SEL_ADD, FILE_SEL_REMOVE, FILE_SEL_SELECTED, FILE_SEL_TOGGLE, filelist_entries_select_index_range_set(), filelist_entry_select_index_get(), filelist_files_ensure(), SpaceFile::files, FileSelection::first, i, FileSelection::last, OPERATOR_CANCELLED, OPERATOR_FINISHED, params, wmOperator::ptr, RNA_enum_get(), SEL_DESELECT, SEL_INVERT, SEL_SELECT, SEL_TOGGLE, and WM_event_add_mousemove().
Referenced by FILE_OT_select_all().
|
static |
Definition at line 167 of file file_ops.cc.
References BKE_main_blendfile_path(), BLI_path_abs(), BLI_path_append_dir(), BLI_path_normalize_dir(), BLI_path_parent_dir(), C, CTX_data_main(), CTX_wm_space_file(), ED_file_change_dir(), ED_fileselect_get_active_params(), FILE_MAX, FILE_SELECT_DIR, FILE_SELECT_FILE, FILE_SELECT_NOTHING, FILE_TYPE_DIR, filelist_file(), filelist_files_ensure(), filelist_setrecursion(), FILENAME_IS_PARENT, SpaceFile::files, fileselect_file_set(), params, FileDirEntry::redirection_path, FileDirEntry::relpath, STRNCPY(), and FileDirEntry::typeflag.
Referenced by file_select().
|
static |
Definition at line 570 of file file_ops.cc.
References C, CHECK_ALL, CTX_wm_region(), CTX_wm_space_file(), CTX_wm_window(), ED_fileselect_get_active_params(), ED_fileselect_layout_is_inside_pt(), FILE_SEL_ADD, FILE_SEL_REMOVE, FILE_SEL_SELECTED, FILE_SEL_TOGGLE, file_select(), file_select_deselect_all(), FILE_SELECT_DIR, FILE_SELECT_FILE, file_select_mval_to_select_rect(), FILE_SELECT_NOTHING, filelist_entry_parent_select_set(), filelist_entry_select_index_get(), filelist_files_ensure(), SpaceFile::files, SpaceFile::layout, NC_SPACE, ND_SPACE_FILE_LIST, ND_SPACE_FILE_PARAMS, OPERATOR_CANCELLED, OPERATOR_FINISHED, OPERATOR_PASS_THROUGH, OPERATOR_RUNNING_MODAL, params, wmOperator::ptr, ARegion::regiontype, ret, RGN_TYPE_WINDOW, RNA_boolean_get(), RNA_int_get(), ARegion::v2d, WM_event_add_mousemove(), WM_event_add_notifier(), rcti::xmin, and rcti::ymin.
Referenced by FILE_OT_select().
|
static |
Definition at line 562 of file file_ops.cc.
References rcti::xmax, rcti::xmin, rcti::ymax, and rcti::ymin.
Referenced by file_ensure_hovered_is_active(), and file_select_exec().
|
static |
Definition at line 128 of file file_ops.cc.
References C, CHECK_ALL, clamp_to_filelist(), CTX_wm_region(), CTX_wm_space_file(), filelist_entry_select_index_get(), filelist_files_ensure(), SpaceFile::files, find_file_mouse_rect(), FileSelection::first, and FileSelection::last.
Referenced by file_box_select_modal(), and file_select().
| void file_sfile_filepath_set | ( | SpaceFile * | sfile, |
| const char * | filepath ) |
Use to set the file selector path from some arbitrary source.
Definition at line 1729 of file file_ops.cc.
References BLI_assert, BLI_exists(), BLI_is_dir(), BLI_path_split_dir_file(), BLI_path_split_dir_part(), ED_fileselect_get_active_params(), FILE_DIRSEL_ONLY, params, and STRNCPY().
Referenced by filepath_drop_exec().
| void file_sfile_to_operator | ( | bContext * | C, |
| Main * | bmain, | ||
| wmOperator * | op, | ||
| SpaceFile * | sfile ) |
Definition at line 1694 of file file_ops.cc.
References C, FILE_MAX, and file_sfile_to_operator_ex().
Referenced by file_draw_check_ex(), filepath_drop_exec(), and fileselect_file_set().
| void file_sfile_to_operator_ex | ( | bContext * | C, |
| Main * | bmain, | ||
| wmOperator * | op, | ||
| SpaceFile * | sfile, | ||
| char * | filepath ) |
Definition at line 1595 of file file_ops.cc.
References BKE_main_blendfile_path(), BLI_path_join, BLI_path_rel(), BLI_path_slash_ensure(), BLI_strncpy(), C, CHECK_DIRS, CHECK_FILES, ED_fileselect_get_active_params(), FILE_MAX, filelist_entry_select_index_get(), filelist_file(), filelist_files_ensure(), SpaceFile::files, i, params, wmOperator::ptr, FileDirEntry::redirection_path, FileDirEntry::relpath, RNA_property_boolean_get(), RNA_property_collection_add(), RNA_property_collection_clear(), RNA_property_string_get(), RNA_property_string_set(), RNA_property_update(), RNA_property_update_check(), RNA_string_set(), RNA_struct_find_property(), and STREQ.
Referenced by file_execute(), and file_sfile_to_operator().
|
static |
Definition at line 2409 of file file_ops.cc.
References abs, BKE_area_find_region_type(), C, CHECK_ALL, CTX_wm_area(), CTX_wm_manager(), CTX_wm_region(), CTX_wm_region_set(), CTX_wm_space_file(), CTX_wm_window(), View2D::cur, wmEvent::customdata, ED_fileselect_get_active_params(), ED_fileselect_layout_numfiles(), ED_fileselect_layout_offset(), ED_region_tag_redraw(), blender::wm::ExecDefault, FILE_LAYOUT_HOR, FILE_PARAMS_RENAME_PENDING, FILE_PARAMS_RENAME_POSTSCROLL_ACTIVE, FILE_PARAMS_RENAME_POSTSCROLL_PENDING, file_params_renamefile_activate(), file_params_renamefile_clear(), file_params_smoothscroll_timer_clear(), FILE_SEL_EDITING, FILE_SEL_HIGHLIGHTED, filelist_entry_select_index_get(), filelist_files_ensure(), filelist_is_ready(), SpaceFile::files, FileLayout::flag, FileLayout::flow_columns, i, SpaceFile::layout, max_ii(), OPERATOR_FINISHED, OPERATOR_PASS_THROUGH, params, ARegion::regiontype, RGN_TYPE_WINDOW, RNA_int_set(), FileLayout::rows, SpaceFile::scroll_offset, SpaceFile::smoothscroll_timer, FileLayout::tile_border_x, FileLayout::tile_border_y, FileLayout::tile_h, FileLayout::tile_w, View2D::tot, ARegion::v2d, WM_operator_name_call(), WM_operator_properties_create(), WM_operator_properties_free(), rctf::xmax, rctf::xmin, rctf::ymax, and rctf::ymin.
Referenced by FILE_OT_smoothscroll().
|
static |
Definition at line 3334 of file file_ops.cc.
References C, CTX_wm_area(), CTX_wm_space_file(), ED_fileselect_get_active_params(), LISTBASE_FOREACH, OPERATOR_FINISHED, params, ScrArea::regionbase, and UI_textbutton_activate_rna().
Referenced by FILE_OT_start_filter().
|
static |
Definition at line 1053 of file file_ops.cc.
References C, CTX_wm_area(), CTX_wm_region(), CTX_wm_space_file(), CTX_wm_window(), ED_area_tag_redraw(), ED_fileselect_get_active_params(), file_current_selection_range_get(), file_draw_check(), file_ensure_selection_inside_viewbounds(), SpaceFile::files, FileSelection::first, FileSelection::last, OPERATOR_CANCELLED, OPERATOR_FINISHED, params, and WM_event_add_mousemove().
Referenced by FILE_OT_view_selected().
|
static |
Definition at line 835 of file file_ops.cc.
References BLI_assert, C, CTX_wm_region(), CTX_wm_window(), ED_fileselect_get_layout(), file_is_any_selected(), FILE_LAYOUT_HOR, FILE_LAYOUT_VER, file_walk_select_selection_set(), filelist_files_ensure(), SpaceFile::files, FileLayout::flag, FileLayout::flow_columns, IN_RANGE, params, FileLayout::rows, UI_SELECT_WALK_DOWN, UI_SELECT_WALK_LEFT, UI_SELECT_WALK_RIGHT, and UI_SELECT_WALK_UP.
Referenced by file_walk_select_invoke().
|
static |
Definition at line 922 of file file_ops.cc.
References C, CTX_wm_space_data(), ED_fileselect_get_active_params(), file_walk_select_do(), NC_SPACE, ND_SPACE_FILE_PARAMS, OPERATOR_CANCELLED, OPERATOR_FINISHED, params, wmOperator::ptr, RNA_boolean_get(), RNA_enum_get(), and WM_event_add_notifier().
Referenced by FILE_OT_select_walk().
|
static |
Definition at line 715 of file file_ops.cc.
References active, BLI_assert, C, CHECK_ALL, ED_fileselect_get_active_params(), ELEM, file_ensure_inside_viewbounds(), FILE_SEL_ADD, FILE_SEL_REMOVE, FILE_SEL_SELECTED, file_select_deselect_all(), filelist_entries_select_index_range_set(), filelist_entry_parent_select_set(), filelist_entry_select_index_get(), filelist_entry_select_index_set(), SpaceFile::files, fileselect_file_set(), FileSelection::first, IN_RANGE, FileSelection::last, params, UI_SELECT_WALK_DOWN, UI_SELECT_WALK_LEFT, UI_SELECT_WALK_RIGHT, UI_SELECT_WALK_UP, and WM_event_add_mousemove().
Referenced by file_walk_select_do().
|
static |
Looks for a string of digits within filename (using BLI_path_sequence_decode) and adjusts it by add.
Definition at line 3115 of file file_ops.cc.
References add(), BLI_path_sequence_decode(), BLI_path_sequence_encode(), exp, FILE_MAXFILE, and i.
Referenced by file_filenum_exec().
|
static |
Definition at line 2605 of file file_ops.cc.
References BKE_report(), BLI_exists(), C, CTX_data_main(), CTX_wm_space_file(), file_draw_check(), FILE_MAX, file_sfile_filepath_set(), file_sfile_to_operator(), NC_SPACE, ND_SPACE_FILE_PARAMS, SpaceFile::op, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, wmOperator::reports, RNA_string_get(), RPT_ERROR, and WM_event_add_notifier().
Referenced by FILE_OT_filepath_drop().
|
static |
Definition at line 65 of file file_ops.cc.
References BLI_rctf_rcti_copy(), BLI_rcti_init(), View2D::cur, ED_fileselect_layout_offset_rect(), SpaceFile::layout, View2D::mask, FileLayout::offset_top, View2D::tot, UI_view2d_region_to_view_rctf(), ARegion::v2d, rctf::xmax, rctf::xmin, rctf::ymax, rcti::ymax, and rctf::ymin.
Referenced by file_selection_get().
|
static |
Local utility to write BLENDER_BOOKMARK_FILE, reporting an error on failure.
Definition at line 383 of file file_ops.cc.
References BKE_appdir_folder_id_create(), BKE_report(), BKE_reportf(), BLENDER_BOOKMARK_FILE, BLENDER_USER_CONFIG, BLI_path_join, ED_area_tag_redraw(), ED_area_tag_refresh(), FILE_MAX, fsmenu_write_file(), and RPT_ERROR.
Referenced by bookmark_add_exec(), bookmark_cleanup_exec(), bookmark_delete_exec(), bookmark_move_exec(), file_execute(), and reset_recent_exec().
|
static |
Create a new, non-existing folder dirname, returns true if successful, false if name couldn't be created. The actual name is returned in r_dirpath, r_dirpath_full contains the complete path, including the new folder name.
Definition at line 2657 of file file_ops.cc.
References BLI_exists(), BLI_path_join, BLI_snprintf_utf8(), BLI_strncpy(), FILE_MAX, FILE_MAXFILE, i, and len.
Referenced by file_directory_new_exec().
|
static |
Definition at line 1381 of file file_ops.cc.
References C, CTX_wm_area(), ED_fsmenu_get(), ED_fsmenu_get_entry(), FS_CATEGORY_RECENT, fsmenu_remove_entry(), fsmenu_write_file_and_refresh_or_report_error(), OPERATOR_FINISHED, and wmOperator::reports.
Referenced by FILE_OT_reset_recent().
|
static |
Definition at line 1805 of file file_ops.cc.
Referenced by file_external_operation_get_description(), file_os_operations_menu_item(), and FILE_OT_external_operation().