Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2009-11-07 02:53:40 +0300
committerCampbell Barton <ideasman42@gmail.com>2009-11-07 02:53:40 +0300
commitddeb9f8e24da6076ed76be1573cc152def5751ae (patch)
treec5ab6b10a11fc0fc488cd25d4e2609301e35e108 /source
parent6e47d9bb9c3f7e12ee3bdcf171d9adf1b3d62091 (diff)
- added console language type
- separated python console from the interactive console - added shell console type (simple example) - console types are autodetected and can be selected in the menu
Diffstat (limited to 'source')
-rw-r--r--source/blender/makesdna/DNA_space_types.h1
-rw-r--r--source/blender/makesrna/intern/rna_space.c4
2 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/makesdna/DNA_space_types.h b/source/blender/makesdna/DNA_space_types.h
index 3a61902e119..70db6b7a1ff 100644
--- a/source/blender/makesdna/DNA_space_types.h
+++ b/source/blender/makesdna/DNA_space_types.h
@@ -506,6 +506,7 @@ typedef struct SpaceConsole {
ListBase scrollback; /* ConsoleLine; output */
ListBase history; /* ConsoleLine; command history, current edited line is the first */
char prompt[8];
+ char language[32]; /* multiple consoles are possible, not just python */
} SpaceConsole;
diff --git a/source/blender/makesrna/intern/rna_space.c b/source/blender/makesrna/intern/rna_space.c
index 40b918b1ea2..cb6671fbe56 100644
--- a/source/blender/makesrna/intern/rna_space.c
+++ b/source/blender/makesrna/intern/rna_space.c
@@ -1440,6 +1440,10 @@ static void rna_def_space_console(BlenderRNA *brna)
RNA_def_property_ui_text(prop, "Prompt", "Command line prompt.");
RNA_def_struct_name_property(srna, prop);
+ prop= RNA_def_property(srna, "language", PROP_STRING, PROP_NONE);
+ RNA_def_property_ui_text(prop, "Language", "Command line prompt language.");
+ RNA_def_struct_name_property(srna, prop);
+
prop= RNA_def_property(srna, "history", PROP_COLLECTION, PROP_NONE);
RNA_def_property_collection_sdna(prop, NULL, "history", NULL);
RNA_def_property_struct_type(prop, "ConsoleLine");