From eecf7722b635545f0f5c51b74a15418e3cc9f47e Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Sun, 7 Jun 2009 13:36:12 +0000 Subject: UI Buttons: * Context now allows pinning a datablock, independent of selection. * Initial ID browse buttons for most buttons tabs. * Browsing from world to texture now displays world textures again, but is a bit of a hack, not sure there is a right way to do this. * There's a button to switch between active materials and textures now, only temporary though. * There's some code to put context part in own region, disabled still because it doesn't work that well yet. --- source/blender/editors/space_buttons/buttons_intern.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'source/blender/editors/space_buttons/buttons_intern.h') diff --git a/source/blender/editors/space_buttons/buttons_intern.h b/source/blender/editors/space_buttons/buttons_intern.h index 04c7241c465..196647a3750 100644 --- a/source/blender/editors/space_buttons/buttons_intern.h +++ b/source/blender/editors/space_buttons/buttons_intern.h @@ -32,6 +32,9 @@ struct ARegion; struct ARegionType; struct bContext; struct bContextDataResult; +struct SpaceButs; +struct uiLayout; +struct wmOperatorType; /* buts->scaflag */ #define BUTS_SENS_SEL 1 @@ -52,9 +55,15 @@ struct bContextDataResult; void buttons_header_buttons(const struct bContext *C, struct ARegion *ar); /* buttons_context.c */ -void buttons_context_compute(const struct bContext *C, SpaceButs *sbuts); +void buttons_context_compute(const struct bContext *C, struct SpaceButs *sbuts); int buttons_context(const struct bContext *C, const char *member, struct bContextDataResult *result); +void buttons_context_draw(const struct bContext *C, struct uiLayout *layout); void buttons_context_register(struct ARegionType *art); +/* buttons_ops.c */ +void MATERIAL_OT_new(struct wmOperatorType *ot); +void TEXTURE_OT_new(struct wmOperatorType *ot); +void WORLD_OT_new(struct wmOperatorType *ot); + #endif /* ED_BUTTONS_INTERN_H */ -- cgit v1.2.3