|
Blender V5.3
|
#include <cerrno>#include <cstddef>#include <cstring>#include <fcntl.h>#include <fmt/format.h>#include "MEM_CacheLimiterC-Api.h"#include "MEM_guardedalloc.h"#include "BLI_fileops.hh"#include "BLI_filereader.hh"#include "BLI_linklist.hh"#include "BLI_listbase.hh"#include "BLI_math_base_c.hh"#include "BLI_math_time.hh"#include "BLI_memory_cache.hh"#include "BLI_path_utils.hh"#include "BLI_string.hh"#include "BLI_string_utf8.hh"#include "BLI_system.hh"#include "BLI_threads.hh"#include "BLI_time.hh"#include "BLI_timer.hh"#include "BLI_utildefines.hh"#include "BLO_core_blend_header.hh"#include "BLO_core_file_reader.hh"#include "BLO_readfile.hh"#include "BLT_date_string.hh"#include "BLT_lang.hh"#include "BLT_translation.hh"#include "BLF_api.hh"#include "DNA_scene_types.h"#include "DNA_screen_types.h"#include "DNA_space_types.h"#include "DNA_userdef_types.h"#include "DNA_windowmanager_types.h"#include "DNA_workspace_types.h"#include "AS_asset_library.hh"#include "BKE_addon.h"#include "BKE_appdir.hh"#include "BKE_autoexec.hh"#include "BKE_blender.hh"#include "BKE_blender_project.hh"#include "BKE_blender_version.h"#include "BKE_blendfile.hh"#include "BKE_callbacks.hh"#include "BKE_context.hh"#include "BKE_global.hh"#include "BKE_idprop.hh"#include "BKE_lib_id.hh"#include "BKE_lib_override.hh"#include "BKE_lib_remap.hh"#include "BKE_library.hh"#include "BKE_main.hh"#include "BKE_main_namemap.hh"#include "BKE_node.hh"#include "BKE_node_tree_update.hh"#include "BKE_packedFile.hh"#include "BKE_report.hh"#include "BKE_scene.hh"#include "BKE_screen.hh"#include "BKE_sound.hh"#include "BKE_undo_system.hh"#include "BKE_workspace.hh"#include "BLO_writefile.hh"#include "RNA_access.hh"#include "RNA_define.hh"#include "IMB_colormanagement.hh"#include "IMB_imbuf.hh"#include "IMB_imbuf_types.hh"#include "IMB_metadata.hh"#include "IMB_thumbs.hh"#include "ED_asset.hh"#include "ED_datafiles.h"#include "ED_fileselect.hh"#include "ED_image.hh"#include "ED_outliner.hh"#include "ED_render.hh"#include "ED_screen.hh"#include "ED_undo.hh"#include "ED_util.hh"#include "ED_view3d.hh"#include "ED_view3d_offscreen.hh"#include "NOD_composite.hh"#include "GHOST_ISystemPaths.hh"#include "GHOST_IWindow.hh"#include "GPU_context.hh"#include "SEQ_sequencer.hh"#include "UI_interface.hh"#include "UI_interface_layout.hh"#include "UI_resources.hh"#include "UI_view2d.hh"#include "RE_engine.h"#include "DEG_depsgraph.hh"#include "WM_api.hh"#include "WM_keymap.hh"#include "WM_message.hh"#include "WM_toolsystem.hh"#include "WM_types.hh"#include "wm.hh"#include "wm_event_system.hh"#include "wm_files.hh"#include "wm_window.hh"#include "CLG_log.h"Go to the source code of this file.
Classes | |
| struct | blender::wmFileReadPost_Params |
| struct | blender::OperatorDispatchTarget |
| struct | blender::FileRuntime |
Namespaces | |
| namespace | blender |
| BMesh Iterators. | |
Macros | |
| #define | USE_THUMBNAIL_FAST_DOWNSCALE |
| #define | USERDEF_RESTORE(member) |
Variables | |
| static CLG_LogRef | blender::LOG = {"blend"} |
Preferences Initialization & Versioning | |
| #define | BKE_READ_EXOTIC_FAIL_PATH -3 |
| #define | BKE_READ_EXOTIC_FAIL_FORMAT -2 |
| #define | BKE_READ_EXOTIC_FAIL_OPEN -1 |
| #define | BKE_READ_EXOTIC_OK_BLEND 0 |
| static void | blender::wm_gpu_backend_override_from_userdef () |
| static void | blender::wm_init_userdef (Main *bmain) |
Initialize <tt>WM_OT_open_*</tt> Properties | |
Check if load_ui was set by the caller. Fall back to user preference when file flags not specified. | |
| enum class | blender::OpenTrust { blender::FilePath , blender::CurrentSession , blender::Recover } |
| void | blender::wm_open_init_load_ui (wmOperator *op, bool use_prefs) |
| static bool | blender::wm_open_init_use_scripts (wmOperator *op, const OpenTrust source_of_trust) |
Clear Recent Files/Projects List Operators | |
| enum | blender::ClearRecentInclude { blender::CLEAR_RECENT_ALL , blender::CLEAR_RECENT_MISSING } |
| static const EnumPropertyItem | blender::prop_clear_recent_types [] |
| static wmOperatorStatus | blender::wm_clear_recent_files_invoke (bContext *C, wmOperator *op, const wmEvent *event) |
| static wmOperatorStatus | blender::wm_clear_recent_files_exec (bContext *, wmOperator *op) |
| static void | blender::wm_clear_recent_files_ui (bContext *, wmOperator *op) |
| void | blender::WM_OT_clear_recent_files (wmOperatorType *ot) |
| static wmOperatorStatus | blender::wm_clear_recent_projects_invoke (bContext *C, wmOperator *op, const wmEvent *event) |
| static wmOperatorStatus | blender::wm_clear_recent_projects_exec (bContext *, wmOperator *op) |
| void | blender::WM_OT_clear_recent_projects (wmOperatorType *ot) |
Read Main Blend-File API | |
| static struct | blender::wm_init_state_app_template = {{0}} |
| static void | blender::file_read_reports_finalize (BlendFileReadReport *bf_reports) |
| bool | blender::WM_file_read (bContext *C, const char *filepath, const bool use_scripts_autoexec_check, ReportList *reports) |
| bool | blender::WM_file_read_project (bContext *C, const char *filepath, ReportList *reports) |
| void | blender::WM_init_state_app_template_set (const char *app_template) |
| const char * | blender::WM_init_state_app_template_get () |
Auto Script Execution Warning Dialog | |
| static struct | blender::wm_test_autorun_revert_action_data = {nullptr, nullptr} |
| static void | blender::wm_test_autorun_revert_action_exec (bContext *C) |
| static void | blender::wm_block_autorun_warning_ignore (bContext *C, ui::Block *block) |
| static void | blender::wm_block_autorun_warning_reload_with_scripts (bContext *C, ui::Block *block) |
| static void | blender::wm_block_autorun_warning_enable_scripts (bContext *C, ui::Block *block) |
| static ui::Block * | blender::block_create_autorun_warning (bContext *C, ARegion *region, void *) |
| void | blender::wm_test_autorun_revert_action_set (wmOperatorType *ot, PointerRNA *ptr) |
| void | blender::wm_test_autorun_warning (bContext *C) |
| void | blender::wm_test_foreign_file_warning (bContext *C) |
Save File Forward Compatibility Dialog | |
| static const char * | blender::save_file_overwrite_dialog_name = "save_file_overwrite_popup" |
| static void | blender::file_overwrite_detailed_info_show (ui::Layout &parent_layout, Main *bmain) |
| static void | blender::save_file_overwrite_cancel (bContext *C, void *arg_block, void *) |
| static void | blender::save_file_overwrite_cancel_button (ui::Block *block, wmGenericCallback *post_action) |
| static void | blender::save_file_overwrite_confirm (bContext *C, void *arg_block, void *arg_data) |
| static void | blender::save_file_overwrite_confirm_button (ui::Block *block, wmGenericCallback *post_action) |
| static void | blender::save_file_overwrite_saveas (bContext *C, void *arg_block, void *) |
| static void | blender::save_file_overwrite_saveas_button (ui::Block *block, wmGenericCallback *post_action) |
| static ui::Block * | blender::block_create_save_file_overwrite_dialog (bContext *C, ARegion *region, void *arg1) |
| void | blender::wm_save_file_overwrite_dialog (bContext *C, wmOperator *op) |
User level access for blend file read/write, file-history and user-preferences (including relevant operators).
Definition in file wm_files.cc.
| #define BKE_READ_EXOTIC_FAIL_FORMAT -2 |
Definition at line 569 of file wm_files.cc.
Referenced by blender::WM_file_read(), and blender::wm_read_exotic().
| #define BKE_READ_EXOTIC_FAIL_OPEN -1 |
Definition at line 570 of file wm_files.cc.
Referenced by blender::WM_file_read(), and blender::wm_read_exotic().
| #define BKE_READ_EXOTIC_FAIL_PATH -3 |
Definition at line 568 of file wm_files.cc.
Referenced by blender::WM_file_read(), and blender::wm_read_exotic().
| #define BKE_READ_EXOTIC_OK_BLEND 0 |
Definition at line 571 of file wm_files.cc.
Referenced by blender::WM_file_read(), and blender::wm_read_exotic().
| #define USE_THUMBNAIL_FAST_DOWNSCALE |
Fast-path for down-scaling byte buffers.
NOTE(@ideasman42) Support alternate logic for scaling byte buffers for thumbnails which doesn't use the higher quality box-filtered floating point math. This may be removed if similar performance can be achieved from other scale methods, especially in debug mode - which could cause file saving to be unreasonably slow (taking seconds just down-scaling the thumbnail).
Definition at line 182 of file wm_files.cc.
| #define USERDEF_RESTORE | ( | member | ) |
Referenced by blender::wm_userpref_read_exceptions().