diff options
author | Willian Padovani Germano <wpgermano@gmail.com> | 2003-12-14 04:18:09 +0300 |
---|---|---|
committer | Willian Padovani Germano <wpgermano@gmail.com> | 2003-12-14 04:18:09 +0300 |
commit | 49021f7ec4bfc1313c6cdfeae1f9c32e98cc9cdc (patch) | |
tree | 44e7c4c38bc8c26b5efe0b52b846402589a4ca9a /source/blender/include | |
parent | 6653af79142aa929eb3d131f8fced363b2c4b828 (diff) |
BPython - first step for better integration of Python in Blender:
- add a new space: Space Script
- add a new dna struct: Script
- add these two properly everywhere they are meant to
It's not a tiny commit, but most of it is ground work for what is still to be done.
Right now the benefits should be: freeing the Text Editor to be used in a window even while a script w/ gui in "on" and letting more than one currently running script w/ gui be accessible from each window
Some files are added, so some build systems (not autotools) will need updates
Diffstat (limited to 'source/blender/include')
-rw-r--r-- | source/blender/include/BIF_drawscript.h | 45 | ||||
-rw-r--r-- | source/blender/include/BSE_headerbuttons.h | 4 | ||||
-rw-r--r-- | source/blender/include/blendef.h | 3 | ||||
-rw-r--r-- | source/blender/include/mydevice.h | 1 |
4 files changed, 52 insertions, 1 deletions
diff --git a/source/blender/include/BIF_drawscript.h b/source/blender/include/BIF_drawscript.h new file mode 100644 index 00000000000..d288333cf0c --- /dev/null +++ b/source/blender/include/BIF_drawscript.h @@ -0,0 +1,45 @@ +/** + * + * + * ***** BEGIN GPL/BL DUAL 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. The Blender + * Foundation also sells licenses for use in proprietary software under + * the Blender License. See http://www.blender.org/BL/ for information + * about this. + * + * 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) 2001-2002 by NaN Holding BV. + * All rights reserved. + * + * This is a new part of Blender. + * + * Contributor(s): Willian P. Germano. + * + * ***** END GPL/BL DUAL LICENSE BLOCK ***** + */ + +#ifndef BIF_DRAWSCRIPT_H +#define BIF_DRAWSCRIPT_H + +struct ScrArea; +struct SpaceScript; +struct Script; + +void unlink_script(struct Script *script); + +void init_scriptspace(struct ScrArea *sa); +void free_scriptspace(struct SpaceScript *sc); + +#endif /* BIF_DRAWSCRIPT_H */ diff --git a/source/blender/include/BSE_headerbuttons.h b/source/blender/include/BSE_headerbuttons.h index 4a4770a1317..e85ce4309ab 100644 --- a/source/blender/include/BSE_headerbuttons.h +++ b/source/blender/include/BSE_headerbuttons.h @@ -37,7 +37,7 @@ struct uiBlock; struct ID; /* these used to be in blender/src/headerbuttons.c: */ -#define SPACEICONMAX 14 /* See release/datafiles/blenderbuttons */ +#define SPACEICONMAX 15 /* See release/datafiles/blenderbuttons */ #define XIC 20 #define YIC 20 @@ -83,6 +83,7 @@ void oops_buttons(void); void seq_buttons(void); void sound_buttons(void); void text_buttons(void); +void script_buttons(void); void view3d_buttons(void); void do_global_buttons(unsigned short event); @@ -101,6 +102,7 @@ void do_oops_buttons(short event); void do_seq_buttons(short event); void do_sound_buttons(unsigned short event); void do_text_buttons(unsigned short event); +void do_script_buttons(unsigned short event); void do_view3d_buttons(short event); void do_headerbuttons(short event); diff --git a/source/blender/include/blendef.h b/source/blender/include/blendef.h index 09c97990cbf..7c9b5e1aab2 100644 --- a/source/blender/include/blendef.h +++ b/source/blender/include/blendef.h @@ -336,6 +336,9 @@ #define B_TEXTSTORE 506 #define B_TEXTLINENUM 507 +/* SCRIPT: 525 */ +#define B_SCRIPTBROWSE 526 + /* FILE: 550 */ #define B_SORTFILELIST 551 #define B_RELOADDIR 552 diff --git a/source/blender/include/mydevice.h b/source/blender/include/mydevice.h index 8fd6bff3a12..aad025fa759 100644 --- a/source/blender/include/mydevice.h +++ b/source/blender/include/mydevice.h @@ -235,6 +235,7 @@ #define REDRAWSOUND 0x402F #define REDRAWACTION 0x4030 #define REDRAWNLA 0x4031 +#define REDRAWSCRIPT 0x4032 #endif /* !__MYDEVICE_H__ */ |