2010-05-30 23:27:14 +02:00
|
|
|
|
use32
|
2019-01-15 13:24:51 +01:00
|
|
|
|
org 0
|
2010-05-30 23:27:14 +02:00
|
|
|
|
db 'MENUET01' ;<3B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>. <20>ᯮ<EFBFBD><E1AFAE>塞<EFBFBD><EFA5AC><EFBFBD> 䠩<><E4A0A9> <20>ᥣ<EFBFBD><E1A5A3> 8 <20><><EFBFBD><EFBFBD>
|
2019-01-15 13:24:51 +01:00
|
|
|
|
dd 1, start, i_end, mem, stacktop, file_name, sys_path
|
2010-05-30 23:27:14 +02:00
|
|
|
|
|
|
|
|
|
MAX_COLOR_WORD_LEN equ 40
|
2012-06-23 12:20:38 +02:00
|
|
|
|
BUF_SIZE equ 4096 ;buffer for copy|paste
|
2011-08-20 21:11:46 +02:00
|
|
|
|
CAPT_PATH_WIDTH equ 50 ;<3B><>ਭ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>। ⥪<>⮢<EFBFBD><E2AEA2> <20><><EFBFBD><EFBFBD><EFBFBD>
|
2010-05-30 23:27:14 +02:00
|
|
|
|
|
|
|
|
|
include '../../macros.inc'
|
|
|
|
|
include '../../proc32.inc'
|
2019-01-15 13:24:51 +01:00
|
|
|
|
include '../../KOSfuncs.inc'
|
|
|
|
|
include '../../load_img.inc'
|
2010-05-30 23:27:14 +02:00
|
|
|
|
include '../../develop/libraries/box_lib/trunk/box_lib.mac'
|
2019-01-15 13:24:51 +01:00
|
|
|
|
include '../../system/skincfg/trunk/kglobals.inc'
|
|
|
|
|
include '../../system/skincfg/trunk/unpacker.inc'
|
2010-05-30 23:27:14 +02:00
|
|
|
|
include 'te_data.inc'
|
|
|
|
|
include 'te_work.inc' ;text work functions
|
|
|
|
|
|
2014-07-01 15:46:54 +02:00
|
|
|
|
@use_library_mem mem.Alloc,mem.Free,mem.ReAlloc,dll.Load
|
|
|
|
|
|
|
|
|
|
icon_tl_sys dd 0 ;㪠<><E3AAA0>⥫<EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20>࠭<EFBFBD><E0A0AD><EFBFBD><EFBFBD> <20><><EFBFBD>⥬<EFBFBD><E2A5AC><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
2010-05-30 23:27:14 +02:00
|
|
|
|
|
|
|
|
|
align 4
|
|
|
|
|
start:
|
2019-01-15 13:24:51 +01:00
|
|
|
|
mcall SF_STYLE_SETTINGS,SSF_GET_COLORS,sc,sizeof.system_colors
|
2010-05-30 23:27:14 +02:00
|
|
|
|
|
2019-01-15 13:24:51 +01:00
|
|
|
|
mcall SF_SYS_MISC,SSF_HEAP_INIT
|
2012-06-23 12:20:38 +02:00
|
|
|
|
or eax,eax
|
|
|
|
|
jz button.exit
|
2010-05-30 23:27:14 +02:00
|
|
|
|
|
2019-01-15 13:24:51 +01:00
|
|
|
|
mcall SF_KEYBOARD,SSF_SET_INPUT_MODE,1 ;scan code
|
|
|
|
|
mcall SF_SET_EVENTS_MASK,0xC0000027
|
2010-05-30 23:27:14 +02:00
|
|
|
|
|
2019-01-15 13:24:51 +01:00
|
|
|
|
load_libraries l_libs_start,load_lib_end
|
2010-05-30 23:27:14 +02:00
|
|
|
|
|
2019-01-15 13:24:51 +01:00
|
|
|
|
;<3B><EFBFBD>ઠ <20><> <>쪮 㤠筮 <20><><EFBFBD>㧨<EFBFBD><E3A7A8><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>⥪<EFBFBD>
|
|
|
|
|
cmp dword[lib0+ll_struc_size-4],0
|
2015-11-11 00:11:17 +01:00
|
|
|
|
jz @f
|
|
|
|
|
mcall -1 ;exit not correct
|
|
|
|
|
@@:
|
2010-05-30 23:27:14 +02:00
|
|
|
|
|
|
|
|
|
;---------------------------------------------------------------------
|
2019-01-15 13:24:51 +01:00
|
|
|
|
stdcall [tl_data_init], tree1
|
2014-07-01 15:46:54 +02:00
|
|
|
|
|
|
|
|
|
; <20><>⠥<EFBFBD> 䠩<> <20> <20><><EFBFBD><EFBFBD><EFBFBD>ࠬ<EFBFBD> <20> <20><><EFBFBD><EFBFBD>ﬨ
|
2019-01-15 13:24:51 +01:00
|
|
|
|
include_image_file '..\..\media\log_el\trunk\tl_sys_16.png', icon_tl_sys
|
|
|
|
|
mov eax,[icon_tl_sys]
|
|
|
|
|
mov [tree1.data_img_sys],eax
|
2010-05-30 23:27:14 +02:00
|
|
|
|
;---------------------------------------------------------------------
|
|
|
|
|
; <20><>⠥<EFBFBD> bmp 䠩<> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 㧫<><E3A7AB>
|
2019-01-15 13:24:51 +01:00
|
|
|
|
include_image_file '..\t_edit\tl_nod_16.png', icon_tl_sys
|
|
|
|
|
mov eax,[icon_tl_sys]
|
|
|
|
|
mov [tree1.data_img],eax
|
2010-05-30 23:27:14 +02:00
|
|
|
|
;------------------------------------------------------------------------------
|
2019-01-15 13:24:51 +01:00
|
|
|
|
copy_path fn_syntax_dir,sys_path,file_name,0 ;<3B><>६ <20><><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD> <20> 䠩<><E4A0A9><EFBFBD><EFBFBD> ᨭ⠪<E1A8AD><E2A0AA><EFBFBD><EFBFBD>
|
|
|
|
|
mcall SF_FILE,tree_file_struct
|
|
|
|
|
|
2019-01-23 23:08:19 +01:00
|
|
|
|
cmp ebx,0
|
|
|
|
|
jle .end_dir_init
|
|
|
|
|
mov eax,dir_mem+32+40
|
2019-01-15 13:24:51 +01:00
|
|
|
|
mov ecx,ebx
|
|
|
|
|
@@:
|
|
|
|
|
cmp byte[eax],'.' ;䨫<><E4A8AB><EFBFBD>㥬 䠩<><E4A0A9> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> '.' <20> '..'
|
|
|
|
|
je .filter
|
|
|
|
|
stdcall [tl_node_add],tree1,0x10000,eax ;1*2^16 - <20><><EFBFBD> 1 <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
stdcall [tl_cur_next],tree1
|
|
|
|
|
.filter:
|
|
|
|
|
add eax,304
|
|
|
|
|
loop @b
|
|
|
|
|
stdcall [tl_cur_beg],tree1 ;<3B>⠢<EFBFBD><E2A0A2> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><>砫<EFBFBD> ᯨ᪠
|
|
|
|
|
or dword[tree1.style], tl_cursor_pos_limited ;<3B><>࠭<EFBFBD>稢<EFBFBD><E7A8A2><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20>।<EFBFBD><E0A5A4><EFBFBD><EFBFBD> ᯨ᪠
|
|
|
|
|
.end_dir_init:
|
2010-05-30 23:27:14 +02:00
|
|
|
|
|
2019-01-23 23:08:19 +01:00
|
|
|
|
xor eax,eax
|
|
|
|
|
inc eax
|
|
|
|
|
mov [scrol_w1.type],eax
|
|
|
|
|
mov [scrol_h1.type],eax
|
|
|
|
|
mov [ws_dir_lbox.type],eax
|
|
|
|
|
|
2010-05-30 23:27:14 +02:00
|
|
|
|
;--- load color option file ---
|
|
|
|
|
stdcall [ted_init], tedit0
|
2011-08-20 21:11:46 +02:00
|
|
|
|
mov byte[file_name],0
|
2010-05-30 23:27:14 +02:00
|
|
|
|
|
|
|
|
|
align 4
|
|
|
|
|
red_win:
|
2011-08-20 21:11:46 +02:00
|
|
|
|
call draw_window
|
2010-05-30 23:27:14 +02:00
|
|
|
|
|
|
|
|
|
align 4
|
|
|
|
|
still:
|
2019-01-15 13:24:51 +01:00
|
|
|
|
mcall SF_WAIT_EVENT
|
2010-05-30 23:27:14 +02:00
|
|
|
|
|
|
|
|
|
cmp al,1 ;<3B><><EFBFBD>. <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
|
|
|
|
|
jz red_win
|
|
|
|
|
cmp al,2
|
|
|
|
|
jz key
|
|
|
|
|
cmp al,3
|
|
|
|
|
jz button
|
|
|
|
|
cmp al,6
|
|
|
|
|
jz mouse
|
|
|
|
|
|
|
|
|
|
jmp still
|
|
|
|
|
|
|
|
|
|
|
2011-08-20 21:11:46 +02:00
|
|
|
|
align 4
|
|
|
|
|
draw_window:
|
|
|
|
|
pushad
|
2019-01-15 13:24:51 +01:00
|
|
|
|
mcall SF_REDRAW,SSF_BEGIN_DRAW
|
2011-08-20 21:11:46 +02:00
|
|
|
|
|
|
|
|
|
mov edx,[sc.work]
|
|
|
|
|
or edx,0x33000000
|
|
|
|
|
mov edi,hed
|
2019-01-15 13:24:51 +01:00
|
|
|
|
mcall SF_CREATE_WINDOW,<10,555>,<10,333>
|
2011-08-20 21:11:46 +02:00
|
|
|
|
|
2019-01-15 13:24:51 +01:00
|
|
|
|
mcall SF_THREAD_INFO,procinfo,-1
|
|
|
|
|
mov edi,tedit0 ;<3B><><EFBFBD>祭<EFBFBD><E7A5AD> edi <20>㦭<EFBFBD> <20><><EFBFBD> EvSize <20> ted_wnd_t
|
|
|
|
|
call EvSize
|
2011-08-20 21:11:46 +02:00
|
|
|
|
|
|
|
|
|
mov esi,[sc.work_button];0xd0
|
2019-01-15 13:24:51 +01:00
|
|
|
|
mcall SF_DEFINE_BUTTON,5*65536+90,195*65536+20,200
|
2011-08-20 21:11:46 +02:00
|
|
|
|
|
|
|
|
|
mov ebx,100*65536+85
|
|
|
|
|
mov ecx,195*65536+20
|
|
|
|
|
mov edx,201
|
|
|
|
|
mov esi,0xd00000
|
|
|
|
|
mcall
|
|
|
|
|
|
|
|
|
|
mov ecx,[sc.work_button_text]
|
|
|
|
|
or ecx,0x80000000
|
2019-01-15 13:24:51 +01:00
|
|
|
|
mcall SF_DRAW_TEXT,10*65536+200,,txt_load_f
|
2011-08-20 21:11:46 +02:00
|
|
|
|
|
|
|
|
|
mov ecx,0xffff00
|
|
|
|
|
or ecx,0x80000000
|
2019-01-15 13:24:51 +01:00
|
|
|
|
mcall ,105*65536+200,,txt_save_f
|
2011-08-20 21:11:46 +02:00
|
|
|
|
|
|
|
|
|
mov ecx,[sc.work_text]
|
|
|
|
|
or ecx,0x80000000
|
2019-01-15 13:24:51 +01:00
|
|
|
|
mcall ,195*65536+10,,txt_inp_file
|
2011-08-20 21:11:46 +02:00
|
|
|
|
|
|
|
|
|
add ebx,20
|
|
|
|
|
mov edx,txt_out_file
|
|
|
|
|
int 0x40
|
|
|
|
|
|
2019-01-23 23:08:19 +01:00
|
|
|
|
stdcall [PathShow_draw], PathShow_data_1
|
2011-08-26 16:09:59 +02:00
|
|
|
|
|
2019-01-23 23:08:19 +01:00
|
|
|
|
stdcall [edit_box_draw], edit1
|
|
|
|
|
stdcall [tl_draw], tree1
|
2011-08-20 21:11:46 +02:00
|
|
|
|
|
|
|
|
|
;scroll 1
|
|
|
|
|
mov [ws_dir_lbox.all_redraw],1
|
2019-01-23 23:08:19 +01:00
|
|
|
|
stdcall [scrollbar_ver_draw],ws_dir_lbox
|
2011-08-20 21:11:46 +02:00
|
|
|
|
stdcall [ted_draw], tedit0
|
|
|
|
|
|
2019-01-15 13:24:51 +01:00
|
|
|
|
mcall SF_REDRAW,SSF_END_DRAW
|
|
|
|
|
popad
|
|
|
|
|
ret
|
|
|
|
|
|
|
|
|
|
MIN_M_WND_H equ 100 ;<3B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>쭠<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
|
|
|
|
|
;input:
|
|
|
|
|
; edi = pointer to tedit struct
|
|
|
|
|
align 4
|
|
|
|
|
EvSize:
|
|
|
|
|
pushad
|
|
|
|
|
mov ebx,ted_scr_h
|
|
|
|
|
mov esi,ted_scr_w
|
|
|
|
|
|
|
|
|
|
m2m ted_wnd_w,[procinfo.client_box.width] ;<3B>⠢<EFBFBD><E2A0A2> <20><>ਭ<EFBFBD> <20><><EFBFBD><EFBFBD> ।<><E0A5A4><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ࠢ<><E0A0A2><EFBFBD> <20><>ਭ<EFBFBD> <20>ᥣ<EFBFBD> <20><><EFBFBD><EFBFBD>
|
|
|
|
|
mov eax,ted_wnd_l
|
|
|
|
|
sub ted_wnd_w,eax ;<3B>⭨<EFBFBD><E2ADA8><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <><E1ABA5>
|
|
|
|
|
movzx eax,word[esi+sb_offs_size_x]
|
|
|
|
|
sub ted_wnd_w,eax ;<3B>⭨<EFBFBD><E2ADA8><EFBFBD><EFBFBD> <20><>ਭ<EFBFBD> <20><><EFBFBD><EFBFBD>. <20><><EFBFBD><E0AEAB><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
|
|
|
|
|
m2m ted_wnd_h,[procinfo.client_box.height] ;<3B>⠢<EFBFBD><E2A0A2> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> ।<><E0A5A4><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ࠢ<><E0A0A2><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ᥣ<EFBFBD> <20><><EFBFBD><EFBFBD>
|
|
|
|
|
cmp ted_wnd_h,MIN_M_WND_H
|
|
|
|
|
jg @f
|
|
|
|
|
mov ted_wnd_h,MIN_M_WND_H
|
|
|
|
|
@@:
|
|
|
|
|
|
|
|
|
|
movzx eax,word[ebx+sb_offs_size_y]
|
|
|
|
|
sub ted_wnd_h,eax ;<3B>⭨<EFBFBD><E2ADA8><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>ਧ. <20><><EFBFBD><E0AEAB><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
mov eax,ted_wnd_t
|
|
|
|
|
sub ted_wnd_h,eax ;<3B>⭨<EFBFBD><E2ADA8><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ᢥ<><E1A2A5><EFBFBD>
|
|
|
|
|
|
|
|
|
|
stdcall [ted_init_scroll_bars], tedit0,2
|
2011-08-20 21:11:46 +02:00
|
|
|
|
popad
|
|
|
|
|
ret
|
|
|
|
|
|
2010-05-30 23:27:14 +02:00
|
|
|
|
align 4
|
|
|
|
|
mouse:
|
|
|
|
|
stdcall [tl_mouse],tree1
|
|
|
|
|
stdcall [edit_box_mouse],edit1
|
|
|
|
|
stdcall [ted_mouse], tedit0
|
|
|
|
|
jmp still
|
|
|
|
|
|
2012-06-23 12:20:38 +02:00
|
|
|
|
;output:
|
|
|
|
|
; ah = symbol
|
|
|
|
|
align 4
|
|
|
|
|
proc KeyConvertToASCII, table:dword
|
|
|
|
|
push ebx
|
|
|
|
|
mov ebx,dword[table] ;convert scan to ascii
|
2019-01-29 21:02:48 +01:00
|
|
|
|
shr ax,8
|
2012-06-23 12:20:38 +02:00
|
|
|
|
add bx,ax
|
|
|
|
|
mov ah,byte[ebx]
|
|
|
|
|
pop ebx
|
|
|
|
|
ret
|
|
|
|
|
endp
|
2010-05-30 23:27:14 +02:00
|
|
|
|
|
|
|
|
|
align 4
|
|
|
|
|
key:
|
2019-01-15 13:24:51 +01:00
|
|
|
|
mcall SF_KEYBOARD,SSF_GET_CONTROL_KEYS ;66.3 <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ﭨ<EFBFBD> <20><>ࠢ<EFBFBD><E0A0A2><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
2012-06-23 12:20:38 +02:00
|
|
|
|
xor esi,esi
|
|
|
|
|
mov ecx,1
|
2019-01-15 13:24:51 +01:00
|
|
|
|
test al,3 ;[Shift]
|
2012-06-23 12:20:38 +02:00
|
|
|
|
jz @f
|
|
|
|
|
mov cl,2
|
|
|
|
|
or esi,KM_SHIFT
|
|
|
|
|
@@:
|
|
|
|
|
test al,0x0c ;[Ctrl]
|
|
|
|
|
jz @f
|
|
|
|
|
or esi,KM_CTRL
|
|
|
|
|
@@:
|
|
|
|
|
test al,0x30 ;[Alt]
|
|
|
|
|
jz @f
|
|
|
|
|
mov cl,3
|
|
|
|
|
or esi,KM_ALT
|
|
|
|
|
@@:
|
|
|
|
|
test al,0x80 ;[NumLock]
|
|
|
|
|
jz @f
|
|
|
|
|
or esi,KM_NUMLOCK
|
|
|
|
|
@@:
|
|
|
|
|
|
2019-01-15 13:24:51 +01:00
|
|
|
|
mcall SF_SYSTEM_GET,SSF_KEYBOARD_LAYOUT,,conv_tabl ;26.2 <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>᪫<EFBFBD><E1AAAB><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
mcall SF_GET_KEY
|
2010-05-30 23:27:14 +02:00
|
|
|
|
stdcall [tl_key],tree1
|
2012-06-23 12:20:38 +02:00
|
|
|
|
|
|
|
|
|
test word [edit1.flags],10b;ed_focus ; <20> <20><> <20> 䮪<><E4AEAA><EFBFBD>, <20><>室<EFBFBD><E5AEA4>
|
|
|
|
|
je @f
|
|
|
|
|
cmp ah,0x80 ;if key up
|
|
|
|
|
ja still
|
|
|
|
|
cmp ah,42 ;[Shift] (left)
|
|
|
|
|
je still
|
|
|
|
|
cmp ah,54 ;[Shift] (right)
|
|
|
|
|
je still
|
|
|
|
|
cmp ah,56 ;[Alt]
|
|
|
|
|
je still
|
|
|
|
|
cmp ah,29 ;[Ctrl]
|
|
|
|
|
je still
|
|
|
|
|
cmp ah,69 ;[Pause Break]
|
|
|
|
|
je still
|
|
|
|
|
|
2019-01-15 13:24:51 +01:00
|
|
|
|
stdcall KeyConvertToASCII, conv_tabl
|
2012-06-23 12:20:38 +02:00
|
|
|
|
stdcall [edit_box_key],edit1
|
|
|
|
|
jmp still
|
|
|
|
|
@@:
|
|
|
|
|
|
|
|
|
|
stdcall [ted_key], tedit0, conv_tabl,esi
|
2010-05-30 23:27:14 +02:00
|
|
|
|
jmp still
|
|
|
|
|
|
|
|
|
|
align 4
|
|
|
|
|
button:
|
2019-01-15 13:24:51 +01:00
|
|
|
|
mcall SF_GET_BUTTON
|
2010-05-30 23:27:14 +02:00
|
|
|
|
|
2019-01-15 13:24:51 +01:00
|
|
|
|
cmp ah,200
|
|
|
|
|
jne @f
|
|
|
|
|
call but_OpenSyntax
|
|
|
|
|
@@:
|
|
|
|
|
cmp ah,201
|
|
|
|
|
jne @f
|
|
|
|
|
call but_SaveSyntax
|
|
|
|
|
@@:
|
2010-05-30 23:27:14 +02:00
|
|
|
|
|
2019-01-15 13:24:51 +01:00
|
|
|
|
cmp ah,1
|
|
|
|
|
jne still
|
|
|
|
|
.exit:
|
|
|
|
|
stdcall mem.Free,[options_file]
|
|
|
|
|
stdcall mem.Free,[unpac_mem]
|
|
|
|
|
|
|
|
|
|
stdcall [tl_data_clear], tree1
|
|
|
|
|
stdcall [ted_delete], tedit0
|
|
|
|
|
mcall SF_TERMINATE_PROCESS ;<3B><>室 <20><> <20>ணࠬ<E0AEA3><E0A0AC>
|
2010-05-30 23:27:14 +02:00
|
|
|
|
|
|
|
|
|
align 4
|
|
|
|
|
but_OpenSyntax:
|
2015-11-11 00:11:17 +01:00
|
|
|
|
push eax
|
|
|
|
|
stdcall [tl_node_get_data],tree1
|
|
|
|
|
mov [fn_col_option],eax
|
|
|
|
|
call InitColText
|
|
|
|
|
pop eax
|
|
|
|
|
ret
|
2010-05-30 23:27:14 +02:00
|
|
|
|
|
|
|
|
|
align 4
|
|
|
|
|
but_SaveSyntax:
|
2014-07-01 15:46:54 +02:00
|
|
|
|
stdcall [ted_save_file], tedit0,run_file_70,[edit1.text]
|
2010-05-30 23:27:14 +02:00
|
|
|
|
ret
|
|
|
|
|
|
2019-01-29 21:02:48 +01:00
|
|
|
|
;description:
|
|
|
|
|
; <20>㭪<EFBFBD><E3ADAA><EFBFBD> <20><><EFBFBD>뢠<EFBFBD><EBA2A0><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD>⨨ Ctrl+N,O,F,S,H,G
|
|
|
|
|
align 4
|
|
|
|
|
proc ted_but_ctrl_all uses eax, opt_key:dword
|
|
|
|
|
mov eax,[opt_key]
|
|
|
|
|
cmp al,'N' ;Ctrl+N
|
|
|
|
|
jne @f
|
|
|
|
|
call but_ctrl_n
|
|
|
|
|
jmp .end0
|
|
|
|
|
@@:
|
|
|
|
|
cmp al,'O' ;Ctrl+O
|
|
|
|
|
jne @f
|
|
|
|
|
call but_ctrl_o
|
|
|
|
|
@@:
|
|
|
|
|
;cmp al,'S' ;Ctrl+S
|
|
|
|
|
;cmp al,'F' ;Ctrl+F
|
|
|
|
|
;cmp al,'G' ;Ctrl+G
|
|
|
|
|
;cmp al,'H' ;Ctrl+H
|
|
|
|
|
.end0:
|
|
|
|
|
ret
|
|
|
|
|
endp
|
|
|
|
|
|
2010-05-30 23:27:14 +02:00
|
|
|
|
align 4
|
|
|
|
|
but_ctrl_o:
|
|
|
|
|
push eax
|
|
|
|
|
call get_wnd_in_focus
|
|
|
|
|
cmp eax,0
|
|
|
|
|
je @f
|
|
|
|
|
stdcall [ted_open_file], eax,str_file_70,[edit1.text]
|
|
|
|
|
@@:
|
|
|
|
|
pop eax
|
|
|
|
|
ret
|
|
|
|
|
|
|
|
|
|
;ᮧ<><E1AEA7><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 䠩<><E4A0A9>
|
|
|
|
|
align 4
|
|
|
|
|
but_ctrl_n:
|
|
|
|
|
push eax
|
|
|
|
|
call get_wnd_in_focus
|
|
|
|
|
cmp eax,0
|
|
|
|
|
je @f
|
|
|
|
|
stdcall [ted_clear], eax,1
|
|
|
|
|
stdcall [ted_draw], eax
|
|
|
|
|
@@:
|
|
|
|
|
pop eax
|
|
|
|
|
ret
|
|
|
|
|
|
|
|
|
|
;<3B><>।<EFBFBD><E0A5A4>塞 <20><><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD> ।<><E0A5A4><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> 䮪<><E4AEAA><EFBFBD>
|
|
|
|
|
align 4
|
|
|
|
|
get_wnd_in_focus:
|
|
|
|
|
xor eax,eax
|
|
|
|
|
cmp dword[el_focus],tedit0
|
|
|
|
|
jne @f
|
|
|
|
|
mov eax,tedit0
|
|
|
|
|
@@:
|
|
|
|
|
;cmp dword[el_focus],tedit1
|
|
|
|
|
;jne @f
|
|
|
|
|
; mov eax,tedit1
|
|
|
|
|
;@@:
|
|
|
|
|
ret
|
|
|
|
|
|
2019-01-29 21:02:48 +01:00
|
|
|
|
hed db 'TextEditor syntax file converter 29.01.19',0 ;<3B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
|
2012-06-23 12:20:38 +02:00
|
|
|
|
conv_tabl rb 128 ; ⠡<><E2A0A1><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><E0AEA2><EFBFBD><EFBFBD> scan-<2D><><EFBFBD><EFBFBD> <20> ascii-<2D><><EFBFBD>
|
2010-05-30 23:27:14 +02:00
|
|
|
|
|
2019-01-15 13:24:51 +01:00
|
|
|
|
txt_load_f db '<27><><EFBFBD><EFBFBD>. 䠩<>',0
|
|
|
|
|
txt_save_f db '<27><><EFBFBD><EFBFBD>. 䠩<>',0
|
2011-08-20 21:11:46 +02:00
|
|
|
|
txt_inp_file db '<27><><EFBFBD>. 䠩<>:',0
|
2010-05-30 23:27:14 +02:00
|
|
|
|
txt_out_file db '<27><><EFBFBD>. 䠩<>:',0
|
|
|
|
|
|
2014-07-01 15:46:54 +02:00
|
|
|
|
head_f_i:
|
2019-01-23 23:08:19 +01:00
|
|
|
|
head_f_l db '"System error',0
|
|
|
|
|
err_message_found_lib_0 db 'Sorry I cannot found library ',39,'box_lib.obj',39,'" -tE',0
|
|
|
|
|
err_message_import_0 db 'Error on load import library ',39,'box_lib.obj',39,'" -tW',0
|
|
|
|
|
err_message_found_lib_1 db 'Sorry I cannot found library ',39,'libimg.obj',39,'" -tE',0
|
|
|
|
|
err_message_import_1 db 'Error on load import library ',39,'libimg.obj',39,'" -tW',0
|
2010-05-30 23:27:14 +02:00
|
|
|
|
|
|
|
|
|
;library structures
|
|
|
|
|
l_libs_start:
|
2014-07-01 15:46:54 +02:00
|
|
|
|
lib0 l_libs lib_name_0, sys_path, file_name, system_dir_0, err_message_found_lib_0, head_f_l, import_box_lib,err_message_import_0, head_f_i
|
|
|
|
|
lib1 l_libs lib_name_1, sys_path, file_name, system_dir_1, err_message_found_lib_1, head_f_l, import_libimg,err_message_import_1, head_f_i
|
2010-05-30 23:27:14 +02:00
|
|
|
|
load_lib_end:
|
|
|
|
|
|
2019-01-15 13:24:51 +01:00
|
|
|
|
IncludeIGlobals
|
2010-05-30 23:27:14 +02:00
|
|
|
|
|
2015-11-11 00:11:17 +01:00
|
|
|
|
align 16
|
2010-05-30 23:27:14 +02:00
|
|
|
|
i_end:
|
2019-01-15 13:24:51 +01:00
|
|
|
|
IncludeUGlobals
|
2010-05-30 23:27:14 +02:00
|
|
|
|
procinfo process_information
|
2015-11-11 00:11:17 +01:00
|
|
|
|
rb 1024
|
2010-05-30 23:27:14 +02:00
|
|
|
|
thread:
|
|
|
|
|
rb 1024
|
|
|
|
|
stacktop:
|
|
|
|
|
sys_path:
|
|
|
|
|
rb 4096
|
|
|
|
|
file_name:
|
|
|
|
|
rb 4096
|
|
|
|
|
file_name_rez:
|
|
|
|
|
rb 4096
|
|
|
|
|
mem:
|