Blender
V3.3
|
#include <stdio.h>
#include <string.h>
#include "DNA_space_types.h"
#include "DNA_windowmanager_types.h"
#include "MEM_guardedalloc.h"
#include "BLI_blenlib.h"
#include "BLI_math.h"
#include "BLI_utildefines.h"
#include "BLT_translation.h"
#include "BKE_bpath.h"
#include "BKE_context.h"
#include "BKE_global.h"
#include "BKE_image.h"
#include "BKE_lib_id.h"
#include "BKE_main.h"
#include "BKE_packedFile.h"
#include "BKE_report.h"
#include "BKE_screen.h"
#include "WM_api.h"
#include "WM_types.h"
#include "UI_interface.h"
#include "UI_resources.h"
#include "RNA_access.h"
#include "RNA_define.h"
#include "info_intern.h"
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 |
#define | BRIGHTEN_AMOUNT 0.1f |
static int | update_reports_display_invoke (bContext *C, wmOperator *UNUSED(op), 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 *UNUSED(event)) |
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 *UNUSED(event)) |
void | FILE_OT_unpack_item (wmOperatorType *ot) |
#define BRIGHTEN_AMOUNT 0.1f |
Definition at line 563 of file info_ops.c.
#define COLLAPSE_TIMEOUT 0.25f |
Definition at line 562 of file info_ops.c.
#define ERROR_TIMEOUT 10.0f |
Definition at line 560 of file info_ops.c.
#define FLASH_TIMEOUT 1.0f |
Definition at line 561 of file info_ops.c.
#define INFO_TIMEOUT 5.0f |
Definition at line 559 of file info_ops.c.
|
static |
Definition at line 114 of file info_ops.c.
References BKE_packedfile_pack_all(), C, 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 129 of file info_ops.c.
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 517 of file info_ops.c.
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 448 of file info_ops.c.
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 410 of file info_ops.c.
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 178 of file info_ops.c.
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.c.
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 478 of file info_ops.c.
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 269 of file info_ops.c.
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 356 of file info_ops.c.
References BKE_ST_MAXNAME, wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, ID_IM, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, NULL, 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 93 of file info_ops.c.
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 498 of file info_ops.c.
References BKE_bpath_missing_files_find(), C, CTX_data_main(), MEM_freeN, NULL, OPERATOR_FINISHED, wmOperator::ptr, wmOperator::reports, RNA_boolean_get(), and RNA_string_get_alloc().
Referenced by FILE_OT_find_missing_files().
|
static |
Definition at line 510 of file info_ops.c.
References C, 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 638 of file info_ops.c.
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 430 of file info_ops.c.
References BKE_bpath_absolute_convert(), BKE_main_blendfile_path(), BKE_report(), C, CTX_data_main(), NC_WINDOW, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::reports, RPT_WARNING, and WM_main_add_notifier().
Referenced by FILE_OT_make_paths_absolute().
|
static |
Definition at line 392 of file info_ops.c.
References BKE_bpath_relative_convert(), BKE_main_blendfile_path(), BKE_report(), C, CTX_data_main(), NC_WINDOW, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::reports, RPT_WARNING, and WM_main_add_notifier().
Referenced by FILE_OT_make_paths_relative().
|
static |
Definition at line 149 of file info_ops.c.
References BKE_packedfile_pack_all(), C, CTX_data_main(), OPERATOR_FINISHED, and wmOperator::reports.
Referenced by FILE_OT_pack_all(), and pack_all_invoke().
|
static |
Definition at line 158 of file info_ops.c.
References BKE_image_is_dirty(), C, CTX_data_main(), ListBase::first, Image::id, Main::images, ID::next, pack_all_exec(), and WM_operator_confirm_message().
Referenced by FILE_OT_pack_all().
|
static |
Definition at line 47 of file info_ops.c.
References BKE_packedfile_pack_all_libraries(), C, CTX_data_main(), OPERATOR_FINISHED, and wmOperator::reports.
Referenced by FILE_OT_pack_libraries().
|
static |
Definition at line 468 of file info_ops.c.
References BKE_bpath_missing_files_check(), C, CTX_data_main(), OPERATOR_FINISHED, and wmOperator::reports.
Referenced by FILE_OT_report_missing_files().
|
static |
Definition at line 222 of file info_ops.c.
References BKE_packedfile_unpack_all(), C, CTX_data_main(), G, G_FILE_AUTOPACK, OPERATOR_FINISHED, PF_KEEP, wmOperator::ptr, wmOperator::reports, and RNA_enum_get().
Referenced by FILE_OT_unpack_all().
|
static |
Definition at line 235 of file info_ops.c.
References BKE_packedfile_count_all(), BKE_report(), BLI_snprintf(), BLI_strncpy(), C, count, CTX_data_main(), G, G_FILE_AUTOPACK, 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 315 of file info_ops.c.
References BKE_libblock_find_name(), BKE_packedfile_id_unpack(), BKE_report(), C, CTX_data_main(), G, G_FILE_AUTOPACK, id, MAX_ID_NAME, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, PF_KEEP, wmOperator::ptr, wmOperator::reports, RNA_enum_get(), RNA_int_get(), RNA_string_get(), RPT_WARNING, and type.
Referenced by FILE_OT_unpack_item().
|
static |
Definition at line 340 of file info_ops.c.
References C, PointerRNA::data, wmOperatorType::idname, IFACE_, OPERATOR_INTERFACE, wmOperator::ptr, wmOperator::type, 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.c.
References BKE_packedfile_unpack_all_libraries(), C, CTX_data_main(), OPERATOR_FINISHED, and wmOperator::reports.
Referenced by FILE_OT_unpack_libraries().
|
static |
Definition at line 87 of file info_ops.c.
References C, and WM_operator_confirm_message().
Referenced by FILE_OT_unpack_libraries().
|
static |
Definition at line 564 of file info_ops.c.
References BKE_reports_last_displayable(), BRIGHTEN_AMOUNT, C, CLAMP3, ReportTimerInfo::col, COLLAPSE_TIMEOUT, CTX_wm_manager(), CTX_wm_reports(), wmEvent::customdata, wmTimer::customdata, wmTimer::duration, ERROR_TIMEOUT, FLASH_TIMEOUT, INFO_TIMEOUT, interp_v4_v4v4(), NC_SPACE, ND_SPACE_INFO, NULL, OPERATOR_FINISHED, OPERATOR_PASS_THROUGH, powf, ReportList::reporttimer, RPT_ERROR_ALL, SPACE_INFO, Report::type, UI_GetThemeColorType3fv(), UI_icon_colorid_from_report_type(), ReportTimerInfo::widthfac, WM_event_add_notifier(), and WM_event_remove_timer().
Referenced by INFO_OT_reports_display_update().
|
static |
Definition at line 199 of file info_ops.c.
Referenced by FILE_OT_unpack_all().
|
static |
Definition at line 294 of file info_ops.c.
Referenced by FILE_OT_unpack_item().