|
Blender
V2.93
|
#include <stdio.h>#include <string.h>#include "MEM_guardedalloc.h"#include "BLI_bitmap.h"#include "BLI_blenlib.h"#include "BLI_utildefines.h"#include "BKE_context.h"#include "BKE_gpencil_modifier.h"#include "BKE_modifier.h"#include "BKE_screen.h"#include "BKE_shader_fx.h"#include "ED_buttons.h"#include "ED_screen.h"#include "ED_space_api.h"#include "ED_view3d.h"#include "WM_api.h"#include "WM_message.h"#include "WM_types.h"#include "RNA_access.h"#include "RNA_define.h"#include "RNA_enum_types.h"#include "UI_interface.h"#include "UI_resources.h"#include "buttons_intern.h"Go to the source code of this file.
|
static |
Definition at line 665 of file space_buttons.c.
References wmNotifier::action, blender::compositor::area(), 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_WORLD, ND_BONE_ACTIVE, ND_BONE_SELECT, ND_CONSTRAINT, ND_DATA, ND_DRAW, ND_FRAME, ND_KEYFRAME, ND_KEYINGSET, ND_KEYS, ND_LAYER, ND_LAYOUTSET, ND_MODE, ND_MODIFIER, 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 648 of file space_buttons.c.
References blender::compositor::area(), ED_area_tag_redraw(), and SpaceProperties::mainb.
Referenced by buttons_area_listener().
Definition at line 61 of file space_buttons.c.
References ARegion::alignment, BCONTEXT_OBJECT, 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, and USER_HEADER_BOTTOM.
Referenced by ED_spacetype_buttons().
Definition at line 135 of file space_buttons.c.
References BCONTEXT_TOT, BLI_BITMAP_NEW, MEM_dupallocN, NULL, 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 103 of file space_buttons.c.
References BLI_freelistN(), MEM_freeN, MEM_SAFE_FREE, NULL, 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 569 of file space_buttons.c.
References buttons_context_compute(), C, CTX_wm_space_properties(), and ED_region_header().
Referenced by ED_spacetype_buttons().
|
static |
Definition at line 564 of file space_buttons.c.
References ED_region_header_init().
Referenced by ED_spacetype_buttons().
|
static |
Definition at line 579 of file space_buttons.c.
References blender::compositor::area(), 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 865 of file space_buttons.c.
References BLI_freelistN(), SpaceProperties::flag, ButsContextPath::len, MEM_SAFE_FREE, NULL, 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 124 of file space_buttons.c.
References blender::compositor::area(), BCONTEXT_TOT, BLI_BITMAP_NEW, if(), MEM_mallocN, NULL, SpaceProperties::runtime, SpaceProperties_Runtime::search_string, and SpaceProperties_Runtime::tab_search_results.
Referenced by ED_spacetype_buttons().
|
static |
Definition at line 552 of file space_buttons.c.
References SPACE_PROPERTIES, and WM_keymap_ensure().
Referenced by ED_spacetype_buttons().
|
static |
Definition at line 269 of file space_buttons.c.
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 153 of file space_buttons.c.
References wmWindowManager::defaultconf, ED_region_panels_init(), ARegion::handlers, SPACE_PROPERTIES, WM_event_add_keymap_handler(), and WM_keymap_ensure().
Referenced by ED_spacetype_buttons().
Definition at line 508 of file space_buttons.c.
References BCONTEXT_TOOL, buttons_main_region_layout_properties(), buttons_main_region_property_search(), C, CTX_wm_space_properties(), ED_view3d_buttons_region_layout_ex(), ARegion::flag, SpaceProperties::mainb, SpaceProperties::mainbo, and RGN_FLAG_SEARCH_FILTER_ACTIVE.
Referenced by ED_spacetype_buttons().
|
static |
Definition at line 315 of file space_buttons.c.
References buttons_context_compute(), buttons_main_region_context_string(), C, ED_region_panels_layout_ex(), SpaceProperties::mainb, NULL, ARegionType::paneltypes, and ARegion::type.
Referenced by buttons_main_region_layout().
|
static |
Definition at line 527 of file space_buttons.c.
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 463 of file space_buttons.c.
References BCONTEXT_TOT, BLI_assert, BLI_BITMAP_SET, C, ED_buttons_tabs_list(), ARegion::flag, 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 619 of file space_buttons.c.
References C, ED_region_panels_draw(), ED_region_panels_layout(), LISTBASE_FOREACH, PANEL_TYPE_LAYOUT_VERT_BAR, ARegionType::paneltypes, View2D::scroll, ARegion::type, ARegion::v2d, and V2D_SCROLL_VERTICAL.
Referenced by ED_spacetype_buttons().
|
static |
Definition at line 611 of file space_buttons.c.
References ED_region_panels_init(), ARegion::flag, View2D::keepzoom, RGN_FLAG_PREFSIZE_OR_HIDDEN, ARegion::v2d, V2D_LOCKZOOM_X, and V2D_LOCKZOOM_Y.
Referenced by ED_spacetype_buttons().
|
static |
Definition at line 631 of file space_buttons.c.
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 542 of file space_buttons.c.
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().
| const char* ED_buttons_search_string_get | ( | SpaceProperties * | sbuts | ) |
Definition at line 332 of file space_buttons.c.
References SpaceProperties::runtime, and SpaceProperties_Runtime::search_string.
Referenced by ED_area_region_search_filter_get().
| int ED_buttons_search_string_length | ( | struct SpaceProperties * | sbuts | ) |
Definition at line 337 of file space_buttons.c.
References BLI_strnlen(), SpaceProperties::runtime, and SpaceProperties_Runtime::search_string.
| void ED_buttons_search_string_set | ( | SpaceProperties * | sbuts, |
| const char * | value | ||
| ) |
Definition at line 342 of file space_buttons.c.
References BLI_strncpy(), SpaceProperties::runtime, and SpaceProperties_Runtime::search_string.
| bool ED_buttons_tab_has_search_result | ( | SpaceProperties * | sbuts, |
| const int | index | ||
| ) |
Definition at line 347 of file space_buttons.c.
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 174 of file space_buttons.c.
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 | ( | void | ) |
Definition at line 925 of file space_buttons.c.
References AREAMINX, BKE_gpencil_modifier_get_info(), BKE_modifier_get_info(), BKE_shaderfx_get_info(), BKE_spacetype_register(), BKE_ST_MAXNAME, BLI_addhead(), buttons_area_listener(), buttons_context(), buttons_context_register(), buttons_create(), buttons_duplicate(), 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(), SpaceType::context, SpaceType::create, ARegionType::draw, SpaceType::duplicate, ED_KEYMAP_FRAMES, ED_KEYMAP_HEADER, ED_KEYMAP_NAVBAR, ED_KEYMAP_UI, ED_KEYMAP_VIEW2D, ED_region_panels_draw(), eShaderFxType_Light_deprecated, SpaceType::free, HEADERY, SpaceType::id_remap, ARegionType::init, SpaceType::init, SpaceType::keymap, ARegionType::keymapflag, ARegionType::layout, ARegionType::listener, SpaceType::listener, MEM_callocN, ARegionType::message_subscribe, SpaceType::name, NULL, NUM_GREASEPENCIL_MODIFIER_TYPES, NUM_MODIFIER_TYPES, NUM_SHADER_FX_TYPES, SpaceType::operatortypes, GpencilModifierTypeInfo::panelRegister, ModifierTypeInfo::panelRegister, ShaderFxTypeInfo::panelRegister, ARegionType::prefsizex, ARegionType::prefsizey, ARegionType::regionid, SpaceType::regiontypes, RGN_TYPE_HEADER, RGN_TYPE_NAV_BAR, RGN_TYPE_WINDOW, SPACE_PROPERTIES, and SpaceType::spaceid.
Referenced by ED_spacetypes_init().
|
static |
Definition at line 404 of file space_buttons.c.
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(), SpaceProperties::mainb, SpaceProperties::mainbo, SpaceProperties::mainbuser, MEM_dupallocN, MEM_freeN, NULL, SpaceProperties::path, property_search_for_context(), SpaceProperties::runtime, ScrArea::spacedata, SpaceProperties_Runtime::tab_search_results, SpaceProperties::texuser, ScrArea::type, UI_blocklist_free(), ARegion::uiblocks, and ARegion::visible.
Referenced by buttons_main_region_property_search().
|
static |
Definition at line 358 of file space_buttons.c.
References BCONTEXT_TOOL, buttons_context_compute(), buttons_main_region_context_string(), C, ED_region_property_search(), SpaceProperties::mainb, NULL, ARegionType::paneltypes, and ARegion::type.
Referenced by property_search_all_tabs().
|
static |
Definition at line 370 of file space_buttons.c.
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().