|
Blender V4.3
|
Go to the source code of this file.
Classes | |
| struct | SpaceFile_Runtime |
Namespaces | |
| namespace | blender |
| namespace | blender::asset_system |
| namespace | blender::ed |
| namespace | blender::ed::asset_browser |
Macros | |
| #define | ATTRIBUTE_COLUMN_PADDING (0.5f * UI_UNIT_X) |
| #define | FILE_LAYOUT_COMPACT(_layout) (_layout->flag & FILE_LAYOUT_VER && (_layout->width / UI_SCALE_FAC) < 500) |
| #define | FILE_LAYOUT_HIDE_DATE(_layout) (_layout->flag & FILE_LAYOUT_VER && (_layout->width / UI_SCALE_FAC) < 250) |
| #define | FILE_LAYOUT_HIDE_SIZE(_layout) (_layout->flag & FILE_LAYOUT_VER && (_layout->width / UI_SCALE_FAC) < 350) |
Typedefs | |
| typedef void * | onReloadFnData |
| typedef void(* | onReloadFn) (SpaceFile *space_data, onReloadFnData custom_data) |
Variables | |
| const char * | file_context_dir [] |
Definition at line 39 of file file_intern.hh.
Referenced by draw_columnheader_columns(), draw_details_columns(), file_attribute_columns_widths(), and file_draw_list().
| #define FILE_LAYOUT_COMPACT | ( | _layout | ) | (_layout->flag & FILE_LAYOUT_VER && (_layout->width / UI_SCALE_FAC) < 500) |
Definition at line 41 of file file_intern.hh.
Referenced by draw_details_columns(), file_attribute_columns_init(), and file_attribute_columns_widths().
| #define FILE_LAYOUT_HIDE_DATE | ( | _layout | ) | (_layout->flag & FILE_LAYOUT_VER && (_layout->width / UI_SCALE_FAC) < 250) |
Definition at line 43 of file file_intern.hh.
Referenced by file_attribute_column_type_enabled().
| #define FILE_LAYOUT_HIDE_SIZE | ( | _layout | ) | (_layout->flag & FILE_LAYOUT_VER && (_layout->width / UI_SCALE_FAC) < 350) |
Definition at line 45 of file file_intern.hh.
Referenced by file_attribute_column_type_enabled().
| typedef void(* onReloadFn) (SpaceFile *space_data, onReloadFnData custom_data) |
Definition at line 181 of file file_intern.hh.
| typedef void* onReloadFnData |
Definition at line 180 of file file_intern.hh.
Definition at line 1221 of file filesel.cc.
References AUTOCOMPLETE_FULL_MATCH, AUTOCOMPLETE_NO_MATCH, BLI_path_join, BLI_path_slash_ensure(), BLI_path_split_dir_part(), BLI_stat(), closedir(), CTX_wm_space_file(), dirent::d_name, dirname(), FILE_MAX, FILENAME_IS_CURRPAR, SpaceFile::files, opendir(), readdir(), S_ISDIR, str, UI_autocomplete_begin(), UI_autocomplete_end(), and UI_autocomplete_update_name().
Referenced by ED_file_path_button().
Definition at line 1269 of file filesel.cc.
References AUTOCOMPLETE_NO_MATCH, CTX_wm_space_file(), FILE_MAX, filelist_entry_get_relpath(), filelist_files_ensure(), SpaceFile::files, str, UI_autocomplete_begin(), UI_autocomplete_end(), and UI_autocomplete_update_name().
Referenced by file_panel_execution_buttons_draw().
| bool file_attribute_column_header_is_inside | ( | const View2D * | v2d, |
| const FileLayout * | layout, | ||
| int | x, | ||
| int | y ) |
Check if the region coordinate defined by x and y are inside the column header.
Definition at line 890 of file filesel.cc.
References FileLayout::attribute_column_header_h, BLI_rcti_isect_pt(), View2D::mask, rcti::ymax, and rcti::ymin.
Referenced by file_column_sort_ui_context_invoke().
| bool file_attribute_column_type_enabled | ( | const FileSelectParams * | params, |
| FileAttributeColumnType | column, | ||
| const FileLayout * | layout ) |
Definition at line 900 of file filesel.cc.
References COLUMN_DATETIME, COLUMN_NAME, COLUMN_SIZE, FILE_DETAILS_DATETIME, FILE_DETAILS_SIZE, FILE_LAYOUT_HIDE_DATE, FILE_LAYOUT_HIDE_SIZE, and params.
Referenced by draw_columnheader_columns(), draw_details_columns(), file_attribute_column_type_find_isect(), and file_attribute_columns_widths().
| FileAttributeColumnType file_attribute_column_type_find_isect | ( | const View2D * | v2d, |
| const FileSelectParams * | params, | ||
| FileLayout * | layout, | ||
| int | x ) |
Find the column type at region coordinate given by x (y doesn't matter for this).
Definition at line 918 of file filesel.cc.
References ATTRIBUTE_COLUMN_MAX, FileLayout::attribute_columns, COLUMN_NONE, ED_fileselect_layout_offset(), ED_fileselect_layout_tilepos(), file_attribute_column_type_enabled(), IN_RANGE, View2D::mask, FileLayout::offset_top, params, FileLayout::tile_border_x, View2D::tot, UI_view2d_region_to_view(), FileAttributeColumn::width, rctf::xmin, rctf::ymax, and rcti::ymax.
Referenced by file_column_sort_ui_context_invoke().
Definition at line 503 of file file_draw.cc.
References CTX_wm_space_file(), ED_fileselect_init_layout(), FileLayout::height, SpaceFile::layout, UI_view2d_totRect_set(), and FileLayout::width.
Referenced by file_main_region_draw().
| int file_context | ( | const bContext * | C, |
| const char * | member, | ||
| bContextDataResult * | result ) |
Definition at line 29 of file file_context.cc.
References FileDirEntry::asset, FileAssetSelectParams::asset_library_ref, BLI_assert, CTX_data_dir(), CTX_data_dir_set(), CTX_data_equals(), CTX_data_id_list_add(), CTX_data_id_pointer_set(), CTX_data_list_add(), CTX_data_pointer_set(), CTX_DATA_TYPE_COLLECTION, CTX_data_type_set(), CTX_RESULT_MEMBER_NOT_FOUND, CTX_RESULT_NO_DATA, CTX_RESULT_OK, CTX_wm_area(), CTX_wm_screen(), CTX_wm_space_file(), ED_area_is_global(), ED_fileselect_get_active_params(), ED_fileselect_get_asset_params(), file_context_dir, file_main_region_needs_refresh_before_draw(), filelist_entry_get_id(), filelist_entry_is_selected(), filelist_file(), filelist_file_get_id(), filelist_files_ensure(), SpaceFile::files, and params.
Referenced by ED_spacetype_file().
| 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().
| 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().
Draw a string hint if the file list is invalid.
Definition at line 1528 of file file_draw.cc.
References ASSET_LIBRARY_LOCAL, FileAssetSelectParams::asset_library_ref, FileAssetSelectParams::base_params, BKE_blendfile_is_readable(), BKE_reports_clear(), FileSelectParams::dir, ED_fileselect_get_asset_params(), ED_fileselect_is_asset_browser(), file_draw_invalid_asset_library_hint(), file_draw_invalid_library_hint(), FILE_MAX_LIBEXTRA, filelist_files_num_entries(), filelist_is_dir(), filelist_is_ready(), filelist_islibrary(), SpaceFile::files, SpaceFile_Runtime::is_blendfile_readable, SpaceFile_Runtime::is_blendfile_readable_reports, SpaceFile_Runtime::is_blendfile_status_set, SpaceFile::runtime, and AssetLibraryReference::type.
Referenced by file_main_region_draw().
Definition at line 1113 of file file_draw.cc.
References ATTRIBUTE_COLUMN_PADDING, FileLayout::attribute_columns, BLF_batch_draw_begin(), BLF_batch_draw_end(), BLI_assert, BLI_rcti_translate(), CHECK_ALL, COLUMN_NAME, copy_v4_v4_uchar(), CTX_wm_manager(), CTX_wm_space_file(), CTX_wm_window(), FileLayout::curr_size, draw_background(), draw_columnheader_background(), draw_columnheader_columns(), draw_details_columns(), draw_dividers(), draw_tile_background(), ED_fileselect_get_active_params(), ED_fileselect_get_layout(), ED_fileselect_layout_numfiles(), ED_fileselect_layout_offset(), file, file_add_icon_but(), file_add_preview_drag_but(), FILE_ATTR_ANY_LINK, FILE_ATTR_HIDDEN, file_but_enable_drag(), file_draw_preview(), file_draw_string(), file_draw_tooltip_custom_func(), FILE_IMGDISPLAY, FILE_LAYOUT_HOR, FILE_MAX_LIBEXTRA, file_params_rename_end(), FILE_SEL_EDITING, FILE_SEL_HIGHLIGHTED, FILE_SEL_SELECTED, file_tooltip_data_create(), FILE_VERTICALDISPLAY, filelist_cache_previews_done(), filelist_cache_previews_running(), filelist_cache_previews_update(), filelist_entry_select_get(), filelist_file(), filelist_file_cache_block(), filelist_file_cache_slidingwindow_set(), filelist_file_get_full_path(), filelist_files_ensure(), filelist_geticon(), filelist_geticon_image(), filelist_getimage(), filelist_is_ready(), FILENAME_IS_CURRPAR, SpaceFile::files, FileLayout::flag, FileLayout::flow_columns, ICON_DEFAULT_HEIGHT_SCALE, ICON_DEFAULT_WIDTH_SCALE, IFACE_, int, MEM_freeN(), min_ii(), NC_SPACE, ND_SPACE_FILE_PARAMS, ND_SPACE_FILE_PREVIEW, params, SpaceFile::previews_timer, renamebutton_cb(), round_fl_to_int(), FileLayout::rows, FileLayout::textheight, TH_BACK, TH_HILITE, TH_TEXT, FileLayout::tile_border_x, FileLayout::tile_border_y, tile_draw_rect_get(), FileLayout::tile_h, FileLayout::tile_w, UI_block_begin(), UI_block_draw(), UI_block_end(), UI_BTYPE_LABEL, UI_BTYPE_TEXT, UI_but_active_only(), UI_BUT_DRAG_FULL_BUT, UI_but_dragflag_enable(), UI_but_flag_disable(), UI_but_flag_enable(), UI_but_func_rename_set(), UI_but_func_tooltip_custom_set(), UI_BUT_NO_UTF8, UI_BUT_UNDO, UI_CNR_NONE, UI_draw_roundbox_corner_set(), UI_EMBOSS, UI_fontstyle_draw_simple(), UI_fontstyle_string_width(), UI_GetThemeColor4ubv(), UI_SCALE_FAC, UI_style_get(), UI_STYLE_TEXT_CENTER, UI_STYLE_TEXT_LEFT, UI_UNIT_X, UI_UNIT_Y, uiDefBut(), UNUSED_VARS_NDEBUG, uiStyle::widget, FileAttributeColumn::width, FileLayout::width, WM_event_add_notifier_ex(), WM_event_timer_add_notifier(), WM_event_timer_remove_notifier(), rcti::xmin, rcti::ymax, and rcti::ymin.
Referenced by file_main_region_draw().
| void file_execute_region_panels_register | ( | ARegionType * | art | ) |
Definition at line 208 of file file_panels.cc.
References BLI_addtail(), BLT_I18NCONTEXT_DEFAULT_BPYRNA, PanelType::draw, file_panel_execution_buttons_draw(), file_panel_operator_poll(), PanelType::flag, PanelType::idname, PanelType::label, MEM_callocN, N_, PANEL_TYPE_NO_HEADER, ARegionType::paneltypes, PanelType::poll, STRNCPY, and PanelType::translation_context.
Referenced by ED_spacetype_file().
| 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().
| float file_font_pointsize | ( | ) |
Definition at line 965 of file filesel.cc.
References BLF_height(), uiFontStyle::points, UI_fontstyle_set(), UI_SCALE_FAC, UI_style_get(), uiFontStyle::uifont_id, and uiStyle::widget.
Referenced by ED_fileselect_init_layout().
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().
| bool file_main_region_needs_refresh_before_draw | ( | SpaceFile * | sfile | ) |
Definition at line 516 of file space_file.cc.
References FILE_TAG_REBUILD_MAIN_FILES, filelist_needs_reading(), filelist_needs_reset_on_main_changes(), SpaceFile::files, and SpaceFile::tags.
Referenced by file_context(), and file_main_region_draw().
| void file_on_reload_callback_register | ( | SpaceFile * | sfile, |
| onReloadFn | callback, | ||
| onReloadFnData | custom_data ) |
Register an on-reload callback function. Note that there can only be one such function at a time; registering a new one will overwrite the previous one.
Definition at line 327 of file space_file.cc.
References callback, SpaceFile_Runtime::on_reload, SpaceFile_Runtime::on_reload_custom_data, and SpaceFile::runtime.
Referenced by ED_fileselect_activate_by_id(), and ED_fileselect_activate_by_relpath().
| 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().
| 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().
| void file_params_invoke_rename_postscroll | ( | wmWindowManager * | wm, |
| wmWindow * | win, | ||
| SpaceFile * | sfile ) |
Set the renaming-state to FILE_PARAMS_RENAME_POSTSCROLL_PENDING and trigger the smooth-scroll timer. To be used right after a file was renamed. Note that the caller is responsible for setting the correct rename-file info (FileSelectParams.renamefile or FileSelectParams.rename_id).
Definition at line 1343 of file filesel.cc.
References ED_fileselect_get_active_params(), FILE_PARAMS_RENAME_POSTSCROLL_PENDING, file_params_smoothscroll_timer_clear(), params, SpaceFile::scroll_offset, SpaceFile::smoothscroll_timer, TIMER1, and WM_event_timer_add().
Referenced by file_directory_new_exec(), file_listener(), file_params_rename_end(), and renamebutton_cb().
| void file_params_rename_end | ( | wmWindowManager * | wm, |
| wmWindow * | win, | ||
| SpaceFile * | sfile, | ||
| const FileDirEntry * | rename_file ) |
To be executed whenever renaming ends (successfully or not).
Definition at line 1356 of file filesel.cc.
References CHECK_ALL, ED_fileselect_get_active_params(), file_params_invoke_rename_postscroll(), file_params_renamefile_activate(), FILE_SEL_EDITING, FILE_SEL_REMOVE, filelist_entry_select_set(), SpaceFile::files, and params.
Referenced by file_draw_list().
| void file_params_renamefile_activate | ( | SpaceFile * | sfile, |
| FileSelectParams * | params ) |
Helper used by both main update code, and smooth-scroll timer, to try to enable rename editing from FileSelectParams.renamefile name.
Definition at line 1387 of file filesel.cc.
References BLI_assert, CHECK_ALL, file_params_find_renamed(), FILE_PARAMS_RENAME_ACTIVE, FILE_PARAMS_RENAME_PENDING, FILE_PARAMS_RENAME_POSTSCROLL_ACTIVE, FILE_PARAMS_RENAME_POSTSCROLL_PENDING, file_params_renamefile_clear(), FILE_SEL_ADD, FILE_SEL_EDITING, FILE_SEL_HIGHLIGHTED, FILE_SEL_SELECTED, file_select_deselect_all(), filelist_entry_select_set(), filelist_file(), filelist_is_ready(), SpaceFile::files, and params.
Referenced by file_params_rename_end(), file_refresh(), and file_smoothscroll_invoke().
| void file_params_renamefile_clear | ( | FileSelectParams * | params | ) |
Definition at line 1373 of file filesel.cc.
References params.
Referenced by file_params_renamefile_activate(), and file_smoothscroll_invoke().
| void file_params_smoothscroll_timer_clear | ( | wmWindowManager * | wm, |
| wmWindow * | win, | ||
| SpaceFile * | sfile ) |
Definition at line 1337 of file filesel.cc.
References SpaceFile::smoothscroll_timer, and WM_event_timer_remove().
Referenced by file_params_invoke_rename_postscroll(), and file_smoothscroll_invoke().
| void file_path_to_ui_path | ( | const char * | path, |
| char * | r_path, | ||
| int | r_path_maxncpy ) |
If path leads to a .blend, remove the trailing slash (if needed).
Definition at line 32 of file file_utils.cc.
References BKE_blendfile_extension_check(), BLI_path_slash_rstrip(), BLI_strncpy(), FILE_MAX_LIBEXTRA, and STRNCPY.
Referenced by file_draw_invalid_asset_library_hint().
| void file_select_deselect_all | ( | SpaceFile * | sfile, |
| eDirEntry_SelectFlag | flag ) |
Definition at line 1187 of file filesel.cc.
References CHECK_ALL, FILE_SEL_REMOVE, filelist_entries_select_index_range_set(), filelist_files_ensure(), SpaceFile::files, FileSelection::first, flag, and FileSelection::last.
Referenced by blender::ed::asset_browser::AssetCatalogDropTarget::drop_assets_into_catalog(), ED_fileselect_deselect_all(), file_box_select_exec(), file_box_select_modal(), file_params_renamefile_activate(), file_select_exec(), and file_walk_select_selection_set().
Definition at line 1196 of file filesel.cc.
References BLI_strncpy(), CHECK_ALL, FILE_MAX, FILE_SEL_ADD, FILE_SEL_SELECTED, filelist_entry_get_relpath(), filelist_entry_select_index_set(), filelist_files_ensure(), and SpaceFile::files.
Referenced by file_filename_enter_handle().
| 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().
| float file_string_width | ( | const char * | str | ) |
Definition at line 958 of file filesel.cc.
References BLF_DRAW_STR_DUMMY_MAX, BLF_width(), str, UI_fontstyle_set(), UI_style_get(), uiFontStyle::uifont_id, and uiStyle::widget.
Referenced by file_attribute_columns_widths().
| void file_tile_boundbox | ( | const ARegion * | region, |
| FileLayout * | layout, | ||
| int | file, | ||
| rcti * | r_bounds ) |
Definition at line 19 of file file_utils.cc.
References BLI_rcti_init(), ED_fileselect_layout_tilepos(), int, FileLayout::tile_border_x, FileLayout::tile_border_y, FileLayout::tile_h, and FileLayout::tile_w.
Referenced by file_box_select_find_last_selected(), and file_ensure_inside_viewbounds().
| void file_tool_props_region_panels_register | ( | ARegionType * | art | ) |
Definition at line 95 of file file_panels.cc.
References BLI_addtail(), BLT_I18NCONTEXT_DEFAULT_BPYRNA, PanelType::draw, PanelType::draw_header, file_panel_operator(), file_panel_operator_header(), file_panel_operator_poll(), PanelType::flag, PanelType::idname, PanelType::label, MEM_callocN, N_, PANEL_TYPE_NO_HEADER, ARegionType::paneltypes, PanelType::poll, STRNCPY, and PanelType::translation_context.
Referenced by ED_spacetype_file().
| void file_tools_region_panels_register | ( | ARegionType * | art | ) |
Definition at line 261 of file file_panels.cc.
References BLI_addtail(), BLT_I18NCONTEXT_DEFAULT_BPYRNA, PanelType::draw, file_panel_asset_browsing_poll(), file_panel_asset_catalog_buttons_draw(), PanelType::flag, PanelType::idname, PanelType::label, MEM_callocN, N_, PANEL_TYPE_NO_HEADER, ARegionType::paneltypes, PanelType::poll, STRNCPY, and PanelType::translation_context.
Referenced by ED_spacetype_file().
Sets FileSelectParams.file (name of selected file)
Definition at line 725 of file filesel.cc.
References CTX_data_main(), ED_fileselect_get_active_params(), file_sfile_to_operator(), FILE_TYPE_DIR, filelist_file(), SpaceFile::files, SpaceFile::op, params, and STRNCPY.
Referenced by file_box_select_modal(), file_select_do(), and file_walk_select_selection_set().
| void fileselect_refresh_params | ( | SpaceFile * | sfile | ) |
Definition at line 454 of file filesel.cc.
References ED_fileselect_get_asset_params(), and fileselect_refresh_asset_params().
Referenced by file_init(), and file_refresh().
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().
| 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().
| const char* file_context_dir[] |
Definition at line 124 of file file_intern.hh.