forked from KolibriOS/kolibrios
Text Editor:
1) fixed bug with mouse inactive window 2) small optimization TE syntax file converter: 1) uses a 'PathShow' Info3ds: 1) fixed bug with mouse inactive window 2) small update box_lib.obj: 1) documentation on the 'PathShow' git-svn-id: svn://kolibrios.org@2125 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
0e6b6b500f
commit
40eaf1d92f
@ -1,7 +1,7 @@
|
||||
if lang eq ru
|
||||
capt db 'info 3ds ¢¥àá¨ï 23.08.11',0 ;¯®¤¯¨áì ®ª
|
||||
capt db 'info 3ds ¢¥àá¨ï 26.08.11',0 ;¯®¤¯¨áì ®ª
|
||||
else
|
||||
capt db 'info 3ds version 23.08.11',0 ;window caption
|
||||
capt db 'info 3ds version 26.08.11',0 ;window caption
|
||||
end if
|
||||
|
||||
MAX_FILE_LEVEL equ 20 ;¬ ªá¨¬ «ìë© ã஢¥ì ¢«®¦¥®á⨠¡«®ª®¢ ¤«ï «¨§
|
||||
@ -81,6 +81,7 @@ block_3ds CHUNK_TRACKROLL, 3,1,txt_b024
|
||||
block_3ds CHUNK_TRACKCAMTGT, 3,0,txt_b004
|
||||
|
||||
;--- ¤ «¥¥ ¥ ¢® ¢á¥å ¡«®ª å ᬮ£ ©â¨ ®¯¨á ¨¥ àãá᪮¬ ï§ëª¥
|
||||
block_3ds 0x4111, 3,1,txt_4111
|
||||
block_3ds 0x4150, 3,1,txt_4150
|
||||
block_3ds 0x4165, 3,1,txt_4165
|
||||
block_3ds 0x4610, 3,1,txt_4610
|
||||
@ -153,6 +154,7 @@ txt_b024 db '
|
||||
txt_b004 db '<27>®¢¥¤¥¨¥ "楫¨" ª ¬¥àë',0
|
||||
|
||||
;--- ¤ «¥¥ ¥ ¢® ¢á¥å ¡«®ª å ᬮ£ ©â¨ ®¯¨á ¨¥ àãá᪮¬ ï§ëª¥
|
||||
txt_4111 db '”« £¨ ¢¥àè¨',0
|
||||
txt_4150 db 'Smoothing group list',0
|
||||
txt_4165 db 'Object color in editor',0
|
||||
txt_4610 db '<27> ¯à ¢«¥ë© ᢥâ',0
|
||||
@ -224,6 +226,7 @@ txt_b024 db 'Roll track',0
|
||||
txt_b004 db 'Camera target information',0
|
||||
|
||||
;---
|
||||
txt_4111 db 'Vertex flags',0
|
||||
txt_4150 db 'Smoothing group list',0
|
||||
txt_4165 db 'Object color in editor',0
|
||||
txt_4610 db 'Spotlight',0
|
||||
@ -269,17 +272,23 @@ txt_open_3ds db '
|
||||
txt_no_3ds db 'Žâªàëâë© ä ©« ¥ ¢ ä®à¬ ⥠*.3ds',0
|
||||
txt_3ds_big_file db '<27> §¬¥à ä ©« ¡®«ìè¥ MAX_FILE_SIZE',0
|
||||
txt_3ds_err_sizes db '‚®§¬®¦® ä ©« ¯®¢à¥¦¤¥',0
|
||||
txt_count db 'Š®«¨ç¥á⢮',0
|
||||
txt_3ds_offs:
|
||||
db '‘¬¥é¥¨¥: '
|
||||
.dig: rb 8
|
||||
db ' <20> §¬¥à: '
|
||||
.siz: rb 8
|
||||
db 0
|
||||
else
|
||||
txt_open_3ds db 'Open file:',0
|
||||
txt_no_3ds db 'Žâªàëâë© ä ©« ¥ ¢ ä®à¬ ⥠*.3ds',0
|
||||
txt_3ds_big_file db '<27> §¬¥à ä ©« ¡®«ìè¥ MAX_FILE_SIZE',0
|
||||
txt_3ds_err_sizes db '‚®§¬®¦® ä ©« ¯®¢à¥¦¤¥',0
|
||||
txt_count db 'Count',0
|
||||
txt_3ds_offs:
|
||||
db 'Offset: '
|
||||
.dig: rb 8
|
||||
db ' Size: '
|
||||
.siz: rb 8
|
||||
db 0
|
||||
end if
|
@ -184,6 +184,9 @@ still:
|
||||
jz button
|
||||
cmp al,6
|
||||
jne @f
|
||||
mcall 9,procinfo,-1
|
||||
cmp ax,word[procinfo+4]
|
||||
jne @f ;®ª® ¥ ªâ¨¢®
|
||||
call mouse
|
||||
@@:
|
||||
jmp still
|
||||
@ -212,8 +215,9 @@ end if
|
||||
cmp ebx,0
|
||||
je @f
|
||||
mov eax,dword[ebx] ;¯®«ãç ¥¬ § 票¥ ᤢ¨£ ¢ë¡à ®£® ¡«®ª ®â®á¨â¥«ì® ç « ä ©«
|
||||
mov ecx,dword[ebx+4]
|
||||
mov ecx,dword[ebx+4] ;à §¬¥à ¡«®ª
|
||||
stdcall hex_in_str, txt_3ds_offs.dig, eax,8
|
||||
stdcall hex_in_str, txt_3ds_offs.siz, ecx,8
|
||||
|
||||
add eax,dword[open_file_lif] ;¯®«ãç ¥¬ § 票¥ ᤢ¨£ ¢ ¯ ¬ïâ¨
|
||||
cmp dword[offs_last_timer],eax
|
||||
@ -312,6 +316,16 @@ pushad
|
||||
mov edi,capt
|
||||
int 0x40
|
||||
|
||||
mcall 9,procinfo,-1
|
||||
mov eax,dword[procinfo.box.height]
|
||||
cmp eax,250
|
||||
jge @f
|
||||
mov eax,250
|
||||
@@:
|
||||
sub eax,65
|
||||
mov dword[tree1.box_height],eax
|
||||
mov word[w_scr_t1+4],ax ;®¢ë¥ à §¬¥àë áªà®««¨£
|
||||
|
||||
mov eax,8
|
||||
mov ebx,(5 shl 16)+20
|
||||
mov ecx,(5 shl 16)+20
|
||||
@ -520,6 +534,22 @@ block_analiz_data:
|
||||
sub ecx,edi
|
||||
jmp .next_bl
|
||||
@@:
|
||||
cmp dx,CHUNK_VERTLIST ;ᯨ᮪ ¢¥àè¨
|
||||
je .vertexes
|
||||
cmp dx,0x4111 ;ä« £¨ ¢¥àè¨
|
||||
je .vertexes
|
||||
cmp dx,CHUNK_FACELIST ;ᯨ᮪ £à ¥©
|
||||
je .vertexes
|
||||
jmp @f
|
||||
.vertexes: ;®¡à ¡®âª ¡«®ª®¢, ᮤ¥à¦ é¨å ¤ ë¥ ¢¥àè¨
|
||||
stdcall add_3ds_object, ID_ICON_DATA,ebx,2,txt_count ;ç¨á«® ¢¥àè¨ ¨«¨ £à ¥©
|
||||
add esi,2
|
||||
sub ecx,2
|
||||
stdcall add_3ds_object, ID_ICON_DATA,ebx,ecx,0 ;¤ ë¥ ¢¥àè¨
|
||||
sub esi,8 ;¢®ááâ ®¢«¥¨¥ esi
|
||||
call block_next
|
||||
jmp .end_f
|
||||
@@:
|
||||
; *** «¨§ ¡«®ª á ¤ 묨 ¯® 㬮«ç ¨î (¡¥§ ¢ë¤¥«¥¨ï ¯®¤¡«®ª®¢)
|
||||
stdcall add_3ds_object, ID_ICON_DATA,ebx,ecx,0
|
||||
sub esi,6 ;¢®ááâ ®¢«¥¨¥ esi
|
||||
|
@ -24,7 +24,7 @@
|
||||
<li>d_button</li>
|
||||
<li>menubar</li>
|
||||
<li>filebrowser</li>
|
||||
<li>filepath</li>
|
||||
<li><a href="pathshow\pathshow.htm">pathshow</a></li>
|
||||
<li><a href="tree_list\info_treelist.htm">tree_list</a></li>
|
||||
<li><a href="t_edit\t_edit.htm">text_editor</a></li>
|
||||
</ul>
|
||||
@ -38,6 +38,6 @@
|
||||
<p>Èãîðü Àôàíàñüåâ aka IgorA</p>
|
||||
|
||||
<hr>
|
||||
<p>Документация обновлялась последний раз 29.04.10.</p>
|
||||
<p>Äîêóìåíòàöèÿ îáíîâëÿëàñü ïîñëåäíèé ðàç 26.08.11.</p>
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,64 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>элемент PathShow</title>
|
||||
<meta http-equiv="content-type" content="text/html; charset=WINDOWS-1251">
|
||||
<link href="../style.css" type=text/css rel=stylesheet>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<p><a href="../box_lib.htm">На главную ↑</a></p>
|
||||
<h1>Оглавление</h1>
|
||||
<p><a href="#vveden">Введение</a></p>
|
||||
<p><a href="#funct">Функции</a></p>
|
||||
<ul>
|
||||
<li><a href="#fun_prepare">PathShow_prepare</a></li>
|
||||
<li><a href="#fun_draw">PathShow_draw</a></li>
|
||||
</ul>
|
||||
<p><a href="#struc_pathshow">Структура PathShow</a></p>
|
||||
|
||||
<h1><a name="vveden">Введение</a></h1>
|
||||
<p>Компонент <b>PathShow</b> - предназначен для отображения пути к файлу или директории, с усечением имени похожим на усечение выводимое FAR'ом, если не влазит в область выделенную для вывода. В текущем виде поддерживает оба системных шрифта.</p>
|
||||
|
||||
<h1><a name="funct">Функции</a></h1>
|
||||
|
||||
<h4><a name="fun_prepare">PathShow_prepare</a></h4>
|
||||
<p>Подготавливает строку перед выводом на экран. Нужно вызывать эту функцию каждый раз когда меняется путь к файлу.</p>
|
||||
<p>Пример использования:</p>
|
||||
<pre>; подготовка PathShow
|
||||
push dword PathShow_data_1
|
||||
call [PathShow_prepare]</pre>
|
||||
|
||||
<h4><a name="fun_draw">PathShow_draw</a></h4>
|
||||
<p>Рисует элемент на экране.</p>
|
||||
<p>Пример использования:</p>
|
||||
<pre>; рисование PathShow
|
||||
push dword PathShow_data_1
|
||||
call [PathShow_draw]</pre>
|
||||
|
||||
<h1><a name="struc_pathshow">Структура PathShow</a></h1>
|
||||
|
||||
<pre>PathShow_data_1:
|
||||
.type dd 0 ;+0
|
||||
.start_y dw 28 ;+4
|
||||
.start_x dw 172 ;+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 0 ;+16
|
||||
.font_color dd 0x0 ;+20
|
||||
.background_color dd 0x0 ;+24
|
||||
.text_pointer dd openfile_pach ;+28
|
||||
.work_area_pointer dd text_work_area ;+32
|
||||
.temp_text_length dd 0 ;+36</pre>
|
||||
|
||||
<p><b>.start_y</b> - отступ сверху</p>
|
||||
<p><b>.start_x</b> - отступ слева</p>
|
||||
<p><b>.background_flag</b> - если 1 то использовать <i>.background_color</i> для заливки</p>
|
||||
<p><b>.background_color</b> - цвет фоновой заливки</p>
|
||||
<p><b>.text_pointer</b> - указатель на область данных с исходной строкой символов</p>
|
||||
<p><b>.work_area_pointer</b> - указатель на область данных, где будет сформирована выводимая строка символов</p>
|
||||
<hr>
|
||||
<p>Документация обновлялась последний раз 26.08.11.</p>
|
||||
|
||||
</body>
|
||||
</html>
|
@ -13,12 +13,12 @@ struct symbol
|
||||
col db ? ; +1 梥â
|
||||
perv dd ? ; +2
|
||||
next dd ? ; +6 㪠§ ⥫¨
|
||||
tc dd ? ; +10 ¢à¥¬. ᮧ¤ ¨ï
|
||||
td dd ? ; +14 ¢à¥¬. 㤠«¥¨ï
|
||||
tc dd ? ;+10 ¢à¥¬. ᮧ¤ ¨ï
|
||||
td dd ? ;+14 ¢à¥¬. 㤠«¥¨ï
|
||||
ends
|
||||
|
||||
|
||||
hed db 'TextEditor 22.08.11',0 ;¯®¤¯¨áì ®ª
|
||||
hed db 'TextEditor 26.08.11',0 ;¯®¤¯¨áì ®ª
|
||||
sc system_colors
|
||||
|
||||
fn_icon db 'te_icon.bmp',0
|
||||
@ -230,7 +230,7 @@ proc ted_but_find
|
||||
mov ted_panel_id,TED_PANEL_FIND
|
||||
mov ted_wnd_l,TED_PANEL_WIDTH
|
||||
.e_if:
|
||||
stdcall EvSize,edi
|
||||
call EvSize
|
||||
stdcall [ted_draw],edi
|
||||
pop edi
|
||||
ret
|
||||
@ -303,7 +303,7 @@ proc but_synt_show, edit:dword
|
||||
mov ted_panel_id,TED_PANEL_SYNTAX
|
||||
mov ted_wnd_l,TED_PANEL_WIDTH
|
||||
.e_if:
|
||||
stdcall EvSize,edi
|
||||
call EvSize
|
||||
stdcall [ted_draw],edi
|
||||
pop edi
|
||||
ret
|
||||
|
@ -260,11 +260,12 @@ proc draw_panel_syntax
|
||||
ret
|
||||
endp
|
||||
|
||||
MIN_M_WND_H equ 100
|
||||
MIN_M_WND_H equ 100 ;ìèíèìàëüíàÿ âûñîòà ãëàâíîãî îêíà
|
||||
;input:
|
||||
; edi = pointer to tedit struct
|
||||
align 4
|
||||
proc EvSize, edit:dword
|
||||
EvSize:
|
||||
pushad
|
||||
mov edi,dword[edit]
|
||||
mov ebx,ted_scr_h
|
||||
mov esi,ted_scr_w
|
||||
|
||||
@ -299,7 +300,6 @@ proc EvSize, edit:dword
|
||||
|
||||
popad
|
||||
ret
|
||||
endp
|
||||
|
||||
;input:
|
||||
; ecx = 0x4000____
|
||||
|
@ -194,41 +194,40 @@ red_win:
|
||||
|
||||
align 4
|
||||
still:
|
||||
mov eax,10
|
||||
mcall
|
||||
mcall 10
|
||||
|
||||
cmp al,1 ;¨§¬. ¯®«®¦¥¨¥ ®ª
|
||||
cmp al,1 ;¨§¬¥¨«®áì ¯®«®¦¥¨¥ ®ª
|
||||
jz red_win
|
||||
cmp al,2
|
||||
jz key
|
||||
cmp al,3
|
||||
jz button
|
||||
cmp al,6
|
||||
jz mouse
|
||||
|
||||
cmp al,6 ;¬ëèì
|
||||
jne @f
|
||||
mcall 9,procinfo,-1
|
||||
cmp ax,word[procinfo+4]
|
||||
jne @f ;®ª® ¥ ªâ¨¢®
|
||||
jmp mouse
|
||||
@@:
|
||||
jmp still
|
||||
|
||||
align 4
|
||||
draw_window:
|
||||
mcall 12,1
|
||||
|
||||
xor eax,eax
|
||||
mov ebx,10*65536+485
|
||||
mov ecx,10*65536+320
|
||||
mov edx,[sc.work]
|
||||
or edx,0x73000000
|
||||
mov edi,hed
|
||||
int 0x40
|
||||
|
||||
mov edi,tedit0
|
||||
mcall 0,(10 shl 16)+485,(10 shl 16)+320
|
||||
|
||||
mcall 9,procinfo,-1
|
||||
stdcall EvSize,edi
|
||||
mov edi,tedit0 ;§ 票¥ edi 㦮 ¤«ï EvSize ¨ ted_wnd_t
|
||||
call EvSize
|
||||
|
||||
mov eax,13 ;¢¥à娩 ¯àאַ㣮«ì¨ª, ¤«ï ®ç¨á⪨ ¢¥à奩 ¯ ¥«¨
|
||||
xor ebx,ebx
|
||||
mov ecx,ted_wnd_t
|
||||
mov bx,word [procinfo.client_box.width]
|
||||
mov bx,word[procinfo.client_box.width]
|
||||
inc bx
|
||||
int 0x40
|
||||
|
||||
@ -274,7 +273,7 @@ align 4
|
||||
mouse:
|
||||
stdcall [edit_box_mouse], dword edit1
|
||||
|
||||
test word [edit1.flags],10b;ed_focus ; ¥á«¨ ¥ ¢ 䮪ãá¥, ¢ë室¨¬
|
||||
test word [edit1.flags],10b ;ed_focus ;¥á«¨ ¥ ¢ 䮪ãá¥, ¢ë室¨¬
|
||||
jne still
|
||||
|
||||
stdcall [ted_mouse], tedit0
|
||||
@ -290,26 +289,23 @@ mouse:
|
||||
.menu_bar_1:
|
||||
mov [menu_data_1.get_mouse_flag],1
|
||||
; mouse event for Menu 1
|
||||
push dword menu_data_1
|
||||
call [menu_bar_mouse]
|
||||
cmp [menu_data_1.click],dword 1
|
||||
stdcall [menu_bar_mouse],dword menu_data_1
|
||||
cmp dword[menu_data_1.click],1
|
||||
jne .mnu_1
|
||||
cmp [menu_data_1.cursor_out],dword 4
|
||||
cmp dword[menu_data_1.cursor_out],4
|
||||
je button.exit
|
||||
cmp [menu_data_1.cursor_out],dword 3
|
||||
cmp dword[menu_data_1.cursor_out],3
|
||||
jne @f
|
||||
stdcall [ted_but_save_file], tedit0,run_file_70,[edit1.text]
|
||||
@@:
|
||||
cmp [menu_data_1.cursor_out],dword 2
|
||||
cmp dword[menu_data_1.cursor_out],2
|
||||
jne @f
|
||||
call ted_but_open_file
|
||||
@@:
|
||||
cmp [menu_data_1.cursor_out],dword 1
|
||||
cmp dword[menu_data_1.cursor_out],1
|
||||
jne @f
|
||||
call ted_but_new_file
|
||||
@@:
|
||||
;cmp [menu_data_1.cursor_out],dword 0
|
||||
;jne @f
|
||||
.mnu_1:
|
||||
jmp still
|
||||
;---------------------------------------------------------------------
|
||||
|
@ -11,7 +11,7 @@ fn_icon_tl_nod db 'tl_nod_16.bmp',0
|
||||
|
||||
align 4
|
||||
boxlib_import:
|
||||
dd alib_init2 ;ôóíêöèÿ çàïóñêàåòñÿ ìàêðîñîì 1 ðàç ïðè ïîäêëþ÷åíèè áèáèëèîòåêè, ïîòîìó â ïðîãðàììå ìåòêà íà íåå íå íóæíà
|
||||
dd alib_init2 ;äãªæ¨ï § ¯ã᪠¥âáï ¬ ªà®á®¬ 1 à § ¯à¨ ¯®¤ª«î票¨ ¡¨¡¨«¨®â¥ª¨, ¯®â®¬ã ¢ ¯à®£à ¬¬¥ ¬¥âª ¥¥ ¥ ã¦
|
||||
|
||||
edit_box_draw dd aEdit_box_draw
|
||||
edit_box_key dd aEdit_box_key
|
||||
@ -84,6 +84,10 @@ ted_but_find_next dd sz_ted_but_find_next
|
||||
ted_text_colored dd sz_ted_text_colored
|
||||
;version_text_edit dd sz_ted_version
|
||||
|
||||
PathShow_prepare dd sz_PathShow_prepare
|
||||
PathShow_draw dd sz_PathShow_draw
|
||||
;Version_path_show dd szVersion_path_show
|
||||
|
||||
dd 0,0
|
||||
alib_init2 db 'lib_init',0
|
||||
|
||||
@ -157,9 +161,13 @@ sz_ted_but_reverse db 'ted_but_reverse',0
|
||||
sz_ted_but_find_next db 'ted_but_find_next',0
|
||||
sz_ted_text_colored db 'ted_text_colored',0
|
||||
;sz_ted_version db 'version_text_edit',0
|
||||
|
||||
sz_PathShow_prepare db 'PathShow_prepare',0
|
||||
sz_PathShow_draw db 'PathShow_draw',0
|
||||
;szVersion_path_show db 'version_PathShow',0
|
||||
;---------------------------------------------------------------------
|
||||
align 4
|
||||
ws_dir_lbox: ;äî÷åðíèé ñêðîëëèíã äëÿ ýëåìåíòà ListBox
|
||||
ws_dir_lbox: ;¤®ç¥à¨© áªà®««¨£ ¤«ï í«¥¬¥â ListBox
|
||||
.x:
|
||||
.size_x dw 16 ;+0
|
||||
.start_x dw 0 ;+2
|
||||
@ -169,8 +177,7 @@ ws_dir_lbox: ;
|
||||
.btn_high dd 15 ;+8
|
||||
.type dd 1 ;+12
|
||||
.max_area dd 100 ;+16
|
||||
.cur_area dd 30 ;+20
|
||||
.position dd 0 ;+24
|
||||
rb 4+4
|
||||
.bckg_col dd 0xeeeeee ;+28
|
||||
.frnt_col dd 0xbbddff ;+32
|
||||
.line_col dd 0 ;+36
|
||||
@ -178,17 +185,7 @@ ws_dir_lbox: ;
|
||||
.delta dw 0 ;+44
|
||||
.delta2 dw 0 ;+46
|
||||
.run_x:
|
||||
.r_size_x dw 0 ;+48
|
||||
.r_start_x dw 0 ;+50
|
||||
.run_y:
|
||||
.r_size_y dw 0 ;+52
|
||||
.r_start_y dw 0 ;+54
|
||||
.m_pos dd 0 ;+56
|
||||
.m_pos_2 dd 0 ;+60
|
||||
.m_keys dd 0 ;+64
|
||||
.run_size dd 0 ;+68
|
||||
.position2 dd 0 ;+72
|
||||
.work_size dd 0 ;+76
|
||||
rb 2*4+4*6
|
||||
.all_redraw dd 0 ;+80
|
||||
.ar_offset dd 1 ;+84
|
||||
;---------------------------------------------------------------------
|
||||
@ -212,6 +209,10 @@ tree_file_struct:
|
||||
|
||||
dir_mem rb 32+304*count_of_dir_list_files
|
||||
|
||||
edit1 edit_box 310+16-CAPT_PATH_WIDTH, 210+CAPT_PATH_WIDTH, 25, 0xffffff, 0xff, 0xff0000, 0, 0x80, MAX_COLOR_WORD_LEN, ed_buffer.127, mouse_dd, 0
|
||||
|
||||
ed_buffer: ;⥪áâ ¤«ï edit
|
||||
.127: rb MAX_COLOR_WORD_LEN+2
|
||||
;------------------------------------------------------------------------------
|
||||
struct TexSelect
|
||||
x0 dd ?
|
||||
@ -292,8 +293,7 @@ scrol_w1:
|
||||
.btn_high dd 15 ; +8
|
||||
.type dd 1 ;+12
|
||||
.max_area dd 100 ;+16
|
||||
.cur_area dd 30 ;+20
|
||||
.position dd 0 ;+24
|
||||
rb 4+4
|
||||
.bckg_col dd 0xeeeeee ;+28
|
||||
.frnt_col dd 0xbbddff ;+32
|
||||
.line_col dd 0x808080 ;+36
|
||||
@ -301,17 +301,7 @@ scrol_w1:
|
||||
.delta dw 0 ;+44
|
||||
.delta2 dw 0 ;+46
|
||||
.run_x:
|
||||
.r_size_x dw 0 ;+48
|
||||
.r_start_x dw 0 ;+50
|
||||
.run_y:
|
||||
.r_size_y dw 0 ;+52
|
||||
.r_start_y dw 0 ;+54
|
||||
.m_pos dd 0 ;+56
|
||||
.m_pos_2 dd 0 ;+60
|
||||
.m_keys dd 0 ;+64
|
||||
.run_size dd 0 ;+68
|
||||
.position2 dd 0 ;+72
|
||||
.work_size dd 0 ;+76
|
||||
rb 2*4+4*6
|
||||
.all_redraw dd 0 ;+80
|
||||
.ar_offset dd 1 ;+84
|
||||
;---------------------------------------------------------------------
|
||||
@ -326,8 +316,7 @@ scrol_h1:
|
||||
.btn_high dd 15 ;+8
|
||||
.type dd 1 ;+12
|
||||
.max_area dd 100 ;+16
|
||||
.cur_area dd 30 ;+20
|
||||
.position dd 0 ;+24
|
||||
rb 4+4
|
||||
.bckg_col dd 0xeeeeee ;+28
|
||||
.frnt_col dd 0xbbddff ;+32
|
||||
.line_col dd 0x808080 ;+36
|
||||
@ -335,20 +324,23 @@ scrol_h1:
|
||||
.delta dw 0 ;+44
|
||||
.delta2 dw 0 ;+46
|
||||
.run_x:
|
||||
.r_size_x dw 0 ;+48
|
||||
.r_start_x dw 0 ;+50
|
||||
.run_y:
|
||||
.r_size_y dw 0 ;+52
|
||||
.r_start_y dw 0 ;+54
|
||||
.m_pos dd 0 ;+56
|
||||
.m_pos_2 dd 0 ;+60
|
||||
.m_keys dd 0 ;+64
|
||||
.run_size dd 0 ;+68
|
||||
.position2 dd 0 ;+72
|
||||
.work_size dd 0 ;+76
|
||||
rb 2*4+4*6
|
||||
.all_redraw dd 0 ;+80
|
||||
.ar_offset dd 1 ;+84
|
||||
;---------------------------------------------------------------------
|
||||
PathShow_data_1:
|
||||
.type dd 0 ;+0
|
||||
.start_y dw 10 ;+4
|
||||
.start_x dw 210+CAPT_PATH_WIDTH ;+6
|
||||
.font_size_x dw 6 ;+8 ; 6 - for font 0, 8 - for font 1
|
||||
.area_size_x dw 310+16-CAPT_PATH_WIDTH ;+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 file_name ;+28
|
||||
.work_area_pointer dd file_name_rez ;+32
|
||||
.temp_text_length dd 0 ;+36
|
||||
|
||||
align 4
|
||||
str_file_70:
|
||||
|
@ -201,9 +201,8 @@ draw_window:
|
||||
mov edx,txt_out_file
|
||||
int 0x40
|
||||
|
||||
mov ebx,(215+CAPT_PATH_WIDTH) shl 16 + 10
|
||||
mov edx,file_name
|
||||
int 0x40
|
||||
push dword PathShow_data_1
|
||||
call [PathShow_draw]
|
||||
|
||||
stdcall [edit_box_draw],dword edit1
|
||||
stdcall [tl_draw],dword tree1
|
||||
@ -313,18 +312,13 @@ get_wnd_in_focus:
|
||||
;@@:
|
||||
ret
|
||||
|
||||
hed db 'TextEditor syntax file converter 22.08.11',0 ;¯®¤¯¨áì ®ª
|
||||
hed db 'TextEditor syntax file converter 26.08.11',0 ;¯®¤¯¨áì ®ª
|
||||
|
||||
txt122 db '‡ £à. ä ©«',0
|
||||
txt148 db '‘®åà. ä ©«',0
|
||||
txt_inp_file db 'ˆáå. ä ©«:',0
|
||||
txt_out_file db '‚ëå. ä ©«:',0
|
||||
|
||||
edit1 edit_box 305+16-CAPT_PATH_WIDTH, 215+CAPT_PATH_WIDTH, 25, 0xffffff, 0xff, 0xff0000, 0, 0x80, MAX_COLOR_WORD_LEN, ed_buffer.127, mouse_dd, 0
|
||||
|
||||
ed_buffer: ;⥪áâ ¤«ï edit
|
||||
.127: rb MAX_COLOR_WORD_LEN+2
|
||||
|
||||
err_message_found_lib0 db 'Sorry I cannot found library box_lib.obj',0
|
||||
head_f_i0:
|
||||
head_f_l0 db 'System error',0
|
||||
@ -350,6 +344,4 @@ stacktop:
|
||||
rb 4096
|
||||
file_name_rez:
|
||||
rb 4096
|
||||
file_info:
|
||||
rb 40
|
||||
mem:
|
||||
|
@ -151,8 +151,9 @@ InitColText:
|
||||
add eax,sizeof.TexColViv
|
||||
loop @b
|
||||
|
||||
;stdcall [ted_init_scroll_bars], tedit0,4
|
||||
;stdcall [ted_draw], tedit0
|
||||
; ïîäãîòîâêà äëÿ PathShow
|
||||
push dword PathShow_data_1
|
||||
call [PathShow_prepare]
|
||||
call draw_window
|
||||
|
||||
.no_colors:
|
||||
|
Loading…
Reference in New Issue
Block a user