|
Blender V5.0
|
#include "BKE_anim_data.hh"#include "BKE_collection.hh"#include "BKE_context.hh"#include "BKE_idtype.hh"#include "BKE_layer.hh"#include "BKE_lib_id.hh"#include "BKE_lib_override.hh"#include "BKE_library.hh"#include "BKE_main.hh"#include "BKE_main_invariants.hh"#include "BKE_packedFile.hh"#include "BLI_listbase.h"#include "BLI_string_search.hh"#include "BLI_string_utf8.h"#include "BLT_translation.hh"#include "DEG_depsgraph_query.hh"#include "DNA_collection_types.h"#include "DNA_scene_types.h"#include "DNA_workspace_types.h"#include "ED_id_management.hh"#include "ED_node.hh"#include "ED_object.hh"#include "ED_undo.hh"#include "RNA_access.hh"#include "RNA_prototypes.hh"#include "WM_api.hh"#include "UI_interface_layout.hh"#include "UI_string_search.hh"#include "interface_intern.hh"#include "interface_templates_intern.hh"Go to the source code of this file.
Classes | |
| struct | TemplateID |
Macros | |
| #define | template_id_context(type) |
Functions | |
| static void | template_ID_set_property_exec_fn (bContext *C, void *arg_template, void *item) |
| static bool | id_search_allows_id (TemplateID *template_ui, const int flag, ID *id, const char *query) |
| static bool | id_search_add (const bContext *C, TemplateID *template_ui, uiSearchItems *items, ID *id) |
| static void | id_search_cb (const bContext *C, void *arg_template, const char *str, uiSearchItems *items, const bool) |
| static void | id_search_cb_tagged (const bContext *C, void *arg_template, const char *str, uiSearchItems *items) |
| static void | id_search_cb_objects_from_scene (const bContext *C, void *arg_template, const char *str, uiSearchItems *items, const bool) |
| static ARegion * | template_ID_search_menu_item_tooltip (bContext *C, ARegion *region, const rcti *item_rect, void *, void *active) |
| static uiBlock * | id_search_menu (bContext *C, ARegion *region, void *arg_litem) |
| static void | template_id_cb (bContext *C, void *arg_litem, void *arg_event) |
| void | UI_context_active_but_prop_get_templateID (const bContext *C, PointerRNA *r_ptr, PropertyRNA **r_prop) |
| static void | template_id_liboverride_hierarchy_collection_root_find_recursive (Collection *collection, const int parent_level, Collection **r_collection_parent_best, int *r_parent_level_best) |
| static void | template_id_liboverride_hierarchy_collections_tag_recursive (Collection *root_collection, ID *target_id, const bool do_parents) |
| ID * | ui_template_id_liboverride_hierarchy_make (bContext *C, Main *bmain, ID *owner_id, ID *id, const char **r_undo_push_label) |
| static void | template_id_liboverride_hierarchy_make (bContext *C, Main *bmain, TemplateID *template_ui, PointerRNA *idptr, const char **r_undo_push_label) |
| static StringRef | template_id_browse_tip (const StructRNA *type) |
| static void | template_id_workspace_pin_extra_icon (const TemplateID &template_ui, uiBut *but) |
| static uiBut * | template_id_def_new_but (uiBlock *block, const ID *id, const TemplateID &template_ui, StructRNA *type, const char *const newop, const bool editable, const bool id_open, const bool use_tab_but, int but_height) |
| static void | template_ID (const bContext *C, uiLayout *layout, TemplateID &template_ui, StructRNA *type, int flag, const char *newop, const char *openop, const char *unlinkop, const std::optional< StringRef > text, const bool live_icon, const bool hide_buttons) |
| ID * | UI_context_active_but_get_tab_ID (bContext *C) |
| static void | template_ID_tabs (const bContext *C, uiLayout *layout, TemplateID &template_id, StructRNA *type, int flag, const char *newop, const char *menu) |
| static void | ui_template_id (uiLayout *layout, const bContext *C, PointerRNA *ptr, const StringRefNull propname, const char *newop, const char *openop, const char *unlinkop, const char *menu, const std::optional< StringRef > text, int flag, int prv_rows, int prv_cols, int filter, bool use_tabs, float scale, const bool live_icon, const bool hide_buttons) |
| void | uiTemplateID (uiLayout *layout, const bContext *C, PointerRNA *ptr, const StringRefNull propname, const char *newop, const char *openop, const char *unlinkop, int filter, const bool live_icon, const std::optional< StringRef > text) |
| void | uiTemplateAction (uiLayout *layout, const bContext *C, ID *id, const char *newop, const char *unlinkop, const std::optional< StringRef > text) |
| void | uiTemplateIDBrowse (uiLayout *layout, bContext *C, PointerRNA *ptr, const StringRefNull propname, const char *newop, const char *openop, const char *unlinkop, int filter, const char *text) |
| void | uiTemplateIDPreview (uiLayout *layout, bContext *C, PointerRNA *ptr, const StringRefNull propname, const char *newop, const char *openop, const char *unlinkop, int rows, int cols, int filter, const bool hide_buttons) |
| void | uiTemplateGpencilColorPreview (uiLayout *layout, bContext *C, PointerRNA *ptr, const StringRefNull propname, int rows, int cols, float scale, int filter) |
| void | uiTemplateIDTabs (uiLayout *layout, bContext *C, PointerRNA *ptr, const StringRefNull propname, const char *newop, const char *menu, int filter) |
| void | uiTemplateAnyID (uiLayout *layout, PointerRNA *ptr, const StringRefNull propname, const StringRefNull proptypename, const std::optional< StringRef > text) |
| #define template_id_context | ( | type | ) |
Definition at line 912 of file interface_template_id.cc.
Referenced by template_id_def_new_but().
|
static |
Definition at line 104 of file interface_template_id.cc.
References BKE_id_full_name_ui_prefix_get(), C, ID_IS_LINKED, MAX_ID_FULL_NAME_UI, TemplateID::preview, UI_BUT_HAS_SEP_CHAR, UI_icon_from_library(), ui_id_icon_get(), UI_search_item_add(), and UI_SEP_CHAR.
Referenced by id_search_cb(), and id_search_cb_tagged().
|
static |
Definition at line 77 of file interface_template_id.cc.
References flag, ID::name, PointerRNA::owner_id, TemplateID::prop, PROP_ID_SELF_CHECK, PROP_POINTER, ptr, TemplateID::ptr, RNA_id_pointer_create(), RNA_property_pointer_poll(), RNA_property_type(), U, and USER_HIDE_DOT.
Referenced by id_search_cb(), and id_search_cb_tagged().
|
static |
Definition at line 136 of file interface_template_id.cc.
References blender::string_search::StringSearch< T >::add(), C, flag, id_search_add(), id_search_allows_id(), TemplateID::idlb, LISTBASE_FOREACH, TemplateID::prop, blender::string_search::StringSearch< T >::query(), RNA_property_flag(), and str.
Referenced by id_search_menu().
|
static |
A version of 'id_search_cb' that lists scene objects.
Definition at line 201 of file interface_template_id.cc.
References BKE_main_id_flag_listbase(), C, CTX_data_scene(), FOREACH_SCENE_OBJECT_BEGIN, FOREACH_SCENE_OBJECT_END, GS, ID_SCE, id_search_cb_tagged(), ID_TAG_DOIT, TemplateID::idlb, ID::name, PointerRNA::owner_id, TemplateID::ptr, and str.
Referenced by id_search_menu().
|
static |
Use id tags for filtering.
Definition at line 167 of file interface_template_id.cc.
References blender::string_search::StringSearch< T >::add(), blender::string_search::All, C, flag, id_search_add(), id_search_allows_id(), ID_TAG_DOIT, TemplateID::idlb, LISTBASE_FOREACH, TemplateID::prop, blender::string_search::StringSearch< T >::query(), RNA_property_flag(), and str.
Referenced by id_search_cb_objects_from_scene().
Definition at line 236 of file interface_template_id.cc.
References C, PointerRNA::data, TemplateID::filter, ID_OB, id_search_cb(), id_search_cb_objects_from_scene(), TemplateID::idcode, TemplateID::prop, TemplateID::prv_cols, TemplateID::prv_rows, TemplateID::ptr, RNA_property_pointer_get(), TemplateID::scale, template_common_search_menu(), template_ID_search_menu_item_tooltip(), template_ID_set_property_exec_fn(), and UI_TEMPLATE_ID_FILTER_AVAILABLE.
Referenced by template_ID().
|
static |
Definition at line 1018 of file interface_template_id.cc.
References BKE_id_copy_is_allowed(), BKE_idtype_idcode_is_localizable, BKE_packedfile_id_check(), uiLayout::block(), But, but_func_argN_copy(), but_func_argN_free(), C, uiLayout::context_ptr_set(), CTX_data_main(), PointerRNA::data, ED_id_rename(), ELEM, flag, uiBut::flag, GS, IconToggle, IconToggleN, ID_GR, ID_IS_ASSET, ID_IS_EDITABLE, ID_IS_LINKED, ID_IS_OVERRIDE_LIBRARY, ID_IS_PACKED, ID_OB, ID_REAL_USERS, ID_SCE, ID_SCR, id_search_menu(), ID_TAG_INDIRECT, ID_TE, ID_WS, TemplateID::idcode, IFACE_, blender::wm::InvokeDefault, blender::wm::InvokeRegionWin, ID::name, name, OB_MODE_EDIT, uiBut::opptr, PointerRNA::owner_id, POINTER_FROM_INT, TemplateID::preview, TemplateID::prop, PROP_NEVER_NULL, PROP_NEVER_UNLINK, TemplateID::ptr, RNA_int_set(), RNA_property_editable(), RNA_property_flag(), RNA_property_pointer_get(), RNA_string_set(), RNA_struct_find_property(), RNA_struct_ui_description(), SNPRINTF_UTF8_RLEN, ID::tag, template_add_button_search_menu(), template_id_browse_tip(), template_id_cb(), template_id_def_new_but(), template_id_workspace_pin_extra_icon(), template_search_textbut_height(), template_search_textbut_width(), Text, TIP_, PointerRNA::type, UI_block_align_begin(), UI_block_align_end(), UI_BUT_DISABLED, UI_but_flag_disable(), UI_but_flag_enable(), UI_but_func_rename_full_set(), UI_but_funcN_set(), UI_but_operator_ptr_ensure(), UI_BUT_REDALERT, UI_BUT_UNDO, UI_fontstyle_string_width(), UI_FSTYLE_WIDGET, UI_ID_ADD_NEW, UI_ID_ALONE, UI_ID_BROWSE, UI_ID_DELETE, UI_ID_LOCAL, UI_ID_NOP, UI_ID_OPEN, UI_ID_OVERRIDE, UI_ID_PREVIEWS, UI_ID_RENAME, UI_MAX_NAME_STR, UI_UNIT_X, UI_UNIT_Y, uiDefBut(), uiDefButR(), uiDefIconBut(), uiDefIconButO(), uiDefIconButR(), uiDefIconTextBut(), uiDefIconTextButO(), uiItemL_respect_property_split(), uiTemplateTextureShow(), and w().
Referenced by ui_template_id(), and uiTemplateAction().
Definition at line 794 of file interface_template_id.cc.
References ID_AC, ID_AR, ID_BR, ID_CA, ID_CF, ID_CU_LEGACY, ID_CV, ID_GD_LEGACY, ID_GP, ID_GR, ID_IM, ID_KE, ID_LA, ID_LI, ID_LP, ID_LS, ID_LT, ID_MA, ID_MB, ID_MC, ID_ME, ID_MSK, ID_NT, ID_OB, ID_PA, ID_PAL, ID_PC, ID_PT, ID_SCE, ID_SCR, ID_SO, ID_SPK, ID_TE, ID_TXT, ID_VF, ID_VO, ID_WM, ID_WO, ID_WS, N_, and RNA_type_to_ID_code().
Referenced by template_ID().
|
static |
Definition at line 665 of file interface_template_id.cc.
References BKE_id_newptr_and_tag_clear(), BKE_lib_id_make_local(), BKE_lib_override_library_make_local(), BKE_main_ensure_invariants(), BLT_I18NCONTEXT_OPERATOR_DEFAULT, C, CTX_data_main(), CTX_data_scene(), CTX_N_, CTX_wm_window(), PointerRNA::data, DEG_relations_tag_update(), ED_undo_push(), ID::flag, GS, id_fake_user_clear(), ID_FLAG_FAKEUSER, ID_IS_OVERRIDE_LIBRARY, ID_OB, id_single_user(), id_us_clear_real(), id_us_min(), id_us_plus(), KM_SHIFT, LIB_ID_MAKELOCAL_ASSET_DATA_CLEAR, ID::name, NC_SPACE, NC_WINDOW, ND_SPACE_OUTLINER, blender::ed::object::object_single_user_make(), POINTER_AS_INT, TemplateID::prop, TemplateID::ptr, RNA_property_pointer_get(), RNA_property_pointer_set(), RNA_property_update(), RNA_warning, template_id_liboverride_hierarchy_make(), PointerRNA::type, UI_ID_ADD_NEW, UI_ID_ALONE, UI_ID_AUTO_NAME, UI_ID_BROWSE, UI_ID_DELETE, UI_ID_FAKE_USER, UI_ID_LOCAL, UI_ID_NOP, UI_ID_OPEN, UI_ID_OVERRIDE, UI_ID_PIN, UI_ID_RENAME, and WM_event_add_notifier().
Referenced by template_ID(), template_id_def_new_but(), and UI_context_active_but_prop_get_templateID().
|
static |
Definition at line 915 of file interface_template_id.cc.
References BLT_I18N_MSGID_MULTI_CTXT, BLT_I18NCONTEXT_DEFAULT, BLT_I18NCONTEXT_ID_ACTION, BLT_I18NCONTEXT_ID_ARMATURE, BLT_I18NCONTEXT_ID_BRUSH, BLT_I18NCONTEXT_ID_CAMERA, BLT_I18NCONTEXT_ID_CURVE_LEGACY, BLT_I18NCONTEXT_ID_CURVES, BLT_I18NCONTEXT_ID_FREESTYLELINESTYLE, BLT_I18NCONTEXT_ID_GPENCIL, BLT_I18NCONTEXT_ID_IMAGE, BLT_I18NCONTEXT_ID_LATTICE, BLT_I18NCONTEXT_ID_LIGHT, BLT_I18NCONTEXT_ID_LIGHTPROBE, BLT_I18NCONTEXT_ID_MASK, BLT_I18NCONTEXT_ID_MATERIAL, BLT_I18NCONTEXT_ID_MESH, BLT_I18NCONTEXT_ID_METABALL, BLT_I18NCONTEXT_ID_NODETREE, BLT_I18NCONTEXT_ID_OBJECT, BLT_I18NCONTEXT_ID_PAINTCURVE, BLT_I18NCONTEXT_ID_PALETTE, BLT_I18NCONTEXT_ID_PARTICLESETTINGS, BLT_I18NCONTEXT_ID_POINTCLOUD, BLT_I18NCONTEXT_ID_SCENE, BLT_I18NCONTEXT_ID_SCREEN, BLT_I18NCONTEXT_ID_SOUND, BLT_I18NCONTEXT_ID_SPEAKER, BLT_I18NCONTEXT_ID_TEXT, BLT_I18NCONTEXT_ID_TEXTURE, BLT_I18NCONTEXT_ID_VOLUME, BLT_I18NCONTEXT_ID_WORKSPACE, BLT_I18NCONTEXT_ID_WORLD, But, but_func_argN_copy(), but_func_argN_free(), CTX_IFACE_, ID_IS_EDITABLE, blender::wm::InvokeDefault, PointerRNA::owner_id, POINTER_FROM_INT, TemplateID::ptr, Tab, template_id_cb(), template_id_context, UI_BUT_DISABLED, UI_but_flag_enable(), UI_but_funcN_set(), UI_fontstyle_string_width(), UI_FSTYLE_WIDGET, UI_ID_ADD_NEW, UI_UNIT_X, uiDefIconTextBut(), uiDefIconTextButO(), UNUSED_VARS, and w().
Referenced by template_ID(), and template_ID_tabs().
|
static |
Definition at line 286 of file interface_template_id.cc.
References Collection::id, ID_IS_LINKED, ID_IS_OVERRIDABLE_LIBRARY, ID_IS_OVERRIDE_LIBRARY_REAL, ID::lib, CollectionParent::next, Collection::runtime, and template_id_liboverride_hierarchy_collection_root_find_recursive().
Referenced by template_id_liboverride_hierarchy_collection_root_find_recursive(), and ui_template_id_liboverride_hierarchy_make().
|
static |
Definition at line 314 of file interface_template_id.cc.
References BKE_collection_has_collection(), BKE_collection_has_object_recursive(), Collection::children, ListBase::first, GS, Collection::id, ID_GR, ID_IS_LINKED, ID_OB, ID_TAG_DOIT, ID::lib, ID::name, Node::name, CollectionChild::next, CollectionParent::next, Collection::runtime, ID::tag, and template_id_liboverride_hierarchy_collections_tag_recursive().
Referenced by template_id_liboverride_hierarchy_collections_tag_recursive(), and ui_template_id_liboverride_hierarchy_make().
|
static |
Definition at line 636 of file interface_template_id.cc.
References C, PointerRNA::data, ID_IS_LINKED, ID::name, PointerRNA::owner_id, TemplateID::ptr, RNA_id_pointer_create(), RPT_ERROR, ui_template_id_liboverride_hierarchy_make(), and WM_global_reportf().
Referenced by template_id_cb().
|
static |
Definition at line 228 of file interface_template_id.cc.
References active, C, and UI_tooltip_create_from_search_item_generic().
Referenced by id_search_menu().
|
static |
Definition at line 65 of file interface_template_id.cc.
References C, TemplateID::prop, TemplateID::ptr, RNA_id_pointer_create(), RNA_property_pointer_set(), and RNA_property_update().
Referenced by id_search_menu(), and template_ID_tabs().
|
static |
Definition at line 1434 of file interface_template_id.cc.
References ARegion::alignment, BKE_id_ordered_list(), uiLayout::block(), but_func_argN_copy(), but_func_argN_free(), C, CTX_wm_region(), uiBut::custom_data, PointerRNA::data, ELEM, flag, TemplateID::idlb, uiButTab::menu, TemplateID::prop, TemplateID::ptr, ARegion::regiontype, RGN_ALIGN_BOTTOM, RGN_ALIGN_ENUM_FROM_MASK, RGN_ALIGN_TOP, RGN_TYPE_HEADER, RNA_property_editable(), RNA_property_pointer_get(), Tab, template_id_def_new_but(), template_ID_set_property_exec_fn(), PointerRNA::type, ui_but_align_opposite_to_area_align_get(), UI_but_drag_set_id(), UI_but_drawflag_enable(), UI_but_funcN_set(), UI_fontstyle_string_width(), UI_ID_ADD_NEW, UI_ID_OPEN, UI_style_get_dpi(), UI_UNIT_X, UI_UNIT_Y, uiDefButR_prop(), uiStyle::widget, and WM_menutype_find().
Referenced by ui_template_id().
|
static |
Add a superimposed extra icon to but, for workspace pinning. Rather ugly special handling, but this is really a special case at this point, nothing worth generalizing.
Definition at line 884 of file interface_template_id.cc.
References PointerRNA::data, WorkSpace::flags, ID_SCE, TemplateID::idcode, blender::wm::InvokeDefault, TemplateID::ptr, PointerRNA::type, UI_but_extra_operator_icon_add(), WM_window_get_active_workspace(), and WORKSPACE_USE_PIN_SCENE.
Referenced by template_ID().
Definition at line 1424 of file interface_template_id.cc.
References C, uiBut::custom_data, Tab, uiBut::type, and UI_context_active_but_get().
Referenced by workspace_context_get().
| void UI_context_active_but_prop_get_templateID | ( | const bContext * | C, |
| PointerRNA * | r_ptr, | ||
| PropertyRNA ** | r_prop ) |
For new/open operators.
This is for browsing and editing the ID-blocks used.
Definition at line 270 of file interface_template_id.cc.
References C, uiBut::func_argN, uiBut::funcN, TemplateID::prop, TemplateID::ptr, template_id_cb(), and UI_context_active_but_get().
Referenced by action_new_exec(), action_new_poll(), cachefile_init(), ED_actedit_animdata_from_context(), font_ui_template_init(), font_unlink_exec(), image_new_init(), image_new_invoke(), image_open_init(), image_open_invoke(), lib_id_fake_user_toggle_exec(), lib_id_unlink_exec(), new_material_exec(), new_texture_exec(), new_world_exec(), blender::ed::space_node::node_templateID_assign(), blender::ed::object::object_unlink_data_exec(), open_init(), override_idtemplate_ids_get(), sound_open_init(), text_new_exec(), and text_open_init().
|
static |
Definition at line 1509 of file interface_template_id.cc.
References C, blender::StringRefNull::c_str(), CTX_data_main(), filter, TemplateID::filter, flag, TemplateID::idcode, TemplateID::idlb, TemplateID::prop, PROP_POINTER, TemplateID::prv_cols, TemplateID::prv_rows, ptr, TemplateID::ptr, RNA_property_pointer_type(), RNA_property_type(), RNA_struct_find_property(), RNA_struct_identifier(), RNA_type_to_ID_code(), RNA_warning, uiLayout::row(), TemplateID::scale, template_ID(), template_ID_tabs(), UI_ID_ADD_NEW, UI_ID_OPEN, UI_ID_PIN, and which_libbase().
Referenced by uiTemplateGpencilColorPreview(), uiTemplateID(), uiTemplateIDBrowse(), uiTemplateIDPreview(), and uiTemplateIDTabs().
| ID * ui_template_id_liboverride_hierarchy_make | ( | bContext * | C, |
| Main * | bmain, | ||
| ID * | owner_id, | ||
| ID * | id, | ||
| const char ** | r_undo_push_label ) |
Definition at line 356 of file interface_template_id.cc.
References BKE_collection_child_add(), BKE_collection_has_collection(), BKE_collection_has_object_recursive(), BKE_collection_object_add(), BKE_lib_override_library_create(), BKE_lib_override_library_get(), BKE_lib_override_library_id_reset(), BKE_scene_collections_object_remove(), BKE_scene_has_object(), C, Main::collections, CTX_data_active_object(), CTX_data_collection(), CTX_data_scene(), CTX_data_view_layer(), IDOverrideLibrary::flag, GS, IDOverrideLibrary::hierarchy_root, Collection::id, Object::id, ID_AR, ID_CA, ID_CU_LEGACY, ID_CV, ID_GD_LEGACY, ID_GR, ID_IM, ID_IS_LINKED, ID_IS_OVERRIDABLE_LIBRARY_HIERARCHY, ID_IS_OVERRIDE_LIBRARY, ID_IS_OVERRIDE_LIBRARY_REAL, ID_LA, ID_LT, ID_MA, ID_MB, ID_ME, ID_NT, ID_OB, ID_PA, ID_PT, ID_SPK, ID_TAG_DOIT, ID_TE, ID_VO, ID_WO, Object::instance_collection, ID::lib, LIBOVERRIDE_FLAG_SYSTEM_DEFINED, LISTBASE_FOREACH, Scene::master_collection, NA_ADDED, NA_REMOVED, ID::name, NC_ID, NC_SPACE, NC_WM, ND_DATACHANGED, ND_LIB_OVERRIDE_CHANGED, ND_SPACE_OUTLINER, ND_SPACE_VIEW3D, ID::override_library, RPT_ERROR, RPT_WARNING, ID::tag, template_id_liboverride_hierarchy_collection_root_find_recursive(), template_id_liboverride_hierarchy_collections_tag_recursive(), WM_event_add_notifier(), and WM_global_reportf().
Referenced by override_idtemplate_make_exec(), and template_id_liboverride_hierarchy_make().
| void uiTemplateAction | ( | uiLayout * | layout, |
| const bContext * | C, | ||
| ID * | id, | ||
| const char * | newop, | ||
| const char * | unlinkop, | ||
| std::optional< blender::StringRef > | text ) |
Action selector.
This is a specialization of uiTemplateID, hard-coded to assign Actions to the given ID. Such a specialization is necessary, as the RNA property (id.animation_data.action) does not exist when the ID's adt pointer is nullptr. In that case uiTemplateID will not be able to find the RNA type of that property, which in turn it needs to determine the type of IDs to show.
Definition at line 1617 of file interface_template_id.cc.
References BKE_animdata_from_id(), BLI_assert, C, CTX_data_main(), TemplateID::filter, flag, ID_AC, id_can_have_animdata(), TemplateID::idcode, TemplateID::idlb, ID::name, TemplateID::prop, PROP_POINTER, TemplateID::prv_cols, TemplateID::prv_rows, TemplateID::ptr, RNA_id_pointer_create(), RNA_property_type(), RNA_struct_type_find_property(), RNA_warning, uiLayout::row(), TemplateID::scale, template_ID(), UI_ID_ADD_NEW, UI_ID_BROWSE, UI_ID_DELETE, UI_ID_RENAME, UI_TEMPLATE_ID_FILTER_ALL, and which_libbase().
| void uiTemplateAnyID | ( | uiLayout * | layout, |
| PointerRNA * | ptr, | ||
| blender::StringRefNull | propname, | ||
| blender::StringRefNull | proptypename, | ||
| std::optional< blender::StringRef > | text ) |
This is for selecting the type of ID-block to use, and then from the relevant type choosing the block to use.
| propname | property identifier for property that ID-pointer gets stored to. |
| proptypename | property identifier for property used to determine the type of ID-pointer that can be used. |
Definition at line 1780 of file interface_template_id.cc.
References uiLayout::alignment_set(), blender::StringRefNull::c_str(), blender::ui::Expand, IFACE_, uiLayout::label(), blender::ui::Left, uiLayout::prop(), PROP_ENUM, PROP_POINTER, ptr, RNA_property_type(), RNA_struct_find_property(), RNA_struct_identifier(), RNA_warning, uiLayout::row(), split(), uiLayout::split(), UI_ITEM_NONE, and UI_ITEM_R_ICON_ONLY.
Referenced by graph_panel_driverVar__singleProp().
| void uiTemplateGpencilColorPreview | ( | uiLayout * | layout, |
| bContext * | C, | ||
| PointerRNA * | ptr, | ||
| const StringRefNull | propname, | ||
| int | rows, | ||
| int | cols, | ||
| float | scale, | ||
| int | filter ) |
Definition at line 1725 of file interface_template_id.cc.
References C, filter, ptr, UI_ID_BROWSE, UI_ID_DELETE, UI_ID_PREVIEWS, and ui_template_id().
| void uiTemplateID | ( | uiLayout * | layout, |
| const bContext * | C, | ||
| PointerRNA * | ptr, | ||
| const StringRefNull | propname, | ||
| const char * | newop, | ||
| const char * | openop, | ||
| const char * | unlinkop, | ||
| int | filter, | ||
| const bool | live_icon, | ||
| const std::optional< StringRef > | text ) |
Definition at line 1587 of file interface_template_id.cc.
References C, filter, ptr, UI_ID_BROWSE, UI_ID_DELETE, UI_ID_RENAME, and ui_template_id().
Referenced by blender::nodes::node_composite_mask_cc::cmp_node_mask_declare(), blender::nodes::node_composite_planetrackdeform_cc::cmp_node_planetrackdeform_declare(), blender::nodes::node_composite_stabilize2d_cc::cmp_node_stabilize2d_declare(), blender::seq::compositor_modifier_panel_draw(), blender::nodes::draw_geometry_nodes_modifier_ui(), blender::nodes::draw_property_for_socket(), nla_panel_animdata(), blender::ed::space_node::node_buts_texture(), blender::ed::space_node::node_composit_buts_cryptomatte(), blender::nodes::node_composite_defocus_cc::node_composit_buts_defocus(), blender::ed::space_node::node_composit_buts_image(), blender::nodes::node_composite_keyingscreen_cc::node_composit_buts_keyingscreen(), blender::nodes::node_composite_movieclip_cc::node_composit_buts_movieclip(), blender::nodes::node_composite_movieclip_cc::node_composit_buts_movieclip_ex(), blender::nodes::node_composite_moviedistortion_cc::node_composit_buts_moviedistortion(), blender::nodes::node_composite_trackpos_cc::node_composit_buts_trackpos(), blender::nodes::node_composite_render_layer_cc::node_composit_buts_viewlayers(), blender::nodes::node_geo_image_cc::node_declare(), blender::nodes::node_geo_string_to_curves_cc::node_layout(), blender::ed::space_node::node_shader_buts_tex_environment(), blender::ed::space_node::node_shader_buts_tex_image(), blender::ed::space_node::node_texture_buts_image(), panel_draw(), panel_draw(), blender::ed::space_node::std_node_socket_draw(), texture_panel_draw(), texture_panel_draw(), uiTemplateCacheFile(), uiTemplateImage(), uiTemplateMovieClip(), and weightvg_ui_common().
| void uiTemplateIDBrowse | ( | uiLayout * | layout, |
| bContext * | C, | ||
| PointerRNA * | ptr, | ||
| const StringRefNull | propname, | ||
| const char * | newop, | ||
| const char * | openop, | ||
| const char * | unlinkop, | ||
| int | filter, | ||
| const char * | text ) |
Definition at line 1665 of file interface_template_id.cc.
References C, filter, ptr, UI_ID_BROWSE, UI_ID_RENAME, and ui_template_id().
Referenced by blender::ed::space_node::node_draw_buttons_group().
| void uiTemplateIDPreview | ( | uiLayout * | layout, |
| bContext * | C, | ||
| PointerRNA * | ptr, | ||
| const StringRefNull | propname, | ||
| const char * | newop, | ||
| const char * | openop, | ||
| const char * | unlinkop, | ||
| int | rows, | ||
| int | cols, | ||
| int | filter, | ||
| const bool | hide_buttons ) |
Definition at line 1694 of file interface_template_id.cc.
References C, filter, ptr, UI_ID_BROWSE, UI_ID_DELETE, UI_ID_PREVIEWS, UI_ID_RENAME, and ui_template_id().
| void uiTemplateIDTabs | ( | uiLayout * | layout, |
| bContext * | C, | ||
| PointerRNA * | ptr, | ||
| blender::StringRefNull | propname, | ||
| const char * | newop, | ||
| const char * | menu, | ||
| int | filter = UI_TEMPLATE_ID_FILTER_ALL ) |
Version of uiTemplateID using tabs.
Definition at line 1753 of file interface_template_id.cc.
References C, filter, ptr, UI_ID_BROWSE, UI_ID_RENAME, and ui_template_id().