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:
authorStephen Swaney <sswaney@centurytel.net>2004-10-15 03:37:04 +0400
committerStephen Swaney <sswaney@centurytel.net>2004-10-15 03:37:04 +0400
commit4ac462990516d2d6996ee402f27559bce16deac2 (patch)
tree80400154c078a82e8e2addb613c25906e914b8f6 /source/blender/makesdna
parent9d579591a3d5352b70c27073a0df3dd598cf5182 (diff)
a patch for the Text editor contributed by themeyers.
adds new features for indenting and commenting. Note: I am not sure if the best menu spot for these features is under the Select menu, but we can argue about that later. They do work on a selection, though. from the mailing list post: 1&2. Added Indent/Unindent under Edit->Select just select the text you want to indent and go to the menu ( note if nothing is selected Indent will just indent ( tab ) the line the line ) 3&4. Added Comment/Uncomment to the same menu same applies as above 5. Added Tab setting on the menu bar in text editor Sets the number of spaces a tab == changing the setting will change the hole script 6. Added Auto indent when you hit enter it goes to the next line at the same tab number and the line above it ( needs more testing and input)
Diffstat (limited to 'source/blender/makesdna')
-rw-r--r--source/blender/makesdna/DNA_space_types.h5
-rw-r--r--source/blender/makesdna/DNA_text_types.h1
2 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/makesdna/DNA_space_types.h b/source/blender/makesdna/DNA_space_types.h
index 7017a4155cb..b4280756586 100644
--- a/source/blender/makesdna/DNA_space_types.h
+++ b/source/blender/makesdna/DNA_space_types.h
@@ -255,6 +255,10 @@ typedef struct SpaceText {
int left;
int showlinenrs;
+ int tabnumber;
+ int currtab_set;
+ /* had to make my 64 bits some how */
+
float pix_per_line;
struct rcti txtscroll, txtbar;
@@ -516,4 +520,3 @@ typedef struct SpaceImaSel {
#define IMS_INFILESLI 4
#endif
-
diff --git a/source/blender/makesdna/DNA_text_types.h b/source/blender/makesdna/DNA_text_types.h
index 264ca33013c..391142db302 100644
--- a/source/blender/makesdna/DNA_text_types.h
+++ b/source/blender/makesdna/DNA_text_types.h
@@ -77,4 +77,3 @@ typedef struct Text {
#define TXT_FOLLOW 0x0200 // always follow cursor (console)
#endif
-