2010-04-29 20:27:40 +02:00
|
|
|
|
struct symbol
|
2011-08-26 16:09:59 +02:00
|
|
|
|
c db ? ; +0 ᨬ<EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
col db ? ; +1 梥<EFBFBD>
|
|
|
|
|
perv dd ? ; +2
|
|
|
|
|
next dd ? ; +6 㪠<EFBFBD><EFBFBD>⥫<EFBFBD>
|
|
|
|
|
tc dd ? ;+10 <EFBFBD>६. ᮧ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
td dd ? ;+14 <EFBFBD>६. 㤠<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
2010-04-29 20:27:40 +02:00
|
|
|
|
ends
|
|
|
|
|
|
2019-01-11 11:59:40 +01:00
|
|
|
|
ID_BUT_0 equ 3 ;<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ID <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
|
|
|
|
|
ID_BUT_NEW equ 3
|
|
|
|
|
ID_BUT_OPEN equ 4
|
|
|
|
|
ID_BUT_SAVE equ 5
|
|
|
|
|
ID_BUT_SAVE_AS equ 6
|
|
|
|
|
ID_BUT_SELECT equ 7
|
|
|
|
|
ID_BUT_CUT equ 8
|
|
|
|
|
ID_BUT_COPY equ 9
|
|
|
|
|
ID_BUT_PASTE equ 10
|
|
|
|
|
ID_BUT_FIND equ 11
|
|
|
|
|
ID_BUT_REPLACE equ 12
|
|
|
|
|
ID_BUT_KEY_WORDS equ 13
|
|
|
|
|
ID_BUT_UPPER equ 14
|
|
|
|
|
ID_BUT_LOWER equ 15
|
|
|
|
|
ID_BUT_REVERSE equ 16
|
|
|
|
|
ID_BUT_UNDO equ 17
|
|
|
|
|
ID_BUT_REDO equ 18
|
|
|
|
|
ID_BUT_INVISIBLE equ 19
|
|
|
|
|
ID_BUT_SYNTAX_LIST equ 20
|
|
|
|
|
ID_BUT_SYNTAX_MODE equ 21
|
|
|
|
|
ID_BUT_CONVERT_1251_866 equ 22
|
|
|
|
|
ID_BUT_CONVERT_866_1251 equ 23
|
|
|
|
|
|
|
|
|
|
macro ini_panel b_key,b_id
|
|
|
|
|
{
|
|
|
|
|
stdcall [ini_get_int],file_name,ini_sec_window,b_key,1
|
|
|
|
|
mov byte[panel_but+b_id-ID_BUT_0],al
|
|
|
|
|
}
|
|
|
|
|
|
2010-04-29 20:27:40 +02:00
|
|
|
|
bmp_icon dd 0
|
|
|
|
|
|
2019-01-11 11:59:40 +01:00
|
|
|
|
align 16
|
|
|
|
|
button:
|
|
|
|
|
mcall SF_GET_BUTTON
|
|
|
|
|
cmp ah,ID_BUT_NEW
|
|
|
|
|
jne @f
|
|
|
|
|
call ted_but_new_file
|
|
|
|
|
jmp still
|
|
|
|
|
@@:
|
|
|
|
|
cmp ah,ID_BUT_OPEN
|
|
|
|
|
jne @f
|
|
|
|
|
call ted_but_open_file
|
|
|
|
|
jmp still
|
|
|
|
|
@@:
|
|
|
|
|
cmp ah,ID_BUT_SAVE
|
|
|
|
|
jne @f
|
|
|
|
|
xor eax,eax
|
|
|
|
|
call ted_but_save_file ;<EFBFBD><EFBFBD><EFBFBD>࠭<EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
jmp still
|
|
|
|
|
@@:
|
|
|
|
|
cmp ah,ID_BUT_SAVE_AS
|
|
|
|
|
jne @f
|
|
|
|
|
xor eax,eax
|
|
|
|
|
inc eax
|
|
|
|
|
call ted_but_save_file ;<EFBFBD><EFBFBD><EFBFBD>࠭<EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
jmp still
|
|
|
|
|
@@:
|
|
|
|
|
cmp ah,ID_BUT_SELECT
|
|
|
|
|
jne @f
|
|
|
|
|
stdcall [ted_but_select_word], tedit0
|
|
|
|
|
jmp still
|
|
|
|
|
@@:
|
|
|
|
|
cmp ah,ID_BUT_CUT
|
|
|
|
|
jne @f
|
|
|
|
|
stdcall [ted_but_cut], tedit0
|
|
|
|
|
jmp still
|
|
|
|
|
@@:
|
|
|
|
|
cmp ah,ID_BUT_COPY
|
|
|
|
|
jne @f
|
|
|
|
|
stdcall [ted_but_copy], tedit0
|
|
|
|
|
jmp still
|
|
|
|
|
@@:
|
|
|
|
|
cmp ah,ID_BUT_PASTE
|
|
|
|
|
jne @f
|
|
|
|
|
stdcall [ted_but_paste], tedit0
|
|
|
|
|
jmp still
|
|
|
|
|
@@:
|
|
|
|
|
cmp ah,ID_BUT_FIND
|
|
|
|
|
jne @f
|
2019-01-21 12:39:35 +01:00
|
|
|
|
call but_panel_find
|
2019-01-11 11:59:40 +01:00
|
|
|
|
jmp still
|
|
|
|
|
@@:
|
|
|
|
|
cmp ah,ID_BUT_REPLACE
|
|
|
|
|
jne @f
|
2019-01-21 12:39:35 +01:00
|
|
|
|
call but_panel_replace
|
2019-01-11 11:59:40 +01:00
|
|
|
|
jmp still
|
|
|
|
|
@@:
|
|
|
|
|
cmp ah,ID_BUT_KEY_WORDS
|
|
|
|
|
jne @f
|
|
|
|
|
call but_find_key_w
|
|
|
|
|
jmp still
|
|
|
|
|
@@:
|
|
|
|
|
cmp ah,ID_BUT_UPPER
|
|
|
|
|
jne @f
|
|
|
|
|
stdcall [ted_but_sumb_upper], tedit0
|
|
|
|
|
jmp still
|
|
|
|
|
@@:
|
|
|
|
|
cmp ah,ID_BUT_LOWER
|
|
|
|
|
jne @f
|
|
|
|
|
stdcall [ted_but_sumb_lover], tedit0
|
|
|
|
|
jmp still
|
|
|
|
|
@@:
|
|
|
|
|
cmp ah,ID_BUT_REVERSE
|
|
|
|
|
jne @f
|
|
|
|
|
stdcall [ted_but_reverse], tedit0
|
|
|
|
|
jmp still
|
|
|
|
|
@@:
|
|
|
|
|
cmp ah,ID_BUT_UNDO
|
|
|
|
|
jne @f
|
|
|
|
|
stdcall [ted_but_undo], tedit0
|
|
|
|
|
jmp still
|
|
|
|
|
@@:
|
|
|
|
|
cmp ah,ID_BUT_REDO
|
|
|
|
|
jne @f
|
|
|
|
|
stdcall [ted_but_redo], tedit0
|
|
|
|
|
jmp still
|
|
|
|
|
@@:
|
|
|
|
|
cmp ah,ID_BUT_INVISIBLE
|
|
|
|
|
jne @f
|
|
|
|
|
stdcall but_sumb_invis, tedit0
|
|
|
|
|
jmp still
|
|
|
|
|
@@:
|
|
|
|
|
cmp ah,ID_BUT_SYNTAX_LIST
|
|
|
|
|
jne @f
|
|
|
|
|
stdcall but_use_syntax, tedit0
|
|
|
|
|
jmp still
|
|
|
|
|
@@:
|
|
|
|
|
cmp ah,ID_BUT_SYNTAX_MODE
|
|
|
|
|
jne @f
|
2019-01-21 12:39:35 +01:00
|
|
|
|
stdcall but_panel_choose_syntax, tedit0
|
2019-01-11 11:59:40 +01:00
|
|
|
|
jmp still
|
|
|
|
|
@@:
|
|
|
|
|
cmp ah,ID_BUT_CONVERT_1251_866
|
|
|
|
|
jne @f
|
|
|
|
|
stdcall [ted_but_convert_by_table],tedit0,tbl_1251_866
|
|
|
|
|
jmp still
|
|
|
|
|
@@:
|
|
|
|
|
cmp ah,ID_BUT_CONVERT_866_1251
|
|
|
|
|
jne @f
|
|
|
|
|
stdcall [ted_but_convert_by_table],tedit0,tbl_866_1251
|
|
|
|
|
jmp still
|
|
|
|
|
@@:
|
|
|
|
|
|
|
|
|
|
cmp ah,200
|
|
|
|
|
jne @f
|
|
|
|
|
stdcall ted_but_open_syntax, tedit0
|
|
|
|
|
jmp still
|
|
|
|
|
@@:
|
2019-01-21 12:39:35 +01:00
|
|
|
|
cmp ah,201 ;<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
jne .no_find
|
|
|
|
|
call get_find_options
|
|
|
|
|
stdcall [ted_but_find], tedit0, eax
|
2019-01-11 11:59:40 +01:00
|
|
|
|
jmp still
|
2019-01-21 12:39:35 +01:00
|
|
|
|
.no_find:
|
|
|
|
|
cmp ah,202 ;<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
jne .no_change
|
|
|
|
|
call get_find_options
|
|
|
|
|
stdcall [ted_but_replace], tedit0, buf_replace, eax, 1
|
|
|
|
|
or eax,eax
|
|
|
|
|
jz still
|
|
|
|
|
stdcall [ted_draw], tedit0
|
|
|
|
|
jmp still
|
|
|
|
|
.no_change:
|
|
|
|
|
cmp ah,203
|
|
|
|
|
jne .no_change_a
|
|
|
|
|
call but_replace_all
|
|
|
|
|
jmp still
|
|
|
|
|
.no_change_a:
|
2019-01-11 11:59:40 +01:00
|
|
|
|
|
|
|
|
|
cmp ah,1
|
2019-01-15 13:24:51 +01:00
|
|
|
|
jne @f
|
|
|
|
|
call ted_Exit
|
|
|
|
|
jmp still
|
|
|
|
|
@@:
|
2019-01-11 11:59:40 +01:00
|
|
|
|
|
|
|
|
|
cmp ah,199
|
2019-01-15 13:24:51 +01:00
|
|
|
|
jne still
|
|
|
|
|
call ted_Exit
|
2019-01-11 11:59:40 +01:00
|
|
|
|
jmp still
|
2019-01-15 13:24:51 +01:00
|
|
|
|
|
|
|
|
|
align 4
|
|
|
|
|
ted_Exit:
|
2019-01-11 11:59:40 +01:00
|
|
|
|
cmp dword[wnd_k_words_run],0
|
|
|
|
|
je @f
|
|
|
|
|
push ebx ecx
|
|
|
|
|
mcall SF_SYSTEM, SSF_TERMINATE_THREAD_ID,[wnd_k_words_run]
|
|
|
|
|
pop ecx ebx
|
2019-01-15 13:24:51 +01:00
|
|
|
|
mov dword[wnd_k_words_run],0
|
|
|
|
|
;test eax,eax
|
2019-01-11 11:59:40 +01:00
|
|
|
|
@@:
|
|
|
|
|
cmp dword[exit_code],1
|
|
|
|
|
je @f
|
|
|
|
|
stdcall [ted_can_save], tedit0
|
|
|
|
|
cmp al,1
|
|
|
|
|
jne @f
|
|
|
|
|
stdcall [mb_create],msgbox_2,thread ;message: save buf in file?
|
|
|
|
|
stdcall [mb_setfunctions],msgbox_2E_funct
|
2019-01-15 13:24:51 +01:00
|
|
|
|
ret
|
2019-01-11 11:59:40 +01:00
|
|
|
|
@@:
|
|
|
|
|
stdcall mem.Free,[bmp_icon]
|
|
|
|
|
cmp dword[unpac_mem],0
|
|
|
|
|
je @f
|
|
|
|
|
stdcall mem.Free,[unpac_mem]
|
|
|
|
|
@@:
|
|
|
|
|
stdcall [ted_delete], tedit0
|
|
|
|
|
stdcall [tl_data_clear], tree1
|
|
|
|
|
mcall SF_TERMINATE_PROCESS ;<EFBFBD><EFBFBD>室 <EFBFBD><EFBFBD> <EFBFBD>ணࠬ<EFBFBD><EFBFBD>
|
2019-01-15 13:24:51 +01:00
|
|
|
|
;ret
|
2010-04-29 20:27:40 +02:00
|
|
|
|
|
2019-01-21 12:39:35 +01:00
|
|
|
|
align 4
|
|
|
|
|
get_find_options:
|
|
|
|
|
xor eax,eax
|
|
|
|
|
cmp [opt_gr1],opt1
|
|
|
|
|
je @f
|
|
|
|
|
inc eax
|
|
|
|
|
cmp [opt_gr1],opt2
|
|
|
|
|
je @f
|
|
|
|
|
inc eax
|
|
|
|
|
@@:
|
|
|
|
|
ret
|
|
|
|
|
|
|
|
|
|
align 4
|
|
|
|
|
proc but_replace_all uses ebx ecx edx
|
|
|
|
|
call get_find_options
|
|
|
|
|
mov ebx,eax
|
|
|
|
|
stdcall [ted_but_replace], tedit0, buf_replace, ebx, 1
|
|
|
|
|
xor edx,edx
|
|
|
|
|
or eax,eax
|
|
|
|
|
jz @f
|
|
|
|
|
inc edx
|
|
|
|
|
mov ecx,0x1000
|
|
|
|
|
.cycle0:
|
|
|
|
|
stdcall [ted_but_replace], tedit0, buf_replace, ebx, 0
|
|
|
|
|
or eax,eax
|
|
|
|
|
jz @f
|
|
|
|
|
inc edx
|
|
|
|
|
loop .cycle0
|
|
|
|
|
@@:
|
|
|
|
|
stdcall [ted_draw], tedit0
|
|
|
|
|
mov eax,edx
|
|
|
|
|
ret
|
|
|
|
|
endp
|
|
|
|
|
|
2010-04-29 20:27:40 +02:00
|
|
|
|
;input:
|
|
|
|
|
; al = <EFBFBD><EFBFBD><EFBFBD> <EFBFBD>訡<EFBFBD><EFBFBD>
|
|
|
|
|
align 4
|
|
|
|
|
ted_on_init_synt_err:
|
2012-07-10 13:05:50 +02:00
|
|
|
|
mov byte[msgbox_3.err],'0'
|
|
|
|
|
add byte[msgbox_3.err],al
|
2010-04-29 20:27:40 +02:00
|
|
|
|
stdcall [mb_create],msgbox_3,thread ;message: Can-t open color options file!
|
|
|
|
|
ret
|
|
|
|
|
|
|
|
|
|
align 4
|
|
|
|
|
ted_but_new_file:
|
2014-07-02 18:45:48 +02:00
|
|
|
|
push eax ebx
|
|
|
|
|
stdcall [ted_can_save], tedit0
|
|
|
|
|
cmp al,1
|
|
|
|
|
jne @f
|
|
|
|
|
stdcall [mb_create],msgbox_2,thread ;message: save changes in file?
|
|
|
|
|
stdcall [mb_setfunctions],msgbox_2N_funct
|
|
|
|
|
jmp .ret_f
|
|
|
|
|
@@:
|
|
|
|
|
call On_NewFile
|
|
|
|
|
.ret_f:
|
2015-08-02 01:45:41 +02:00
|
|
|
|
mov byte[openfile_path],0
|
2016-01-20 19:34:38 +01:00
|
|
|
|
mcall SF_SET_CAPTION,1,hed
|
2014-07-02 18:45:48 +02:00
|
|
|
|
pop ebx eax
|
|
|
|
|
ret
|
2009-12-29 00:19:20 +01:00
|
|
|
|
|
2010-04-22 21:39:39 +02:00
|
|
|
|
align 4
|
2009-12-29 00:19:20 +01:00
|
|
|
|
On_NewFile:
|
2014-07-02 18:45:48 +02:00
|
|
|
|
stdcall [ted_clear], tedit0,1
|
|
|
|
|
call draw_but_toolbar
|
|
|
|
|
stdcall [ted_draw], tedit0
|
2019-01-05 12:27:30 +01:00
|
|
|
|
mov dword[openfile_path],0
|
2014-07-02 18:45:48 +02:00
|
|
|
|
ret
|
2009-12-29 00:19:20 +01:00
|
|
|
|
|
2010-04-22 21:39:39 +02:00
|
|
|
|
align 4
|
2009-12-29 00:19:20 +01:00
|
|
|
|
On_SaveAndNewFile:
|
2014-07-02 18:45:48 +02:00
|
|
|
|
push edi
|
|
|
|
|
mov edi, tedit0
|
2010-04-22 21:39:39 +02:00
|
|
|
|
|
2014-07-02 18:45:48 +02:00
|
|
|
|
call ted_but_save_file
|
|
|
|
|
cmp ted_err_save,0
|
|
|
|
|
jne @f
|
|
|
|
|
call On_NewFile
|
|
|
|
|
@@:
|
|
|
|
|
pop edi
|
|
|
|
|
ret
|
|
|
|
|
|
|
|
|
|
align 4
|
|
|
|
|
On_SaveAndOpenFile:
|
|
|
|
|
push edi
|
|
|
|
|
mov edi, tedit0
|
|
|
|
|
|
|
|
|
|
call ted_but_save_file
|
|
|
|
|
cmp ted_err_save,0
|
|
|
|
|
jne @f
|
|
|
|
|
call ted_but_open_file.no_msg
|
|
|
|
|
@@:
|
|
|
|
|
pop edi
|
|
|
|
|
ret
|
|
|
|
|
|
|
|
|
|
align 4
|
|
|
|
|
On_SaveAndExit:
|
|
|
|
|
push edi
|
|
|
|
|
mov edi, tedit0
|
|
|
|
|
|
|
|
|
|
call ted_but_save_file
|
|
|
|
|
cmp ted_err_save,0
|
|
|
|
|
jne @f
|
|
|
|
|
mov dword[exit_code],1
|
|
|
|
|
@@:
|
|
|
|
|
pop edi
|
|
|
|
|
ret
|
|
|
|
|
|
|
|
|
|
align 4
|
|
|
|
|
On_Exit:
|
|
|
|
|
mov dword[exit_code],1
|
|
|
|
|
ret
|
2010-04-22 21:39:39 +02:00
|
|
|
|
|
2010-04-29 20:27:40 +02:00
|
|
|
|
;description:
|
2011-08-22 17:58:27 +02:00
|
|
|
|
; <EFBFBD>㭪<EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 䠩<EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD> ᮮ<EFBFBD>饭<EFBFBD><EFBFBD>
|
2010-04-22 21:39:39 +02:00
|
|
|
|
align 4
|
2019-01-05 12:27:30 +01:00
|
|
|
|
proc but_no_msg_OpenFile uses eax ebx esi
|
2013-11-28 11:35:07 +01:00
|
|
|
|
stdcall [ted_open_file], tedit0,run_file_70,openfile_path
|
2010-04-29 20:27:40 +02:00
|
|
|
|
call ted_messages_after_open_file
|
2019-01-05 12:27:30 +01:00
|
|
|
|
|
|
|
|
|
mov esi,openfile_path
|
|
|
|
|
call strlen
|
|
|
|
|
add esi,eax
|
|
|
|
|
@@: ;横<EFBFBD> <EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD>᪠ <EFBFBD><EFBFBD>砫<EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 䠩<EFBFBD><EFBFBD>
|
|
|
|
|
dec esi
|
|
|
|
|
cmp byte[esi],'/'
|
|
|
|
|
je @f
|
|
|
|
|
cmp byte[esi],0x5c ;'\'
|
|
|
|
|
je @f
|
|
|
|
|
cmp esi,openfile_path
|
|
|
|
|
jg @b
|
|
|
|
|
@@:
|
|
|
|
|
inc esi
|
|
|
|
|
call strlen
|
|
|
|
|
cmp eax,255
|
|
|
|
|
jle @f
|
|
|
|
|
mov eax,255
|
|
|
|
|
@@:
|
|
|
|
|
inc eax ;<EFBFBD><EFBFBD><EFBFBD> 0 <EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD>ப<EFBFBD>
|
|
|
|
|
stdcall mem_cpy, filename_area,esi,eax ;<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>㥬 <EFBFBD><EFBFBD><EFBFBD> 䠩<EFBFBD><EFBFBD> <EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD>࠭<EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
2010-04-29 20:27:40 +02:00
|
|
|
|
ret
|
2019-01-05 12:27:30 +01:00
|
|
|
|
endp
|
2010-04-22 21:39:39 +02:00
|
|
|
|
|
2010-04-29 20:27:40 +02:00
|
|
|
|
;description:
|
|
|
|
|
; <EFBFBD>㭪<EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 䠩<EFBFBD><EFBFBD> <EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ᮮ<EFBFBD>饭<EFBFBD><EFBFBD> (<EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD>⬥<EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>⨥)
|
2010-04-22 21:39:39 +02:00
|
|
|
|
align 4
|
2010-04-29 20:27:40 +02:00
|
|
|
|
ted_but_open_file:
|
2010-05-27 16:46:37 +02:00
|
|
|
|
pushad
|
|
|
|
|
|
2010-04-29 20:27:40 +02:00
|
|
|
|
stdcall [ted_can_save], tedit0
|
|
|
|
|
cmp al,1
|
|
|
|
|
jne @f
|
2014-07-02 18:45:48 +02:00
|
|
|
|
stdcall [mb_create],msgbox_2,thread ;message: save changes in file?
|
|
|
|
|
stdcall [mb_setfunctions],msgbox_2O_funct
|
2010-04-29 20:27:40 +02:00
|
|
|
|
jmp .ret_f
|
2013-03-12 13:51:52 +01:00
|
|
|
|
.no_msg: ;<EFBFBD><EFBFBD>⪠ <EFBFBD><EFBFBD><EFBFBD> <EFBFBD>맮<EFBFBD><EFBFBD> <EFBFBD>㭪樨 <EFBFBD><EFBFBD>१ <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD> ᮮ<EFBFBD>饭<EFBFBD><EFBFBD> msgbox_5
|
|
|
|
|
pushad
|
2010-04-29 20:27:40 +02:00
|
|
|
|
@@:
|
2010-05-27 16:46:37 +02:00
|
|
|
|
|
2010-05-27 17:30:32 +02:00
|
|
|
|
copy_path open_dialog_name,communication_area_default_path,file_name,0
|
2010-05-27 16:46:37 +02:00
|
|
|
|
mov [OpenDialog_data.type],0
|
2010-08-25 11:12:42 +02:00
|
|
|
|
stdcall [OpenDialog_Start],OpenDialog_data
|
2010-05-27 16:46:37 +02:00
|
|
|
|
cmp [OpenDialog_data.status],2
|
|
|
|
|
jne @f
|
2010-05-27 17:30:32 +02:00
|
|
|
|
stdcall mem_spac, msgbox_9.fdp,100
|
|
|
|
|
mov esi,file_name
|
|
|
|
|
call strlen
|
|
|
|
|
cmp eax,100
|
|
|
|
|
jle .no_crop
|
|
|
|
|
mov eax,100
|
|
|
|
|
.no_crop:
|
2019-01-05 12:27:30 +01:00
|
|
|
|
stdcall mem_cpy, msgbox_9.fdp,esi,eax
|
2010-05-27 16:46:37 +02:00
|
|
|
|
stdcall [mb_create],msgbox_9,thread ;message: error run 'open file dialog'
|
|
|
|
|
jmp .ret_f
|
|
|
|
|
@@:
|
2012-06-22 13:36:29 +02:00
|
|
|
|
cmp [OpenDialog_data.status],1
|
2012-04-19 16:29:46 +02:00
|
|
|
|
jne .ret_f
|
2016-01-20 19:34:38 +01:00
|
|
|
|
stdcall auto_open_syntax,[OpenDialog_data.openfile_path]
|
2013-11-28 11:35:07 +01:00
|
|
|
|
stdcall [ted_open_file], tedit0,run_file_70,openfile_path
|
2012-06-22 13:36:29 +02:00
|
|
|
|
call ted_messages_after_open_file
|
2010-04-29 20:27:40 +02:00
|
|
|
|
.ret_f:
|
2010-05-27 16:46:37 +02:00
|
|
|
|
popad
|
2010-04-29 20:27:40 +02:00
|
|
|
|
ret
|
2009-12-29 00:19:20 +01:00
|
|
|
|
|
2016-01-20 19:34:38 +01:00
|
|
|
|
proc auto_open_syntax, of_path:dword
|
|
|
|
|
pushad
|
|
|
|
|
;<EFBFBD>饬 <EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD> 䠩<EFBFBD> <EFBFBD><EFBFBD><EFBFBD>ᢥ⪨ <EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD>뢠<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ⥪<EFBFBD>⮢<EFBFBD><EFBFBD><EFBFBD> 䠩<EFBFBD><EFBFBD>
|
|
|
|
|
mov esi,[of_path]
|
|
|
|
|
call strlen
|
|
|
|
|
mov edx,[of_path]
|
|
|
|
|
add edx,eax
|
|
|
|
|
.f_beg:
|
|
|
|
|
cmp byte[edx],'.'
|
|
|
|
|
je .found
|
|
|
|
|
dec edx
|
|
|
|
|
cmp edx,[of_path]
|
|
|
|
|
jg .f_beg
|
|
|
|
|
.found:
|
|
|
|
|
inc edx ;edx - 㪠<EFBFBD><EFBFBD>⥫<EFBFBD> <EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>७<EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>⮣<EFBFBD> 䠩<EFBFBD><EFBFBD>
|
|
|
|
|
|
|
|
|
|
mov ebx,synt_auto_open
|
|
|
|
|
.cycle_0:
|
|
|
|
|
add ebx,32
|
|
|
|
|
stdcall strcmp,ebx,edx ;<EFBFBD>ࠢ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>७<EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>⮣<EFBFBD> 䠩<EFBFBD><EFBFBD> <EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD>祭<EFBFBD>ﬨ <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>묨 <EFBFBD> ini 䠩<EFBFBD><EFBFBD>
|
|
|
|
|
test eax,eax
|
|
|
|
|
jz .ok
|
|
|
|
|
add ebx,32
|
|
|
|
|
cmp byte[ebx],0
|
|
|
|
|
jne .cycle_0
|
|
|
|
|
jmp .end_0
|
|
|
|
|
.ok: ;<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>⨥ 䠩<EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD>ᢥ⪨ <EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD>ᨬ<EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>७<EFBFBD><EFBFBD>
|
|
|
|
|
sub ebx,32
|
|
|
|
|
stdcall open_unpac_synt_file,ebx
|
|
|
|
|
.end_0:
|
|
|
|
|
popad
|
|
|
|
|
ret
|
|
|
|
|
endp
|
|
|
|
|
|
2019-01-08 17:22:08 +01:00
|
|
|
|
;input:
|
|
|
|
|
; eax <EFBFBD> ࠢ<EFBFBD><EFBFBD>: 0 - <EFBFBD><EFBFBD><EFBFBD>࠭<EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, 1 - <EFBFBD><EFBFBD><EFBFBD>࠭<EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
2013-11-28 11:35:07 +01:00
|
|
|
|
;description:
|
2019-01-05 12:27:30 +01:00
|
|
|
|
; <EFBFBD>㭪<EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD>࠭<EFBFBD><EFBFBD><EFBFBD><EFBFBD> 䠩<EFBFBD><EFBFBD>
|
2013-11-28 11:35:07 +01:00
|
|
|
|
align 4
|
|
|
|
|
proc ted_but_save_file
|
2019-01-08 17:22:08 +01:00
|
|
|
|
or eax,eax
|
|
|
|
|
jnz .init_dlg
|
|
|
|
|
; <EFBFBD><EFBFBD><EFBFBD>࠭塞 <EFBFBD><EFBFBD><EFBFBD> <EFBFBD>맮<EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
2019-01-05 12:27:30 +01:00
|
|
|
|
cmp byte[openfile_path],0
|
2019-01-08 17:22:08 +01:00
|
|
|
|
jne @f
|
|
|
|
|
.init_dlg:
|
|
|
|
|
; <EFBFBD>맮<EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD>࠭<EFBFBD><EFBFBD><EFBFBD><EFBFBD> 䠩<EFBFBD><EFBFBD>
|
|
|
|
|
copy_path open_dialog_name,communication_area_default_path,file_name,0
|
|
|
|
|
mov [OpenDialog_data.type],1
|
|
|
|
|
stdcall [OpenDialog_Start],OpenDialog_data
|
|
|
|
|
cmp [OpenDialog_data.status],1 ;if status==1 then save
|
|
|
|
|
jne .end_save
|
2019-01-05 12:27:30 +01:00
|
|
|
|
@@:
|
2015-11-16 23:49:42 +01:00
|
|
|
|
stdcall [ted_save_file],tedit0,run_file_70,openfile_path
|
2019-01-05 12:27:30 +01:00
|
|
|
|
.end_save:
|
2013-11-28 11:35:07 +01:00
|
|
|
|
ret
|
|
|
|
|
endp
|
|
|
|
|
|
2011-08-22 17:58:27 +02:00
|
|
|
|
;description:
|
|
|
|
|
; <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
2010-05-27 17:30:32 +02:00
|
|
|
|
align 4
|
2019-01-05 12:27:30 +01:00
|
|
|
|
proc mem_cpy uses ecx esi edi, destination:dword, source:dword, len:dword
|
2015-11-16 23:49:42 +01:00
|
|
|
|
cld
|
2019-01-08 17:22:08 +01:00
|
|
|
|
mov esi,[source]
|
|
|
|
|
mov edi,[destination]
|
|
|
|
|
mov ecx,[len]
|
2015-11-16 23:49:42 +01:00
|
|
|
|
rep movsb
|
|
|
|
|
ret
|
2010-05-27 17:30:32 +02:00
|
|
|
|
endp
|
|
|
|
|
|
2011-08-22 17:58:27 +02:00
|
|
|
|
;description:
|
|
|
|
|
; <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
2010-05-27 17:30:32 +02:00
|
|
|
|
align 4
|
2015-11-16 23:49:42 +01:00
|
|
|
|
proc mem_spac uses eax ecx edi, mem:dword, len:dword
|
|
|
|
|
cld
|
|
|
|
|
mov al,' '
|
2019-01-08 17:22:08 +01:00
|
|
|
|
mov edi,[mem]
|
|
|
|
|
mov ecx,[len]
|
2015-11-16 23:49:42 +01:00
|
|
|
|
repne stosb
|
|
|
|
|
ret
|
2010-05-27 17:30:32 +02:00
|
|
|
|
endp
|
|
|
|
|
|
2009-12-29 00:19:20 +01:00
|
|
|
|
;input:
|
2010-04-29 20:27:40 +02:00
|
|
|
|
; eax = <EFBFBD><EFBFBD><EFBFBD> <EFBFBD>訡<EFBFBD><EFBFBD>
|
|
|
|
|
; ebx = <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>⢮ <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>⠭<EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
2010-04-22 21:39:39 +02:00
|
|
|
|
align 4
|
2010-04-29 20:27:40 +02:00
|
|
|
|
ted_messages_after_open_file:
|
2012-07-05 14:56:32 +02:00
|
|
|
|
push ecx edi
|
2010-04-29 20:27:40 +02:00
|
|
|
|
cmp eax,0
|
|
|
|
|
je @f
|
|
|
|
|
cmp ax,10
|
|
|
|
|
jl .zifra_0_9
|
|
|
|
|
mov al,'?'
|
|
|
|
|
sub ax,48
|
|
|
|
|
.zifra_0_9:
|
|
|
|
|
add ax,48
|
|
|
|
|
|
|
|
|
|
mov byte[msgbox_4.err],al
|
|
|
|
|
stdcall [mb_create],msgbox_4,thread ;message: Can-t open text file!
|
|
|
|
|
jmp .ret_f
|
|
|
|
|
@@:
|
|
|
|
|
cmp ebx,-1
|
|
|
|
|
je .ret_f
|
|
|
|
|
;if open file
|
2012-07-05 14:56:32 +02:00
|
|
|
|
mov edi,tedit0
|
2010-04-29 20:27:40 +02:00
|
|
|
|
mov ecx,ted_max_chars
|
|
|
|
|
sub ecx,2 ;ecx = <EFBFBD><EFBFBD><EFBFBD>ᨬ<EFBFBD><EFBFBD>쭮<EFBFBD> <EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD>뫠 <EFBFBD>뤥<EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
cmp ebx,ecx
|
|
|
|
|
jl .ret_f
|
|
|
|
|
stdcall [mb_create],msgbox_1,thread
|
|
|
|
|
.ret_f:
|
2012-07-05 14:56:32 +02:00
|
|
|
|
pop edi ecx
|
2010-04-29 20:27:40 +02:00
|
|
|
|
ret
|
2009-12-29 00:19:20 +01:00
|
|
|
|
|
2010-04-29 20:27:40 +02:00
|
|
|
|
align 4
|
|
|
|
|
ted_save_err_msg:
|
|
|
|
|
mov byte[msgbox_6.err],al
|
|
|
|
|
stdcall [mb_create],msgbox_6,thread ;message: Can-t save text file!
|
|
|
|
|
ret
|
2009-12-29 00:19:20 +01:00
|
|
|
|
|
2011-08-22 17:58:27 +02:00
|
|
|
|
;description:
|
|
|
|
|
; <EFBFBD>㭪<EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> [<EFBFBD>ਬ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>] <EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ᨭ⠪<EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
2010-04-22 21:39:39 +02:00
|
|
|
|
align 4
|
2012-05-31 18:49:37 +02:00
|
|
|
|
proc ted_but_open_syntax uses eax ebx ecx edi, edit:dword
|
|
|
|
|
mov edi,dword[edit]
|
|
|
|
|
cmp ted_panel_id,TED_PANEL_SYNTAX
|
|
|
|
|
jne @f
|
|
|
|
|
stdcall dword[tl_node_get_data], tree1
|
2015-11-11 00:11:17 +01:00
|
|
|
|
mov [fn_col_option],eax
|
2016-01-20 19:34:38 +01:00
|
|
|
|
stdcall open_unpac_synt_file,eax
|
2012-05-31 23:54:13 +02:00
|
|
|
|
cmp ebx,-1
|
|
|
|
|
je @f
|
|
|
|
|
|
2012-05-31 18:49:37 +02:00
|
|
|
|
call [ted_text_colored]
|
|
|
|
|
stdcall [ted_draw],edi
|
|
|
|
|
@@:
|
|
|
|
|
ret
|
2010-04-22 21:39:39 +02:00
|
|
|
|
endp
|
|
|
|
|
|
2012-05-31 23:54:13 +02:00
|
|
|
|
;<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>⨥ <EFBFBD> <EFBFBD><EFBFBD>ᯠ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 䠩<EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD>ᢥ⪨ ᨭ⠪<EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
2012-07-10 13:05:50 +02:00
|
|
|
|
;input:
|
2016-01-20 19:34:38 +01:00
|
|
|
|
; f_name - 㪠<EFBFBD><EFBFBD>⥫<EFBFBD> <EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD>뢠<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 䠩<EFBFBD><EFBFBD> ᨭ⠪<EFBFBD><EFBFBD><EFBFBD><EFBFBD> (<EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> info)
|
2012-05-31 23:54:13 +02:00
|
|
|
|
;output:
|
|
|
|
|
; ebx - <EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>⠭<EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD> 䠩<EFBFBD><EFBFBD>
|
2012-07-10 13:05:50 +02:00
|
|
|
|
; ecx - ࠧ<EFBFBD><EFBFBD>蠥<EFBFBD><EFBFBD><EFBFBD>
|
2012-05-31 23:54:13 +02:00
|
|
|
|
align 4
|
2016-01-20 19:34:38 +01:00
|
|
|
|
proc open_unpac_synt_file uses eax edi esi, f_name:dword
|
|
|
|
|
mov ebx,[f_name]
|
2012-07-10 13:05:50 +02:00
|
|
|
|
mov edi,last_open_synt_file
|
|
|
|
|
stdcall strcmp,ebx,edi ;<EFBFBD>ࠢ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>祭<EFBFBD><EFBFBD><EFBFBD><EFBFBD> 䠩<EFBFBD><EFBFBD> <EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>祭<EFBFBD><EFBFBD><EFBFBD> ࠭<EFBFBD><EFBFBD> 䠩<EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
test eax,eax
|
|
|
|
|
jz @f
|
|
|
|
|
|
|
|
|
|
;<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>㥬 <EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>祭<EFBFBD><EFBFBD><EFBFBD><EFBFBD> 䠩<EFBFBD><EFBFBD> (<EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>祭<EFBFBD><EFBFBD>)
|
|
|
|
|
mov esi,ebx
|
2016-01-20 19:34:38 +01:00
|
|
|
|
mov ecx,32/4
|
2012-07-10 13:05:50 +02:00
|
|
|
|
cld
|
2016-01-20 19:34:38 +01:00
|
|
|
|
rep movsd
|
2012-07-10 13:05:50 +02:00
|
|
|
|
|
2013-11-28 11:35:07 +01:00
|
|
|
|
copy_path ebx,fn_syntax_dir,syntax_path,0
|
|
|
|
|
copy_path syntax_path,sys_path,file_name,0
|
2012-05-31 23:54:13 +02:00
|
|
|
|
mov edi, tedit0
|
2016-01-20 19:34:38 +01:00
|
|
|
|
mov [run_file_70.Function], SSF_READ_FILE
|
2012-05-31 23:54:13 +02:00
|
|
|
|
mov [run_file_70.Position], 0
|
|
|
|
|
mov [run_file_70.Flags], 0
|
|
|
|
|
mov ecx, ted_syntax_file_size
|
|
|
|
|
mov dword[run_file_70.Count], ecx
|
|
|
|
|
m2m dword[run_file_70.Buffer], ted_syntax_file
|
|
|
|
|
mov byte[run_file_70+20], 0
|
|
|
|
|
mov [run_file_70.FileName], file_name
|
2016-01-20 19:34:38 +01:00
|
|
|
|
mcall SF_FILE, run_file_70
|
2012-05-31 23:54:13 +02:00
|
|
|
|
cmp ebx,-1
|
|
|
|
|
jne .end_0
|
|
|
|
|
call ted_on_init_synt_err
|
|
|
|
|
jmp @f
|
|
|
|
|
.end_0:
|
|
|
|
|
mov eax,ted_syntax_file
|
|
|
|
|
cmp dword[eax],'KPCK'
|
|
|
|
|
jne .end_unpack
|
|
|
|
|
cmp dword[eax+4],ecx
|
|
|
|
|
jg @f ;<EFBFBD> <EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD>ᯠ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 䠩<EFBFBD><EFBFBD> <EFBFBD><EFBFBD> 墠⠥<EFBFBD> <EFBFBD>뤥<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
cmp dword[unpac_mem],0
|
|
|
|
|
jne .end_1
|
|
|
|
|
;<EFBFBD>뤥<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD>ᯠ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 䠩<EFBFBD><EFBFBD>
|
|
|
|
|
stdcall mem.Alloc,ecx
|
|
|
|
|
mov [unpac_mem],eax
|
|
|
|
|
.end_1:
|
|
|
|
|
stdcall unpack,ted_syntax_file,[unpac_mem]
|
|
|
|
|
mov edi,ted_syntax_file
|
|
|
|
|
mov esi,[unpac_mem]
|
|
|
|
|
mov ecx,[edi+4]
|
|
|
|
|
cld
|
|
|
|
|
rep movsb
|
|
|
|
|
.end_unpack:
|
|
|
|
|
stdcall [ted_init_syntax_file], tedit0
|
|
|
|
|
@@:
|
|
|
|
|
ret
|
2016-01-20 19:34:38 +01:00
|
|
|
|
endp
|
2012-05-31 23:54:13 +02:00
|
|
|
|
|
2011-08-22 17:58:27 +02:00
|
|
|
|
;description:
|
|
|
|
|
; <EFBFBD>맮<EFBFBD>/<EFBFBD><EFBFBD><EFBFBD><EFBFBD>⨥ <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD>᪠
|
2010-04-22 21:39:39 +02:00
|
|
|
|
align 4
|
2019-01-21 12:39:35 +01:00
|
|
|
|
proc but_panel_find uses edi
|
2013-11-28 11:35:07 +01:00
|
|
|
|
mov edi,tedit0
|
2009-12-29 00:19:20 +01:00
|
|
|
|
|
2013-11-28 11:35:07 +01:00
|
|
|
|
cmp ted_panel_id,TED_PANEL_NULL
|
|
|
|
|
je @f
|
|
|
|
|
mov ted_panel_id,TED_PANEL_NULL
|
|
|
|
|
mov ted_wnd_l,0
|
|
|
|
|
jmp .e_if
|
|
|
|
|
@@:
|
|
|
|
|
mov ted_panel_id,TED_PANEL_FIND
|
|
|
|
|
mov ted_wnd_l,TED_PANEL_WIDTH
|
|
|
|
|
.e_if:
|
|
|
|
|
call EvSize
|
|
|
|
|
stdcall [ted_draw],edi
|
|
|
|
|
ret
|
2010-04-15 17:50:49 +02:00
|
|
|
|
endp
|
2009-12-29 00:19:20 +01:00
|
|
|
|
|
2019-01-21 12:39:35 +01:00
|
|
|
|
;description:
|
|
|
|
|
; <EFBFBD>맮<EFBFBD>/<EFBFBD><EFBFBD><EFBFBD><EFBFBD>⨥ <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
align 4
|
|
|
|
|
proc but_panel_replace uses edi
|
|
|
|
|
mov edi,tedit0
|
|
|
|
|
|
|
|
|
|
cmp ted_panel_id,TED_PANEL_NULL
|
|
|
|
|
je @f
|
|
|
|
|
mov ted_panel_id,TED_PANEL_NULL
|
|
|
|
|
mov ted_wnd_l,0
|
|
|
|
|
jmp .e_if
|
|
|
|
|
@@:
|
|
|
|
|
mov ted_panel_id,TED_PANEL_REPLACE
|
|
|
|
|
mov ted_wnd_l,TED_PANEL_WIDTH
|
|
|
|
|
.e_if:
|
|
|
|
|
call EvSize
|
|
|
|
|
stdcall [ted_draw],edi
|
|
|
|
|
ret
|
|
|
|
|
endp
|
|
|
|
|
|
|
|
|
|
;description:
|
|
|
|
|
; <EFBFBD>맮<EFBFBD>/<EFBFBD><EFBFBD><EFBFBD><EFBFBD>⨥ <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD> 䠩<EFBFBD><EFBFBD><EFBFBD><EFBFBD> ᨭ⠪<EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
align 4
|
|
|
|
|
proc but_panel_choose_syntax uses edi, edit:dword
|
|
|
|
|
mov edi,[edit]
|
|
|
|
|
|
|
|
|
|
cmp ted_panel_id,TED_PANEL_NULL
|
|
|
|
|
je @f
|
|
|
|
|
mov ted_panel_id,TED_PANEL_NULL
|
|
|
|
|
mov ted_wnd_l,0
|
|
|
|
|
jmp .e_if
|
|
|
|
|
@@:
|
|
|
|
|
mov ted_panel_id,TED_PANEL_SYNTAX
|
|
|
|
|
mov ted_wnd_l,TED_PANEL_WIDTH
|
|
|
|
|
.e_if:
|
|
|
|
|
call EvSize
|
|
|
|
|
stdcall [ted_draw],edi
|
|
|
|
|
ret
|
|
|
|
|
endp
|
|
|
|
|
|
2013-11-28 11:35:07 +01:00
|
|
|
|
align 4
|
|
|
|
|
tbl_1251_866:
|
|
|
|
|
rb 128
|
|
|
|
|
db 0, 0, 0, 0, 0, 0, 0, 0, 0,0,0,0,0,0,0,0 ;128
|
|
|
|
|
db 0, 0, 0, 0, 0, 0, 0, 0, 0,0,0,0,0,0,0,0 ;144
|
|
|
|
|
db 0, 0, 0, 0, 0, 0, 0, 0,240,0,0,0,0,0,0,0 ;160
|
|
|
|
|
db 0, 0, 0, 0, 0, 0, 0, 0,241,0,0,0,0,0,0,0 ;176
|
|
|
|
|
db 128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143 ;192
|
|
|
|
|
db 144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159 ;208
|
|
|
|
|
db 160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175 ;224
|
|
|
|
|
db 224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239 ;240
|
|
|
|
|
|
|
|
|
|
align 4
|
|
|
|
|
tbl_866_1251:
|
|
|
|
|
rb 128
|
|
|
|
|
db 192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207 ;128
|
|
|
|
|
db 208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223 ;144
|
|
|
|
|
db 224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239 ;160
|
|
|
|
|
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 ;176
|
|
|
|
|
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 ;192
|
|
|
|
|
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 ;208
|
|
|
|
|
db 240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255 ;224
|
|
|
|
|
db 168,184,0,0,0,0,0,0,0,0,0,0,0,0,0,0 ;240
|
|
|
|
|
|
2010-04-22 21:39:39 +02:00
|
|
|
|
align 4
|
2010-04-29 20:27:40 +02:00
|
|
|
|
ted_on_find_err:
|
|
|
|
|
stdcall [mb_create],msgbox_7,thread ;message: Can not find text
|
|
|
|
|
ret
|
2009-12-29 00:19:20 +01:00
|
|
|
|
|
2011-08-22 17:58:27 +02:00
|
|
|
|
;description:
|
|
|
|
|
; <EFBFBD>㭪<EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD>᪠ <EFBFBD><EFBFBD><EFBFBD><EFBFBD>ଠ樨 <EFBFBD> ᯨ᪥ <EFBFBD><EFBFBD><EFBFBD>祢<EFBFBD><EFBFBD> <EFBFBD>
|
2010-04-22 21:39:39 +02:00
|
|
|
|
align 4
|
2010-04-29 20:27:40 +02:00
|
|
|
|
but_find_key_w:
|
2017-09-29 19:55:03 +02:00
|
|
|
|
cmp dword[wnd_k_words_run],0
|
2013-02-14 22:09:13 +01:00
|
|
|
|
jne @f
|
|
|
|
|
pushad
|
2016-01-20 19:34:38 +01:00
|
|
|
|
mcall SF_CREATE_THREAD,1,prop_start,thread_coords
|
2017-09-29 19:55:03 +02:00
|
|
|
|
mov dword[wnd_k_words_run],eax
|
2013-02-14 22:09:13 +01:00
|
|
|
|
popad
|
|
|
|
|
@@:
|
2011-08-22 17:58:27 +02:00
|
|
|
|
ret
|
2010-04-22 21:39:39 +02:00
|
|
|
|
|
2011-08-22 17:58:27 +02:00
|
|
|
|
;description:
|
|
|
|
|
; <EFBFBD>뤥<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>/<EFBFBD><EFBFBD><EFBFBD><EFBFBD>⨥ <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>⠥<EFBFBD><EFBFBD><EFBFBD> ᨬ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
2010-04-22 21:39:39 +02:00
|
|
|
|
align 4
|
2016-02-16 21:19:26 +01:00
|
|
|
|
proc but_sumb_invis uses edi, edit:dword
|
|
|
|
|
mov edi,dword[edit]
|
|
|
|
|
|
|
|
|
|
xor ted_mode_invis,1
|
|
|
|
|
call draw_but_toolbar
|
|
|
|
|
stdcall [ted_draw],edi
|
|
|
|
|
ret
|
2010-04-22 21:39:39 +02:00
|
|
|
|
endp
|
|
|
|
|
|
2011-08-22 17:58:27 +02:00
|
|
|
|
;description:
|
|
|
|
|
; <EFBFBD>뤥<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>/<EFBFBD><EFBFBD><EFBFBD><EFBFBD>⨥ <EFBFBD><EFBFBD><EFBFBD>祢<EFBFBD><EFBFBD> <EFBFBD>
|
2010-04-22 21:39:39 +02:00
|
|
|
|
align 4
|
2019-01-11 11:59:40 +01:00
|
|
|
|
proc but_use_syntax uses edi, edit:dword
|
2016-02-16 21:19:26 +01:00
|
|
|
|
mov edi,dword[edit]
|
|
|
|
|
|
|
|
|
|
xor ted_mode_color,1
|
|
|
|
|
cmp ted_mode_color,0
|
|
|
|
|
je @f
|
|
|
|
|
call [ted_text_colored]
|
|
|
|
|
@@:
|
|
|
|
|
call draw_but_toolbar
|
|
|
|
|
stdcall [ted_draw],edi
|
|
|
|
|
ret
|
2010-04-22 21:39:39 +02:00
|
|
|
|
endp
|
|
|
|
|
|