4 * ***** BEGIN GPL LICENSE BLOCK *****
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * as published by the Free Software Foundation; either version 2
9 * of the License, or (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software Foundation,
18 * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
20 * The Original Code is Copyright (C) 2008 Blender Foundation.
21 * All rights reserved.
24 * Contributor(s): Blender Foundation
26 * ***** END GPL LICENSE BLOCK *****
28 #ifndef ED_BUTTONS_INTERN_H
29 #define ED_BUTTONS_INTERN_H
34 struct bContextDataResult;
37 struct wmOperatorType;
40 #define BUTS_SENS_SEL 1
41 #define BUTS_SENS_ACT 2
42 #define BUTS_SENS_LINK 4
43 #define BUTS_CONT_SEL 8
44 #define BUTS_CONT_ACT 16
45 #define BUTS_CONT_LINK 32
46 #define BUTS_ACT_SEL 64
47 #define BUTS_ACT_ACT 128
48 #define BUTS_ACT_LINK 256
49 #define BUTS_SENS_STATE 512
50 #define BUTS_ACT_STATE 1024
52 /* internal exports only */
54 /* buttons_header.c */
55 void buttons_header_buttons(const struct bContext *C, struct ARegion *ar);
57 /* buttons_context.c */
58 void buttons_context_compute(const struct bContext *C, struct SpaceButs *sbuts);
59 int buttons_context(const struct bContext *C, const char *member, struct bContextDataResult *result);
60 void buttons_context_draw(const struct bContext *C, struct uiLayout *layout);
61 void buttons_context_register(struct ARegionType *art);
64 void OBJECT_OT_material_slot_add(struct wmOperatorType *ot);
65 void OBJECT_OT_material_slot_remove(struct wmOperatorType *ot);
66 void OBJECT_OT_material_slot_assign(struct wmOperatorType *ot);
67 void OBJECT_OT_material_slot_select(struct wmOperatorType *ot);
68 void OBJECT_OT_material_slot_deselect(struct wmOperatorType *ot);
70 void MATERIAL_OT_new(struct wmOperatorType *ot);
71 void TEXTURE_OT_new(struct wmOperatorType *ot);
72 void WORLD_OT_new(struct wmOperatorType *ot);
74 #endif /* ED_BUTTONS_INTERN_H */