|
Blender V4.3
|
#include "BLI_utildefines.h"#include "BLI_blenlib.h"#include "BLI_linklist.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_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 <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 int | 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 int | 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 1267 of file file_ops.cc.
| enum FileSelect |
| Enumerator | |
|---|---|
| FILE_SELECT_NOTHING | |
| FILE_SELECT_DIR | |
| FILE_SELECT_FILE | |
Definition at line 90 of file file_ops.cc.
|
static |
Definition at line 1140 of file file_ops.cc.
References 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 1218 of file file_ops.cc.
References BLI_is_dir(), CTX_wm_area(), CTX_wm_manager(), ED_fsmenu_get(), ED_fsmenu_get_category(), FS_CATEGORY_BOOKMARKS, fsmenu_refresh_bookmarks_status(), 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 1175 of file file_ops.cc.
References SpaceFile::bookmarknr, 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 1274 of file file_ops.cc.
References BLI_linklist_move_item(), SpaceFile::bookmarknr, 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 1095 of file file_ops.cc.
References BKE_main_blendfile_path(), BLI_path_abs(), BLI_path_normalize_dir(), 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 |
Definition at line 96 of file file_ops.cc.
References FileSelection::first, and FileSelection::last.
Referenced by file_selection_get().
| void ED_operatormacros_file | ( | ) |
Definition at line 3309 of file file_ops.cc.
Referenced by ED_spacemacros_init().
|
static |
Definition at line 1322 of file file_ops.cc.
References SpaceFile::bookmarknr, CTX_wm_space_file(), and ED_operator_file_browsing_active().
Referenced by FILE_OT_bookmark_move().
|
static |
Definition at line 498 of file file_ops.cc.
References 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(), WM_event_add_notifier(), and WM_operator_properties_border_to_rcti().
Referenced by FILE_OT_select_box().
|
static |
Definition at line 408 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, int, FileSelection::last, UI_view2d_region_to_view(), UNPACK2, rcti::xmin, and rcti::ymin.
Referenced by file_box_select_modal().
|
static |
Definition at line 442 of file file_ops.cc.
References 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, result, 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 1550 of file file_ops.cc.
References 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 1483 of file file_ops.cc.
References FileLayout::attribute_columns, BLI_assert, 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, and WM_event_add_notifier().
Referenced by FILE_OT_sort_column_ui_context().
|
static |
Definition at line 239 of file file_ops.cc.
References filelist_entry_is_selected(), filelist_files_ensure(), FileSelection::first, and selection.
Referenced by file_view_selected_exec().
|
static |
Definition at line 3178 of file file_ops.cc.
References BKE_reportf(), 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, 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 3213 of file file_ops.cc.
References ALERT_ICON_NONE, IFACE_, and WM_operator_confirm_ex().
Referenced by FILE_OT_delete().
|
static |
Definition at line 3137 of file file_ops.cc.
References 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, and params.
Referenced by FILE_OT_delete().
|
static |
Definition at line 3165 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 ) |
Definition at line 2819 of file file_ops.cc.
References BKE_blendfile_library_path_explode(), BKE_main_blendfile_path(), BLI_is_file(), BLI_path_abs(), BLI_path_append(), BLI_path_normalize_dir(), BLI_path_split_dir_file(), 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, NC_SPACE, ND_SPACE_FILE_LIST, ot, params, ptr, RNA_boolean_set(), RNA_string_set(), STREQ, STRNCPY, WM_event_add_notifier(), WM_OP_INVOKE_DEFAULT, 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 2621 of file file_ops.cc.
References BKE_report(), BKE_reportf(), BLI_assert_msg, BLI_dir_create_recursive(), BLI_exists(), BLI_path_make_safe(), 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 2708 of file file_ops.cc.
References ALERT_ICON_NONE, 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 1754 of file file_ops.cc.
References 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 1760 of file file_ops.cc.
References file_draw_check().
Referenced by ED_file_path_button(), file_panel_execution_buttons_draw(), and file_panel_operator().
Definition at line 1730 of file file_ops.cc.
References wmOperatorType::check, CTX_data_main(), ED_area_tag_redraw(), file_operator_to_sfile(), file_sfile_to_operator(), SpaceFile::op, SPACE_FILE, 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 1765 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 3274 of file file_ops.cc.
References CTX_wm_area(), CTX_wm_space_file(), ED_fileselect_get_active_params(), LISTBASE_FOREACH, OPERATOR_FINISHED, params, and UI_textbutton_activate_rna().
Referenced by FILE_OT_edit_directory_path().
Definition at line 2145 of file file_ops.cc.
References FILE_SEL_ADD, file_select(), file_select_mval_to_select_rect(), FILE_SELECT_NOTHING, and wmEvent::mval.
Referenced by file_execute_mouse_invoke().
|
static |
If file is outside viewbounds, this adjusts view to make sure it's inside
Definition at line 269 of file file_ops.cc.
References BLI_assert, 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(), 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 309 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, and FileLayout::tile_w.
Referenced by file_select(), and file_view_selected_exec().
|
static |
Definition at line 2115 of file file_ops.cc.
References 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 2051 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(), 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, wmOperator::reports, and WM_event_fileselect_event().
Referenced by file_exec(), and file_execute_mouse_invoke().
|
static |
Definition at line 2155 of file file_ops.cc.
References 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, and OPERATOR_PASS_THROUGH.
Referenced by FILE_OT_mouse_execute().
|
static |
Definition at line 2750 of file file_ops.cc.
References BKE_appdir_folder_default_or_root(), BKE_appdir_folder_home(), BKE_main_blendfile_path(), BLI_path_abs(), BLI_path_is_rel(), BLI_path_is_unc(), BLI_path_is_win32_drive_only(), BLI_path_join, BLI_windows_get_default_root_dir(), CTX_data_main(), CTX_wm_space_file(), ED_fileselect_get_active_params(), FILE_MAX_LIBEXTRA, params, SEP, and STRNCPY.
Referenced by file_directory_enter_handle(), and file_filename_enter_handle().
|
static |
Definition at line 1817 of file file_ops.cc.
References BKE_reportf(), BLI_file_external_operation_execute(), CTX_wm_window(), FILE_MAX, OPERATOR_CANCELLED, OPERATOR_FINISHED, ot, wmOperator::ptr, wmOperator::reports, RNA_enum_get(), RNA_property_string_get(), RNA_string_set(), RNA_struct_find_property(), RPT_ERROR, WM_CURSOR_DEFAULT, WM_cursor_set(), WM_CURSOR_WAIT, WM_OP_INVOKE_DEFAULT, 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 1852 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 2028 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, 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 2910 of file file_ops.cc.
References BKE_main_blendfile_path(), BLI_path_abs(), BLI_path_join, BLI_path_make_safe_filename_ex(), BLI_path_normalize_dir(), 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(), and WM_event_add_notifier().
Referenced by file_panel_execution_buttons_draw().
|
static |
Definition at line 3044 of file file_ops.cc.
References 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 3000 of file file_ops.cc.
References 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 2966 of file file_ops.cc.
References 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 1450 of file file_ops.cc.
References 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 1402 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(), rctf::xmin, and rctf::ymax.
Referenced by file_highlight_invoke(), and file_main_region_draw().
|
static |
Definition at line 224 of file file_ops.cc.
References CHECK_ALL, filelist_entry_select_index_get(), and filelist_files_ensure().
Referenced by file_select(), file_select_all_exec(), and file_walk_select_do().
|
static |
Definition at line 2317 of file file_ops.cc.
References 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 1538 of file file_ops.cc.
References 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 1683 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 1922 of file file_ops.cc.
References 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, Menu::layout, ot, params, FileDirEntry::typeflag, uiLayoutSetOperatorContext(), WM_OP_INVOKE_DEFAULT, and WM_operatortype_find().
Referenced by file_external_operations_menu_register().
|
static |
Definition at line 1889 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_, ot, RNA_enum_name(), RNA_enum_set(), RNA_string_set(), UI_ITEM_NONE, uiItemFullO_ptr(), and WM_OP_INVOKE_DEFAULT.
Referenced by file_os_operations_menu_draw().
Definition at line 1988 of file file_ops.cc.
References 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, and params.
Referenced by file_external_operations_menu_register().
| void FILE_OT_bookmark_add | ( | wmOperatorType * | ot | ) |
Definition at line 1156 of file file_ops.cc.
References bookmark_add_exec(), wmOperatorType::description, ED_operator_file_browsing_active(), wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, ot, and wmOperatorType::poll.
Referenced by file_operatortypes().
| void FILE_OT_bookmark_cleanup | ( | wmOperatorType * | ot | ) |
Definition at line 1246 of file file_ops.cc.
References bookmark_cleanup_exec(), wmOperatorType::description, ED_operator_file_browsing_active(), wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, ot, and wmOperatorType::poll.
Referenced by file_operatortypes().
| void FILE_OT_bookmark_delete | ( | wmOperatorType * | ot | ) |
Definition at line 1193 of file file_ops.cc.
References bookmark_delete_exec(), wmOperatorType::description, ED_operator_file_browsing_active(), wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, ot, wmOperatorType::poll, PROP_SKIP_SAVE, RNA_def_int(), RNA_def_property_flag(), and wmOperatorType::srna.
Referenced by file_operatortypes().
| void FILE_OT_bookmark_move | ( | wmOperatorType * | ot | ) |
Definition at line 1334 of file file_ops.cc.
References bookmark_move_exec(), wmOperatorType::description, wmOperatorType::exec, FILE_BOOKMARK_MOVE_BOTTOM, FILE_BOOKMARK_MOVE_DOWN, file_bookmark_move_poll(), FILE_BOOKMARK_MOVE_TOP, FILE_BOOKMARK_MOVE_UP, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, ot, wmOperatorType::poll, RNA_def_enum(), and wmOperatorType::srna.
Referenced by file_operatortypes().
| void FILE_OT_cancel | ( | wmOperatorType * | ot | ) |
Definition at line 1563 of file file_ops.cc.
References wmOperatorType::description, wmOperatorType::exec, file_cancel_exec(), file_operator_poll(), wmOperatorType::idname, wmOperatorType::name, ot, and wmOperatorType::poll.
Referenced by file_operatortypes().
| void FILE_OT_delete | ( | wmOperatorType * | ot | ) |
Definition at line 3219 of file file_ops.cc.
References wmOperatorType::description, wmOperatorType::exec, file_delete_exec(), file_delete_invoke(), file_delete_poll(), wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, ot, and wmOperatorType::poll.
Referenced by file_operatortypes().
| void FILE_OT_directory_new | ( | wmOperatorType * | ot | ) |
Definition at line 2720 of file file_ops.cc.
References wmOperatorType::description, ED_operator_file_browsing_active(), wmOperatorType::exec, file_directory_new_exec(), file_directory_new_invoke(), FILE_MAX, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, ot, wmOperatorType::poll, PROP_SKIP_SAVE, RNA_def_boolean(), RNA_def_property_flag(), RNA_def_string_dir_path(), wmOperatorType::srna, and WM_operator_properties_confirm_or_exec().
Referenced by file_operatortypes().
| void FILE_OT_edit_directory_path | ( | wmOperatorType * | ot | ) |
Definition at line 3291 of file file_ops.cc.
References wmOperatorType::description, ED_operator_file_active(), wmOperatorType::exec, file_edit_directory_path_exec(), wmOperatorType::idname, wmOperatorType::name, ot, and wmOperatorType::poll.
Referenced by file_operatortypes().
| void FILE_OT_execute | ( | wmOperatorType * | ot | ) |
Definition at line 2126 of file file_ops.cc.
References wmOperatorType::description, ED_operator_file_browsing_active(), wmOperatorType::exec, file_exec(), wmOperatorType::idname, wmOperatorType::name, ot, and wmOperatorType::poll.
Referenced by file_operatortypes().
| void FILE_OT_external_operation | ( | wmOperatorType * | ot | ) |
Definition at line 1861 of file file_ops.cc.
References wmOperatorType::description, wmOperatorType::exec, file_external_operation, file_external_operation_exec(), file_external_operation_get_description(), FILE_EXTERNAL_OPERATION_OPEN, FILE_MAX, wmOperatorType::flag, wmOperatorType::get_description, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, ot, PROP_SKIP_SAVE, RNA_def_enum(), RNA_def_property_flag(), RNA_def_string(), and wmOperatorType::srna.
Referenced by file_operatortypes().
| void FILE_OT_filenum | ( | wmOperatorType * | ot | ) |
Definition at line 3061 of file file_ops.cc.
References wmOperatorType::description, wmOperatorType::exec, file_filenum_exec(), file_filenum_poll(), wmOperatorType::idname, wmOperatorType::name, ot, wmOperatorType::poll, RNA_def_int(), and wmOperatorType::srna.
Referenced by file_operatortypes().
| void FILE_OT_filepath_drop | ( | wmOperatorType * | ot | ) |
Definition at line 2576 of file file_ops.cc.
References ED_operator_file_browsing_active(), wmOperatorType::exec, FILE_MAX, filepath_drop_exec(), wmOperatorType::idname, wmOperatorType::name, ot, wmOperatorType::poll, RNA_def_string_file_path(), and wmOperatorType::srna.
Referenced by file_operatortypes().
| void FILE_OT_hidedot | ( | wmOperatorType * | ot | ) |
Definition at line 2981 of file file_ops.cc.
References wmOperatorType::description, ED_operator_file_browsing_active(), wmOperatorType::exec, file_hidedot_exec(), wmOperatorType::idname, wmOperatorType::name, ot, and wmOperatorType::poll.
Referenced by file_operatortypes().
| void FILE_OT_highlight | ( | wmOperatorType * | ot | ) |
Definition at line 1464 of file file_ops.cc.
References wmOperatorType::description, ED_operator_file_active(), file_highlight_invoke(), wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, ot, and wmOperatorType::poll.
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 2181 of file file_ops.cc.
References wmOperatorType::description, ED_operator_file_browsing_active(), file_execute_mouse_invoke(), wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_INTERNAL, ot, and wmOperatorType::poll.
Referenced by file_operatortypes().
| void FILE_OT_next | ( | wmOperatorType * | ot | ) |
Definition at line 2335 of file file_ops.cc.
References wmOperatorType::description, ED_operator_file_browsing_active(), wmOperatorType::exec, file_next_exec(), wmOperatorType::idname, wmOperatorType::name, ot, and wmOperatorType::poll.
Referenced by file_operatortypes().
| void FILE_OT_parent | ( | wmOperatorType * | ot | ) |
Definition at line 2262 of file file_ops.cc.
References wmOperatorType::description, ED_operator_file_browsing_active(), wmOperatorType::exec, file_parent_exec(), wmOperatorType::idname, wmOperatorType::name, ot, and wmOperatorType::poll.
Referenced by file_operatortypes().
| void FILE_OT_previous | ( | wmOperatorType * | ot | ) |
Definition at line 2298 of file file_ops.cc.
References wmOperatorType::description, ED_operator_file_browsing_active(), wmOperatorType::exec, file_previous_exec(), wmOperatorType::idname, wmOperatorType::name, ot, and wmOperatorType::poll.
Referenced by file_operatortypes().
| void FILE_OT_refresh | ( | wmOperatorType * | ot | ) |
Definition at line 2221 of file file_ops.cc.
References wmOperatorType::description, ED_operator_file_browsing_active(), wmOperatorType::exec, file_refresh_exec(), wmOperatorType::idname, wmOperatorType::name, ot, and wmOperatorType::poll.
Referenced by file_operatortypes().
| void FILE_OT_rename | ( | wmOperatorType * | ot | ) |
Definition at line 3118 of file file_ops.cc.
References wmOperatorType::description, ED_operator_file_browsing_active(), wmOperatorType::exec, file_rename_exec(), wmOperatorType::idname, wmOperatorType::name, ot, and wmOperatorType::poll.
Referenced by file_operatortypes().
| void FILE_OT_reset_recent | ( | wmOperatorType * | ot | ) |
Definition at line 1383 of file file_ops.cc.
References wmOperatorType::description, ED_operator_file_browsing_active(), wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, ot, wmOperatorType::poll, and reset_recent_exec().
Referenced by file_operatortypes().
| void FILE_OT_select | ( | wmOperatorType * | ot | ) |
Definition at line 648 of file file_ops.cc.
References wmOperatorType::description, ED_operator_file_active(), wmOperatorType::exec, file_select_exec(), wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, ot, wmOperatorType::poll, PROP_HIDDEN, PROP_SKIP_SAVE, RNA_def_boolean(), RNA_def_property_flag(), wmOperatorType::srna, 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 1021 of file file_ops.cc.
References wmOperatorType::description, ED_operator_file_active(), wmOperatorType::exec, file_select_all_exec(), wmOperatorType::idname, wmOperatorType::name, ot, wmOperatorType::poll, and WM_operator_properties_select_all().
Referenced by file_operatortypes().
| void FILE_OT_select_bookmark | ( | wmOperatorType * | ot | ) |
Definition at line 1115 of file file_ops.cc.
References bookmark_select_exec(), wmOperatorType::description, ED_operator_file_browsing_active(), wmOperatorType::exec, FILE_MAXDIR, wmOperatorType::idname, wmOperatorType::name, ot, wmOperatorType::poll, PROP_SKIP_SAVE, RNA_def_property_flag(), RNA_def_string(), and wmOperatorType::srna.
Referenced by file_operatortypes().
| void FILE_OT_select_box | ( | wmOperatorType * | ot | ) |
Definition at line 530 of file file_ops.cc.
References wmOperatorType::cancel, wmOperatorType::description, ED_operator_file_active(), wmOperatorType::exec, file_box_select_exec(), file_box_select_modal(), wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, ot, wmOperatorType::poll, 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 931 of file file_ops.cc.
References wmOperatorType::description, ED_operator_file_active(), file_walk_select_invoke(), wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, ot, wmOperatorType::poll, PROP_SKIP_SAVE, RNA_def_boolean(), RNA_def_property_flag(), wmOperatorType::srna, and WM_operator_properties_select_walk_direction().
Referenced by file_operatortypes().
| void FILE_OT_smoothscroll | ( | wmOperatorType * | ot | ) |
Definition at line 2529 of file file_ops.cc.
References wmOperatorType::description, ED_operator_file_active(), file_smoothscroll_invoke(), wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, ot, and wmOperatorType::poll.
Referenced by file_operatortypes().
| void FILE_OT_sort_column_ui_context | ( | wmOperatorType * | ot | ) |
Definition at line 1517 of file file_ops.cc.
References wmOperatorType::description, ED_operator_file_active(), file_column_sort_ui_context_invoke(), wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_INTERNAL, ot, and wmOperatorType::poll.
Referenced by file_operatortypes().
| void FILE_OT_start_filter | ( | wmOperatorType * | ot | ) |
Definition at line 3255 of file file_ops.cc.
References wmOperatorType::description, ED_operator_file_active(), wmOperatorType::exec, file_start_filter_exec(), wmOperatorType::idname, wmOperatorType::name, ot, and wmOperatorType::poll.
Referenced by file_operatortypes().
| void FILE_OT_view_selected | ( | wmOperatorType * | ot | ) |
Definition at line 1074 of file file_ops.cc.
References wmOperatorType::description, ED_operator_file_active(), wmOperatorType::exec, file_view_selected_exec(), wmOperatorType::idname, wmOperatorType::name, ot, and wmOperatorType::poll.
Referenced by file_operatortypes().
|
static |
Definition at line 2239 of file file_ops.cc.
References BKE_main_blendfile_path(), BLI_path_abs(), BLI_path_normalize_dir(), BLI_path_parent_dir(), 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 2281 of file file_ops.cc.
References 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 2202 of file file_ops.cc.
References CTX_wm_manager(), CTX_wm_space_file(), ED_fileselect_clear(), ED_fsmenu_get(), fsmenu_refresh_bookmarks_status(), 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 3104 of file file_ops.cc.
References 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 3082 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, and STRNCPY.
Referenced by file_rename_exec().
|
static |
Definition at line 328 of file file_ops.cc.
References 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 964 of file file_ops.cc.
References BLI_assert, 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, 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 161 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(), CTX_data_main(), CTX_wm_space_file(), ED_file_change_dir(), ED_fileselect_get_active_params(), file, 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, and STRNCPY.
Referenced by file_select().
|
static |
Definition at line 564 of file file_ops.cc.
References 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, ret, RGN_TYPE_WINDOW, RNA_boolean_get(), RNA_int_get(), WM_event_add_mousemove(), WM_event_add_notifier(), rcti::xmin, and rcti::ymin.
Referenced by FILE_OT_select().
Definition at line 556 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 122 of file file_ops.cc.
References 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 1711 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 1676 of file file_ops.cc.
References 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 1581 of file file_ops.cc.
References BKE_main_blendfile_path(), BLI_path_join, BLI_path_rel(), BLI_path_slash_ensure(), BLI_strncpy(), CHECK_DIRS, CHECK_FILES, ED_fileselect_get_active_params(), FILE_MAX, filelist_entry_select_index_get(), filelist_file(), filelist_files_ensure(), SpaceFile::files, params, wmOperator::ptr, 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 2355 of file file_ops.cc.
References abs(), BKE_area_find_region_type(), CHECK_ALL, CTX_wm_area(), CTX_wm_manager(), CTX_wm_region(), CTX_wm_region_set(), CTX_wm_space_file(), CTX_wm_window(), wmEvent::customdata, ED_fileselect_get_active_params(), ED_fileselect_layout_numfiles(), ED_fileselect_layout_offset(), ED_region_tag_redraw(), 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, SpaceFile::layout, max_ii(), OPERATOR_FINISHED, OPERATOR_PASS_THROUGH, params, 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, WM_OP_EXEC_DEFAULT, WM_operator_name_call(), WM_operator_properties_create(), and WM_operator_properties_free().
Referenced by FILE_OT_smoothscroll().
|
static |
Definition at line 3238 of file file_ops.cc.
References CTX_wm_area(), CTX_wm_space_file(), ED_fileselect_get_active_params(), LISTBASE_FOREACH, OPERATOR_FINISHED, params, and UI_textbutton_activate_rna().
Referenced by FILE_OT_start_filter().
|
static |
Definition at line 1043 of file file_ops.cc.
References 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 828 of file file_ops.cc.
References BLI_assert, 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 915 of file file_ops.cc.
References 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 708 of file file_ops.cc.
References BLI_assert, 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 3017 of file file_ops.cc.
References add(), BLI_path_sequence_decode(), BLI_path_sequence_encode(), exp(), and FILE_MAXFILE.
Referenced by file_filenum_exec().
|
static |
Definition at line 2548 of file file_ops.cc.
References BKE_report(), BLI_exists(), 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 59 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(), 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 377 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 2600 of file file_ops.cc.
References BLI_exists(), BLI_path_join, BLI_snprintf(), BLI_strncpy(), FILE_MAX, FILE_MAXFILE, and len.
Referenced by file_directory_new_exec().
|
static |
Definition at line 1369 of file file_ops.cc.
References 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 1787 of file file_ops.cc.
Referenced by file_external_operation_get_description(), file_os_operations_menu_item(), and FILE_OT_external_operation().