From 6db5aa0119f4d2f6656b74a8fb91bf23bfc35fb8 Mon Sep 17 00:00:00 2001
From: IgorA
Date: Sun, 30 May 2010 21:27:14 +0000
Subject: [PATCH] 1) removed duplicate code in 'box_lib' 2) add program
'TextEditor syntax file editor'
git-svn-id: svn://kolibrios.org@1476 a494cfbc-eb01-0410-851d-a64ba20cac60
---
.../libraries/box_lib/trunk/box_lib.mac | 12 +
.../libraries/box_lib/trunk/checkbox.mac | 14 -
.../box_lib/trunk/doc/t_edit/t_edit.htm | 23 +-
.../libraries/box_lib/trunk/editbox.mac | 46 --
.../libraries/box_lib/trunk/optionbox.mac | 12 -
.../libraries/box_lib/trunk/readme.txt | 31 +-
programs/other/t_edit/info/ini_files.syn | Bin 0 -> 997 bytes
programs/other/t_edit_synt/build.bat | 12 +
programs/other/t_edit_synt/readme.htm | 153 +++++++
programs/other/t_edit_synt/te_data.inc | 393 ++++++++++++++++
programs/other/t_edit_synt/te_syntax.asm | 376 +++++++++++++++
programs/other/t_edit_synt/te_syntax.png | Bin 0 -> 18150 bytes
programs/other/t_edit_synt/te_work.inc | 428 ++++++++++++++++++
13 files changed, 1394 insertions(+), 106 deletions(-)
create mode 100644 programs/other/t_edit/info/ini_files.syn
create mode 100644 programs/other/t_edit_synt/build.bat
create mode 100644 programs/other/t_edit_synt/readme.htm
create mode 100644 programs/other/t_edit_synt/te_data.inc
create mode 100644 programs/other/t_edit_synt/te_syntax.asm
create mode 100644 programs/other/t_edit_synt/te_syntax.png
create mode 100644 programs/other/t_edit_synt/te_work.inc
diff --git a/programs/develop/libraries/box_lib/trunk/box_lib.mac b/programs/develop/libraries/box_lib/trunk/box_lib.mac
index 4f35751da6..8034c427ac 100644
--- a/programs/develop/libraries/box_lib/trunk/box_lib.mac
+++ b/programs/develop/libraries/box_lib/trunk/box_lib.mac
@@ -168,6 +168,18 @@ op_flag_en=10b
.flags: dd flags+0 ; 䫠
}
+option_group equ [edi]
+op_left equ [edi+4] ;न 砫 ᮢ
+op_top equ [edi+6] ;न 砫 ᮢ
+op_text_margin equ [edi+8] ;=4 ﭨ אַ㣮쭨 祪
+op_size equ [edi+12] ;12 ࠧ 祪
+op_color equ [edi+16]
+op_border_color equ [edi+20] ; or [edi+4] ;梥 ࠬ checkbox ᠬ⥫쭮
+op_text_color equ [edi+24];[edi+4] ;梥 ⥪
+op_text_ptr equ [edi+28] ;㪠⥫ 砫 ⥪⮢ ப
+op_text_length equ [edi+32]
+op_flags equ [edi+36] ;䫠
+
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;Basic macros for use TreeList ;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
diff --git a/programs/develop/libraries/box_lib/trunk/checkbox.mac b/programs/develop/libraries/box_lib/trunk/checkbox.mac
index 99ada116ff..19424bccb5 100644
--- a/programs/develop/libraries/box_lib/trunk/checkbox.mac
+++ b/programs/develop/libraries/box_lib/trunk/checkbox.mac
@@ -2,20 +2,6 @@
; box_lib.obj
;Checkbox
-ch_struc_size=36
-ch_flag_en=10b ;
-
-ch_left equ [edi] ;
-ch_top equ [edi+2] ;
-ch_text_margin equ [edi+4] ;=4
-ch_size equ [edi+8] ;12
-ch_color equ [edi+12] ; checkbox
-ch_border_color equ [edi+16] ; or [edi+4] ; checkbox
-ch_text_color equ [edi+20] ;[edi+4] ;
-ch_text_ptr equ [edi+24] ;
-ch_text_length equ [edi+28]
-ch_flags equ [edi+32] ;
-
macro use_checkbox_draw
{
check_box_draw:
diff --git a/programs/develop/libraries/box_lib/trunk/doc/t_edit/t_edit.htm b/programs/develop/libraries/box_lib/trunk/doc/t_edit/t_edit.htm
index 88668441b7..98ee2d4dd1 100644
--- a/programs/develop/libraries/box_lib/trunk/doc/t_edit/t_edit.htm
+++ b/programs/develop/libraries/box_lib/trunk/doc/t_edit/t_edit.htm
@@ -41,27 +41,18 @@
tedit
- text_editor , .
+ text_editor , .
, text_editor.
-
+
- (Ctrl+O)/ .
- : / (Ctrl+Z), / (Ctrl+C)/ (Ctrl+V), (Ctrl+F, F3).
- , . , ( F1 ).
-
-
-- , :
- maxChars equ 100002 ;(...+2)
- , maxChars-2
- ( ).
-- . .
-
-
-
+
( ),
, .
@@ -81,10 +72,10 @@ ends
, ( "" ).
'td' - , ,
, .
-'col' - .
+'col' - , ted_text_colors.
- :
+ :
Ctrl+C. ted_buffer, ted_buffer_size.
@@ -280,7 +271,7 @@ stdcall [ted_text_add], tedit0,text_buffer,30,ebx
call [ted_text_colored]
pop edi
- :
+ :
ted_get_text_perv_pos - ( 'perv')
ted_get_text_next_pos - ( 'next')
ted_symbol_not_vis - (
@@ -383,7 +374,7 @@ tedit0: ;
.increase_size dd 225 ;+242
.ptr_free_symb dd ? ;+246 , ( )
- 17.05.10.
+ 30.05.10.