Subversion Repositories Kolibri OS

Rev

Rev 7579 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
4308 IgorA 1
;Огромная благодарность всем, кто помогал: кодом/советом/дизайном ...
1338 IgorA 2
 
3
use32
6906 IgorA 4
  org 0
1449 IgorA 5
  db 'MENUET01' ;идентиф. исполняемого файла всегда 8 байт
6256 IgorA 6
  dd 1, start, i_end, mem, stacktop, file_name, sys_path
1338 IgorA 7
 
8
MAX_COLOR_WORD_LEN equ 40
6256 IgorA 9
maxChars equ 100002 ;(колличество символов в новом документе + 2)
2817 IgorA 10
BUF_SIZE equ 4096 ;buffer for copy|paste
1457 IgorA 11
maxSyntaxFileSize equ 410000
7573 IgorA 12
TOOLBAR_ICONS_SIZE equ 1200*21
1338 IgorA 13
 
1449 IgorA 14
include '../../proc32.inc'
1338 IgorA 15
include '../../macros.inc'
6086 IgorA 16
include '../../KOSfuncs.inc'
6239 IgorA 17
include '../../load_img.inc'
1449 IgorA 18
include '../../develop/libraries/box_lib/trunk/box_lib.mac'
6169 leency 19
include '../../system/skincfg/trunk/kglobals.inc'
20
include '../../system/skincfg/trunk/unpacker.inc'
1343 IgorA 21
include 'lang.inc'
1467 IgorA 22
 
1338 IgorA 23
include 't_data.inc'
7573 IgorA 24
include 't_button.inc'
5671 leency 25
include 't_menu.inc'
1338 IgorA 26
include 'strlen.inc'
27
include 't_draw.inc' ;draw main window functions
3244 IgorA 28
include 'wnd_k_words.inc'
1338 IgorA 29
 
2632 IgorA 30
@use_library_mem mem.Alloc,mem.Free,mem.ReAlloc,dll.Load
1338 IgorA 31
 
6256 IgorA 32
align 4
2632 IgorA 33
icon_tl_sys dd 0 ;указатель на память для хранения системных иконок
6256 IgorA 34
run_file_70 FileInfoBlock
2632 IgorA 35
 
1456 IgorA 36
align 4
1338 IgorA 37
start:
6162 leency 38
	mcall SF_STYLE_SETTINGS,SSF_GET_COLORS,sc,sizeof.system_colors
1338 IgorA 39
 
6086 IgorA 40
	mcall SF_SYS_MISC,SSF_HEAP_INIT
4308 IgorA 41
	or eax,eax
7575 IgorA 42
	jnz @f
43
		call ted_Exit
44
	@@:
1338 IgorA 45
 
6086 IgorA 46
	mcall SF_KEYBOARD,SSF_SET_INPUT_MODE,1 ;scan code
47
	mcall SF_SET_EVENTS_MASK,0xC0000027
1338 IgorA 48
 
4308 IgorA 49
	mov esi,file_name
7577 IgorA 50
	stdcall str_len,esi
4308 IgorA 51
	mov ecx,eax
52
	mov edi,openfile_path
53
	cld
54
	rep movsb ;копируем имя файла в буфер openfile_path
1338 IgorA 55
 
1456 IgorA 56
load_libraries l_libs_start,load_lib_end
1338 IgorA 57
 
2102 IgorA 58
;проверка на сколько удачно загузились библиотеки
4308 IgorA 59
mov	ebp,lib0
60
.test_lib_open:
1456 IgorA 61
	cmp	dword [ebp+ll_struc_size-4],0
62
	jz	@f
6086 IgorA 63
	mcall SF_TERMINATE_PROCESS ;exit not correct
1456 IgorA 64
@@:
4308 IgorA 65
	add ebp,ll_struc_size
66
	cmp ebp,load_lib_end
67
	jl .test_lib_open
1338 IgorA 68
 
1456 IgorA 69
;---------------------------------------------------------------------
1592 IgorA 70
	stdcall [ted_init], tedit0
7488 IgorA 71
	stdcall [tl_data_init], tree1
7576 IgorA 72
	option_boxes_set_sys_color sc,opt_grlist1
7583 IgorA 73
	init_checkboxes2 check_boxes,check_boxes_end
74
	check_boxes_set_sys_color2 check_boxes,check_boxes_end,sc
1338 IgorA 75
 
1467 IgorA 76
; OpenDialog initialisation
1592 IgorA 77
	stdcall [OpenDialog_Init],OpenDialog_data
1467 IgorA 78
 
7573 IgorA 79
; kmenu initialisation
80
	call tedit_menu_init
5649 leency 81
 
2632 IgorA 82
; init toolbar file
6906 IgorA 83
	include_image_file 'te_icon.png', bmp_icon,,,6 ;6 для серых кнопок
4128 IgorA 84
	mov eax,[bmp_icon]
85
	add eax,TOOLBAR_ICONS_SIZE
86
	stdcall img_to_gray, [bmp_icon],eax,(TOOLBAR_ICONS_SIZE)/3
1338 IgorA 87
;---------------------------------------------------------------------
6906 IgorA 88
; внедряем файл с курсорами и линиями
89
	include_image_file '..\..\media\log_el\trunk\tl_sys_16.png', icon_tl_sys
2632 IgorA 90
	mov eax,dword[icon_tl_sys]
91
	mov dword[tree1.data_img_sys],eax
6906 IgorA 92
; внедряем файл с иконками узлов
93
	include_image_file 'tl_nod_16.png', icon_tl_sys
2632 IgorA 94
	mov eax,dword[icon_tl_sys]
95
	mov dword[tree1.data_img],eax
1338 IgorA 96
;------------------------------------------------------------------------------
5911 IgorA 97
	copy_path fn_syntax_dir,sys_path,file_name,0 ;берем путь к папке с файлами синтаксиса
6086 IgorA 98
	mcall SF_FILE,tree_file_struct
1338 IgorA 99
 
7577 IgorA 100
	cmp ebx,0
101
	jle .end_dir_init
102
		mov eax,dir_mem+32+40
5911 IgorA 103
		mov ecx,ebx
104
		@@:
105
			cmp byte[eax],'.' ;фильтруем файлы с именами '.' и '..'
106
			je .filter
107
			;0x10000 ;1*2^16 - где 1 номер иконки с книгой
7488 IgorA 108
			stdcall [tl_node_add], tree1,0x10000,eax
109
			stdcall [tl_cur_next], tree1
5911 IgorA 110
			.filter:
111
			add eax,304
112
			loop @b
7488 IgorA 113
		stdcall [tl_cur_beg],tree1 ;ставим курсор на начало списка
7508 IgorA 114
		or dword[tree1.style], tl_cursor_pos_limited ;ограничиваем движение курсора в пределах списка
5911 IgorA 115
	.end_dir_init:
1338 IgorA 116
 
2817 IgorA 117
;--- load ini file ---
2855 IgorA 118
	copy_path ini_name,sys_path,file_name,0
2817 IgorA 119
	;window startup pozition
7488 IgorA 120
	stdcall [ini_get_int],file_name,ini_sec_window,key_window_l,ini_def_window_l
2817 IgorA 121
	mov word[wnd_s_pos+2],ax
7488 IgorA 122
	stdcall [ini_get_int],file_name,ini_sec_window,key_window_w,ini_def_window_w
2817 IgorA 123
	mov word[wnd_s_pos],ax
7488 IgorA 124
	stdcall [ini_get_int],file_name,ini_sec_window,key_window_t,ini_def_window_t
2817 IgorA 125
	mov word[wnd_s_pos+6],ax
7488 IgorA 126
	stdcall [ini_get_int],file_name,ini_sec_window,key_window_h,ini_def_window_h
2817 IgorA 127
	mov word[wnd_s_pos+4],ax
128
	;scrool type
7488 IgorA 129
	stdcall [ini_get_int],file_name,ini_sec_window,key_scroll_type,ini_def_scroll_type
2817 IgorA 130
	mov [wScr.type],eax
131
	mov [hScr.type],eax
132
	mov [ws_dir_lbox.type],eax
3244 IgorA 133
    mov [w_scr_t3.type],eax
2817 IgorA 134
	;symbol size
7488 IgorA 135
	stdcall [ini_get_int],file_name,ini_sec_window,key_symbol_w,ini_def_symbol_w
2817 IgorA 136
	mov dword[tedit0.rec.width],eax
7488 IgorA 137
	stdcall [ini_get_int],file_name,ini_sec_window,key_symbol_h,ini_def_symbol_h
2817 IgorA 138
	mov dword[tedit0.rec.height],eax
6256 IgorA 139
	;lea eax,[eax+eax*2]
140
	;mov dword[tedit0.rec.top],eax
141
	;font size
7488 IgorA 142
	stdcall [ini_get_int],file_name,ini_sec_window,key_font_s,ini_def_font_s
6256 IgorA 143
	shl eax,24
144
	mov dword[tedit0.font_size],eax
7488 IgorA 145
	;кнопки на панели
7573 IgorA 146
	ini_panel key_but_new,    ID_BUT_NEW
147
	ini_panel key_but_open,   ID_BUT_OPEN
148
	ini_panel key_but_save,   ID_BUT_SAVE
149
	ini_panel key_but_save_as,ID_BUT_SAVE_AS
150
	ini_panel key_but_select, ID_BUT_SELECT
151
	ini_panel key_but_cut,    ID_BUT_CUT
152
	ini_panel key_but_copy,   ID_BUT_COPY
153
	ini_panel key_but_paste,  ID_BUT_PASTE
154
	ini_panel key_but_find,   ID_BUT_FIND
155
	ini_panel key_but_replace,ID_BUT_REPLACE
156
	ini_panel key_but_key_words,ID_BUT_KEY_WORDS
157
	ini_panel key_but_upper,  ID_BUT_UPPER
158
	ini_panel key_but_lower,  ID_BUT_LOWER
159
	ini_panel key_but_reverse,ID_BUT_REVERSE
160
	ini_panel key_but_undo,   ID_BUT_UNDO
161
	ini_panel key_but_redo,   ID_BUT_REDO
162
	ini_panel key_but_invisible,ID_BUT_INVISIBLE
163
	ini_panel key_but_syntax_list,ID_BUT_SYNTAX_LIST
164
	ini_panel key_but_syntax_mode,ID_BUT_SYNTAX_MODE
165
	ini_panel key_but_convert_1251_866,ID_BUT_CONVERT_1251_866
166
	ini_panel key_but_convert_866_1251,ID_BUT_CONVERT_866_1251
2855 IgorA 167
	;файловые расширения
168
	xor edx,edx
169
	mov ebx,synt_auto_open
170
	@@:
171
		;берем имя файла
7488 IgorA 172
		stdcall [ini_get_str],file_name,ini_sec_options,key_synt_file,ebx,32,ini_def_synt_f
2855 IgorA 173
		cmp byte[ebx],0
174
		je @f
175
		inc byte[key_synt_file.numb]
176
		add ebx,32
177
		;берем расширения
7488 IgorA 178
		stdcall [ini_get_str],file_name,ini_sec_options,key_synt_ext,ebx,32,ini_def_synt_f
2855 IgorA 179
		inc byte[key_synt_ext.numb]
180
		add ebx,32
181
		inc edx
182
		cmp edx,max_synt_auto_open
183
		jl @b
184
	@@:
2817 IgorA 185
 
1338 IgorA 186
;--- load color option file ---
6086 IgorA 187
	stdcall open_unpac_synt_file,[fn_col_option]
1338 IgorA 188
 
189
;--- get cmd line ---
2708 IgorA 190
	cmp byte[openfile_path+3],0 ;openfile_path
191
	je @f ;if file names exist
192
		mov esi,openfile_path
6086 IgorA 193
		stdcall auto_open_syntax,esi
2708 IgorA 194
		call but_no_msg_OpenFile
195
	@@:
1338 IgorA 196
 
2817 IgorA 197
 
198
 
6239 IgorA 199
align 16
1338 IgorA 200
red_win:
5911 IgorA 201
	call draw_window
1467 IgorA 202
 
6239 IgorA 203
align 16
1467 IgorA 204
still:
6086 IgorA 205
	mcall SF_WAIT_EVENT
4991 IgorA 206
	cmp dword[exit_code],1
7575 IgorA 207
	jne @f
208
		call ted_Exit
209
		jmp still
210
	@@:
1467 IgorA 211
 
2125 IgorA 212
	cmp al,1 ;изменилось положение окна
213
	jz red_win
214
	cmp al,2
215
	jz key
216
	cmp al,3
217
	jz button
218
	cmp al,6 ;мышь
219
	jne @f
7575 IgorA 220
		call mouse
2125 IgorA 221
	@@:
222
	jmp still
1467 IgorA 223
 
6239 IgorA 224
align 16
1338 IgorA 225
mouse:
5649 leency 226
	stdcall [kmainmenu_dispatch_cursorevent], [main_menu]
1338 IgorA 227
 
6239 IgorA 228
	mcall SF_MOUSE_GET,SSF_WINDOW_POSITION
229
	cmp word[tedit0.wnd.top],ax
230
	jg .no_edit
231
	shr eax,16
232
	cmp word[tedit0.wnd.left],ax
233
	jg .no_edit
234
	mcall SF_MOUSE_GET,SSF_BUTTON_EXT
235
	bt eax,24 ;двойной щелчёк левой кнопкой
236
	jnc @f
237
		stdcall [ted_but_select_word], tedit0
7575 IgorA 238
		ret
6239 IgorA 239
	@@:
240
		stdcall [ted_mouse], tedit0
241
	.no_edit:
242
 
7576 IgorA 243
	;проверка боковых панелей
244
	cmp byte[tedit0.panel_id],TED_PANEL_FIND
2125 IgorA 245
	jne @f
7579 IgorA 246
		stdcall [edit_box_mouse], edit_find
7576 IgorA 247
		stdcall [option_box_mouse], opt_grlist1
7583 IgorA 248
		stdcall [check_box_mouse], ch1
2125 IgorA 249
	@@:
7576 IgorA 250
	cmp byte[tedit0.panel_id],TED_PANEL_REPLACE
6239 IgorA 251
	jne @f
7579 IgorA 252
		stdcall [edit_box_mouse], edit_find
253
		stdcall [edit_box_mouse], edit_replace
7576 IgorA 254
		stdcall [option_box_mouse], opt_grlist1
255
	@@:
256
	cmp byte[tedit0.panel_id],TED_PANEL_SYNTAX
257
	jne @f
6239 IgorA 258
		stdcall [tl_mouse], tree1
259
	@@:
7579 IgorA 260
	cmp byte[tedit0.panel_id],TED_PANEL_GOTO
261
	jne @f
262
		stdcall [edit_box_mouse], edit_goto
263
	@@:
7575 IgorA 264
	ret
1338 IgorA 265
;---------------------------------------------------------------------
266
 
1456 IgorA 267
;output:
268
; ah = symbol
6239 IgorA 269
align 16
5911 IgorA 270
proc KeyConvertToASCII uses ebx, table:dword
271
	mov ebx,dword[table] ;convert scan to ascii
7579 IgorA 272
	shr ax,8
5911 IgorA 273
	add bx,ax
274
	mov ah,byte[ebx]
275
	ret
1456 IgorA 276
endp
1338 IgorA 277
 
6239 IgorA 278
align 16
1338 IgorA 279
key:
6239 IgorA 280
	mcall SF_KEYBOARD,SSF_GET_CONTROL_KEYS ;66.3 получить состояние управляющих клавиш
281
	xor esi,esi
282
	mov ecx,1
7579 IgorA 283
	test al,3 ;[Shift]
6239 IgorA 284
	jz @f
285
		mov cl,2
286
		or esi,KM_SHIFT
287
	@@:
288
	test al,0x0c ;[Ctrl]
289
	jz @f
290
		or esi,KM_CTRL
291
	@@:
292
	test al,0x30 ;[Alt]
293
	jz @f
294
		mov cl,3
295
		or esi,KM_ALT
296
	@@:
297
	test al,0x80 ;[NumLock]
298
	jz @f
299
		or esi,KM_NUMLOCK
300
	@@:
1457 IgorA 301
 
6239 IgorA 302
	mcall SF_SYSTEM_GET,SSF_KEYBOARD_LAYOUT,,conv_tabl ;26.2 получить раскладку клавиатуры
303
	mcall SF_GET_KEY
304
	stdcall [tl_key], tree1
1338 IgorA 305
 
7579 IgorA 306
	test word[edit_replace.flags],ed_focus ;если не в фокусе, выходим
6239 IgorA 307
	je @f
308
		cmp ah,0x80 ;if key up
309
		ja still
310
		cmp ah,42 ;[Shift] (left)
311
		je still
312
		cmp ah,54 ;[Shift] (right)
313
		je still
314
		cmp ah,56 ;[Alt]
315
		je still
316
		cmp ah,29 ;[Ctrl]
317
		je still
318
		cmp ah,69 ;[Pause Break]
319
		je still
1338 IgorA 320
 
7571 IgorA 321
		stdcall KeyConvertToASCII, conv_tabl
7579 IgorA 322
		stdcall [edit_box_key], edit_replace
7576 IgorA 323
		jmp still
324
	@@:
7579 IgorA 325
	test word[edit_find.flags],ed_focus ;если не в фокусе, выходим
7576 IgorA 326
	je @f
327
		cmp ah,0x80 ;if key up
328
		ja still
329
		cmp ah,42 ;[Shift] (left)
330
		je still
331
		cmp ah,54 ;[Shift] (right)
332
		je still
333
		cmp ah,56 ;[Alt]
334
		je still
335
		cmp ah,29 ;[Ctrl]
336
		je still
337
		cmp ah,69 ;[Pause Break]
338
		je still
339
 
340
		stdcall KeyConvertToASCII, conv_tabl
7579 IgorA 341
		stdcall [edit_box_key], edit_find
6239 IgorA 342
		jmp still
343
	@@:
7579 IgorA 344
	test word[edit_goto.flags],ed_focus ;если не в фокусе, выходим
345
	je @f
346
		cmp ah,0x80 ;if key up
347
		ja still
348
		cmp ah,42 ;[Shift] (left)
349
		je still
350
		cmp ah,54 ;[Shift] (right)
351
		je still
352
		cmp ah,56 ;[Alt]
353
		je still
354
		cmp ah,29 ;[Ctrl]
355
		je still
356
		cmp ah,69 ;[Pause Break]
357
		je still
1338 IgorA 358
 
7579 IgorA 359
		stdcall KeyConvertToASCII, conv_tabl
360
		stdcall [edit_box_key], edit_goto
361
		jmp still
362
	@@:
363
 
6239 IgorA 364
	stdcall [ted_key], tedit0, conv_tabl,esi
365
	jmp still
1338 IgorA 366
 
7573 IgorA 367
align 4
7579 IgorA 368
edit_replace edit_box TED_PANEL_WIDTH-1, 0, 20, 0xffffff, 0xff80, 0xff0000, 0xff, 0x4080, 300, buf_replace, mouse_dd, 0
369
edit_find edit_box TED_PANEL_WIDTH-1, 0, 20, 0xffffff, 0xff80, 0xff0000, 0xff, 0x4080, 300, buf_find, mouse_dd, 0
370
edit_goto edit_box TED_PANEL_WIDTH-1, 0, 20, 0xffffff, 0xff80, 0xff0000, 0xff, 0x4080, 10, buf_goto, mouse_dd, 0
1338 IgorA 371
 
2708 IgorA 372
unpac_mem dd 0
1338 IgorA 373
 
1343 IgorA 374
if lang eq ru
2632 IgorA 375
  head_f_i:
7577 IgorA 376
  head_f_l db '"Системная ошибка',0
377
  err_message_found_lib0 db 'Не найдена библиотека ',39,'box_lib.obj',39,'" -tE',0
378
  err_message_import0 db 'Ошибка при импорте библиотеки ',39,'box_lib.obj',39,'" -tW',0
379
  err_message_found_lib1 db 'Не найдена библиотека ',39,'msgbox.obj',39,'" -tE',0
380
  err_message_import1 db 'Ошибка при импорте библиотеки ',39,'msgbox.obj',39,'" -tW',0
381
  err_message_found_lib2 db 'Не найдена библиотека ',39,'proc_lib.obj',39,'" -tE',0
382
  err_message_import2 db 'Ошибка при импорте библиотеки ',39,'proc_lib.obj',39,'" -tW',0
383
  err_message_found_lib_3 db 'Не найдена библиотека ',39,'libimg.obj',39,'" -tE',0
384
  err_message_import_3 db 'Ошибка при импорте библиотеки ',39,'libimg.obj',39,'" -tW',0
385
  err_message_found_lib_4 db 'Не найдена библиотека ',39,'libini.obj',39,'" -tE',0
386
  err_message_import_4 db 'Ошибка при импорте библиотеки ',39,'libini.obj',39,'" -tW',0
387
  err_message_found_lib_5 db 'Не найдена библиотека ',39,'libkmenu.obj',39,'" -tE',0
388
  err_message_import_5 db 'Ошибка при импорте библиотеки ',39,'libkmenu.obj',39,'" -tW',0
1343 IgorA 389
else
2632 IgorA 390
  head_f_i:
7577 IgorA 391
  head_f_l db '"System error',0
392
  err_message_found_lib0 db 'Sorry I cannot found library ',39,'box_lib.obj',39,'" -tE',0
393
  err_message_import0 db 'Error on load import library ',39,'box_lib.obj',39,'" -tW',0
394
  err_message_found_lib1 db 'Sorry I cannot found library ',39,'msgbox.obj',39,'" -tE',0
395
  err_message_import1 db 'Error on load import library ',39,'msgbox.obj',39,'" -tW',0
396
  err_message_found_lib2 db 'Sorry I cannot found library ',39,'proc_lib.obj',39,'" -tE',0
397
  err_message_import2 db 'Error on load import library ',39,'proc_lib.obj',39,'" -tW',0
398
  err_message_found_lib_3 db 'Sorry I cannot found library ',39,'libimg.obj',39,'" -tE',0
399
  err_message_import_3 db 'Error on load import library ',39,'libimg.obj',39,'" -tW',0
400
  err_message_found_lib_4 db 'Sorry I cannot found library ',39,'libini.obj',39,'" -tE',0
401
  err_message_import_4 db 'Error on load import library ',39,'libini.obj',39,'" -tW',0
402
  err_message_found_lib_5 db 'Sorry I cannot found library ',39,'libkmenu.obj',39,'" -tE',0
403
  err_message_import_5 db 'Error on load import library ',39,'libkmenu.obj',39,'" -tW',0
1343 IgorA 404
end if
1338 IgorA 405
 
406
;library structures
407
l_libs_start:
2632 IgorA 408
	lib0 l_libs lib_name_0, sys_path, file_name, system_dir_0,\
409
		err_message_found_lib0, head_f_l, import_box_lib,err_message_import0, head_f_i
410
	lib1 l_libs lib_name_1, sys_path, file_name, system_dir_1,\
411
		err_message_found_lib1, head_f_l, import_msgbox_lib, err_message_import1, head_f_i
412
	lib2 l_libs lib_name_2, sys_path, file_name, system_dir_2,\
413
		err_message_found_lib2, head_f_l, import_proclib, err_message_import2, head_f_i
414
	lib3 l_libs lib_name_3, sys_path, file_name, system_dir_3,\
415
		err_message_found_lib_3, head_f_l, import_libimg, err_message_import_3, head_f_i
2817 IgorA 416
	lib4 l_libs lib_name_4, sys_path, file_name, system_dir_4,\
417
		err_message_found_lib_4, head_f_l, import_libini, err_message_import_4, head_f_i
5649 leency 418
	lib5 l_libs lib_name_5, sys_path, file_name, system_dir_5,\
419
		err_message_found_lib_5, head_f_l, import_libkmenu, err_message_import_5, head_f_i
1338 IgorA 420
load_lib_end:
421
 
2708 IgorA 422
IncludeIGlobals
5643 leency 423
hed db 'TextEdit '
1338 IgorA 424
i_end:
5643 leency 425
	openfile_path: ;полный путь к файлу с которым идет работа
426
		rb 4096
2855 IgorA 427
	dir_mem rb 32+304*count_of_dir_list_files
428
	wnd_s_pos: ;место для настроек стартовой позиции окна
429
		rq 1
430
	last_open_synt_file rb 32 ;имя последнего подключенного файла синтаксиса
431
	buf rb BUF_SIZE ;буфер для копирования и вставки
432
	buf_find rb 302 ;буфер для поиска текста
7576 IgorA 433
	buf_replace rb 302 ;буфер для замены текста
7579 IgorA 434
	buf_goto rb 12 ;буфер для перхода на строку
5939 IgorA 435
	sc system_colors
2708 IgorA 436
IncludeUGlobals
1467 IgorA 437
	align 16
438
	procinfo process_information
1705 IgorA 439
		rb 1024
1467 IgorA 440
	thread:
6256 IgorA 441
		rb 4096
442
align 16
3244 IgorA 443
    thread_coords:
5830 IgorA 444
	rb 4096
6256 IgorA 445
align 16
1338 IgorA 446
stacktop:
4308 IgorA 447
	sys_path: ;путь откуда запустился исполняемый файл
1705 IgorA 448
		rb 4096
4308 IgorA 449
	file_name: ;параметры запуска
1705 IgorA 450
		rb 4096
4308 IgorA 451
	syntax_path: ;имя подключаемого файла синтаксиса
1705 IgorA 452
		rb 4096
453
	plugin_path:
454
		rb 4096
4308 IgorA 455
	text_work_area: ;путь к файлу, который показывается в окне
456
		rb 4096
457
	filename_area: ;имя файла для диалога открытия/закрытия
1705 IgorA 458
		rb 256
459
	file_info:
460
		rb 40
1338 IgorA 461
mem: