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) Blender Foundation, 2008
22 * ***** END GPL/BL DUAL LICENSE BLOCK *****
27 #include "MEM_guardedalloc.h"
28 #include "BLI_blenlib.h"
30 #include "BKE_global.h"
31 #include "BKE_screen.h"
38 #include "ED_screen.h"
41 #include "screen_intern.h" /* own module include */
44 /* only call once on startup, storage is static data (no malloc!) in kernel listbase */
45 void ED_spacetypes_init(void)
47 ED_spacetype_view3d();
48 // ED_spacetype_ipo();
52 ED_operatortypes_screen();
53 // ED_operatortypes_view3d();
59 /* ****************************** space template *********************** */
61 /* allocate and init some vars */
62 static SpaceLink *xxx_new(void)
67 /* not spacelink itself */
68 static void xxx_free(SpaceLink *sl)
73 /* spacetype; init callback for usage, should be redoable */
74 static void xxx_init(ScrArea *sa)
77 /* link area to SpaceXXX struct */
79 /* define how many regions, the order and types */
81 /* add types to regions */
84 /* spacetype; external context changed */
85 static void xxx_refresh(bContext *C, ScrArea *sa)
90 static SpaceLink *xxx_duplicate(SpaceLink *sl)
96 /* only called once, from screen/spacetypes.c */
97 void ED_spacetype_xxx(void)
101 st.spaceid= SPACE_VIEW3D;
106 st.refresh= xxx_refresh;
107 st.duplicate= xxx_duplicate;
109 BKE_spacetype_register(&st);
112 /* ****************************** end template *********************** */