106 if (sbuts->
runtime !=
nullptr) {
117 if (sbuts->
runtime ==
nullptr) {
131 sbutsn->
path =
nullptr;
133 if (sfile_old->
runtime !=
nullptr) {
167 context_tabs_array[
length] = -1;
192 context_tabs_array[
length] = -1;
199 context_tabs_array[
length] = -1;
243 context_tabs_array[
length] = -1;
290 return "bone_constraint";
364 const short *context_tabs_array,
372 int current_tab_index = 0;
373 for (
int i = 0; i < tabs_len; i++) {
374 if (sbuts->
mainb == context_tabs_array[i]) {
375 current_tab_index = i;
381 for (
int i = current_tab_index; i < tabs_len; i++) {
383 sbuts->
mainbuser = context_tabs_array[i];
389 for (
int i = 0; i < current_tab_index; i++) {
391 sbuts->
mainbuser = context_tabs_array[i];
400 const short *context_tabs_array,
406 ScrArea area_copy = blender::dna::shallow_copy(*area_original);
415 sbuts_copy.
path =
nullptr;
423 for (
int i = 0; i < tabs_len; i++) {
425 if (context_tabs_array[i] == -1) {
430 if (context_tabs_array[i] == sbuts->
mainb) {
467 bool current_tab_has_search_match =
false;
470 current_tab_has_search_match =
true;
475 int current_tab_index = -1;
476 for (
int i = 0; i < tabs_len; i++) {
477 if (context_tabs_array[i] == sbuts->
mainb) {
478 current_tab_index = i;
488 if (!current_tab_has_search_match) {
580 msg_sub_value_region_tag_redraw.
owner = region;
581 msg_sub_value_region_tag_redraw.user_data = region;
622 region->v2d.scroll &= ~V2D_SCROLL_VERTICAL;
633 msg_sub_value_region_tag_redraw.
owner = region;
634 msg_sub_value_region_tag_redraw.user_data = region;
641 mbus, SpaceImageEditor, ui_mode, &msg_sub_value_region_tag_redraw);
651 if (sbuts->
mainb == buttons) {
882 sbuts->
flag &= ~SB_PIN_CONTEXT;
887 for (
int i = 0; i < path->
len; i++) {
894 for (
int j = i; j < path->
len; j++) {
905 for (
int j = i; j < path->
len; j++) {
919 if (path->
len == 0 && sbuts->
path) {
921 sbuts->
path =
nullptr;
944 if (sbuts->
pinid ==
nullptr) {
945 sbuts->
flag &= ~SB_PIN_CONTEXT;
951 sbuts->
path =
nullptr;
973 sbuts->
path =
nullptr;
986 if (sbuts->
pinid ==
nullptr) {
987 sbuts->
flag &= ~SB_PIN_CONTEXT;
1004 std::unique_ptr<SpaceType> st = std::make_unique<SpaceType>();
SpaceProperties * CTX_wm_space_properties(const bContext *C)
ScrArea * CTX_wm_area(const bContext *C)
void CTX_wm_area_set(bContext *C, ScrArea *area)
void CTX_wm_region_set(bContext *C, ARegion *region)
#define BKE_LIB_FOREACHID_PROCESS_IDSUPER(data_, id_super_, cb_flag_)
@ IDWALK_CB_DIRECT_WEAK_LINK
int BKE_lib_query_foreachid_process_flags_get(const LibraryForeachIDData *data)
#define BKE_LIB_FOREACHID_PROCESS_ID(data_, id_, cb_flag_)
@ ID_REMAP_RESULT_SOURCE_REMAPPED
@ ID_REMAP_RESULT_SOURCE_UNASSIGNED
@ ID_REMAP_RESULT_SOURCE_NOT_MAPPABLE
@ ID_REMAP_RESULT_SOURCE_UNAVAILABLE
const ModifierTypeInfo * BKE_modifier_get_info(ModifierType type)
void BKE_spacetype_register(std::unique_ptr< SpaceType > st)
void BKE_area_region_free(SpaceType *st, ARegion *region)
ARegion * BKE_area_region_copy(const SpaceType *st, const ARegion *region)
@ PANEL_TYPE_LAYOUT_VERT_BAR
const ShaderFxTypeInfo * BKE_shaderfx_get_info(ShaderFxType type)
#define BLI_BITMAP_NEW(_num, _alloc_string)
#define BLI_BITMAP_TEST(_bitmap, _index)
#define BLI_BITMAP_SET(_bitmap, _index, _set)
void BLI_addhead(struct ListBase *listbase, void *vlink) ATTR_NONNULL(1)
#define LISTBASE_FOREACH(type, var, list)
#define LISTBASE_FOREACH_MUTABLE(type, var, list)
BLI_INLINE void BLI_listbase_clear(struct ListBase *lb)
void BLI_addtail(struct ListBase *listbase, void *vlink) ATTR_NONNULL(1)
#define STRNCPY(dst, src)
int char char int int int int size_t BLI_strnlen(const char *str, size_t maxlen) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1)
#define BLO_write_struct(writer, struct_name, data_ptr)
@ RGN_FLAG_SEARCH_FILTER_UPDATE
@ RGN_FLAG_NO_USER_RESIZE
@ RGN_FLAG_SEARCH_FILTER_ACTIVE
@ eShaderFxType_Light_deprecated
@ BCONTEXT_BONE_CONSTRAINT
void ED_area_tag_redraw(ScrArea *area)
bool ED_region_property_search(const bContext *C, ARegion *region, ListBase *paneltypes, const char *contexts[], const char *category_override)
void ED_region_header(const bContext *C, ARegion *region)
void ED_region_header_init(ARegion *region)
void ED_region_panels_layout_ex(const bContext *C, ARegion *region, ListBase *paneltypes, wmOperatorCallContext op_context, const char *contexts[], const char *category_override)
void ED_region_panels_layout(const bContext *C, ARegion *region)
void ED_region_panels_init(wmWindowManager *wm, ARegion *region)
void ED_region_tag_redraw(ARegion *region)
void ED_region_do_msg_notify_tag_redraw(bContext *C, wmMsgSubscribeKey *msg_key, wmMsgSubscribeValue *msg_val)
void ED_region_panels_draw(const bContext *C, ARegion *region)
void ED_view3d_buttons_region_layout_ex(const bContext *C, ARegion *region, const char *category_override)
Read Guarded memory(de)allocation.
void UI_blocklist_free(const bContext *C, ARegion *region)
bool UI_panel_matches_search_filter(const Panel *panel)
bool UI_panel_is_active(const Panel *panel)
#define ND_RENDER_OPTIONS
#define ND_SHADING_PREVIEW
#define ND_SPACE_PROPERTIES
@ WM_OP_INVOKE_REGION_WIN
#define ND_BONE_COLLECTION
SIMD_FORCE_INLINE btScalar length() const
Return the length of the vector.
int buttons_context(const bContext *C, const char *member, bContextDataResult *result)
void buttons_context_compute(const bContext *C, SpaceProperties *sbuts)
void buttons_context_register(ARegionType *art)
IDRemapperApplyResult apply(ID **r_id_ptr, IDRemapperApplyOptions options, ID *id_self=nullptr) const
void *(* MEM_mallocN)(size_t len, const char *str)
void MEM_freeN(void *vmemh)
void *(* MEM_callocN)(size_t len, const char *str)
void *(* MEM_dupallocN)(const void *vmemh)
PointerRNA RNA_id_pointer_create(ID *id)
void(* message_subscribe)(const wmRegionMessageSubscribeParams *params)
void(* listener)(const wmRegionListenerParams *params)
void(* draw)(const bContext *C, ARegion *region)
void(* layout)(const bContext *C, ARegion *region)
void(* init)(wmWindowManager *wm, ARegion *region)
struct ButsTextureUser * user
void(* panel_register)(ARegionType *region_type)
void(* panel_register)(struct ARegionType *region_type)
BLI_bitmap * tab_search_results
char search_string[UI_MAX_NAME_STR]
struct SpaceProperties_Runtime * runtime
struct wmKeyConfig * defaultconf
wmEventHandler_Keymap * WM_event_add_keymap_handler(ListBase *handlers, wmKeyMap *keymap)
wmKeyMap * WM_keymap_ensure(wmKeyConfig *keyconf, const char *idname, int spaceid, int regionid)
#define WM_msg_subscribe_rna_anon_prop(mbus, type_, prop_, value)
void WM_operatortype_append(void(*opfunc)(wmOperatorType *))