2013-11-28 14:35:07 +04:00
|
|
|
|
;<3B><><EFBFBD><E0AEAC><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>୮<EFBFBD><E0ADAE><EFBFBD> <20>ᥬ, <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: <20><><EFBFBD><EFBFBD><EFBFBD>/ᮢ<>⮬/<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ...
|
2009-12-29 02:19:20 +03:00
|
|
|
|
|
|
|
|
|
use32
|
|
|
|
|
org 0x0
|
2010-04-15 19:50:49 +04:00
|
|
|
|
db 'MENUET01' ;<3B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>. <20>ᯮ<EFBFBD><E1AFAE>塞<EFBFBD><EFA5AC><EFBFBD> 䠩<><E4A0A9> <20>ᥣ<EFBFBD><E1A5A3> 8 <20><><EFBFBD><EFBFBD>
|
2016-01-20 21:34:38 +03:00
|
|
|
|
dd 1, start, i_end, mem, stacktop
|
2010-04-15 19:50:49 +04:00
|
|
|
|
dd file_name ; command line
|
2009-12-29 02:19:20 +03:00
|
|
|
|
dd sys_path
|
|
|
|
|
|
|
|
|
|
MAX_COLOR_WORD_LEN equ 40
|
|
|
|
|
maxChars equ 100002 ;(...+2)
|
2012-06-22 15:36:29 +04:00
|
|
|
|
BUF_SIZE equ 4096 ;buffer for copy|paste
|
2010-04-29 22:27:40 +04:00
|
|
|
|
maxSyntaxFileSize equ 410000
|
2013-11-28 14:35:07 +04:00
|
|
|
|
TOOLBAR_ICONS_SIZE equ 1200*20
|
2009-12-29 02:19:20 +03:00
|
|
|
|
|
2010-04-15 19:50:49 +04:00
|
|
|
|
include '../../proc32.inc'
|
2012-06-01 01:54:13 +04:00
|
|
|
|
;include '../../config.inc'
|
2009-12-29 02:19:20 +03:00
|
|
|
|
include '../../macros.inc'
|
2012-11-09 14:42:30 +04:00
|
|
|
|
include '../../dll.inc'
|
2016-01-20 21:34:38 +03:00
|
|
|
|
include '../../KOSfuncs.inc'
|
2010-02-05 14:17:26 +03:00
|
|
|
|
include '../../develop/libraries/box_lib/load_lib.mac'
|
2010-04-15 19:50:49 +04:00
|
|
|
|
include '../../develop/libraries/box_lib/trunk/box_lib.mac'
|
2012-06-01 01:54:13 +04:00
|
|
|
|
include '../../system/desktop/trunk/kglobals.inc'
|
|
|
|
|
include '../../system/desktop/trunk/unpacker.inc'
|
2009-12-30 22:07:50 +03:00
|
|
|
|
include 'lang.inc'
|
2010-05-27 18:46:37 +04:00
|
|
|
|
|
2009-12-29 02:19:20 +03:00
|
|
|
|
include 't_data.inc'
|
2015-08-04 12:52:06 +03:00
|
|
|
|
include 't_menu.inc'
|
2009-12-29 02:19:20 +03:00
|
|
|
|
include 'strlen.inc'
|
|
|
|
|
include 't_draw.inc' ;draw main window functions
|
2010-04-29 22:27:40 +04:00
|
|
|
|
include 't_button.inc' ;text work functions
|
2013-02-15 01:09:13 +04:00
|
|
|
|
include 'wnd_k_words.inc'
|
2009-12-29 02:19:20 +03:00
|
|
|
|
|
2012-04-19 18:29:46 +04:00
|
|
|
|
@use_library_mem mem.Alloc,mem.Free,mem.ReAlloc,dll.Load
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
;<3B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD>㧪<EFBFBD> <20><><EFBFBD><EFBFBD>ࠦ<EFBFBD><E0A0A6><EFBFBD><EFBFBD> <20> <20>ᯮ<EFBFBD>짮<EFBFBD><ECA7AE><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>⥪<EFBFBD> libimg.obj
|
|
|
|
|
;<3B><><EFBFBD> <20>ᯮ<EFBFBD>짮<EFBFBD><ECA7AE><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>㦭<EFBFBD> <20><>६<EFBFBD><E0A5AC><EFBFBD><EFBFBD><EFBFBD>:
|
|
|
|
|
; - run_file_70 FileInfoBlock
|
|
|
|
|
; - image_data dd 0
|
|
|
|
|
macro load_image_file path,buf,size
|
|
|
|
|
{
|
|
|
|
|
;path - <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><>६<EFBFBD><E0A5AC><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><>ப<EFBFBD><E0AEAA><EFBFBD><EFBFBD> <20><>ࠬ<EFBFBD><E0A0AC>
|
|
|
|
|
if path eqtype '' ;<3B><EFBFBD><E0AEA2>塞 <20><><EFBFBD><EFBFBD><EFBFBD> <20><> <20><>ப<EFBFBD><E0AEAA> <20><>ࠬ<EFBFBD><E0A0AC><EFBFBD> path
|
|
|
|
|
jmp @f
|
|
|
|
|
local .path_str
|
|
|
|
|
.path_str db path ;<3B><>ନ<EFBFBD>㥬 <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>६<EFBFBD><E0A5AC><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
db 0
|
|
|
|
|
@@:
|
|
|
|
|
;32 - <20>⠭<EFBFBD><E2A0AD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD>⥬<EFBFBD><E2A5AC><EFBFBD> <20><>⥬
|
2015-11-11 02:11:17 +03:00
|
|
|
|
copy_path .path_str,[32],file_name,0
|
2012-04-19 18:29:46 +04:00
|
|
|
|
else
|
2015-11-11 02:11:17 +03:00
|
|
|
|
copy_path path,[32],file_name,0 ;<3B><>ନ<EFBFBD>㥬 <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20> 䠩<><E4A0A9> <20><><EFBFBD><EFBFBD>ࠦ<EFBFBD><E0A0A6><EFBFBD><EFBFBD>, <20><><EFBFBD>ࠧ㬥<E0A0A7><E3ACA5><EFBFBD><EFBFBD> <20><><EFBFBD> <20><> <20> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20> <20>ணࠬ<E0AEA3><E0A0AC><EFBFBD>
|
2012-04-19 18:29:46 +04:00
|
|
|
|
end if
|
|
|
|
|
|
|
|
|
|
stdcall mem.Alloc, dword size ;<3B>뤥<EFBFBD>塞 <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD>ࠦ<EFBFBD><E0A0A6><EFBFBD><EFBFBD>
|
|
|
|
|
mov [buf],eax
|
|
|
|
|
|
2016-01-20 21:34:38 +03:00
|
|
|
|
mov [run_file_70.Function], SSF_READ_FILE
|
2012-04-19 18:29:46 +04:00
|
|
|
|
mov [run_file_70.Position], 0
|
|
|
|
|
mov [run_file_70.Flags], 0
|
|
|
|
|
mov [run_file_70.Count], dword size
|
2015-11-11 02:11:17 +03:00
|
|
|
|
m2m [run_file_70.Buffer], eax
|
2012-04-19 18:29:46 +04:00
|
|
|
|
mov byte[run_file_70+20], 0
|
|
|
|
|
mov [run_file_70.FileName], file_name
|
2016-01-20 21:34:38 +03:00
|
|
|
|
mcall SF_FILE,run_file_70 ;<3B><><EFBFBD><EFBFBD>㦠<EFBFBD><E3A6A0> 䠩<> <20><><EFBFBD><EFBFBD>ࠦ<EFBFBD><E0A0A6><EFBFBD><EFBFBD>
|
2012-04-19 18:29:46 +04:00
|
|
|
|
cmp ebx,0xffffffff
|
|
|
|
|
je @f
|
|
|
|
|
;<3B><>।<EFBFBD><E0A5A4>塞 <20><><EFBFBD> <20><><EFBFBD><EFBFBD>ࠦ<EFBFBD><E0A0A6><EFBFBD><EFBFBD> <20> <20><>ॢ<EFBFBD><E0A5A2><EFBFBD><EFBFBD> <20><><EFBFBD> <20><> <20>६<EFBFBD><E0A5AC><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> image_data
|
|
|
|
|
stdcall dword[img_decode], dword[buf],ebx,0
|
|
|
|
|
mov dword[image_data],eax
|
|
|
|
|
;<3B>८<EFBFBD>ࠧ㥬 <20><><EFBFBD><EFBFBD>ࠦ<EFBFBD><E0A0A6><EFBFBD><EFBFBD> <20> <20><>ଠ<EFBFBD><E0ACA0> rgb
|
|
|
|
|
stdcall dword[img_to_rgb2], dword[image_data],dword[buf]
|
|
|
|
|
;㤠<>塞 <20>६<EFBFBD><E0A5AC><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> image_data
|
|
|
|
|
stdcall dword[img_destroy], dword[image_data]
|
|
|
|
|
@@:
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
image_data dd 0 ;㪠<><E3AAA0>⥫<EFBFBD> <20><> <20>६<EFBFBD><E0A5AC><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>. <20><><EFBFBD> <20>㦥<EFBFBD> <20>८<EFBFBD>ࠧ<EFBFBD><E0A0A7><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>ࠦ<EFBFBD><E0A0A6><EFBFBD><EFBFBD>
|
|
|
|
|
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>
|
2009-12-29 02:19:20 +03:00
|
|
|
|
|
2010-04-22 23:39:39 +04:00
|
|
|
|
align 4
|
2009-12-29 02:19:20 +03:00
|
|
|
|
start:
|
2016-01-20 21:34:38 +03:00
|
|
|
|
mcall SF_STYLE_SETTINGS,SSF_GET_COLORS,sc,sizeof.sys_colors_new
|
2009-12-29 02:19:20 +03:00
|
|
|
|
|
2016-01-20 21:34:38 +03:00
|
|
|
|
mcall SF_SYS_MISC,SSF_HEAP_INIT
|
2013-11-28 14:35:07 +04:00
|
|
|
|
or eax,eax
|
|
|
|
|
jz button.exit
|
2009-12-29 02:19:20 +03:00
|
|
|
|
|
2016-01-20 21:34:38 +03:00
|
|
|
|
mcall SF_KEYBOARD,SSF_SET_INPUT_MODE,1 ;scan code
|
|
|
|
|
mcall SF_SET_EVENTS_MASK,0xC0000027
|
2009-12-29 02:19:20 +03:00
|
|
|
|
|
2013-11-28 14:35:07 +04:00
|
|
|
|
mov esi,file_name
|
|
|
|
|
call strlen
|
|
|
|
|
mov ecx,eax
|
|
|
|
|
mov edi,openfile_path
|
|
|
|
|
cld
|
|
|
|
|
rep movsb ;<3B><><EFBFBD><EFBFBD><EFBFBD>㥬 <20><><EFBFBD> 䠩<><E4A0A9> <20> <20><><EFBFBD><EFBFBD><EFBFBD> openfile_path
|
2009-12-29 02:19:20 +03:00
|
|
|
|
|
2010-04-22 23:39:39 +04:00
|
|
|
|
load_libraries l_libs_start,load_lib_end
|
2009-12-29 02:19:20 +03:00
|
|
|
|
|
2011-08-22 19:58:27 +04:00
|
|
|
|
;<3B><EFBFBD>ઠ <20><> <>쪮 㤠筮 <20><><EFBFBD>㧨<EFBFBD><E3A7A8><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>⥪<EFBFBD>
|
2013-11-28 14:35:07 +04:00
|
|
|
|
mov ebp,lib0
|
|
|
|
|
.test_lib_open:
|
2010-04-22 23:39:39 +04:00
|
|
|
|
cmp dword [ebp+ll_struc_size-4],0
|
|
|
|
|
jz @f
|
2016-01-20 21:34:38 +03:00
|
|
|
|
mcall SF_TERMINATE_PROCESS ;exit not correct
|
2010-04-22 23:39:39 +04:00
|
|
|
|
@@:
|
2013-11-28 14:35:07 +04:00
|
|
|
|
add ebp,ll_struc_size
|
|
|
|
|
cmp ebp,load_lib_end
|
|
|
|
|
jl .test_lib_open
|
2011-08-22 19:58:27 +04:00
|
|
|
|
|
2010-04-22 23:39:39 +04:00
|
|
|
|
;---------------------------------------------------------------------
|
2010-08-25 13:12:42 +04:00
|
|
|
|
stdcall [ted_init], tedit0
|
|
|
|
|
stdcall dword[tl_data_init], tree1
|
2010-05-27 18:46:37 +04:00
|
|
|
|
|
|
|
|
|
; OpenDialog initialisation
|
2010-08-25 13:12:42 +04:00
|
|
|
|
stdcall [OpenDialog_Init],OpenDialog_data
|
2009-12-29 02:19:20 +03:00
|
|
|
|
|
2015-08-02 17:54:03 +03:00
|
|
|
|
; kmenu initialisation
|
|
|
|
|
stdcall [kmenu_init], sc
|
|
|
|
|
|
|
|
|
|
stdcall [ksubmenu_new]
|
|
|
|
|
mov [main_menu], eax
|
|
|
|
|
|
|
|
|
|
stdcall [ksubmenu_new]
|
|
|
|
|
mov [main_menu_file], eax
|
|
|
|
|
stdcall [kmenuitem_new], KMENUITEM_NORMAL, sz_main_menu_File_New, 3
|
|
|
|
|
stdcall [ksubmenu_add], [main_menu_file], eax
|
|
|
|
|
stdcall [kmenuitem_new], KMENUITEM_NORMAL, sz_main_menu_File_Open, 4
|
|
|
|
|
stdcall [ksubmenu_add], [main_menu_file], eax
|
|
|
|
|
stdcall [kmenuitem_new], KMENUITEM_NORMAL, sz_main_menu_File_Save, 5
|
|
|
|
|
stdcall [ksubmenu_add], [main_menu_file], eax
|
|
|
|
|
stdcall [kmenuitem_new], KMENUITEM_SEPARATOR, 0, 0
|
|
|
|
|
stdcall [ksubmenu_add], [main_menu_file], eax
|
|
|
|
|
stdcall [kmenuitem_new], KMENUITEM_NORMAL, sz_main_menu_File_Exit, 199
|
2015-08-04 12:52:06 +03:00
|
|
|
|
stdcall [ksubmenu_add], [main_menu_file], eax
|
2015-08-02 17:54:03 +03:00
|
|
|
|
stdcall [kmenuitem_new], KMENUITEM_SUBMENU, sz_main_menu_File, [main_menu_file]
|
|
|
|
|
stdcall [ksubmenu_add], [main_menu], eax
|
|
|
|
|
|
2015-08-04 12:52:06 +03:00
|
|
|
|
stdcall [ksubmenu_new]
|
|
|
|
|
mov [main_menu_changes], eax
|
|
|
|
|
stdcall [kmenuitem_new], KMENUITEM_NORMAL, sz_main_menu_Changes_Undo, 16
|
|
|
|
|
stdcall [ksubmenu_add], [main_menu_changes], eax
|
|
|
|
|
stdcall [kmenuitem_new], KMENUITEM_NORMAL, sz_main_menu_Changes_Redo, 17
|
|
|
|
|
stdcall [ksubmenu_add], [main_menu_changes], eax
|
|
|
|
|
stdcall [kmenuitem_new], KMENUITEM_SUBMENU, sz_main_menu_Changes, [main_menu_changes]
|
|
|
|
|
stdcall [ksubmenu_add], [main_menu], eax
|
|
|
|
|
|
|
|
|
|
stdcall [ksubmenu_new]
|
|
|
|
|
mov [main_menu_buf], eax
|
|
|
|
|
stdcall [kmenuitem_new], KMENUITEM_NORMAL, sz_main_menu_Buf_Cut, 7
|
|
|
|
|
stdcall [ksubmenu_add], [main_menu_buf], eax
|
|
|
|
|
stdcall [kmenuitem_new], KMENUITEM_NORMAL, sz_main_menu_Buf_Copy, 8
|
|
|
|
|
stdcall [ksubmenu_add], [main_menu_buf], eax
|
|
|
|
|
stdcall [kmenuitem_new], KMENUITEM_NORMAL, sz_main_menu_Buf_Paste, 9
|
|
|
|
|
stdcall [ksubmenu_add], [main_menu_buf], eax
|
|
|
|
|
stdcall [kmenuitem_new], KMENUITEM_SUBMENU, sz_main_menu_Buf, [main_menu_buf]
|
|
|
|
|
stdcall [ksubmenu_add], [main_menu], eax
|
|
|
|
|
|
2015-09-16 13:24:35 +03:00
|
|
|
|
stdcall [ksubmenu_new]
|
|
|
|
|
mov [main_menu_search], eax
|
|
|
|
|
stdcall [kmenuitem_new], KMENUITEM_NORMAL, sz_main_menu_Search_Text, 10
|
|
|
|
|
stdcall [ksubmenu_add], [main_menu_search], eax
|
|
|
|
|
stdcall [kmenuitem_new], KMENUITEM_NORMAL, sz_main_menu_Search_Keywords, 12
|
|
|
|
|
stdcall [ksubmenu_add], [main_menu_search], eax
|
|
|
|
|
stdcall [kmenuitem_new], KMENUITEM_SUBMENU, sz_main_menu_Search, [main_menu_search]
|
|
|
|
|
stdcall [ksubmenu_add], [main_menu], eax
|
2015-08-04 12:52:06 +03:00
|
|
|
|
|
|
|
|
|
stdcall [ksubmenu_new]
|
|
|
|
|
mov [main_menu_view], eax
|
|
|
|
|
stdcall [kmenuitem_new], KMENUITEM_NORMAL, sz_main_menu_Veiw_UseSyntax, 19
|
|
|
|
|
stdcall [ksubmenu_add], [main_menu_view], eax
|
|
|
|
|
stdcall [kmenuitem_new], KMENUITEM_NORMAL, sz_main_menu_Veiw_ChooseSyntax, 20
|
|
|
|
|
stdcall [ksubmenu_add], [main_menu_view], eax
|
|
|
|
|
stdcall [kmenuitem_new], KMENUITEM_SEPARATOR, 0, 0
|
|
|
|
|
stdcall [ksubmenu_add], [main_menu_view], eax
|
|
|
|
|
stdcall [kmenuitem_new], KMENUITEM_NORMAL, sz_main_menu_Veiw_LineBreak, 18
|
|
|
|
|
stdcall [ksubmenu_add], [main_menu_view], eax
|
|
|
|
|
stdcall [kmenuitem_new], KMENUITEM_SUBMENU, sz_main_menu_View, [main_menu_view]
|
|
|
|
|
stdcall [ksubmenu_add], [main_menu], eax
|
|
|
|
|
|
|
|
|
|
stdcall [ksubmenu_new]
|
|
|
|
|
mov [main_menu_encoding], eax
|
|
|
|
|
stdcall [kmenuitem_new], KMENUITEM_NORMAL, sz_main_menu_Encoding_1251to866, 21
|
|
|
|
|
stdcall [ksubmenu_add], [main_menu_encoding], eax
|
|
|
|
|
stdcall [kmenuitem_new], KMENUITEM_NORMAL, sz_main_menu_Encoding_866to1251, 22
|
|
|
|
|
stdcall [ksubmenu_add], [main_menu_encoding], eax
|
|
|
|
|
stdcall [kmenuitem_new], KMENUITEM_SUBMENU, sz_main_menu_Encoding, [main_menu_encoding]
|
|
|
|
|
stdcall [ksubmenu_add], [main_menu], eax
|
|
|
|
|
|
2012-04-19 18:29:46 +04:00
|
|
|
|
; init toolbar file
|
2013-10-29 16:48:21 +04:00
|
|
|
|
load_image_file 'te_icon.png', bmp_icon,TOOLBAR_ICONS_SIZE*2 ;㬭<><E3ACAD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> 2 <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
mov eax,[bmp_icon]
|
|
|
|
|
add eax,TOOLBAR_ICONS_SIZE
|
|
|
|
|
stdcall img_to_gray, [bmp_icon],eax,(TOOLBAR_ICONS_SIZE)/3
|
2009-12-29 02:19:20 +03:00
|
|
|
|
;---------------------------------------------------------------------
|
2012-04-19 18:29:46 +04:00
|
|
|
|
; <20><>⠥<EFBFBD> 䠩<> <20> <20><><EFBFBD><EFBFBD><EFBFBD>ࠬ<EFBFBD> <20> <20><><EFBFBD><EFBFBD>ﬨ
|
|
|
|
|
load_image_file 'tl_sys_16.png', icon_tl_sys,54+3*256*13
|
|
|
|
|
mov eax,dword[icon_tl_sys]
|
|
|
|
|
mov dword[tree1.data_img_sys],eax
|
2009-12-29 02:19:20 +03:00
|
|
|
|
;---------------------------------------------------------------------
|
2012-04-19 18:29:46 +04:00
|
|
|
|
; <20><>⠥<EFBFBD> 䠩<> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 㧫<><E3A7AB>
|
|
|
|
|
load_image_file 'tl_nod_16.png', icon_tl_sys,54+3*256*2
|
|
|
|
|
mov eax,dword[icon_tl_sys]
|
|
|
|
|
mov dword[tree1.data_img],eax
|
2009-12-29 02:19:20 +03:00
|
|
|
|
;------------------------------------------------------------------------------
|
2015-11-11 02:11:17 +03: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>
|
2016-01-20 21:34:38 +03:00
|
|
|
|
mcall SF_FILE,tree_file_struct
|
2015-11-11 02:11:17 +03:00
|
|
|
|
|
|
|
|
|
cmp ebx,-1
|
|
|
|
|
je .end_dir_init
|
|
|
|
|
mov eax,dir_mem
|
|
|
|
|
add eax,32+4+1+3+4*6+8
|
|
|
|
|
mov ecx,ebx
|
|
|
|
|
@@:
|
|
|
|
|
cmp byte[eax],'.' ;䨫<><E4A8AB><EFBFBD>㥬 䠩<><E4A0A9> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> '.' <20> '..'
|
|
|
|
|
je .filter
|
|
|
|
|
;0x10000 ;1*2^16 - <20><><EFBFBD> 1 <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
stdcall dword[tl_node_add], tree1,0x10000,eax
|
|
|
|
|
stdcall dword[tl_cur_next], tree1
|
|
|
|
|
.filter:
|
|
|
|
|
add eax,304
|
|
|
|
|
loop @b
|
|
|
|
|
stdcall dword[tl_cur_beg],tree1 ;<3B>⠢<EFBFBD><E2A0A2> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><>砫<EFBFBD> ᯨ᪠
|
|
|
|
|
.end_dir_init:
|
2009-12-29 02:19:20 +03:00
|
|
|
|
|
2012-06-22 15:36:29 +04:00
|
|
|
|
;--- load ini file ---
|
2012-07-10 15:05:50 +04:00
|
|
|
|
copy_path ini_name,sys_path,file_name,0
|
2012-06-22 15:36:29 +04:00
|
|
|
|
;window startup pozition
|
|
|
|
|
stdcall dword[ini_get_int],file_name,ini_sec_window,key_window_l,ini_def_window_l
|
|
|
|
|
mov word[wnd_s_pos+2],ax
|
|
|
|
|
stdcall dword[ini_get_int],file_name,ini_sec_window,key_window_w,ini_def_window_w
|
|
|
|
|
mov word[wnd_s_pos],ax
|
|
|
|
|
stdcall dword[ini_get_int],file_name,ini_sec_window,key_window_t,ini_def_window_t
|
|
|
|
|
mov word[wnd_s_pos+6],ax
|
|
|
|
|
stdcall dword[ini_get_int],file_name,ini_sec_window,key_window_h,ini_def_window_h
|
|
|
|
|
mov word[wnd_s_pos+4],ax
|
|
|
|
|
;scrool type
|
|
|
|
|
stdcall dword[ini_get_int],file_name,ini_sec_window,key_scroll_type,ini_def_scroll_type
|
|
|
|
|
mov [wScr.type],eax
|
|
|
|
|
mov [hScr.type],eax
|
|
|
|
|
mov [ws_dir_lbox.type],eax
|
2013-02-15 01:09:13 +04:00
|
|
|
|
mov [w_scr_t3.type],eax
|
2012-06-22 15:36:29 +04:00
|
|
|
|
;symbol size
|
|
|
|
|
stdcall dword[ini_get_int],file_name,ini_sec_window,key_symbol_w,ini_def_symbol_w
|
|
|
|
|
mov dword[tedit0.rec.width],eax
|
|
|
|
|
stdcall dword[ini_get_int],file_name,ini_sec_window,key_symbol_h,ini_def_symbol_h
|
|
|
|
|
mov dword[tedit0.rec.height],eax
|
|
|
|
|
lea eax,[eax+eax*2]
|
|
|
|
|
mov dword[tedit0.rec.top],eax
|
2012-07-10 15:05:50 +04:00
|
|
|
|
;䠩<><E4A0A9><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>७<EFBFBD><E0A5AD>
|
|
|
|
|
xor edx,edx
|
|
|
|
|
mov ebx,synt_auto_open
|
|
|
|
|
@@:
|
|
|
|
|
;<3B><>६ <20><><EFBFBD> 䠩<><E4A0A9>
|
|
|
|
|
stdcall dword[ini_get_str],file_name,ini_sec_options,key_synt_file,ebx,32,ini_def_synt_f
|
|
|
|
|
cmp byte[ebx],0
|
|
|
|
|
je @f
|
|
|
|
|
inc byte[key_synt_file.numb]
|
|
|
|
|
add ebx,32
|
|
|
|
|
;<3B><>६ <20><><EFBFBD><EFBFBD><EFBFBD>७<EFBFBD><E0A5AD>
|
|
|
|
|
stdcall dword[ini_get_str],file_name,ini_sec_options,key_synt_ext,ebx,32,ini_def_synt_f
|
|
|
|
|
inc byte[key_synt_ext.numb]
|
|
|
|
|
add ebx,32
|
|
|
|
|
inc edx
|
|
|
|
|
cmp edx,max_synt_auto_open
|
|
|
|
|
jl @b
|
|
|
|
|
@@:
|
2012-06-22 15:36:29 +04:00
|
|
|
|
|
2009-12-29 02:19:20 +03:00
|
|
|
|
;--- load color option file ---
|
2016-01-20 21:34:38 +03:00
|
|
|
|
stdcall open_unpac_synt_file,[fn_col_option]
|
2009-12-29 02:19:20 +03:00
|
|
|
|
|
|
|
|
|
;--- get cmd line ---
|
2012-06-01 01:54:13 +04:00
|
|
|
|
cmp byte[openfile_path+3],0 ;openfile_path
|
|
|
|
|
je @f ;if file names exist
|
|
|
|
|
mov esi,openfile_path
|
2016-01-20 21:34:38 +03:00
|
|
|
|
stdcall auto_open_syntax,esi
|
2012-06-01 01:54:13 +04:00
|
|
|
|
call strlen ;eax=strlen
|
|
|
|
|
call but_no_msg_OpenFile
|
|
|
|
|
@@:
|
2009-12-29 02:19:20 +03:00
|
|
|
|
|
2012-06-22 15:36:29 +04:00
|
|
|
|
|
|
|
|
|
|
2010-04-22 23:39:39 +04:00
|
|
|
|
align 4
|
2009-12-29 02:19:20 +03:00
|
|
|
|
red_win:
|
2015-11-11 02:11:17 +03:00
|
|
|
|
call draw_window
|
2010-05-27 18:46:37 +04:00
|
|
|
|
|
|
|
|
|
align 4
|
|
|
|
|
still:
|
2016-01-20 21:34:38 +03:00
|
|
|
|
mcall SF_WAIT_EVENT
|
2014-07-02 20:45:48 +04:00
|
|
|
|
cmp dword[exit_code],1
|
|
|
|
|
je button.exit
|
2011-08-26 18:09:59 +04:00
|
|
|
|
|
|
|
|
|
cmp al,1 ;<3B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><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 ;<3B><><EFBFBD><EFBFBD>
|
|
|
|
|
jne @f
|
|
|
|
|
jmp mouse
|
|
|
|
|
@@:
|
|
|
|
|
jmp still
|
2010-05-27 18:46:37 +04:00
|
|
|
|
|
|
|
|
|
align 4
|
|
|
|
|
draw_window:
|
2016-01-20 21:34:38 +03:00
|
|
|
|
mcall SF_REDRAW,SSF_BEGIN_DRAW
|
2011-08-26 18:09:59 +04:00
|
|
|
|
|
|
|
|
|
mov edx,[sc.work]
|
|
|
|
|
or edx,0x73000000
|
2016-01-20 21:34:38 +03:00
|
|
|
|
mcall SF_CREATE_WINDOW,dword[wnd_s_pos],dword[wnd_s_pos+4],,,hed
|
2011-08-26 18:09:59 +04:00
|
|
|
|
|
2016-01-20 21:34:38 +03:00
|
|
|
|
mcall SF_THREAD_INFO,procinfo,-1
|
2011-08-26 18:09:59 +04:00
|
|
|
|
mov edi,tedit0 ;<3B><><EFBFBD>祭<EFBFBD><E7A5AD> edi <20>㦭<EFBFBD> <20><><EFBFBD> EvSize <20> ted_wnd_t
|
|
|
|
|
call EvSize
|
|
|
|
|
|
2015-11-11 02:11:17 +03:00
|
|
|
|
movzx ebx,word[procinfo.client_box.width]
|
2011-08-26 18:09:59 +04:00
|
|
|
|
inc bx
|
2016-01-20 21:34:38 +03:00
|
|
|
|
mcall SF_DRAW_RECT,,ted_wnd_t ;<3B><><EFBFBD>孨<EFBFBD> <20><>אַ㣮<EFACAE>쭨<EFBFBD>, <20><><EFBFBD> <20><><EFBFBD><EFBFBD>⪨ <20><><EFBFBD>孥<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
2013-11-28 14:35:07 +04:00
|
|
|
|
call draw_but_toolbar
|
2015-08-02 17:54:03 +03:00
|
|
|
|
stdcall [kmainmenu_draw], [main_menu]
|
2013-11-28 14:35:07 +04:00
|
|
|
|
stdcall [ted_draw], tedit0
|
2009-12-29 02:19:20 +03:00
|
|
|
|
|
2016-01-20 21:34:38 +03:00
|
|
|
|
mcall SF_REDRAW,SSF_END_DRAW
|
2013-11-28 14:35:07 +04:00
|
|
|
|
ret
|
2009-12-29 02:19:20 +03:00
|
|
|
|
|
2010-04-22 23:39:39 +04:00
|
|
|
|
align 4
|
2009-12-29 02:19:20 +03:00
|
|
|
|
mouse:
|
2015-08-02 17:54:03 +03:00
|
|
|
|
stdcall [kmainmenu_dispatch_cursorevent], [main_menu]
|
2011-08-26 18:09:59 +04:00
|
|
|
|
stdcall [ted_mouse], tedit0
|
2009-12-29 02:19:20 +03:00
|
|
|
|
|
2011-08-26 18:09:59 +04:00
|
|
|
|
cmp byte[tedit0.panel_id],TED_PANEL_FIND ;if not panel
|
|
|
|
|
jne @f
|
|
|
|
|
stdcall [edit_box_mouse], dword edit2
|
|
|
|
|
@@:
|
|
|
|
|
cmp byte[tedit0.panel_id],TED_PANEL_SYNTAX ;if not panel
|
2015-08-02 17:54:03 +03:00
|
|
|
|
jne .mouse_end
|
2011-08-26 18:09:59 +04:00
|
|
|
|
stdcall [tl_mouse], tree1
|
2015-08-02 17:54:03 +03:00
|
|
|
|
.mouse_end:
|
2011-08-26 18:09:59 +04:00
|
|
|
|
jmp still
|
2009-12-29 02:19:20 +03:00
|
|
|
|
;---------------------------------------------------------------------
|
|
|
|
|
|
2010-04-22 23:39:39 +04:00
|
|
|
|
;output:
|
|
|
|
|
; ah = symbol
|
|
|
|
|
align 4
|
2015-11-11 02:11:17 +03:00
|
|
|
|
proc KeyConvertToASCII uses ebx, table:dword
|
|
|
|
|
mov ebx,dword[table] ;convert scan to ascii
|
|
|
|
|
ror ax,8
|
|
|
|
|
xor ah,ah
|
|
|
|
|
add bx,ax
|
|
|
|
|
mov ah,byte[ebx]
|
|
|
|
|
ret
|
2010-04-22 23:39:39 +04:00
|
|
|
|
endp
|
2009-12-29 02:19:20 +03:00
|
|
|
|
|
2010-04-22 23:39:39 +04:00
|
|
|
|
align 4
|
2009-12-29 02:19:20 +03:00
|
|
|
|
key:
|
2016-01-20 21:34:38 +03: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>
|
2010-04-29 22:27:40 +04:00
|
|
|
|
xor esi,esi
|
2010-04-22 23:39:39 +04:00
|
|
|
|
mov ecx,1
|
2009-12-29 02:19:20 +03:00
|
|
|
|
test al,0x03 ;[Shift]
|
|
|
|
|
jz @f
|
2010-04-22 23:39:39 +04:00
|
|
|
|
mov cl,2
|
2010-04-29 22:27:40 +04:00
|
|
|
|
or esi,KM_SHIFT
|
2009-12-29 02:19:20 +03:00
|
|
|
|
@@:
|
|
|
|
|
test al,0x0c ;[Ctrl]
|
|
|
|
|
jz @f
|
2010-04-29 22:27:40 +04:00
|
|
|
|
or esi,KM_CTRL
|
2009-12-29 02:19:20 +03:00
|
|
|
|
@@:
|
|
|
|
|
test al,0x30 ;[Alt]
|
|
|
|
|
jz @f
|
2010-04-22 23:39:39 +04:00
|
|
|
|
mov cl,3
|
2010-04-29 22:27:40 +04:00
|
|
|
|
or esi,KM_ALT
|
2009-12-29 02:19:20 +03:00
|
|
|
|
@@:
|
|
|
|
|
test al,0x80 ;[NumLock]
|
|
|
|
|
jz @f
|
2010-04-29 22:27:40 +04:00
|
|
|
|
or esi,KM_NUMLOCK
|
2009-12-29 02:19:20 +03:00
|
|
|
|
@@:
|
2010-04-29 22:27:40 +04:00
|
|
|
|
|
2016-01-20 21:34:38 +03: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-03 19:12:50 +04:00
|
|
|
|
stdcall [tl_key], tree1
|
2009-12-29 02:19:20 +03:00
|
|
|
|
|
|
|
|
|
test word [edit2.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
|
|
|
|
|
|
2010-04-22 23:39:39 +04:00
|
|
|
|
stdcall KeyConvertToASCII, dword conv_tabl
|
2010-04-15 19:50:49 +04:00
|
|
|
|
stdcall [edit_box_key], dword edit2
|
2009-12-29 02:19:20 +03:00
|
|
|
|
jmp still
|
|
|
|
|
@@:
|
|
|
|
|
|
2010-04-29 22:27:40 +04:00
|
|
|
|
stdcall [ted_key], tedit0, conv_tabl,esi
|
2009-12-29 02:19:20 +03:00
|
|
|
|
jmp still
|
|
|
|
|
|
2010-04-29 22:27:40 +04:00
|
|
|
|
align 4
|
2009-12-29 02:19:20 +03:00
|
|
|
|
button:
|
|
|
|
|
|
2016-01-20 21:34:38 +03:00
|
|
|
|
mcall SF_GET_BUTTON
|
2009-12-29 02:19:20 +03:00
|
|
|
|
cmp ah,3
|
|
|
|
|
jne @f
|
2010-04-29 22:27:40 +04:00
|
|
|
|
call ted_but_new_file
|
2009-12-29 02:19:20 +03:00
|
|
|
|
@@:
|
|
|
|
|
cmp ah,4
|
|
|
|
|
jne @f
|
2010-04-29 22:27:40 +04:00
|
|
|
|
call ted_but_open_file
|
2009-12-29 02:19:20 +03:00
|
|
|
|
@@:
|
|
|
|
|
cmp ah,5
|
|
|
|
|
jne @f
|
2013-11-28 14:35:07 +04:00
|
|
|
|
call ted_but_save_file
|
2009-12-29 02:19:20 +03:00
|
|
|
|
@@:
|
|
|
|
|
cmp ah,6
|
2010-04-22 23:39:39 +04:00
|
|
|
|
jne @f
|
2010-04-29 22:27:40 +04:00
|
|
|
|
stdcall [ted_but_select_word], tedit0
|
2010-04-22 23:39:39 +04:00
|
|
|
|
@@:
|
2009-12-29 02:19:20 +03:00
|
|
|
|
cmp ah,7
|
2010-04-22 23:39:39 +04:00
|
|
|
|
jne @f
|
2010-04-29 22:27:40 +04:00
|
|
|
|
stdcall [ted_but_cut], tedit0
|
2010-04-22 23:39:39 +04:00
|
|
|
|
@@:
|
2009-12-29 02:19:20 +03:00
|
|
|
|
cmp ah,8
|
|
|
|
|
jne @f
|
2010-04-29 22:27:40 +04:00
|
|
|
|
stdcall [ted_but_copy], tedit0
|
2009-12-29 02:19:20 +03:00
|
|
|
|
@@:
|
|
|
|
|
cmp ah,9
|
2010-04-22 23:39:39 +04:00
|
|
|
|
jne @f
|
2010-04-29 22:27:40 +04:00
|
|
|
|
stdcall [ted_but_paste], tedit0
|
2010-04-22 23:39:39 +04:00
|
|
|
|
@@:
|
2009-12-29 02:19:20 +03:00
|
|
|
|
cmp ah,10
|
2010-04-15 19:50:49 +04:00
|
|
|
|
jne @f
|
2010-04-29 22:27:40 +04:00
|
|
|
|
call ted_but_find
|
2010-04-15 19:50:49 +04:00
|
|
|
|
@@:
|
2009-12-29 02:19:20 +03:00
|
|
|
|
cmp ah,11
|
2010-04-22 23:39:39 +04:00
|
|
|
|
jne @f
|
|
|
|
|
call but_replace
|
|
|
|
|
@@:
|
2009-12-29 02:19:20 +03:00
|
|
|
|
cmp ah,12
|
2010-04-22 23:39:39 +04:00
|
|
|
|
jne @f
|
|
|
|
|
call but_find_key_w
|
|
|
|
|
@@:
|
2009-12-29 02:19:20 +03:00
|
|
|
|
cmp ah,13
|
2010-04-22 23:39:39 +04:00
|
|
|
|
jne @f
|
2010-04-29 22:27:40 +04:00
|
|
|
|
stdcall [ted_but_sumb_upper], tedit0
|
2010-04-22 23:39:39 +04:00
|
|
|
|
@@:
|
2009-12-29 02:19:20 +03:00
|
|
|
|
cmp ah,14
|
2010-04-22 23:39:39 +04:00
|
|
|
|
jne @f
|
2010-04-29 22:27:40 +04:00
|
|
|
|
stdcall [ted_but_sumb_lover], tedit0
|
2010-04-22 23:39:39 +04:00
|
|
|
|
@@:
|
2009-12-29 02:19:20 +03:00
|
|
|
|
cmp ah,15
|
2010-04-22 23:39:39 +04:00
|
|
|
|
jne @f
|
2010-04-29 22:27:40 +04:00
|
|
|
|
stdcall [ted_but_reverse], tedit0
|
2010-04-22 23:39:39 +04:00
|
|
|
|
@@:
|
2009-12-29 02:19:20 +03:00
|
|
|
|
cmp ah,16
|
2010-04-22 23:39:39 +04:00
|
|
|
|
jne @f
|
2010-04-29 22:27:40 +04:00
|
|
|
|
stdcall [ted_but_undo], tedit0
|
2010-04-22 23:39:39 +04:00
|
|
|
|
@@:
|
2009-12-29 02:19:20 +03:00
|
|
|
|
cmp ah,17
|
2010-04-22 23:39:39 +04:00
|
|
|
|
jne @f
|
2010-04-29 22:27:40 +04:00
|
|
|
|
stdcall [ted_but_redo], tedit0
|
2010-04-22 23:39:39 +04:00
|
|
|
|
@@:
|
2009-12-29 02:19:20 +03:00
|
|
|
|
cmp ah,18
|
2010-04-22 23:39:39 +04:00
|
|
|
|
jne @f
|
|
|
|
|
stdcall but_sumb_invis, tedit0
|
|
|
|
|
@@:
|
2009-12-29 02:19:20 +03:00
|
|
|
|
cmp ah,19
|
2010-04-22 23:39:39 +04:00
|
|
|
|
jne @f
|
|
|
|
|
stdcall but_k_words_show, tedit0
|
|
|
|
|
@@:
|
2009-12-29 02:19:20 +03:00
|
|
|
|
cmp ah,20
|
2010-04-15 19:50:49 +04:00
|
|
|
|
jne @f
|
|
|
|
|
stdcall but_synt_show, tedit0
|
|
|
|
|
@@:
|
2013-11-28 14:35:07 +04:00
|
|
|
|
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
|
|
|
|
|
@@:
|
2009-12-29 02:19:20 +03:00
|
|
|
|
|
|
|
|
|
cmp ah,200
|
|
|
|
|
jne @f
|
2010-04-22 23:39:39 +04:00
|
|
|
|
stdcall ted_but_open_syntax, tedit0
|
2009-12-29 02:19:20 +03:00
|
|
|
|
@@:
|
|
|
|
|
cmp ah,201
|
|
|
|
|
jne @f
|
2010-04-29 22:27:40 +04:00
|
|
|
|
stdcall [ted_but_find_next], tedit0
|
2009-12-29 02:19:20 +03:00
|
|
|
|
@@:
|
|
|
|
|
|
|
|
|
|
cmp ah,1
|
2015-08-02 17:54:03 +03:00
|
|
|
|
je .exit
|
|
|
|
|
|
|
|
|
|
cmp ah,199
|
|
|
|
|
je .exit
|
|
|
|
|
|
|
|
|
|
jmp still
|
2009-12-29 02:19:20 +03:00
|
|
|
|
.exit:
|
2014-07-02 20:45:48 +04:00
|
|
|
|
cmp dword[exit_code],1
|
|
|
|
|
je @f
|
2012-06-01 01:54:13 +04:00
|
|
|
|
stdcall [ted_can_save], tedit0
|
|
|
|
|
cmp al,1
|
|
|
|
|
jne @f
|
2015-08-04 12:52:06 +03:00
|
|
|
|
stdcall [mb_create],msgbox_2,thread ;message: save buf in file?
|
2014-07-02 20:45:48 +04:00
|
|
|
|
stdcall [mb_setfunctions],msgbox_2E_funct
|
2012-06-01 01:54:13 +04:00
|
|
|
|
jmp still
|
|
|
|
|
@@:
|
|
|
|
|
stdcall mem.Free,[bmp_icon]
|
|
|
|
|
cmp dword[unpac_mem],0
|
|
|
|
|
je @f
|
|
|
|
|
stdcall mem.Free,[unpac_mem]
|
|
|
|
|
@@:
|
|
|
|
|
|
|
|
|
|
stdcall [ted_delete], tedit0
|
2015-11-11 02:11:17 +03:00
|
|
|
|
stdcall [tl_data_clear], tree1
|
2016-01-20 21:34:38 +03:00
|
|
|
|
mcall SF_TERMINATE_PROCESS ;<3B><>室 <20><> <20>ணࠬ<E0AEA3><E0A0AC>
|
2009-12-29 02:19:20 +03:00
|
|
|
|
|
2010-04-29 22:27:40 +04:00
|
|
|
|
edit2 edit_box TED_PANEL_WIDTH-1, 0, 20, 0xffffff, 0xff80, 0xff0000, 0xff, 0x4080, 300, buf_find, mouse_dd, 0
|
2009-12-29 02:19:20 +03:00
|
|
|
|
|
2012-06-01 01:54:13 +04:00
|
|
|
|
unpac_mem dd 0
|
2009-12-29 02:19:20 +03:00
|
|
|
|
|
2009-12-30 22:07:50 +03:00
|
|
|
|
if lang eq ru
|
2012-04-19 18:29:46 +04:00
|
|
|
|
head_f_i:
|
|
|
|
|
head_f_l db '<27><><EFBFBD>⥬<EFBFBD><E2A5AC><EFBFBD> <20>訡<EFBFBD><E8A8A1>',0
|
2010-08-25 13:12:42 +04:00
|
|
|
|
err_message_found_lib0 db '<27><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>⥪<EFBFBD> ',39,'box_lib.obj',39,0
|
|
|
|
|
err_message_import0 db '<27>訡<EFBFBD><E8A8A1> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>⥪<EFBFBD> ',39,'box_lib.obj',39,0
|
|
|
|
|
err_message_found_lib1 db '<27><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>⥪<EFBFBD> ',39,'msgbox.obj',39,0
|
|
|
|
|
err_message_import1 db '<27>訡<EFBFBD><E8A8A1> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>⥪<EFBFBD> ',39,'msgbox.obj',39,0
|
|
|
|
|
err_message_found_lib2 db '<27><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>⥪<EFBFBD> ',39,'proc_lib.obj',39,0
|
|
|
|
|
err_message_import2 db '<27>訡<EFBFBD><E8A8A1> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>⥪<EFBFBD> ',39,'proc_lib.obj',39,0
|
2012-04-19 18:29:46 +04:00
|
|
|
|
err_message_found_lib_3 db '<27><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>⥪<EFBFBD> ',39,'libimg.obj',39,0
|
|
|
|
|
err_message_import_3 db '<27>訡<EFBFBD><E8A8A1> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>⥪<EFBFBD> ',39,'libimg.obj',39,0
|
2012-06-22 15:36:29 +04:00
|
|
|
|
err_message_found_lib_4 db '<27><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>⥪<EFBFBD> ',39,'libini.obj',39,0
|
|
|
|
|
err_message_import_4 db '<27>訡<EFBFBD><E8A8A1> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>⥪<EFBFBD> ',39,'libini.obj',39,0
|
2015-08-02 17:54:03 +03:00
|
|
|
|
err_message_found_lib_5 db '<27><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>⥪<EFBFBD> ',39,'libkmenu.obj',39,0
|
|
|
|
|
err_message_import_5 db '<27>訡<EFBFBD><E8A8A1> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>⥪<EFBFBD> ',39,'libkmenu.obj',39,0
|
2009-12-30 22:07:50 +03:00
|
|
|
|
else
|
2012-04-19 18:29:46 +04:00
|
|
|
|
head_f_i:
|
|
|
|
|
head_f_l db 'System error',0
|
2010-08-25 13:12:42 +04:00
|
|
|
|
err_message_found_lib0 db 'Sorry I cannot found library ',39,'box_lib.obj',39,0
|
|
|
|
|
err_message_import0 db 'Error on load import library ',39,'box_lib.obj',39,0
|
|
|
|
|
err_message_found_lib1 db 'Sorry I cannot found library ',39,'msgbox.obj',39,0
|
|
|
|
|
err_message_import1 db 'Error on load import library ',39,'msgbox.obj',39,0
|
|
|
|
|
err_message_found_lib2 db 'Sorry I cannot found library ',39,'proc_lib.obj',39,0
|
|
|
|
|
err_message_import2 db 'Error on load import library ',39,'proc_lib.obj',39,0
|
2012-04-19 18:29:46 +04:00
|
|
|
|
err_message_found_lib_3 db 'Sorry I cannot found library ',39,'libimg.obj',39,0
|
|
|
|
|
err_message_import_3 db 'Error on load import library ',39,'libimg.obj',39,0
|
2012-06-22 15:36:29 +04:00
|
|
|
|
err_message_found_lib_4 db 'Sorry I cannot found library ',39,'libini.obj',39,0
|
|
|
|
|
err_message_import_4 db 'Error on load import library ',39,'libini.obj',39,0
|
2015-08-02 17:54:03 +03:00
|
|
|
|
err_message_found_lib_5 db 'Sorry I cannot found library ',39,'libkmenu.obj',39,0
|
|
|
|
|
err_message_import_5 db 'Error on load import library ',39,'libkmenu.obj',39,0
|
2009-12-30 22:07:50 +03:00
|
|
|
|
end if
|
2009-12-29 02:19:20 +03:00
|
|
|
|
|
|
|
|
|
;library structures
|
|
|
|
|
l_libs_start:
|
2012-04-19 18:29:46 +04:00
|
|
|
|
lib0 l_libs lib_name_0, sys_path, file_name, system_dir_0,\
|
|
|
|
|
err_message_found_lib0, head_f_l, import_box_lib,err_message_import0, head_f_i
|
|
|
|
|
lib1 l_libs lib_name_1, sys_path, file_name, system_dir_1,\
|
|
|
|
|
err_message_found_lib1, head_f_l, import_msgbox_lib, err_message_import1, head_f_i
|
|
|
|
|
lib2 l_libs lib_name_2, sys_path, file_name, system_dir_2,\
|
|
|
|
|
err_message_found_lib2, head_f_l, import_proclib, err_message_import2, head_f_i
|
|
|
|
|
lib3 l_libs lib_name_3, sys_path, file_name, system_dir_3,\
|
|
|
|
|
err_message_found_lib_3, head_f_l, import_libimg, err_message_import_3, head_f_i
|
2012-06-22 15:36:29 +04:00
|
|
|
|
lib4 l_libs lib_name_4, sys_path, file_name, system_dir_4,\
|
|
|
|
|
err_message_found_lib_4, head_f_l, import_libini, err_message_import_4, head_f_i
|
2015-08-02 17:54:03 +03:00
|
|
|
|
lib5 l_libs lib_name_5, sys_path, file_name, system_dir_5,\
|
|
|
|
|
err_message_found_lib_5, head_f_l, import_libkmenu, err_message_import_5, head_f_i
|
2009-12-29 02:19:20 +03:00
|
|
|
|
load_lib_end:
|
|
|
|
|
|
2012-06-01 01:54:13 +04:00
|
|
|
|
IncludeIGlobals
|
2015-08-02 02:45:41 +03:00
|
|
|
|
hed db 'TextEdit '
|
2009-12-29 02:19:20 +03:00
|
|
|
|
i_end:
|
2015-08-02 02:45:41 +03:00
|
|
|
|
openfile_path: ;<3B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20> 䠩<><E4A0A9> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> ࠡ<><E0A0A1><EFBFBD>
|
|
|
|
|
rb 4096
|
2012-07-10 15:05:50 +04:00
|
|
|
|
dir_mem rb 32+304*count_of_dir_list_files
|
|
|
|
|
wnd_s_pos: ;<3B><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>⮢<EFBFBD><E2AEA2> <20><><EFBFBD><EFBFBD>樨 <20><><EFBFBD><EFBFBD>
|
|
|
|
|
rq 1
|
|
|
|
|
last_open_synt_file rb 32 ;<3B><><EFBFBD> <20><><EFBFBD><E1ABA5><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>祭<EFBFBD><E7A5AD><EFBFBD><EFBFBD> 䠩<><E4A0A9> ᨭ⠪<E1A8AD><E2A0AA><EFBFBD><EFBFBD>
|
|
|
|
|
buf rb BUF_SIZE ;<3B><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><E0AEA2><EFBFBD><EFBFBD> <20> <20><>⠢<EFBFBD><E2A0A2>
|
|
|
|
|
buf_find rb 302 ;<3B><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD>᪠ ⥪<><E2A5AA><EFBFBD>
|
2015-12-01 15:51:32 +03:00
|
|
|
|
run_file_70 FileInfoBlock
|
|
|
|
|
sc system_colors
|
|
|
|
|
rb sizeof.sys_colors_new-sizeof.system_colors
|
2012-06-01 01:54:13 +04:00
|
|
|
|
IncludeUGlobals
|
2010-05-27 18:46:37 +04:00
|
|
|
|
align 16
|
|
|
|
|
procinfo process_information
|
|
|
|
|
rb 1024
|
2010-11-17 02:25:56 +03:00
|
|
|
|
thread:
|
|
|
|
|
rb 1024
|
2013-02-15 01:09:13 +04:00
|
|
|
|
thread_coords:
|
2015-09-16 13:24:35 +03:00
|
|
|
|
rb 4096
|
2009-12-29 02:19:20 +03:00
|
|
|
|
stacktop:
|
2013-11-28 14:35:07 +04:00
|
|
|
|
sys_path: ;<3B><><EFBFBD><EFBFBD> <20><><EFBFBD>㤠 <20><><EFBFBD><EFBFBD><EFBFBD>⨫<EFBFBD><E2A8AB> <20>ᯮ<EFBFBD><E1AFAE>塞<EFBFBD><EFA5AC> 䠩<>
|
2010-11-17 02:25:56 +03:00
|
|
|
|
rb 4096
|
2013-11-28 14:35:07 +04:00
|
|
|
|
file_name: ;<3B><>ࠬ<EFBFBD><E0A0AC><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>᪠
|
2010-11-17 02:25:56 +03:00
|
|
|
|
rb 4096
|
2013-11-28 14:35:07 +04:00
|
|
|
|
syntax_path: ;<3B><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>砥<EFBFBD><E7A0A5><EFBFBD><EFBFBD> 䠩<><E4A0A9> ᨭ⠪<E1A8AD><E2A0AA><EFBFBD><EFBFBD>
|
2010-11-17 02:25:56 +03:00
|
|
|
|
rb 4096
|
|
|
|
|
plugin_path:
|
|
|
|
|
rb 4096
|
2013-11-28 14:35:07 +04:00
|
|
|
|
text_work_area: ;<3B><><EFBFBD><EFBFBD> <20> 䠩<><E4A0A9>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>뢠<EFBFBD><EBA2A0><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD>
|
2010-11-17 02:25:56 +03:00
|
|
|
|
rb 4096
|
2013-11-28 14:35:07 +04:00
|
|
|
|
filename_area: ;<3B><><EFBFBD> 䠩<><E4A0A9> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>/<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
2010-11-17 02:25:56 +03:00
|
|
|
|
rb 256
|
|
|
|
|
file_info:
|
|
|
|
|
rb 40
|
2009-12-29 02:19:20 +03:00
|
|
|
|
mem:
|