|
Blender
V2.93
|
Go to the source code of this file.
| void wm_close_file_dialog | ( | bContext * | C, |
| struct wmGenericCallback * | post_action | ||
| ) |
Definition at line 3448 of file wm_files.c.
References block_create__close_file_dialog(), C, close_file_dialog_name, CTX_wm_screen(), free_post_file_close_action(), UI_popup_block_invoke(), UI_popup_block_name_exists(), and WM_generic_callback_free().
Referenced by wm_confirm_quit(), wm_homefile_read_invoke(), and wm_open_mainfile__discard_changes().
| bool wm_file_or_image_is_modified | ( | const Main * | bmain, |
| const wmWindowManager * | wm | ||
| ) |
Definition at line 168 of file wm_files.c.
References ED_image_should_save_modified(), and wmWindowManager::file_saved.
Referenced by wm_homefile_read_invoke(), wm_open_mainfile__discard_changes(), and wm_quit_with_optional_confirmation_prompt().
Definition at line 551 of file wm_files.c.
References BKE_reportf(), BLI_findstring(), C, CTX_wm_reports(), RenderData::engine, G, Scene::id, LISTBASE_FOREACH, ID::name, NULL, Scene::r, R_engines, RPT_ERROR, scene, Main::scenes, and WM_report_banner_show().
Referenced by wm_file_read_post(), and WM_init().
| void wm_history_file_read | ( | void | ) |
Definition at line 1215 of file wm_files.c.
References BKE_appdir_folder_id(), BLENDER_HISTORY_FILE, BLENDER_USER_CONFIG, BLI_addtail(), BLI_file_free_lines(), BLI_file_read_as_lines(), BLI_join_dirfile(), BLI_strdup(), FILE_MAX, RecentFile::filepath, G, l, MEM_mallocN, BMLoop::next, NULL, and wm_history_files_free().
Referenced by wm_history_file_read_exec(), and WM_init().
| void wm_homefile_read | ( | bContext * | C, |
| ReportList * | reports, | ||
| bool | use_factory_settings, | ||
| bool | use_empty_data, | ||
| bool | use_data, | ||
| bool | use_userdef, | ||
| const char * | filepath_startup_override, | ||
| const char * | app_template_override, | ||
| bool * | r_is_factory_startup | ||
| ) |
Called on startup, (context entirely filled with NULLs) or called for 'New File' both startup.blend and userpref.blend are checked.
| use_factory_settings | Ignore on-disk startup file, use bundled datatoc_startup_blend instead. Used for "Restore Factory Settings". |
| use_userdef | Load factory settings as well as startup file. Disabled for "File New" we don't want to reload preferences. |
| filepath_startup_override | Optional path pointing to an alternative blend file (may be NULL). |
| app_template_override | Template to use instead of the template defined in user-preferences. When not-null, this is written into the user preferences. |
Definition at line 904 of file wm_files.c.
References app_template, BKE_appdir_app_template_id_search(), BKE_appdir_folder_id(), BKE_blender_userdef_app_template_data_set_and_free(), BKE_blender_userdef_data_set_and_free(), BKE_blendfile_read(), BKE_blendfile_read_from_memory(), BKE_blendfile_read_make_empty(), BKE_blendfile_read_setup_ex(), BKE_blendfile_userdef_from_defaults(), BKE_blendfile_userdef_read(), BKE_reportf(), BLENDER_STARTUP_FILE, BLENDER_USER_CONFIG, BLENDER_USERPREF_FILE, BLI_access(), BLI_assert, BLI_exists(), BLI_listbase_is_empty(), BLI_path_join(), BLI_strncpy(), BLO_READ_SKIP_DATA, BLO_READ_SKIP_USERDEF, BPY_run_string_eval(), C, CTX_data_main(), CTX_py_init_get(), datatoc_startup_blend, datatoc_startup_blend_size, FILE_MAX, G, G_FILE_NO_UI, G_FLAG_SCRIPT_AUTOEXEC, G_FLAG_SCRIPT_OVERRIDE_PREF, G_MAIN, KEYCONF_INIT_DEFAULT, LISTBASE_FOREACH, Main::name, NULL, params, RPT_ERROR, RPT_WARNING, SET_FLAG_FROM_TEST, BlendFileReadParams::skip_flags, STREQ, USER_SCRIPT_AUTOEXEC_DISABLE, Main::wm, WM_check(), wm_clear_default_size(), wm_file_read_post(), wm_file_read_pre(), wm_init_userdef(), wm_window_match_do(), and wm_window_match_init().
Referenced by wm_homefile_read_exec(), WM_init(), and wm_userpref_read_exec().
| void WM_OT_append | ( | struct wmOperatorType * | ot | ) |
Definition at line 608 of file wm_files_link.c.
References wmOperatorType::description, wmOperatorType::exec, FILE_DEFAULTDISPLAY, FILE_LOADLIB, FILE_OPENFILE, FILE_SORT_DEFAULT, FILE_TYPE_BLENDER, FILE_TYPE_BLENDERLIB, FILE_TYPE_FOLDER, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_boolean(), wmOperatorType::srna, WM_FILESEL_DIRECTORY, WM_FILESEL_FILENAME, WM_FILESEL_FILEPATH, WM_FILESEL_FILES, WM_FILESEL_SHOW_PROPS, wm_link_append_exec(), wm_link_append_invoke(), wm_link_append_poll(), wm_link_append_properties_common(), and WM_operator_properties_filesel().
Referenced by wm_operatortypes_register().
| void WM_OT_lib_reload | ( | struct wmOperatorType * | ot | ) |
Definition at line 1185 of file wm_files_link.c.
References wmOperatorType::description, wmOperatorType::exec, FILE_BLENDER, FILE_DEFAULTDISPLAY, FILE_OPENFILE, FILE_SORT_DEFAULT, FILE_TYPE_BLENDER, FILE_TYPE_FOLDER, wmOperatorType::flag, wmOperatorType::idname, MAX_NAME, wmOperatorType::name, NULL, OPTYPE_UNDO, ot, PROP_HIDDEN, RNA_def_property_flag(), RNA_def_string(), wmOperatorType::srna, WM_FILESEL_DIRECTORY, WM_FILESEL_FILENAME, WM_FILESEL_FILEPATH, WM_FILESEL_RELPATH, wm_lib_reload_exec(), and WM_operator_properties_filesel().
Referenced by wm_operatortypes_register().
| void WM_OT_lib_relocate | ( | struct wmOperatorType * | ot | ) |
Definition at line 1154 of file wm_files_link.c.
References wmOperatorType::description, wmOperatorType::exec, FILE_BLENDER, FILE_DEFAULTDISPLAY, FILE_OPENFILE, FILE_SORT_DEFAULT, FILE_TYPE_BLENDER, FILE_TYPE_FOLDER, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, MAX_NAME, wmOperatorType::name, NULL, OPTYPE_UNDO, ot, PROP_HIDDEN, RNA_def_property_flag(), RNA_def_string(), wmOperatorType::srna, WM_FILESEL_DIRECTORY, WM_FILESEL_FILENAME, WM_FILESEL_FILEPATH, WM_FILESEL_FILES, WM_FILESEL_RELPATH, wm_lib_relocate_exec(), wm_lib_relocate_invoke(), and WM_operator_properties_filesel().
Referenced by wm_operatortypes_register().
| void WM_OT_link | ( | struct wmOperatorType * | ot | ) |
Definition at line 584 of file wm_files_link.c.
References wmOperatorType::description, wmOperatorType::exec, FILE_DEFAULTDISPLAY, FILE_LOADLIB, FILE_OPENFILE, FILE_SORT_DEFAULT, FILE_TYPE_BLENDER, FILE_TYPE_BLENDERLIB, FILE_TYPE_FOLDER, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_UNDO, ot, wmOperatorType::poll, WM_FILESEL_DIRECTORY, WM_FILESEL_FILENAME, WM_FILESEL_FILEPATH, WM_FILESEL_FILES, WM_FILESEL_RELPATH, WM_FILESEL_SHOW_PROPS, wm_link_append_exec(), wm_link_append_invoke(), wm_link_append_poll(), wm_link_append_properties_common(), and WM_operator_properties_filesel().
Referenced by wm_operatortypes_register().
| void WM_OT_open_mainfile | ( | struct wmOperatorType * | ot | ) |
Definition at line 2531 of file wm_files.c.
References wmOperatorType::check, create_operator_state(), wmOperatorType::description, wmOperatorType::exec, FILE_BLENDER, FILE_DEFAULTDISPLAY, FILE_OPENFILE, FILE_SORT_DEFAULT, FILE_TYPE_BLENDER, FILE_TYPE_FOLDER, wmOperatorType::get_description, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPEN_MAINFILE_STATE_DISCARD_CHANGES, ot, PROP_SKIP_SAVE, RNA_def_boolean(), RNA_def_property_flag(), wmOperatorType::srna, wmOperatorType::ui, WM_FILESEL_FILEPATH, wm_open_mainfile_check(), wm_open_mainfile_def_property_use_scripts(), wm_open_mainfile_description(), wm_open_mainfile_exec(), wm_open_mainfile_invoke(), wm_open_mainfile_ui(), and WM_operator_properties_filesel().
Referenced by wm_operatortypes_register().
| void WM_OT_read_factory_settings | ( | struct wmOperatorType * | ot | ) |
Definition at line 2225 of file wm_files.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, ot, read_homefile_props(), wm_homefile_read_exec(), and WM_operator_confirm().
Referenced by wm_operatortypes_register().
| void WM_OT_read_factory_userpref | ( | struct wmOperatorType * | ot | ) |
Definition at line 2016 of file wm_files.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, ot, WM_operator_confirm(), and wm_userpref_read_exec().
Referenced by wm_operatortypes_register().
| void WM_OT_read_history | ( | struct wmOperatorType * | ot | ) |
Definition at line 2041 of file wm_files.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_INTERNAL, ot, wm_history_file_read_exec(), and WM_operator_confirm().
Referenced by wm_operatortypes_register().
| void WM_OT_read_homefile | ( | struct wmOperatorType * | ot | ) |
Definition at line 2191 of file wm_files.c.
References wmOperatorType::description, wmOperatorType::exec, FILE_MAX, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, NULL, ot, PROP_HIDDEN, PROP_SKIP_SAVE, read_homefile_props(), RNA_def_boolean(), RNA_def_property_flag(), RNA_def_string_file_path(), wmOperatorType::srna, wm_homefile_read_exec(), and wm_homefile_read_invoke().
Referenced by wm_operatortypes_register().
| void WM_OT_read_userpref | ( | struct wmOperatorType * | ot | ) |
Definition at line 2006 of file wm_files.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, ot, WM_operator_confirm(), and wm_userpref_read_exec().
Referenced by wm_operatortypes_register().
| void WM_OT_recover_auto_save | ( | struct wmOperatorType * | ot | ) |
Definition at line 2707 of file wm_files.c.
References wmOperatorType::description, wmOperatorType::exec, FILE_BLENDER, FILE_OPENFILE, FILE_SORT_TIME, FILE_TYPE_BLENDER, FILE_VERTICALDISPLAY, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, ot, WM_FILESEL_FILEPATH, wm_open_mainfile_def_property_use_scripts(), WM_operator_properties_filesel(), wm_recover_auto_save_exec(), and wm_recover_auto_save_invoke().
Referenced by wm_operatortypes_register().
| void WM_OT_recover_last_session | ( | struct wmOperatorType * | ot | ) |
Definition at line 2648 of file wm_files.c.
References BLENDER_QUIT_FILE, wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, ot, wm_open_mainfile_def_property_use_scripts(), wm_recover_last_session_exec(), and wm_recover_last_session_invoke().
Referenced by wm_operatortypes_register().
| void WM_OT_revert_mainfile | ( | struct wmOperatorType * | ot | ) |
Definition at line 2594 of file wm_files.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, ot, wmOperatorType::poll, wm_open_mainfile_def_property_use_scripts(), WM_operator_confirm(), wm_revert_mainfile_exec(), and wm_revert_mainfile_poll().
Referenced by wm_operatortypes_register().
| void WM_OT_save_as_mainfile | ( | struct wmOperatorType * | ot | ) |
Definition at line 2877 of file wm_files.c.
References blend_save_check(), wmOperatorType::check, wmOperatorType::description, wmOperatorType::exec, FILE_BLENDER, FILE_DEFAULTDISPLAY, FILE_SAVE, FILE_SORT_DEFAULT, FILE_TYPE_BLENDER, FILE_TYPE_FOLDER, wmOperatorType::get_description, wmOperatorType::get_name, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, ot, PROP_SKIP_SAVE, RNA_def_boolean(), RNA_def_property_flag(), wmOperatorType::srna, WM_FILESEL_FILEPATH, WM_operator_properties_filesel(), wm_save_as_mainfile_exec(), wm_save_as_mainfile_get_description(), wm_save_as_mainfile_get_name(), and wm_save_as_mainfile_invoke().
Referenced by wm_operatortypes_register().
| void WM_OT_save_homefile | ( | struct wmOperatorType * | ot | ) |
Definition at line 1855 of file wm_files.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, ot, wm_homefile_write_exec(), and WM_operator_confirm().
Referenced by wm_operatortypes_register().
| void WM_OT_save_mainfile | ( | struct wmOperatorType * | ot | ) |
Definition at line 2950 of file wm_files.c.
References blend_save_check(), wmOperatorType::check, wmOperatorType::description, wmOperatorType::exec, FILE_BLENDER, FILE_DEFAULTDISPLAY, FILE_SAVE, FILE_SORT_DEFAULT, FILE_TYPE_BLENDER, FILE_TYPE_FOLDER, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, ot, PROP_HIDDEN, PROP_SKIP_SAVE, RNA_def_boolean(), RNA_def_property_flag(), wmOperatorType::srna, WM_FILESEL_FILEPATH, WM_operator_properties_filesel(), wm_save_as_mainfile_exec(), and wm_save_mainfile_invoke().
Referenced by wm_operatortypes_register().
| void WM_OT_save_userpref | ( | struct wmOperatorType * | ot | ) |
Definition at line 1884 of file wm_files.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, ot, WM_operator_confirm(), and wm_userpref_write_exec().
Referenced by wm_operatortypes_register().