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
35 /* warning: the values of these defines are used in sbuts->tabs[8] */
37 #define BCONTEXT_SCENE 0
38 #define BCONTEXT_WORLD 1
39 #define BCONTEXT_OBJECT 2
40 #define BCONTEXT_DATA 3
41 #define BCONTEXT_MATERIAL 4
42 #define BCONTEXT_TEXTURE 5
43 #define BCONTEXT_PARTICLE 6
44 #define BCONTEXT_PHYSICS 7
45 #define BCONTEXT_GAME 8
46 #define BCONTEXT_BONE 9
47 #define BCONTEXT_MODIFIER 10
50 #define BUTS_SENS_SEL 1
51 #define BUTS_SENS_ACT 2
52 #define BUTS_SENS_LINK 4
53 #define BUTS_CONT_SEL 8
54 #define BUTS_CONT_ACT 16
55 #define BUTS_CONT_LINK 32
56 #define BUTS_ACT_SEL 64
57 #define BUTS_ACT_ACT 128
58 #define BUTS_ACT_LINK 256
59 #define BUTS_SENS_STATE 512
60 #define BUTS_ACT_STATE 1024
62 /* internal exports only */
65 void buttons_header_buttons(const struct bContext *C, struct ARegion *ar);
67 #endif /* ED_BUTTONS_INTERN_H */