|
Blender V4.3
|
#include <cstdio>#include <cstring>#include "MEM_guardedalloc.h"#include "BLI_bitmap.h"#include "BLI_blenlib.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 "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 "UI_interface.hh"#include "UI_resources.hh"#include "BLO_read_write.hh"#include "buttons_intern.hh"Go to the source code of this file.
|
static |
Definition at line 663 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, 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_BONE_ACTIVE, ND_BONE_COLLECTION, ND_BONE_SELECT, ND_CONSTRAINT, ND_DATA, ND_DRAW, ND_DRAW_ANIMVIZ, ND_FRAME, ND_KEYFRAME, 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_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, and SpaceProperties::preview.
Referenced by ED_spacetype_buttons().
|
static |
Definition at line 646 of file space_buttons.cc.
References ED_area_tag_redraw(), and SpaceProperties::mainb.
Referenced by buttons_area_listener().
Definition at line 47 of file space_buttons.cc.
References BCONTEXT_OBJECT, BLI_addtail(), SpaceProperties::mainb, SpaceProperties::mainbuser, MEM_callocN, SpaceProperties::regionbase, 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, and USER_HEADER_BOTTOM.
Referenced by ED_spacetype_buttons().
Definition at line 125 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 936 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(), SpaceProperties::flag, IDWALK_CB_DIRECT_WEAK_LINK, IDWALK_READONLY, LISTBASE_FOREACH_MUTABLE, SpaceProperties::path, SpaceProperties::pinid, ButsContextTexture::texture, SpaceProperties::texuser, ButsContextTexture::user, and ButsContextTexture::users.
Referenced by ED_spacetype_buttons().
|
static |
Definition at line 89 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 562 of file space_buttons.cc.
References buttons_context_compute(), CTX_wm_space_properties(), and ED_region_header().
Referenced by ED_spacetype_buttons().
|
static |
Definition at line 557 of file space_buttons.cc.
References ED_region_header_init().
Referenced by ED_spacetype_buttons().
|
static |
Definition at line 572 of file space_buttons.cc.
References BCONTEXT_OUTPUT, BCONTEXT_RENDER, BCONTEXT_SCENE, BCONTEXT_TOOL, BCONTEXT_WORLD, ED_region_do_msg_notify_tag_redraw(), ELEM, SpaceProperties::mainb, wmMsgSubscribeValue::owner, params, and WM_msg_subscribe_rna_anon_prop.
Referenced by ED_spacetype_buttons().
|
static |
Definition at line 875 of file space_buttons.cc.
References blender::bke::id::IDRemapper::apply(), BLI_listbase_clear(), SpaceProperties::flag, 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(), ButsContextTexture::texture, SpaceProperties::texuser, ButsContextTexture::user, and ButsContextTexture::users.
Referenced by ED_spacetype_buttons().
|
static |
Definition at line 113 of file space_buttons.cc.
References BCONTEXT_TOT, BLI_BITMAP_NEW, MEM_mallocN, SpaceProperties::runtime, SpaceProperties_Runtime::search_string, and SpaceProperties_Runtime::tab_search_results.
Referenced by ED_spacetype_buttons().
|
static |
Definition at line 545 of file space_buttons.cc.
References RGN_TYPE_WINDOW, SPACE_PROPERTIES, and WM_keymap_ensure().
Referenced by ED_spacetype_buttons().
|
static |
Definition at line 254 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_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 143 of file space_buttons.cc.
References wmWindowManager::defaultconf, ED_region_panels_init(), RGN_TYPE_WINDOW, SPACE_PROPERTIES, WM_event_add_keymap_handler(), and WM_keymap_ensure().
Referenced by ED_spacetype_buttons().
Definition at line 501 of file space_buttons.cc.
References BCONTEXT_TOOL, buttons_main_region_layout_properties(), buttons_main_region_property_search(), CTX_wm_space_properties(), ED_view3d_buttons_region_layout_ex(), SpaceProperties::mainb, SpaceProperties::mainbo, and RGN_FLAG_SEARCH_FILTER_ACTIVE.
Referenced by ED_spacetype_buttons().
|
static |
Definition at line 300 of file space_buttons.cc.
References buttons_context_compute(), buttons_main_region_context_string(), ED_region_panels_layout_ex(), SpaceProperties::mainb, and WM_OP_INVOKE_REGION_WIN.
Referenced by buttons_main_region_layout().
|
static |
Definition at line 520 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 456 of file space_buttons.cc.
References BCONTEXT_TOT, BLI_assert, BLI_BITMAP_SET, ED_buttons_tabs_list(), LISTBASE_FOREACH, SpaceProperties::mainb, 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 611 of file space_buttons.cc.
References buttons_context_compute(), CTX_wm_space_properties(), ED_region_panels_draw(), ED_region_panels_layout(), LISTBASE_FOREACH, and PANEL_TYPE_LAYOUT_VERT_BAR.
Referenced by ED_spacetype_buttons().
|
static |
Definition at line 603 of file space_buttons.cc.
References ED_region_panels_init(), RGN_FLAG_NO_USER_RESIZE, V2D_LOCKZOOM_X, and V2D_LOCKZOOM_Y.
Referenced by ED_spacetype_buttons().
|
static |
Definition at line 626 of file space_buttons.cc.
References ED_region_do_msg_notify_tag_redraw(), wmMsgSubscribeValue::owner, params, and WM_msg_subscribe_rna_anon_prop.
Referenced by ED_spacetype_buttons().
|
static |
Definition at line 535 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 980 of file space_buttons.cc.
References SpaceProperties::flag, and SpaceProperties::pinid.
Referenced by ED_spacetype_buttons().
|
static |
Definition at line 969 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 991 of file space_buttons.cc.
References BLO_write_struct.
Referenced by ED_spacetype_buttons().
| const char * ED_buttons_search_string_get | ( | SpaceProperties * | sbuts | ) |
Definition at line 318 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 323 of file space_buttons.cc.
References BLI_strnlen(), SpaceProperties::runtime, and SpaceProperties_Runtime::search_string.
| void ED_buttons_search_string_set | ( | SpaceProperties * | sbuts, |
| const char * | value ) |
Definition at line 330 of file space_buttons.cc.
References SpaceProperties::runtime, SpaceProperties_Runtime::search_string, and STRNCPY.
| bool ED_buttons_tab_has_search_result | ( | SpaceProperties * | sbuts, |
| const int | index ) |
Definition at line 337 of file space_buttons.cc.
References BLI_BITMAP_TEST, SpaceProperties::runtime, and SpaceProperties_Runtime::tab_search_results.
| int ED_buttons_tabs_list | ( | SpaceProperties * | sbuts, |
| short * | context_tabs_array ) |
Fills an array with the tab context values for the properties editor. -1 signals a separator.
Definition at line 159 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_TEXTURE, BCONTEXT_TOOL, BCONTEXT_VIEW_LAYER, BCONTEXT_WORLD, length(), and SpaceProperties::pathflag.
Referenced by buttons_main_region_property_search().
| void ED_spacetype_buttons | ( | ) |
Definition at line 1002 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, ARegionType::init, ARegionType::keymapflag, ARegionType::layout, ARegionType::listener, MEM_callocN, ARegionType::message_subscribe, NUM_MODIFIER_TYPES, NUM_SHADER_FX_TYPES, ModifierTypeInfo::panel_register, ShaderFxTypeInfo::panel_register, ARegionType::prefsizex, ARegionType::prefsizey, ARegionType::regionid, RGN_TYPE_HEADER, RGN_TYPE_NAV_BAR, RGN_TYPE_WINDOW, SPACE_PROPERTIES, and STRNCPY.
Referenced by ED_spacetypes_init().
|
static |
Definition at line 397 of file space_buttons.cc.
References BKE_area_region_copy(), BKE_area_region_free(), BLI_addtail(), BLI_BITMAP_SET, BLI_listbase_clear(), buttons_free(), CTX_wm_area(), CTX_wm_area_set(), CTX_wm_region_set(), SpaceProperties::mainb, SpaceProperties::mainbo, SpaceProperties::mainbuser, MEM_dupallocN, MEM_freeN(), SpaceProperties::path, property_search_for_context(), SpaceProperties::runtime, ScrArea::spacedata, SpaceProperties_Runtime::tab_search_results, SpaceProperties::texuser, ScrArea::type, UI_blocklist_free(), and ARegion::visible.
Referenced by buttons_main_region_property_search().
|
static |
Definition at line 351 of file space_buttons.cc.
References BCONTEXT_TOOL, buttons_context_compute(), buttons_main_region_context_string(), ED_region_property_search(), and SpaceProperties::mainb.
Referenced by property_search_all_tabs().
|
static |
Definition at line 363 of file space_buttons.cc.
References BCONTEXT_TOOL, BLI_BITMAP_TEST, SpaceProperties::mainb, SpaceProperties::mainbuser, SpaceProperties::runtime, and SpaceProperties_Runtime::tab_search_results.
Referenced by buttons_main_region_property_search().