|
Blender V5.0
|
#include <cstring>#include "MEM_guardedalloc.h"#include "DNA_scene_types.h"#include "DNA_sequence_types.h"#include "DNA_space_types.h"#include "DNA_view2d_types.h"#include "BLI_bitmap.h"#include "BLI_listbase.h"#include "BLI_span.hh"#include "BLI_string.h"#include "BLI_string_ref.hh"#include "BLI_string_utf8.h"#include "BLI_utildefines.h"#include "BKE_context.hh"#include "BKE_lib_query.hh"#include "BKE_lib_remap.hh"#include "BKE_modifier.hh"#include "BKE_screen.hh"#include "BKE_shader_fx.h"#include "BLT_translation.hh"#include "ED_buttons.hh"#include "ED_screen.hh"#include "ED_space_api.hh"#include "ED_view3d.hh"#include "WM_api.hh"#include "WM_message.hh"#include "WM_types.hh"#include "RNA_access.hh"#include "RNA_prototypes.hh"#include "SEQ_modifier.hh"#include "UI_interface.hh"#include "UI_interface_c.hh"#include "UI_interface_layout.hh"#include "UI_view2d.hh"#include "BLO_read_write.hh"#include "buttons_intern.hh"Go to the source code of this file.
|
static |
Definition at line 544 of file space_buttons.cc.
References BCONTEXT_TOOL, BLI_assert_unreachable, find_new_properties_tab(), SpaceProperties::mainb, SpaceProperties::mainbuser, and SpaceProperties::visible_tabs.
Referenced by buttons_main_region_layout().
|
static |
Definition at line 740 of file space_buttons.cc.
References wmNotifier::action, BCONTEXT_BONE, BCONTEXT_BONE_CONSTRAINT, BCONTEXT_CONSTRAINT, BCONTEXT_DATA, BCONTEXT_MODIFIER, BCONTEXT_OBJECT, BCONTEXT_OUTPUT, BCONTEXT_PARTICLE, BCONTEXT_PHYSICS, BCONTEXT_RENDER, BCONTEXT_SCENE, BCONTEXT_SHADERFX, BCONTEXT_TEXTURE, BCONTEXT_TOOL, BCONTEXT_VIEW_LAYER, BCONTEXT_WORLD, buttons_area_redraw(), wmNotifier::category, wmNotifier::data, ED_area_tag_redraw(), ELEM, ListBase::first, SpaceProperties::mainb, NA_ADDED, NA_EDITED, NA_PAINTING, NA_REMOVED, NA_RENAME, NA_SELECTED, NC_ANIMATION, NC_BRUSH, NC_GEOM, NC_GPENCIL, NC_GROUP, NC_ID, NC_IMAGE, NC_LAMP, NC_LINESTYLE, NC_MATERIAL, NC_NODE, NC_OBJECT, NC_SCENE, NC_SCREEN, NC_SPACE, NC_TEXTURE, NC_WM, NC_WORKSPACE, NC_WORLD, ND_ANIMCHAN, ND_BONE_ACTIVE, ND_BONE_COLLECTION, ND_BONE_SELECT, ND_CONSTRAINT, ND_DATA, ND_DRAW, ND_DRAW_ANIMVIZ, ND_FRAME, ND_KEYFRAME, ND_KEYFRAME_PROP, ND_KEYINGSET, ND_KEYS, ND_LAYER, ND_LAYOUTSET, ND_MODE, ND_MODIFIER, ND_NLA_ACTCHANGE, ND_NODES, ND_OB_ACTIVE, ND_PARTICLE, ND_POSE, ND_RENDER_OPTIONS, ND_RENDER_RESULT, ND_SELECT, ND_SEQUENCER, ND_SHADERFX, ND_SHADING, ND_SHADING_DRAW, ND_SHADING_LINKS, ND_SHADING_PREVIEW, ND_SPACE_CHANGED, ND_SPACE_PROPERTIES, ND_TRANSFORM, ND_UNDO, ND_VERTEX_GROUP, ND_WORLD, params, SpaceProperties::preview, and ScrArea::spacedata.
Referenced by ED_spacetype_buttons().
|
static |
Definition at line 723 of file space_buttons.cc.
References ED_area_tag_redraw(), ListBase::first, SpaceProperties::mainb, and ScrArea::spacedata.
Referenced by buttons_area_listener().
Definition at line 62 of file space_buttons.cc.
References ARegion::alignment, BCONTEXT_OBJECT, BKE_area_region_new(), BLI_addtail(), SpaceProperties::mainb, SpaceProperties::mainbuser, MEM_callocN(), SpaceProperties::regionbase, ARegion::regiontype, RGN_ALIGN_BOTTOM, RGN_ALIGN_LEFT, RGN_ALIGN_TOP, RGN_TYPE_CHANNELS, RGN_TYPE_HEADER, RGN_TYPE_NAV_BAR, RGN_TYPE_WINDOW, SPACE_PROPERTIES, SpaceProperties::spacetype, U, USER_HEADER_BOTTOM, and SpaceProperties::visible_tabs.
Referenced by ED_spacetype_buttons().
Definition at line 139 of file space_buttons.cc.
References BCONTEXT_TOT, BLI_BITMAP_NEW, MEM_dupallocN(), SpaceProperties::path, SpaceProperties::runtime, SpaceProperties_Runtime::search_string, SpaceProperties_Runtime::tab_search_results, and SpaceProperties::texuser.
Referenced by ED_spacetype_buttons().
|
static |
Definition at line 1022 of file space_buttons.cc.
References BKE_LIB_FOREACHID_PROCESS_ID, BKE_LIB_FOREACHID_PROCESS_IDSUPER, BKE_lib_query_foreachid_process_flags_get(), BLI_listbase_clear(), data, SpaceProperties::flag, IDWALK_CB_DIRECT_WEAK_LINK, IDWALK_READONLY, LISTBASE_FOREACH_MUTABLE, SpaceProperties::path, SpaceProperties::pinid, SB_PIN_CONTEXT, ButsContextTexture::texture, SpaceProperties::texuser, ButsContextTexture::user, and ButsContextTexture::users.
Referenced by ED_spacetype_buttons().
|
static |
Definition at line 104 of file space_buttons.cc.
References BLI_listbase_clear(), LISTBASE_FOREACH_MUTABLE, MEM_freeN(), MEM_SAFE_FREE, SpaceProperties::path, SpaceProperties::runtime, SpaceProperties_Runtime::tab_search_results, SpaceProperties::texuser, and ButsContextTexture::users.
Referenced by ED_spacetype_buttons(), and property_search_all_tabs().
Definition at line 639 of file space_buttons.cc.
References buttons_context_compute(), C, CTX_wm_space_properties(), and ED_region_header().
Referenced by ED_spacetype_buttons().
|
static |
Definition at line 634 of file space_buttons.cc.
References ED_region_header_init().
Referenced by ED_spacetype_buttons().
|
static |
Definition at line 649 of file space_buttons.cc.
References BCONTEXT_OUTPUT, BCONTEXT_RENDER, BCONTEXT_SCENE, BCONTEXT_TOOL, BCONTEXT_WORLD, ED_region_do_msg_notify_tag_redraw(), ELEM, ListBase::first, SpaceProperties::mainb, name, wmMsgSubscribeValue::notify, wmMsgSubscribeValue::owner, params, ScrArea::spacedata, wmMsgSubscribeValue::user_data, Window, and WM_msg_subscribe_rna_anon_prop.
Referenced by ED_spacetype_buttons().
|
static |
Definition at line 961 of file space_buttons.cc.
References blender::bke::id::IDRemapper::apply(), BLI_listbase_clear(), SpaceProperties::flag, i, ID_REMAP_APPLY_DEFAULT, ID_REMAP_RESULT_SOURCE_NOT_MAPPABLE, ID_REMAP_RESULT_SOURCE_REMAPPED, ID_REMAP_RESULT_SOURCE_UNASSIGNED, ID_REMAP_RESULT_SOURCE_UNAVAILABLE, ButsContextPath::len, LISTBASE_FOREACH_MUTABLE, PointerRNA::owner_id, SpaceProperties::path, SpaceProperties::pinid, ButsContextPath::ptr, RNA_id_pointer_create(), SB_PIN_CONTEXT, ButsContextTexture::texture, SpaceProperties::texuser, ButsContextTexture::user, and ButsContextTexture::users.
Referenced by ED_spacetype_buttons().
|
static |
Definition at line 128 of file space_buttons.cc.
References BCONTEXT_TOT, BLI_BITMAP_NEW, ListBase::first, MEM_mallocN(), SpaceProperties::runtime, SpaceProperties_Runtime::search_string, ScrArea::spacedata, and SpaceProperties_Runtime::tab_search_results.
Referenced by ED_spacetype_buttons().
|
static |
Definition at line 622 of file space_buttons.cc.
References RGN_TYPE_WINDOW, SPACE_PROPERTIES, and WM_keymap_ensure().
Referenced by ED_spacetype_buttons().
|
static |
Definition at line 264 of file space_buttons.cc.
References BCONTEXT_BONE, BCONTEXT_BONE_CONSTRAINT, BCONTEXT_COLLECTION, BCONTEXT_CONSTRAINT, BCONTEXT_DATA, BCONTEXT_MATERIAL, BCONTEXT_MODIFIER, BCONTEXT_OBJECT, BCONTEXT_OUTPUT, BCONTEXT_PARTICLE, BCONTEXT_PHYSICS, BCONTEXT_RENDER, BCONTEXT_SCENE, BCONTEXT_SHADERFX, BCONTEXT_STRIP, BCONTEXT_STRIP_MODIFIER, BCONTEXT_TEXTURE, BCONTEXT_TOOL, BCONTEXT_VIEW_LAYER, BCONTEXT_WORLD, and BLI_assert.
Referenced by buttons_main_region_layout_properties(), and property_search_for_context().
|
static |
Definition at line 157 of file space_buttons.cc.
References ED_region_panels_init(), ARegion::flag, RGN_FLAG_INDICATE_OVERFLOW, RGN_TYPE_WINDOW, ARegion::runtime, wmWindowManager::runtime, SPACE_PROPERTIES, WM_event_add_keymap_handler(), and WM_keymap_ensure().
Referenced by ED_spacetype_buttons().
Definition at line 567 of file space_buttons.cc.
References BCONTEXT_TOOL, buttons_apply_filter(), buttons_context_compute(), buttons_main_region_layout_properties(), buttons_main_region_property_search(), C, CTX_wm_space_properties(), ED_buttons_tabs_list(), ED_view3d_buttons_region_layout_ex(), ARegion::flag, SpaceProperties::mainb, SpaceProperties::mainbo, RGN_FLAG_SEARCH_FILTER_ACTIVE, View2D::scroll, UI_view2d_fromcontext(), and V2D_SCROLL_VERTICAL.
Referenced by ED_spacetype_buttons().
|
static |
Definition at line 314 of file space_buttons.cc.
References buttons_context_compute(), buttons_main_region_context_string(), C, ED_region_panels_layout_ex(), blender::wm::InvokeRegionWin, SpaceProperties::mainb, and ARegion::runtime.
Referenced by buttons_main_region_layout().
|
static |
Definition at line 597 of file space_buttons.cc.
References wmNotifier::category, wmNotifier::data, ED_region_tag_redraw(), ELEM, NC_SCREEN, ND_LAYER, and params.
Referenced by ED_spacetype_buttons().
|
static |
Handle property search for the layout pass, including finding which tabs have search results and switching if the current tab doesn't have a result.
Definition at line 471 of file space_buttons.cc.
References BLI_assert, BLI_BITMAP_SET, C, ED_buttons_tabs_list(), ARegion::flag, i, blender::Vector< T, InlineBufferCapacity, Allocator >::index_range(), LISTBASE_FOREACH, SpaceProperties::mainb, ARegion::panels, property_search_all_tabs(), property_search_move_to_next_tab_with_results(), RGN_FLAG_SEARCH_FILTER_UPDATE, SpaceProperties::runtime, SpaceProperties_Runtime::tab_search_results, UI_panel_is_active(), and UI_panel_matches_search_filter().
Referenced by buttons_main_region_layout().
Definition at line 688 of file space_buttons.cc.
References buttons_context_compute(), C, CTX_wm_space_properties(), ED_region_panels_draw(), ED_region_panels_layout(), LISTBASE_FOREACH, PANEL_TYPE_LAYOUT_VERT_BAR, ARegion::runtime, View2D::scroll, ARegion::v2d, and V2D_SCROLL_VERTICAL.
Referenced by ED_spacetype_buttons().
|
static |
Definition at line 680 of file space_buttons.cc.
References ED_region_panels_init(), ARegion::flag, View2D::keepzoom, RGN_FLAG_INDICATE_OVERFLOW, RGN_FLAG_NO_USER_RESIZE, ARegion::v2d, V2D_LOCKZOOM_X, and V2D_LOCKZOOM_Y.
Referenced by ED_spacetype_buttons().
|
static |
Definition at line 703 of file space_buttons.cc.
References ED_region_do_msg_notify_tag_redraw(), wmMsgSubscribeValue::notify, wmMsgSubscribeValue::owner, params, wmMsgSubscribeValue::user_data, Window, and WM_msg_subscribe_rna_anon_prop.
Referenced by ED_spacetype_buttons().
|
static |
Definition at line 612 of file space_buttons.cc.
References BUTTONS_OT_clear_filter(), BUTTONS_OT_context_menu(), BUTTONS_OT_directory_browse(), BUTTONS_OT_file_browse(), BUTTONS_OT_start_filter(), BUTTONS_OT_toggle_pin(), and WM_operatortype_append().
Referenced by ED_spacetype_buttons().
|
static |
Definition at line 1066 of file space_buttons.cc.
References SpaceProperties::flag, SpaceProperties::pinid, and SB_PIN_CONTEXT.
Referenced by ED_spacetype_buttons().
|
static |
Definition at line 1055 of file space_buttons.cc.
References SpaceProperties::mainb, SpaceProperties::mainbo, SpaceProperties::mainbuser, SpaceProperties::path, SpaceProperties::runtime, and SpaceProperties::texuser.
Referenced by ED_spacetype_buttons().
|
static |
Definition at line 1077 of file space_buttons.cc.
References BLO_write_struct.
Referenced by ED_spacetype_buttons().
Definition at line 200 of file space_buttons.cc.
References C, ED_screens_region_flip_menu_create(), IFACE_, blender::wm::InvokeDefault, uiLayout::op(), and uiLayout::operator_context_set().
Referenced by ui_popup_context_menu_for_button().
| const char * ED_buttons_search_string_get | ( | SpaceProperties * | sbuts | ) |
Definition at line 336 of file space_buttons.cc.
References SpaceProperties::runtime, and SpaceProperties_Runtime::search_string.
Referenced by ED_area_region_search_filter_get().
| int ED_buttons_search_string_length | ( | SpaceProperties * | sbuts | ) |
Definition at line 341 of file space_buttons.cc.
References SpaceProperties::runtime, SpaceProperties_Runtime::search_string, and STRNLEN.
| void ED_buttons_search_string_set | ( | SpaceProperties * | sbuts, |
| const char * | value ) |
Definition at line 346 of file space_buttons.cc.
References SpaceProperties::runtime, SpaceProperties_Runtime::search_string, and STRNCPY_UTF8.
| bool ED_buttons_tab_has_search_result | ( | SpaceProperties * | sbuts, |
| const int | index ) |
Definition at line 353 of file space_buttons.cc.
References BLI_BITMAP_TEST, SpaceProperties::runtime, and SpaceProperties_Runtime::tab_search_results.
| blender::Vector< eSpaceButtons_Context > ED_buttons_tabs_list | ( | const SpaceProperties * | sbuts, |
| bool | apply_filter = true ) |
Fills an array with the tab context values for the properties editor. -1 signals a separator.
Definition at line 207 of file space_buttons.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::append(), BCONTEXT_BONE, BCONTEXT_BONE_CONSTRAINT, BCONTEXT_COLLECTION, BCONTEXT_CONSTRAINT, BCONTEXT_DATA, BCONTEXT_MATERIAL, BCONTEXT_MODIFIER, BCONTEXT_OBJECT, BCONTEXT_OUTPUT, BCONTEXT_PARTICLE, BCONTEXT_PHYSICS, BCONTEXT_RENDER, BCONTEXT_SCENE, BCONTEXT_SEPARATOR, BCONTEXT_SHADERFX, BCONTEXT_STRIP, BCONTEXT_STRIP_MODIFIER, BCONTEXT_TEXTURE, BCONTEXT_TOOL, BCONTEXT_VIEW_LAYER, BCONTEXT_WORLD, filter, blender::Vector< T, InlineBufferCapacity, Allocator >::is_empty(), blender::Vector< T, InlineBufferCapacity, Allocator >::last(), SpaceProperties::pathflag, and SpaceProperties::visible_tabs.
Referenced by buttons_main_region_layout(), buttons_main_region_property_search(), and find_new_properties_tab().
Definition at line 176 of file space_buttons.cc.
References C, CTX_wm_screen(), CTX_wm_space_properties(), uiLayout::prop(), ptr, RNA_pointer_create_discrete(), and UI_ITEM_R_TOGGLE.
Referenced by screen_context_menu_invoke(), and ui_popup_context_menu_for_button().
| void ED_spacetype_buttons | ( | ) |
Definition at line 1088 of file space_buttons.cc.
References AREAMINX, BKE_modifier_get_info(), BKE_shaderfx_get_info(), BKE_spacetype_register(), BLI_addhead(), buttons_area_listener(), buttons_context(), buttons_context_register(), buttons_create(), buttons_duplicate(), buttons_foreach_id(), buttons_free(), buttons_header_region_draw(), buttons_header_region_init(), buttons_header_region_message_subscribe(), buttons_id_remap(), buttons_init(), buttons_keymap(), buttons_main_region_init(), buttons_main_region_layout(), buttons_main_region_listener(), buttons_navigation_bar_region_draw(), buttons_navigation_bar_region_init(), buttons_navigation_bar_region_message_subscribe(), buttons_operatortypes(), buttons_space_blend_read_after_liblink(), buttons_space_blend_read_data(), buttons_space_blend_write(), ARegionType::draw, ED_KEYMAP_FRAMES, ED_KEYMAP_HEADER, ED_KEYMAP_NAVBAR, ED_KEYMAP_UI, ED_KEYMAP_VIEW2D, ED_region_panels_draw(), eShaderFxType_Light_deprecated, HEADERY, i, ARegionType::init, ARegionType::keymapflag, ARegionType::layout, ARegionType::listener, ARegionType::lock, MEM_callocN(), ARegionType::message_subscribe, blender::seq::modifier_type_info_get(), NUM_MODIFIER_TYPES, NUM_SHADER_FX_TYPES, NUM_STRIP_MODIFIER_TYPES, blender::seq::StripModifierTypeInfo::panel_register, ModifierTypeInfo::panel_register, ShaderFxTypeInfo::panel_register, ARegionType::prefsizex, ARegionType::prefsizey, REGION_DRAW_LOCK_ALL, ARegionType::regionid, RGN_TYPE_HEADER, RGN_TYPE_NAV_BAR, RGN_TYPE_WINDOW, SPACE_PROPERTIES, and STRNCPY_UTF8.
Referenced by ED_spacetypes_init().
|
static |
Definition at line 515 of file space_buttons.cc.
References BCONTEXT_SEPARATOR, ED_buttons_tabs_list(), Vector< T, InlineBufferCapacity, Allocator >::first_index_of(), Vector< T, InlineBufferCapacity, Allocator >::first_index_of_try(), i, SpaceProperties::mainb, and Vector< T, InlineBufferCapacity, Allocator >::size().
Referenced by buttons_apply_filter().
|
static |
Definition at line 413 of file space_buttons.cc.
References BKE_area_region_copy(), BKE_area_region_free(), BLI_addtail(), BLI_BITMAP_SET, BLI_listbase_clear(), buttons_free(), C, CTX_wm_area(), CTX_wm_area_set(), CTX_wm_region_set(), i, SpaceProperties::mainb, SpaceProperties::mainbo, SpaceProperties::mainbuser, MEM_dupallocN(), MEM_freeN(), SpaceProperties::path, property_search_for_context(), ARegion::runtime, SpaceProperties::runtime, blender::Span< T >::size(), ScrArea::spacedata, SpaceProperties_Runtime::tab_search_results, SpaceProperties::texuser, ScrArea::type, and UI_blocklist_free().
Referenced by buttons_main_region_property_search().
|
static |
Definition at line 367 of file space_buttons.cc.
References BCONTEXT_TOOL, buttons_context_compute(), buttons_main_region_context_string(), C, ED_region_property_search(), SpaceProperties::mainb, and ARegion::runtime.
Referenced by property_search_all_tabs().
|
static |
Definition at line 380 of file space_buttons.cc.
References BCONTEXT_TOOL, BLI_BITMAP_TEST, i, SpaceProperties::mainb, SpaceProperties::mainbuser, SpaceProperties::runtime, blender::Span< T >::size(), and SpaceProperties_Runtime::tab_search_results.
Referenced by buttons_main_region_property_search().