diff options
author | Ton Roosendaal <ton@blender.org> | 2009-06-16 17:09:36 +0400 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2009-06-16 17:09:36 +0400 |
commit | 2d40b8d56ff100b71dac7c4694f6115dcc0b01b5 (patch) | |
tree | e6ad74b116dccf3442290ba4a76bd314729bce6b /source/blender/editors/space_logic/logic_intern.h | |
parent | 7d026421142306dee486628bd15d4f5aa2b77481 (diff) |
2.5
Added SpaceLogic, to restore the old logic buttons into.
In future it can be used for a more advanced logic editor, with
states, behaviour, whatever. We'll see!
This commit only adds the backend for new space. Committed this
now as reference for when we need another space type. It's still
not well plugin-able (dynamic space types), but my idea is to just
have a new SpacePlugIn for this, with a neat small API to define
all relevant callbacks.
Also note the icon for the spacetype is wrong still.
Diffstat (limited to 'source/blender/editors/space_logic/logic_intern.h')
-rw-r--r-- | source/blender/editors/space_logic/logic_intern.h | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/source/blender/editors/space_logic/logic_intern.h b/source/blender/editors/space_logic/logic_intern.h new file mode 100644 index 00000000000..773a36bdb2d --- /dev/null +++ b/source/blender/editors/space_logic/logic_intern.h @@ -0,0 +1,55 @@ +/** + * $Id: + * + * ***** BEGIN GPL LICENSE BLOCK ***** + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software Foundation, + * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + * + * The Original Code is Copyright (C) 2009 Blender Foundation. + * All rights reserved. + * + * + * Contributor(s): Blender Foundation + * + * ***** END GPL LICENSE BLOCK ***** + */ + +#ifndef ED_LOGIC_INTERN_H +#define ED_LOGIC_INTERN_H + +/* internal exports only */ +struct bContext; +struct ARegion; +struct ARegionType; +struct ScrArea; +struct SpaceLogic; +struct Object; +struct wmOperatorType; +struct Scene; + +/* space_logic.c */ +struct ARegion *logic_has_buttons_region(struct ScrArea *sa); + +/* logic_header.c */ +void logic_header_buttons(const struct bContext *C, struct ARegion *ar); + +/* logic_ops.c */ + +/* logic_buttons.c */ +void logic_buttons_register(struct ARegionType *art); +void LOGIC_OT_properties(struct wmOperatorType *ot); + +#endif /* ED_LOGIC_INTERN_H */ + |