forked from KolibriOS/kolibrios
1) 'box_lib.obj' update 't_edit' version 3
2) 'Text Editor' use new version syntax files git-svn-id: svn://kolibrios.org@2102 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
; <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD>⥬<EFBFBD><E2A5AC><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>⥪<EFBFBD> box_lib.obj
|
||||
; <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> TextEditor <20><><EFBFBD> Kolibri OS
|
||||
; 䠩<> <20><><EFBFBD><E1ABA5><EFBFBD><EFBFBD> ࠧ <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 09.06.2010 IgorA
|
||||
; 䠩<> <20><><EFBFBD><E1ABA5><EFBFBD><EFBFBD> ࠧ <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 22.08.2011 IgorA
|
||||
; <20><> <20><><EFBFBD> <20>ਬ<EFBFBD><E0A8AC><EFBFBD><EFBFBD><EFBFBD> GPL2 <20><>業<EFBFBD><E6A5AD><EFBFBD>
|
||||
|
||||
;input:
|
||||
@@ -37,11 +37,12 @@ struct TexSelect
|
||||
ends
|
||||
|
||||
struct TexColViv
|
||||
Text rb MAX_COLOR_WORD_LEN ; <><E1ABAE> <20><><EFBFBD> <20><><EFBFBD>ᢥ⪨
|
||||
f1 dd 0 ; <20><>ࠢ<EFBFBD><E0A0A2> <20><> <><E1ABAE>
|
||||
wwo db ? ; whole words only
|
||||
endc db ? ; ᨬ<><E1A8AC><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20>뤥<EFBFBD><EBA4A5><EFBFBD><EFBFBD><EFBFBD> (wwo&4)
|
||||
color db ? ; <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 梥<><E6A2A5>
|
||||
Text rb MAX_COLOR_WORD_LEN ; <><E1ABAE> <20><><EFBFBD> <20><><EFBFBD>ᢥ⪨
|
||||
f1 dd 0 ; <20><>ࠢ<EFBFBD><E0A0A2> <20><> <><E1ABAE>
|
||||
flags db ? ; f1+4 䫠<><E4ABA0> <20>ᯮ<EFBFBD><E1AFAE><EFBFBD>㥬<EFBFBD><E3A5AC> <20><><EFBFBD> <20>뤥<EFBFBD><EBA4A5><EFBFBD><EFBFBD><EFBFBD>
|
||||
endc db ? ; f1+5 ᨬ<><E1A8AC><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20>뤥<EFBFBD><EBA4A5><EFBFBD><EFBFBD><EFBFBD> (<EFBFBD>ᯮ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> flags&4)
|
||||
escc db ? ; f1+6 <20><>࠭<EFBFBD><E0A0AD><EFBFBD><EFBFBD>騩 ᨬ<><E1A8AC><EFBFBD> (<28>ᯮ<EFBFBD><E1AFAE><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> flags&4)
|
||||
color db ? ; f1+7 <20><><EFBFBD><EFBFBD><EFBFBD> 梥<><E6A2A5>
|
||||
ends
|
||||
|
||||
struct symbol
|
||||
@@ -807,10 +808,10 @@ proc ted_init_syntax_file, edit:dword, file:dword, f_name:dword
|
||||
loop @b
|
||||
|
||||
;init: ted_help_text_f1
|
||||
mov ecx,ted_key_words_count
|
||||
imul ecx,sizeof.TexColViv
|
||||
add ecx,ted_key_words_data
|
||||
mov ted_help_text_f1,ecx
|
||||
mov ecx,ted_key_words_count ;<3B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>⢮ <20><><EFBFBD>祢<EFBFBD><E7A5A2> <>
|
||||
imul ecx,sizeof.TexColViv ;ࠧ<><E0A0A7><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> 1-<2D> <20><>. <20><>.
|
||||
add ecx,ted_key_words_data ;<3B><>砫<EFBFBD> 䠩<><E4A0A9> <20> <20><>. <20><>.
|
||||
mov ted_help_text_f1,ecx ;<3B><>⪠ <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD> <20><>稭<EFBFBD><E7A8AD><EFBFBD><EFBFBD> ⥪<><E2A5AA> <20><> <20><>ࠢ<EFBFBD><E0A0A2><EFBFBD>
|
||||
|
||||
stdcall ted_init_scroll_bars,edi,1 ;<3B><><EFBFBD>塞 梥<><E6A2A5> <20><><EFBFBD><E0AEAB><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
.no_colors:
|
||||
@@ -972,21 +973,30 @@ ted_iterat_next:
|
||||
|
||||
;input:
|
||||
; bl = symbol end of select
|
||||
; bh = <20><>࠭<EFBFBD><E0A0AD><EFBFBD><EFBFBD>騩 ᨬ<><E1A8AC><EFBFBD> (= 0 <20> <20><><EFBFBD> <20><EFBFBD>ન <20><> <20><><EFBFBD>)
|
||||
; edx = pointer to symbol struct
|
||||
; edi = pointer to tedit struct
|
||||
;description:
|
||||
; <20><><EFBFBD><EFBFBD><EFBFBD> <><E1ABA5><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 㪠<><E3AAA0><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ᨬ<><E1A8AC><EFBFBD><EFBFBD>
|
||||
align 4
|
||||
ted_iterat_next_pos_char:
|
||||
push ax
|
||||
mov al,1 ;<3B>।<EFBFBD><E0A5A4><EFBFBD>騩 ᨬ<><E1A8AC><EFBFBD>, <20><>㦨<EFBFBD> <20><><EFBFBD> <20>ࠢ<EFBFBD><E0A0A2><EFBFBD><EFBFBD><EFBFBD> <20> ᨬ<><E1A8AC><EFBFBD><EFBFBD><EFBFBD> bh
|
||||
@@:
|
||||
cmp bl,byte[edx]
|
||||
je @f
|
||||
je .found
|
||||
.no_found:
|
||||
cmp edx,ted_tex_1
|
||||
jle @f
|
||||
mov al,byte[edx]
|
||||
call ted_iterat_next
|
||||
jmp @b
|
||||
.found:
|
||||
cmp bh,al
|
||||
je .no_found
|
||||
@@:
|
||||
call ted_iterat_next
|
||||
pop ax
|
||||
ret
|
||||
|
||||
;input:
|
||||
@@ -2121,7 +2131,7 @@ endl
|
||||
jne .if_0 ;if(Col[word_n].Text[pos]==0){
|
||||
mov dword[endPos],edx ;eP=i;
|
||||
ColToIndexOffset eax,ebx
|
||||
mov bl,byte[ebx+MAX_COLOR_WORD_LEN+6]
|
||||
mov bl,byte[ebx+MAX_COLOR_WORD_LEN+7]
|
||||
mov byte[f_color],bl ;f_color=Col[word_n].color;
|
||||
|
||||
mov byte[find],1
|
||||
@@ -2171,7 +2181,7 @@ mov byte[find],1
|
||||
btr bx,2 ;3-1
|
||||
jae .if_7e ;if(Col[word_n].wwo&4)
|
||||
ColToIndexOffset eax,ebx
|
||||
mov bl,byte[ebx+MAX_COLOR_WORD_LEN+5]
|
||||
mov bx,word[ebx+MAX_COLOR_WORD_LEN+5]
|
||||
call ted_iterat_next_pos_char
|
||||
cmp edx,ted_tex_1
|
||||
jle .if_7e
|
||||
@@ -3308,7 +3318,7 @@ proc ted_draw_help_f1
|
||||
|
||||
;SetTextColor
|
||||
xor eax,eax
|
||||
mov al,byte[edx+MAX_COLOR_WORD_LEN+6]
|
||||
mov al,byte[edx+MAX_COLOR_WORD_LEN+7]
|
||||
shl ax,2
|
||||
mov ecx,ted_text_colors
|
||||
add ecx,eax
|
||||
@@ -3947,7 +3957,7 @@ proc ted_but_save_file, edit:dword, file:dword, f_name:dword
|
||||
|
||||
stdcall ted_can_save,edi
|
||||
cmp al,0
|
||||
je .no_save
|
||||
; je .no_save
|
||||
|
||||
mov ecx,ted_max_chars
|
||||
invoke mem.alloc,ecx
|
||||
|
Reference in New Issue
Block a user