1,8 → 1,5 |
;£à®¬ ï ¡« £®¤ à®áâì Maxxxx32, Diamond, Heavyiron |
;¨ ¤à㣨¬ ¯à®£à ¬¬¨áâ ¬, â ª¦¥ |
;¥¯«®¢ã «¥ªá¥î (<Lrz> www.lrz.land.ru) |
;£à®¬ ï ¡« £®¤ à®áâì ¢á¥¬, ªâ® ¯®¬®£ «: ª®¤®¬/ᮢ¥â®¬/¤¨§ ©®¬ ... |
|
|
use32 |
org 0x0 |
db 'MENUET01' ;¨¤¥â¨ä. ¨á¯®«ï¥¬®£® ä ©« ¢á¥£¤ 8 ¡ ©â |
18,7 → 15,7 |
maxChars equ 100002 ;(...+2) |
BUF_SIZE equ 4096 ;buffer for copy|paste |
maxSyntaxFileSize equ 410000 |
TOOLBAR_ICONS_SIZE equ 1200*18 |
TOOLBAR_ICONS_SIZE equ 1200*20 |
|
include '../../proc32.inc' |
;include '../../config.inc' |
102,28 → 99,21 |
mov ecx,eax |
mov edi,openfile_path |
cld |
rep movsb ;ª®¯¨à㥬 ¨¬ï ä ©« ¢ ¡ãä¥à edit1 |
rep movsb ;ª®¯¨à㥬 ¨¬ï ä ©« ¢ ¡ãä¥à openfile_path |
|
load_libraries l_libs_start,load_lib_end |
|
;¯à®¢¥àª ᪮«ìª® ã¤ ç® § £ã§¨«¨áì ¡¨¡«¨®â¥ª¨ |
mov ebp,lib0 |
.test_lib_open: |
cmp dword [ebp+ll_struc_size-4],0 |
jz @f |
mcall -1 ;exit not correct |
@@: |
mov ebp,lib1 ; |
cmp dword [ebp+ll_struc_size-4],0 |
jz @f |
mcall -1 ;exit not correct |
@@: |
add ebp,ll_struc_size |
cmp ebp,load_lib_end |
jl .test_lib_open |
|
cmp dword[version_text_edit],3 |
jge @f |
stdcall [mb_create],msgbox_10,thread |
mcall -1 |
@@: |
|
;--------------------------------------------------------------------- |
stdcall [ted_init], tedit0 |
stdcall dword[tl_data_init], tree1 |
130,6 → 120,10 |
|
; OpenDialog initialisation |
stdcall [OpenDialog_Init],OpenDialog_data |
mov eax,[sc.work_button_text] |
mov [PathShow_data_1.font_color],eax |
mov eax,[sc.work_button] |
mov [PathShow_data_1.background_color],eax |
|
; init toolbar file |
load_image_file 'te_icon.png', bmp_icon,TOOLBAR_ICONS_SIZE*2 ;㬮¦¥¨¥ 2 ¤«ï á¥àëå ª®¯®ª |
223,7 → 217,6 |
je @f ;if file names exist |
mov esi,openfile_path |
call strlen ;eax=strlen |
mov [edit1.size],eax |
call but_no_msg_OpenFile |
@@: |
|
276,7 → 269,7 |
mov edx,txtFile |
int 0x40 |
|
stdcall [edit_box_draw], dword edit1 |
stdcall [PathShow_draw], dword PathShow_data_1 |
stdcall [menu_bar_draw], dword menu_data_1 |
|
call draw_but_toolbar |
288,11 → 281,6 |
|
align 4 |
mouse: |
stdcall [edit_box_mouse], dword edit1 |
|
test word [edit1.flags],10b ;ed_focus ;¥á«¨ ¥ ¢ 䮪ãá¥, ¢ë室¨¬ |
jne still |
|
stdcall [ted_mouse], tedit0 |
|
cmp byte[tedit0.panel_id],TED_PANEL_FIND ;if not panel |
313,7 → 301,7 |
je button.exit |
cmp dword[menu_data_1.cursor_out],3 |
jne @f |
stdcall [ted_but_save_file], tedit0,run_file_70,[edit1.text] |
call ted_but_save_file |
@@: |
cmp dword[menu_data_1.cursor_out],2 |
jne @f |
369,26 → 357,6 |
mcall 2 ;¯®«ãç ¥¬ ª®¤ ¦ ⮩ ª« ¢¨è¨ |
stdcall [tl_key], tree1 |
|
test word [edit1.flags],10b;ed_focus ; ¥á«¨ ¥ ¢ 䮪ãá¥, ¢ë室¨¬ |
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 |
|
stdcall KeyConvertToASCII, dword conv_tabl |
stdcall [edit_box_key], dword edit1 |
jmp still |
@@: |
|
test word [edit2.flags],10b;ed_focus ; ¥á«¨ ¥ ¢ 䮪ãá¥, ¢ë室¨¬ |
je @f |
cmp ah,0x80 ;if key up |
431,7 → 399,7 |
@@: |
cmp ah,5 |
jne @f |
stdcall [ted_but_save_file], tedit0,run_file_70,[edit1.text] |
call ted_but_save_file |
@@: |
cmp ah,6 |
jne @f |
493,6 → 461,14 |
jne @f |
stdcall but_synt_show, tedit0 |
@@: |
cmp ah,21 |
jne @f |
stdcall [ted_but_convert_by_table],tedit0,tbl_1251_866 |
@@: |
cmp ah,22 |
jne @f |
stdcall [ted_but_convert_by_table],tedit0,tbl_866_1251 |
@@: |
|
cmp ah,200 |
jne @f |
522,8 → 498,20 |
stdcall dword[tl_data_clear], tree1 |
mcall -1 ;¢ë室 ¨§ ¯à®£à ¬¬ë |
|
PathShow_data_1: |
.type dd 0 ;+0 |
.start_y dw 9 ;+4 |
.start_x dw 222 ;+6 |
.font_size_x dw 6 ;+8 ; 6 - for font 0, 8 - for font 1 |
.area_size_x dw 200 ;+10 |
.font_number dd 0 ;+12 ; 0 - monospace, 1 - variable |
.background_flag dd 1 ;+16 |
.font_color dd 0x0 ;+20 |
.background_color dd 0xffffff ;+24 |
.text_pointer dd openfile_path ;+28 |
.work_area_pointer dd text_work_area ;+32 |
.temp_text_length dd 0 ;+36 |
|
edit1 edit_box 250, 220, 5, 0xffffff, 0xff80, 0xff0000, 0xff, 0x4080, 4090, openfile_path, mouse_dd, 0 |
edit2 edit_box TED_PANEL_WIDTH-1, 0, 20, 0xffffff, 0xff80, 0xff0000, 0xff, 0x4080, 300, buf_find, mouse_dd, 0 |
|
unpac_mem dd 0 |
587,17 → 575,19 |
thread_coords: |
rb 1024 |
stacktop: |
sys_path: |
sys_path: ;¯ãâì ®âªã¤ § ¯ãá⨫áï ¨á¯®«ï¥¬ë© ä ©« |
rb 4096 |
file_name: |
file_name: ;¯ à ¬¥âàë § ¯ã᪠|
rb 4096 |
file_name_rez: |
syntax_path: ;¨¬ï ¯®¤ª«îç ¥¬®£® ä ©« á¨â ªá¨á |
rb 4096 |
plugin_path: |
rb 4096 |
openfile_path: |
openfile_path: ;¯®«ë© ¯ãâì ª ä ©«ã á ª®â®àë¬ ¨¤¥â à ¡®â |
rb 4096 |
filename_area: |
text_work_area: ;¯ãâì ª ä ©«ã, ª®â®àë© ¯®ª §ë¢ ¥âáï ¢ ®ª¥ |
rb 4096 |
filename_area: ;¨¬ï ä ©« ¤«ï ¤¨ «®£ ®âªàëâ¨ï/§ ªàëâ¨ï |
rb 256 |
file_info: |
rb 40 |