|
Blender V4.5
|
#include <cstring>#include <fmt/format.h>#include "DNA_space_types.h"#include "DNA_windowmanager_types.h"#include "MEM_guardedalloc.h"#include "BLT_translation.hh"#include "BKE_bpath.hh"#include "BKE_context.hh"#include "BKE_global.hh"#include "BKE_image.hh"#include "BKE_lib_id.hh"#include "BKE_library.hh"#include "BKE_main.hh"#include "BKE_packedFile.hh"#include "BKE_report.hh"#include "BKE_screen.hh"#include "WM_api.hh"#include "WM_types.hh"#include "UI_interface.hh"#include "RNA_access.hh"#include "RNA_define.hh"#include "info_intern.hh"Go to the source code of this file.
Report Box Operator | |
| #define | INFO_TIMEOUT 5.0f |
| #define | ERROR_TIMEOUT 10.0f |
| #define | FLASH_TIMEOUT 1.0f |
| #define | COLLAPSE_TIMEOUT 0.25f |
| static wmOperatorStatus | update_reports_display_invoke (bContext *C, wmOperator *, const wmEvent *event) |
| void | INFO_OT_reports_display_update (wmOperatorType *ot) |
Unpack All Operator | |
| static const EnumPropertyItem | unpack_all_method_items [] |
| static wmOperatorStatus | unpack_all_exec (bContext *C, wmOperator *op) |
| static wmOperatorStatus | unpack_all_invoke (bContext *C, wmOperator *op, const wmEvent *) |
| void | FILE_OT_unpack_all (wmOperatorType *ot) |
Unpack Single Item Operator | |
| static const EnumPropertyItem | unpack_item_method_items [] |
| static wmOperatorStatus | unpack_item_exec (bContext *C, wmOperator *op) |
| static wmOperatorStatus | unpack_item_invoke (bContext *C, wmOperator *op, const wmEvent *) |
| void | FILE_OT_unpack_item (wmOperatorType *ot) |
| #define COLLAPSE_TIMEOUT 0.25f |
Definition at line 597 of file info_ops.cc.
Referenced by update_reports_display_invoke().
| #define ERROR_TIMEOUT 10.0f |
Definition at line 595 of file info_ops.cc.
Referenced by update_reports_display_invoke().
| #define FLASH_TIMEOUT 1.0f |
Definition at line 596 of file info_ops.cc.
Referenced by update_reports_display_invoke().
| #define INFO_TIMEOUT 5.0f |
Definition at line 594 of file info_ops.cc.
Referenced by update_reports_display_invoke().
|
static |
Definition at line 120 of file info_ops.cc.
References autopack_toggle_exec(), BKE_packedfile_pack_all(), C, CTX_data_main(), G, G_FILE_AUTOPACK, OPERATOR_FINISHED, and wmOperator::reports.
Referenced by autopack_toggle_exec(), and FILE_OT_autopack_toggle().
| void FILE_OT_autopack_toggle | ( | wmOperatorType * | ot | ) |
Definition at line 135 of file info_ops.cc.
References autopack_toggle_exec(), wmOperatorType::description, wmOperatorType::exec, FILE_OT_autopack_toggle(), wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, and OPTYPE_UNDO.
Referenced by FILE_OT_autopack_toggle(), and info_operatortypes().
| void FILE_OT_find_missing_files | ( | wmOperatorType * | ot | ) |
Definition at line 552 of file info_ops.cc.
References wmOperatorType::description, wmOperatorType::exec, FILE_DEFAULTDISPLAY, FILE_OPENFILE, FILE_OT_find_missing_files(), FILE_SORT_DEFAULT, FILE_SPECIAL, find_missing_files_exec(), find_missing_files_invoke(), wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, RNA_def_boolean(), wmOperatorType::srna, WM_FILESEL_DIRECTORY, and WM_operator_properties_filesel().
Referenced by FILE_OT_find_missing_files(), and info_operatortypes().
| void FILE_OT_make_paths_absolute | ( | wmOperatorType * | ot | ) |
Definition at line 477 of file info_ops.cc.
References wmOperatorType::description, wmOperatorType::exec, FILE_OT_make_paths_absolute(), wmOperatorType::flag, wmOperatorType::idname, make_paths_absolute_exec(), wmOperatorType::name, OPTYPE_REGISTER, and OPTYPE_UNDO.
Referenced by FILE_OT_make_paths_absolute(), and info_operatortypes().
| void FILE_OT_make_paths_relative | ( | wmOperatorType * | ot | ) |
Definition at line 437 of file info_ops.cc.
References wmOperatorType::description, wmOperatorType::exec, FILE_OT_make_paths_relative(), wmOperatorType::flag, wmOperatorType::idname, make_paths_relative_exec(), wmOperatorType::name, OPTYPE_REGISTER, and OPTYPE_UNDO.
Referenced by FILE_OT_make_paths_relative(), and info_operatortypes().
| void FILE_OT_pack_all | ( | wmOperatorType * | ot | ) |
Definition at line 194 of file info_ops.cc.
References wmOperatorType::description, wmOperatorType::exec, FILE_OT_pack_all(), wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, pack_all_exec(), and pack_all_invoke().
Referenced by FILE_OT_pack_all(), and info_operatortypes().
| void FILE_OT_pack_libraries | ( | wmOperatorType * | ot | ) |
Definition at line 53 of file info_ops.cc.
References wmOperatorType::description, wmOperatorType::exec, FILE_OT_pack_libraries(), wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, and pack_libraries_exec().
Referenced by FILE_OT_pack_libraries(), and info_operatortypes().
| void FILE_OT_report_missing_files | ( | wmOperatorType * | ot | ) |
Definition at line 509 of file info_ops.cc.
References wmOperatorType::description, wmOperatorType::exec, FILE_OT_report_missing_files(), wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, and report_missing_files_exec().
Referenced by FILE_OT_report_missing_files(), and info_operatortypes().
| void FILE_OT_unpack_all | ( | wmOperatorType * | ot | ) |
Definition at line 282 of file info_ops.cc.
References wmOperatorType::description, wmOperatorType::exec, FILE_OT_unpack_all(), wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, PF_USE_LOCAL, RNA_def_enum(), wmOperatorType::srna, unpack_all_exec(), unpack_all_invoke(), and unpack_all_method_items.
Referenced by FILE_OT_unpack_all(), and info_operatortypes().
| void FILE_OT_unpack_item | ( | wmOperatorType * | ot | ) |
Definition at line 381 of file info_ops.cc.
References BKE_ST_MAXNAME, wmOperatorType::description, wmOperatorType::exec, FILE_OT_unpack_item(), wmOperatorType::flag, ID_IM, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_UNDO, PF_USE_LOCAL, RNA_def_enum(), RNA_def_int(), RNA_def_string(), wmOperatorType::srna, unpack_item_exec(), unpack_item_invoke(), and unpack_item_method_items.
Referenced by FILE_OT_unpack_item(), and info_operatortypes().
| void FILE_OT_unpack_libraries | ( | wmOperatorType * | ot | ) |
Definition at line 99 of file info_ops.cc.
References wmOperatorType::description, wmOperatorType::exec, FILE_OT_unpack_libraries(), wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, unpack_libraries_exec(), and unpack_libraries_invoke().
Referenced by FILE_OT_unpack_libraries(), and info_operatortypes().
|
static |
Definition at line 529 of file info_ops.cc.
References BKE_bpath_missing_files_find(), C, CTX_data_main(), find_missing_files_exec(), MEM_freeN(), NC_SCENE, ND_SEQUENCER, OPERATOR_FINISHED, wmOperator::ptr, wmOperator::reports, RNA_boolean_get(), RNA_string_get_alloc(), and WM_main_add_notifier().
Referenced by FILE_OT_find_missing_files(), and find_missing_files_exec().
|
static |
Definition at line 543 of file info_ops.cc.
References C, find_missing_files_invoke(), OPERATOR_RUNNING_MODAL, and WM_event_add_fileselect().
Referenced by FILE_OT_find_missing_files(), and find_missing_files_invoke().
| void INFO_OT_reports_display_update | ( | wmOperatorType * | ot | ) |
Definition at line 660 of file info_ops.cc.
References wmOperatorType::description, wmOperatorType::flag, wmOperatorType::idname, INFO_OT_reports_display_update(), wmOperatorType::invoke, wmOperatorType::name, and update_reports_display_invoke().
Referenced by info_operatortypes(), and INFO_OT_reports_display_update().
|
static |
Definition at line 457 of file info_ops.cc.
References BKE_bpath_absolute_convert(), BKE_bpath_summary_report(), BKE_main_blendfile_path(), BKE_report(), C, CTX_data_main(), make_paths_absolute_exec(), NC_WINDOW, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::reports, RPT_WARNING, and WM_main_add_notifier().
Referenced by FILE_OT_make_paths_absolute(), and make_paths_absolute_exec().
|
static |
Definition at line 417 of file info_ops.cc.
References BKE_bpath_relative_convert(), BKE_bpath_summary_report(), BKE_main_blendfile_path(), BKE_report(), C, CTX_data_main(), make_paths_relative_exec(), NC_WINDOW, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::reports, RPT_WARNING, and WM_main_add_notifier().
Referenced by FILE_OT_make_paths_relative(), and make_paths_relative_exec().
|
static |
Definition at line 155 of file info_ops.cc.
References BKE_packedfile_pack_all(), C, CTX_data_main(), NC_WINDOW, OPERATOR_FINISHED, pack_all_exec(), wmOperator::reports, and WM_main_add_notifier().
Referenced by FILE_OT_pack_all(), pack_all_exec(), and pack_all_invoke().
|
static |
Definition at line 166 of file info_ops.cc.
References ALERT_ICON_WARNING, BKE_image_is_dirty(), C, CTX_data_main(), ListBase::first, Image::id, IFACE_, Main::images, ID::next, pack_all_exec(), pack_all_invoke(), and WM_operator_confirm_ex().
Referenced by FILE_OT_pack_all(), and pack_all_invoke().
|
static |
Definition at line 44 of file info_ops.cc.
References BKE_packedfile_pack_all_libraries(), C, CTX_data_main(), OPERATOR_FINISHED, pack_libraries_exec(), and wmOperator::reports.
Referenced by FILE_OT_pack_libraries(), and pack_libraries_exec().
|
static |
Definition at line 497 of file info_ops.cc.
References BKE_bpath_missing_files_check(), C, CTX_data_main(), NC_SCENE, ND_SEQUENCER, OPERATOR_FINISHED, report_missing_files_exec(), wmOperator::reports, and WM_main_add_notifier().
Referenced by FILE_OT_report_missing_files(), and report_missing_files_exec().
|
static |
Definition at line 238 of file info_ops.cc.
References BKE_packedfile_unpack_all(), C, CTX_data_main(), G, G_FILE_AUTOPACK, NC_WINDOW, OPERATOR_FINISHED, PF_KEEP, wmOperator::ptr, wmOperator::reports, RNA_enum_get(), unpack_all_exec(), WM_cursor_wait(), and WM_main_add_notifier().
Referenced by FILE_OT_unpack_all(), and unpack_all_exec().
|
static |
Definition at line 254 of file info_ops.cc.
References PackedFileCount::bakes, BKE_packedfile_count_all(), BKE_report(), C, CTX_data_main(), G, G_FILE_AUTOPACK, IFACE_, PackedFileCount::individual_files, OPERATOR_CANCELLED, OPERATOR_INTERFACE, wmOperator::reports, RPT_WARNING, PackedFileCount::total(), UI_popup_menu_begin(), UI_popup_menu_end(), UI_popup_menu_layout(), uiItemsEnumO(), uiLayoutSetOperatorContext(), unpack_all_invoke(), and WM_OP_EXEC_DEFAULT.
Referenced by FILE_OT_unpack_all(), and unpack_all_invoke().
|
static |
Definition at line 328 of file info_ops.cc.
References BKE_libblock_find_name(), BKE_packedfile_id_unpack(), BKE_report(), C, CTX_data_main(), G, G_FILE_AUTOPACK, ID_IS_EDITABLE, MAX_ID_NAME, OPERATOR_CANCELLED, OPERATOR_FINISHED, PF_KEEP, wmOperator::ptr, wmOperator::reports, RNA_enum_get(), RNA_int_get(), RNA_string_get(), RPT_WARNING, unpack_item_exec(), and WM_cursor_wait().
Referenced by FILE_OT_unpack_item(), and unpack_item_exec().
|
static |
Definition at line 360 of file info_ops.cc.
References C, PointerRNA::data, wmOperatorType::idname, IFACE_, OPERATOR_INTERFACE, wmOperator::ptr, wmOperator::type, UI_ITEM_NONE, UI_popup_menu_begin(), UI_popup_menu_end(), UI_popup_menu_layout(), uiItemsFullEnumO(), uiLayoutSetOperatorContext(), unpack_item_invoke(), WM_OP_EXEC_DEFAULT, and WM_OP_EXEC_REGION_WIN.
Referenced by FILE_OT_unpack_item(), and unpack_item_invoke().
|
static |
Definition at line 69 of file info_ops.cc.
References BKE_packedfile_unpack_all_libraries(), C, CTX_data_main(), OPERATOR_FINISHED, wmOperator::reports, unpack_libraries_exec(), and WM_cursor_wait().
Referenced by FILE_OT_unpack_libraries(), and unpack_libraries_exec().
|
static |
Definition at line 86 of file info_ops.cc.
References ALERT_ICON_INFO, C, IFACE_, unpack_libraries_invoke(), and WM_operator_confirm_ex().
Referenced by FILE_OT_unpack_libraries(), and unpack_libraries_invoke().
|
static |
Definition at line 599 of file info_ops.cc.
References BKE_reports_last_displayable(), C, COLLAPSE_TIMEOUT, CTX_wm_manager(), CTX_wm_reports(), wmEvent::customdata, wmTimer::customdata, ERROR_TIMEOUT, ReportTimerInfo::flash_progress, FLASH_TIMEOUT, INFO_TIMEOUT, NC_SPACE, ND_SPACE_INFO, OPERATOR_FINISHED, OPERATOR_PASS_THROUGH, powf, progress, reports, ReportList::reporttimer, RPT_ERROR_ALL, wmTimer::time_duration, Report::type, update_reports_display_invoke(), ReportTimerInfo::widthfac, WM_event_add_notifier(), and WM_event_timer_remove().
Referenced by INFO_OT_reports_display_update(), and update_reports_display_invoke().
|
static |
Definition at line 215 of file info_ops.cc.
Referenced by FILE_OT_unpack_all().
|
static |
Definition at line 307 of file info_ops.cc.
Referenced by FILE_OT_unpack_item().