Blender
V3.3
|
#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_lib_override.h"
#include "BKE_main.h"
#include "BKE_report.h"
#include "BLT_translation.h"
#include "ED_asset.h"
#include "ED_render.h"
#include "ED_undo.h"
#include "ED_util.h"
#include "RNA_access.h"
#include "RNA_prototypes.h"
#include "UI_interface.h"
#include "WM_api.h"
#include "WM_types.h"
Go to the source code of this file.
Utility operators for UI data or for the UI to use.
Definition in file ed_util_ops.cc.
|
static |
Definition at line 349 of file ed_util_ops.cc.
References C, CTX_data_main(), ED_editors_flush_edits(), and OPERATOR_FINISHED.
Referenced by ED_OT_flush_edits().
Definition at line 372 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_generate_preview_from_object(), ED_OT_lib_id_load_custom_preview(), ED_OT_lib_id_override_editable_toggle(), 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 356 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 247 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 148 of file ed_util_ops.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, lib_id_generate_preview_exec(), lib_id_generate_preview_poll(), wmOperatorType::name, OPTYPE_INTERNAL, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_edutils().
|
static |
Definition at line 192 of file ed_util_ops.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, lib_id_generate_preview_from_object_exec(), lib_id_generate_preview_from_object_poll(), wmOperatorType::name, OPTYPE_INTERNAL, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_edutils().
|
static |
Definition at line 89 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, OPTYPE_UNDO, ot, wmOperatorType::poll, WM_FILESEL_FILEPATH, WM_operator_filesel(), and WM_operator_properties_filesel().
Referenced by ED_operatortypes_edutils().
|
static |
Definition at line 328 of file ed_util_ops.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, lib_id_override_editable_toggle_exec(), lib_id_override_editable_toggle_poll(), wmOperatorType::name, OPTYPE_INTERNAL, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_edutils().
|
static |
Definition at line 285 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 212 of file ed_util_ops.cc.
References BKE_id_is_editable(), BKE_report(), C, CTX_data_main(), 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::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 128 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_assetlist_storage_tag_main_data_dirty(), ED_preview_kill_jobs(), ICON_SIZE_PREVIEW, NA_EDITED, NC_ASSET, OPERATOR_FINISHED, usdtokens::preview(), UI_icon_render_id(), and WM_event_add_notifier().
Referenced by ED_OT_lib_id_generate_preview().
|
static |
Definition at line 173 of file ed_util_ops.cc.
References BKE_previewimg_id_ensure(), BKE_previewimg_id_free(), C, CTX_data_active_object(), CTX_data_main(), CTX_data_pointer_get(), CTX_wm_manager(), PointerRNA::data, ED_assetlist_storage_tag_main_data_dirty(), ED_preview_kill_jobs(), ICON_SIZE_PREVIEW, Object::id, NA_EDITED, NC_ASSET, OPERATOR_FINISHED, UI_icon_render_id_ex(), and WM_event_add_notifier().
Referenced by ED_OT_lib_id_generate_preview_from_object().
Definition at line 162 of file ed_util_ops.cc.
References C, CTX_data_active_object(), and lib_id_preview_editing_poll().
Referenced by ED_OT_lib_id_generate_preview_from_object().
Definition at line 112 of file ed_util_ops.cc.
References C, CTX_data_pointer_get(), CTX_wm_operator_poll_msg_set(), PointerRNA::data, GS, id, ID_NT, if(), lib_id_preview_editing_poll(), ID::name, and TIP_.
Referenced by ED_OT_lib_id_generate_preview().
|
static |
Definition at line 68 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 307 of file ed_util_ops.cc.
References BKE_lib_override_library_id_reset(), BKE_lib_override_library_is_system_defined(), C, CTX_data_main(), CTX_data_pointer_get_type(), PointerRNA::data, IDOVERRIDE_LIBRARY_FLAG_SYSTEM_DEFINED, NC_WM, ND_LIB_OVERRIDE_CHANGED, OPERATOR_FINISHED, and WM_main_add_notifier().
Referenced by ED_OT_lib_id_override_editable_toggle().
Definition at line 299 of file ed_util_ops.cc.
References C, CTX_data_pointer_get_type(), PointerRNA::data, ID_IS_LINKED, and ID_IS_OVERRIDE_LIBRARY_REAL.
Referenced by ED_OT_lib_id_override_editable_toggle().
Definition at line 43 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_load_custom_preview(), lib_id_generate_preview_from_object_poll(), and lib_id_generate_preview_poll().
|
static |
Definition at line 261 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().