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
diff options
context:
space:
mode:
authorNathan Letwory <nathan@letworyinteractive.com>2013-09-11 11:23:23 +0400
committerNathan Letwory <nathan@letworyinteractive.com>2013-09-11 11:23:23 +0400
commit801b8430a29a2c3a7fd2bd460414b8bb071ea617 (patch)
treeb1988fe333d37bcb22d9945495a7ff8fdca2f4d7 /source/blender/makesrna/intern/rna_space.c
parent2f6c748bb9eabbd6c3e54d45091b0381d6bc3556 (diff)
Add read-only access to index data for current line, top line and visible lines count.
Diffstat (limited to 'source/blender/makesrna/intern/rna_space.c')
-rw-r--r--source/blender/makesrna/intern/rna_space.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_space.c b/source/blender/makesrna/intern/rna_space.c
index 54012122617..6d0af4ec058 100644
--- a/source/blender/makesrna/intern/rna_space.c
+++ b/source/blender/makesrna/intern/rna_space.c
@@ -2595,6 +2595,16 @@ static void rna_def_space_text(BlenderRNA *brna)
RNA_def_property_ui_text(prop, "Margin Column", "Column number to show right margin at");
RNA_def_property_update(prop, NC_SPACE | ND_SPACE_TEXT, NULL);
+ prop = RNA_def_property(srna, "top", PROP_INT, PROP_NONE);
+ RNA_def_property_clear_flag(prop, PROP_EDITABLE);
+ RNA_def_property_int_sdna(prop, NULL, "top");
+ RNA_def_property_ui_text(prop, "Top Line", "Top line visible.");
+
+ prop = RNA_def_property(srna, "visible_lines", PROP_INT, PROP_NONE);
+ RNA_def_property_clear_flag(prop, PROP_EDITABLE);
+ RNA_def_property_int_sdna(prop, NULL, "viewlines");
+ RNA_def_property_ui_text(prop, "Top Line", "Amount of lines that can be visible in current editor");
+
/* functionality options */
prop = RNA_def_property(srna, "use_overwrite", PROP_BOOLEAN, PROP_NONE);
RNA_def_property_boolean_sdna(prop, NULL, "overwrite", 1);