|
Blender V4.3
|
#include <cstdio>#include <cstring>#include <fmt/format.h>#include "DNA_space_types.h"#include "DNA_windowmanager_types.h"#include "MEM_guardedalloc.h"#include "BLI_blenlib.h"#include "BLI_utildefines.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_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 int | 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 int | unpack_all_exec (bContext *C, wmOperator *op) |
| static int | 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 int | unpack_item_exec (bContext *C, wmOperator *op) |
| static int | unpack_item_invoke (bContext *C, wmOperator *op, const wmEvent *) |
| void | FILE_OT_unpack_item (wmOperatorType *ot) |
| #define COLLAPSE_TIMEOUT 0.25f |
Definition at line 591 of file info_ops.cc.
Referenced by update_reports_display_invoke().
| #define ERROR_TIMEOUT 10.0f |
Definition at line 589 of file info_ops.cc.
Referenced by update_reports_display_invoke().
| #define FLASH_TIMEOUT 1.0f |
Definition at line 590 of file info_ops.cc.
Referenced by update_reports_display_invoke().
| #define INFO_TIMEOUT 5.0f |
Definition at line 588 of file info_ops.cc.
Referenced by update_reports_display_invoke().
|
static |
Definition at line 121 of file info_ops.cc.
References BKE_packedfile_pack_all(), CTX_data_main(), G, G_FILE_AUTOPACK, OPERATOR_FINISHED, and wmOperator::reports.
Referenced by FILE_OT_autopack_toggle().
| void FILE_OT_autopack_toggle | ( | wmOperatorType * | ot | ) |
Definition at line 136 of file info_ops.cc.
References autopack_toggle_exec(), wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, and ot.
Referenced by info_operatortypes().
| void FILE_OT_find_missing_files | ( | wmOperatorType * | ot | ) |
Definition at line 546 of file info_ops.cc.
References wmOperatorType::description, wmOperatorType::exec, FILE_DEFAULTDISPLAY, FILE_OPENFILE, 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, ot, RNA_def_boolean(), wmOperatorType::srna, WM_FILESEL_DIRECTORY, and WM_operator_properties_filesel().
Referenced by info_operatortypes().
| void FILE_OT_make_paths_absolute | ( | wmOperatorType * | ot | ) |
Definition at line 473 of file info_ops.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, make_paths_absolute_exec(), wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, and ot.
Referenced by info_operatortypes().
| void FILE_OT_make_paths_relative | ( | wmOperatorType * | ot | ) |
Definition at line 433 of file info_ops.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, make_paths_relative_exec(), wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, and ot.
Referenced by info_operatortypes().
| void FILE_OT_pack_all | ( | wmOperatorType * | ot | ) |
Definition at line 195 of file info_ops.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, pack_all_exec(), and pack_all_invoke().
Referenced by info_operatortypes().
| void FILE_OT_pack_libraries | ( | wmOperatorType * | ot | ) |
Definition at line 56 of file info_ops.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and pack_libraries_exec().
Referenced by info_operatortypes().
| void FILE_OT_report_missing_files | ( | wmOperatorType * | ot | ) |
Definition at line 505 of file info_ops.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, ot, and report_missing_files_exec().
Referenced by info_operatortypes().
| void FILE_OT_unpack_all | ( | wmOperatorType * | ot | ) |
Definition at line 283 of file info_ops.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, PF_USE_LOCAL, RNA_def_enum(), wmOperatorType::srna, unpack_all_exec(), unpack_all_invoke(), and unpack_all_method_items.
Referenced by info_operatortypes().
| void FILE_OT_unpack_item | ( | wmOperatorType * | ot | ) |
Definition at line 377 of file info_ops.cc.
References BKE_ST_MAXNAME, wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, ID_IM, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_UNDO, ot, 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 info_operatortypes().
| void FILE_OT_unpack_libraries | ( | wmOperatorType * | ot | ) |
Definition at line 100 of file info_ops.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, unpack_libraries_exec(), and unpack_libraries_invoke().
Referenced by info_operatortypes().
|
static |
Definition at line 525 of file info_ops.cc.
References BKE_bpath_missing_files_find(), CTX_data_main(), 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().
|
static |
Definition at line 539 of file info_ops.cc.
References OPERATOR_RUNNING_MODAL, and WM_event_add_fileselect().
Referenced by FILE_OT_find_missing_files().
| void INFO_OT_reports_display_update | ( | wmOperatorType * | ot | ) |
Definition at line 652 of file info_ops.cc.
References wmOperatorType::description, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, ot, and update_reports_display_invoke().
Referenced by info_operatortypes().
|
static |
Definition at line 453 of file info_ops.cc.
References BKE_bpath_absolute_convert(), BKE_bpath_summary_report(), BKE_main_blendfile_path(), BKE_report(), CTX_data_main(), NC_WINDOW, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::reports, RPT_WARNING, and WM_main_add_notifier().
Referenced by FILE_OT_make_paths_absolute().
|
static |
Definition at line 413 of file info_ops.cc.
References BKE_bpath_relative_convert(), BKE_bpath_summary_report(), BKE_main_blendfile_path(), BKE_report(), CTX_data_main(), NC_WINDOW, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::reports, RPT_WARNING, and WM_main_add_notifier().
Referenced by FILE_OT_make_paths_relative().
|
static |
Definition at line 156 of file info_ops.cc.
References BKE_packedfile_pack_all(), CTX_data_main(), NC_WINDOW, OPERATOR_FINISHED, wmOperator::reports, and WM_main_add_notifier().
Referenced by FILE_OT_pack_all(), and pack_all_invoke().
|
static |
Definition at line 167 of file info_ops.cc.
References ALERT_ICON_WARNING, BKE_image_is_dirty(), CTX_data_main(), ListBase::first, Image::id, IFACE_, Main::images, ID::next, pack_all_exec(), and WM_operator_confirm_ex().
Referenced by FILE_OT_pack_all().
|
static |
Definition at line 47 of file info_ops.cc.
References BKE_packedfile_pack_all_libraries(), CTX_data_main(), OPERATOR_FINISHED, and wmOperator::reports.
Referenced by FILE_OT_pack_libraries().
|
static |
Definition at line 493 of file info_ops.cc.
References BKE_bpath_missing_files_check(), CTX_data_main(), NC_SCENE, ND_SEQUENCER, OPERATOR_FINISHED, wmOperator::reports, and WM_main_add_notifier().
Referenced by FILE_OT_report_missing_files().
|
static |
Definition at line 239 of file info_ops.cc.
References BKE_packedfile_unpack_all(), CTX_data_main(), G, NC_WINDOW, OPERATOR_FINISHED, PF_KEEP, wmOperator::ptr, wmOperator::reports, RNA_enum_get(), WM_cursor_wait(), and WM_main_add_notifier().
Referenced by FILE_OT_unpack_all().
|
static |
Definition at line 255 of file info_ops.cc.
References BKE_packedfile_count_all(), BKE_report(), count, CTX_data_main(), G, IFACE_, OPERATOR_CANCELLED, OPERATOR_INTERFACE, wmOperator::reports, RPT_WARNING, UI_popup_menu_begin(), UI_popup_menu_end(), UI_popup_menu_layout(), uiItemsEnumO(), uiLayoutSetOperatorContext(), and WM_OP_EXEC_DEFAULT.
Referenced by FILE_OT_unpack_all().
|
static |
Definition at line 329 of file info_ops.cc.
References BKE_libblock_find_name(), BKE_packedfile_id_unpack(), BKE_report(), CTX_data_main(), G, MAX_ID_NAME, OPERATOR_CANCELLED, OPERATOR_FINISHED, PF_KEEP, wmOperator::ptr, wmOperator::reports, RNA_enum_get(), RNA_int_get(), RNA_string_get(), RPT_WARNING, and WM_cursor_wait().
Referenced by FILE_OT_unpack_item().
|
static |
Definition at line 356 of file info_ops.cc.
References 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(), WM_OP_EXEC_DEFAULT, and WM_OP_EXEC_REGION_WIN.
Referenced by FILE_OT_unpack_item().
|
static |
Definition at line 72 of file info_ops.cc.
References BKE_packedfile_unpack_all_libraries(), CTX_data_main(), OPERATOR_FINISHED, wmOperator::reports, and WM_cursor_wait().
Referenced by FILE_OT_unpack_libraries().
|
static |
Definition at line 89 of file info_ops.cc.
References ALERT_ICON_INFO, IFACE_, and WM_operator_confirm_ex().
Referenced by FILE_OT_unpack_libraries().
|
static |
Definition at line 593 of file info_ops.cc.
References BKE_reports_last_displayable(), COLLAPSE_TIMEOUT, CTX_wm_manager(), CTX_wm_reports(), wmEvent::customdata, wmTimer::customdata, ERROR_TIMEOUT, ReportTimerInfo::flash_progress, FLASH_TIMEOUT, float, INFO_TIMEOUT, NC_SPACE, ND_SPACE_INFO, OPERATOR_FINISHED, OPERATOR_PASS_THROUGH, powf, ReportList::reporttimer, RPT_ERROR_ALL, wmTimer::time_duration, Report::type, ReportTimerInfo::widthfac, WM_event_add_notifier(), and WM_event_timer_remove().
Referenced by INFO_OT_reports_display_update().
|
static |
Definition at line 216 of file info_ops.cc.
Referenced by FILE_OT_unpack_all().
|
static |
Definition at line 308 of file info_ops.cc.
Referenced by FILE_OT_unpack_item().