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:
authorIan Thompson <quornian@googlemail.com>2008-08-05 03:01:47 +0400
committerIan Thompson <quornian@googlemail.com>2008-08-05 03:01:47 +0400
commit53e535dfcf9637e3aa3327dd3bf2793a67756868 (patch)
treeedc307efe53008580feeffab327056779b8ab6b0 /source/blender/makesdna/DNA_text_types.h
parented5002458b810974277b7a6bd5d9c3c29d052d53 (diff)
Text Markers: multiple, coloured selections within a Text object with group relationships. They allow portions of text to be edited as one and enable quick jumping between and editing of different areas.
Flags control the behaviour and grouping of markers. At present, Ctrl+M places a marker with TMARK_EDITALL set for testing purposes. I have also split the text area event handler into separate methods for marker handling and the existing text tools. This makes the events system much easier to follow as it was getting a little hairy.
Diffstat (limited to 'source/blender/makesdna/DNA_text_types.h')
-rw-r--r--source/blender/makesdna/DNA_text_types.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/source/blender/makesdna/DNA_text_types.h b/source/blender/makesdna/DNA_text_types.h
index bec4e0062f9..41ea0b23323 100644
--- a/source/blender/makesdna/DNA_text_types.h
+++ b/source/blender/makesdna/DNA_text_types.h
@@ -42,6 +42,12 @@ typedef struct TextLine {
int len, blen;
} TextLine;
+typedef struct TextMarker {
+ struct TextMarker *next, *prev;
+ int lineno, start, end, flags;
+ char clr[4], pad[4];
+} TextMarker;
+
typedef struct Text {
ID id;
@@ -52,12 +58,12 @@ typedef struct Text {
ListBase lines;
TextLine *curl, *sell;
int curc, selc;
+ ListBase markers;
char *undo_buf;
int undo_pos, undo_len;
void *compiled;
-
double mtime;
} Text;