|
Blender
V2.93
|
#include <cstring>#include "DNA_space_types.h"#include "DNA_windowmanager_types.h"#include "BLI_fileops.h"#include "BLI_utildefines.h"#include "BKE_context.h"#include "BKE_icons.h"#include "BKE_lib_id.h"#include "BKE_main.h"#include "BKE_report.h"#include "BLT_translation.h"#include "ED_render.h"#include "ED_undo.h"#include "ED_util.h"#include "RNA_access.h"#include "UI_interface.h"#include "WM_api.h"#include "WM_types.h"Go to the source code of this file.
Functions | |
| void | ED_operatortypes_edutils (void) |
ID Previews | |
| static bool | lib_id_preview_editing_poll (bContext *C) |
| static int | lib_id_load_custom_preview_exec (bContext *C, wmOperator *op) |
| static void | ED_OT_lib_id_load_custom_preview (wmOperatorType *ot) |
| static int | lib_id_generate_preview_exec (bContext *C, wmOperator *UNUSED(op)) |
| static void | ED_OT_lib_id_generate_preview (wmOperatorType *ot) |
Generic ID Operators | |
| static int | lib_id_fake_user_toggle_exec (bContext *C, wmOperator *op) |
| static void | ED_OT_lib_id_fake_user_toggle (wmOperatorType *ot) |
| static int | lib_id_unlink_exec (bContext *C, wmOperator *op) |
| static void | ED_OT_lib_id_unlink (wmOperatorType *ot) |
General editor utils. | |
| static int | ed_flush_edits_exec (bContext *C, wmOperator *UNUSED(op)) |
| static void | ED_OT_flush_edits (wmOperatorType *ot) |
Utility operators for UI data or for the UI to use.
Definition in file ed_util_ops.cc.
|
static |
Definition at line 253 of file ed_util_ops.cc.
References C, CTX_data_main(), ED_editors_flush_edits(), and OPERATOR_FINISHED.
Referenced by ED_OT_flush_edits().
| void ED_operatortypes_edutils | ( | void | ) |
Definition at line 276 of file ed_util_ops.cc.
References ED_OT_flush_edits(), ED_OT_lib_id_fake_user_toggle(), ED_OT_lib_id_generate_preview(), ED_OT_lib_id_load_custom_preview(), ED_OT_lib_id_unlink(), ED_OT_redo(), ED_OT_undo(), ED_OT_undo_history(), ED_OT_undo_push(), ED_OT_undo_redo(), and WM_operatortype_append().
Referenced by ED_spacetypes_init().
|
static |
Definition at line 260 of file ed_util_ops.cc.
References wmOperatorType::description, ed_flush_edits_exec(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_INTERNAL, and ot.
Referenced by ED_operatortypes_edutils().
|
static |
Definition at line 195 of file ed_util_ops.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, lib_id_fake_user_toggle_exec(), wmOperatorType::name, OPTYPE_INTERNAL, OPTYPE_UNDO, and ot.
Referenced by ED_operatortypes_edutils().
|
static |
Definition at line 141 of file ed_util_ops.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, lib_id_generate_preview_exec(), lib_id_preview_editing_poll(), wmOperatorType::name, OPTYPE_INTERNAL, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_edutils().
|
static |
Definition at line 100 of file ed_util_ops.cc.
References wmOperatorType::description, wmOperatorType::exec, FILE_DEFAULTDISPLAY, FILE_OPENFILE, FILE_SORT_DEFAULT, FILE_SPECIAL, FILE_TYPE_FOLDER, FILE_TYPE_IMAGE, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, lib_id_load_custom_preview_exec(), lib_id_preview_editing_poll(), wmOperatorType::name, OPTYPE_INTERNAL, ot, wmOperatorType::poll, WM_FILESEL_FILEPATH, WM_operator_filesel(), and WM_operator_properties_filesel().
Referenced by ED_operatortypes_edutils().
|
static |
Definition at line 233 of file ed_util_ops.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, lib_id_unlink_exec(), wmOperatorType::name, OPTYPE_INTERNAL, OPTYPE_UNDO, and ot.
Referenced by ED_operatortypes_edutils().
|
static |
Definition at line 161 of file ed_util_ops.cc.
References BKE_report(), C, PointerRNA::data, ELEM, GS, id, id_fake_user_clear(), id_fake_user_set(), ID_FAKE_USERS, ID_GR, ID_OB, ID_SCE, ID_SCR, ID_TXT, ID_WS, if(), ID::lib, ID::name, OPERATOR_CANCELLED, OPERATOR_FINISHED, PointerRNA_NULL, PropertyPointerRNA::prop, PropertyPointerRNA::ptr, wmOperator::reports, RNA_pointer_is_null(), RNA_property_pointer_get(), RNA_struct_is_ID(), RPT_ERROR, PointerRNA::type, and UI_context_active_but_prop_get_templateID().
Referenced by ED_OT_lib_id_fake_user_toggle().
|
static |
Definition at line 123 of file ed_util_ops.cc.
References BKE_previewimg_clear(), BKE_previewimg_id_get(), C, CTX_data_main(), CTX_data_pointer_get(), CTX_wm_manager(), PointerRNA::data, ED_preview_kill_jobs(), ICON_SIZE_PREVIEW, NA_EDITED, NC_ASSET, OPERATOR_FINISHED, UI_icon_render_id(), and WM_event_add_notifier().
Referenced by ED_OT_lib_id_generate_preview().
|
static |
Definition at line 79 of file ed_util_ops.cc.
References BKE_previewimg_id_custom_set(), BKE_reportf(), BLI_is_file(), C, CTX_data_pointer_get(), PointerRNA::data, FILE_MAX, NA_EDITED, NC_ASSET, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, wmOperator::reports, RNA_string_get(), RPT_ERROR, and WM_event_add_notifier().
Referenced by ED_OT_lib_id_load_custom_preview().
|
static |
Definition at line 54 of file ed_util_ops.cc.
References BKE_previewimg_id_get_p(), BLI_assert, C, CTX_data_pointer_get(), CTX_wm_operator_poll_msg_set(), PointerRNA::data, ID_IS_LINKED, ID_IS_OVERRIDE_LIBRARY, if(), RNA_struct_is_ID(), TIP_, and PointerRNA::type.
Referenced by ED_OT_lib_id_generate_preview(), and ED_OT_lib_id_load_custom_preview().
|
static |
Definition at line 209 of file ed_util_ops.cc.
References BKE_report(), C, OPERATOR_CANCELLED, OPERATOR_FINISHED, PropertyPointerRNA::prop, PropertyPointerRNA::ptr, wmOperator::reports, RNA_pointer_is_null(), RNA_property_pointer_get(), RNA_property_pointer_set(), RNA_property_update(), RNA_struct_is_ID(), RPT_ERROR, PointerRNA::type, and UI_context_active_but_prop_get_templateID().
Referenced by ED_OT_lib_id_unlink().