update 't_edit':

1) convert cp1251-866, cp866-1251
2) use PathShow
3) modify element t_edit in box_lib.obj

git-svn-id: svn://kolibrios.org@4308 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
IgorA
2013-11-28 10:35:07 +00:00
parent c4ddb68d5f
commit e07b6d7a9a
7 changed files with 196 additions and 134 deletions
@@ -1,6 +1,6 @@
; ¬ ªà®á ¤«ï á¨á⥬­®© ¡¨¡«¨®â¥ª¨ box_lib.obj
; í«¥¬¥­â TextEditor ¤«ï Kolibri OS
; ä ©« ¯®á«¥¤­¨© à § ¨§¬¥­ï«áï 18.11.2013 IgorA
; ä ©« ¯®á«¥¤­¨© à § ¨§¬¥­ï«áï 27.11.2013 IgorA
; ­  ª®¤ ¯à¨¬¥­¥­  GPL2 «¨æ¥­§¨ï
;input:
@@ -1264,6 +1264,38 @@ ted_char_add:
call ted_text_colored
ret
;description:
; äã­ªæ¨ï ¤«ï ᬥ­ë ª®¤¨à®¢®ª
;input:
; table - â ¡«¨æ  ¤«ï ¯¥à¥ª®¤¨à®¢ª¨
align 4
proc ted_but_convert_by_table uses eax edx edi esi, edit:dword, table:dword
mov edi,dword[edit]
mov esi,dword[table]
mov edx,ted_tex
.cycle:
;¯¥à¥å®¤¨¬ ­  á«¥¤ãî騩 ᨬ¢®«
mov edx,dword[edx+6]
cmp edx,1
jle .end_text
imul edx,sizeof.symbol
add edx,ted_tex
movzx eax,byte[edx]
add eax,esi
mov al,byte[eax]
cmp al,0
je @f
mov byte[edx],al ;¬¥­ï¥¬ ª®¤¨à®¢ªã ᨬ¢®« 
@@:
jmp .cycle
.end_text:
;cmp esi,0
;je @f
stdcall ted_draw,edi ;®¡­®¢«ï¥¬ ®ª­®
;@@:
ret
endp
;input:
; edi = pointer to tedit struct
@@ -4038,7 +4070,7 @@ ted_wnd_main_mouse_scroll:
ret
align 4
proc ted_but_save_file, edit:dword, file:dword, f_name:dword
proc ted_save_file, edit:dword, file:dword, f_name:dword
pushad
mov edi,dword[edit]