Text Edit: show file name in title

git-svn-id: svn://kolibrios.org@5643 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Kirill Lipatov (Leency) 2015-08-01 23:45:41 +00:00
parent 93060a3349
commit 0f59f77440
3 changed files with 6 additions and 31 deletions

View File

@ -45,6 +45,8 @@ ted_but_new_file:
@@:
call On_NewFile
.ret_f:
mov byte[openfile_path],0
mcall 71,1,hed
pop ebx eax
ret
@ -143,8 +145,6 @@ ted_but_open_file:
@@:
cmp [OpenDialog_data.status],1
jne .ret_f
stdcall [PathShow_prepare], PathShow_data_1
stdcall [PathShow_draw], PathShow_data_1
;¨é¥¬ ¥áâì «¨ ä ©« ¯®¤á¢¥âª¨ ¤«ï ®âªà뢠¥¬®£® ⥪á⮢®£® ä ©« 
mov esi,[OpenDialog_data.openfile_path]
@ -193,10 +193,6 @@ proc ted_but_save_file
mov [OpenDialog_data.type],1
stdcall [OpenDialog_Start],OpenDialog_data
cmp [OpenDialog_data.status],1 ;if status==1 then save
jne .end_save_file
stdcall [PathShow_prepare], PathShow_data_1
stdcall [ted_save_file],tedit0,run_file_70,openfile_path
.end_save_file:
ret
endp
@ -259,7 +255,6 @@ ted_messages_after_open_file:
jl .ret_f
stdcall [mb_create],msgbox_1,thread
.ret_f:
stdcall [PathShow_prepare], PathShow_data_1
pop edi ecx
ret

File diff suppressed because one or more lines are too long

View File

@ -120,10 +120,6 @@ mov ebp,lib0
; 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 ¤«ï á¥àëå ª­®¯®ª
@ -271,9 +267,6 @@ draw_window:
; mov edx,txtFile
; int 0x40
; stdcall [PathShow_draw], dword PathShow_data_1
; stdcall [menu_bar_draw], dword menu_data_1
call draw_but_toolbar
stdcall [ted_draw], tedit0
@ -503,20 +496,6 @@ button:
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
edit2 edit_box TED_PANEL_WIDTH-1, 0, 20, 0xffffff, 0xff80, 0xff0000, 0xff, 0x4080, 300, buf_find, mouse_dd, 0
unpac_mem dd 0
@ -564,7 +543,10 @@ l_libs_start:
load_lib_end:
IncludeIGlobals
hed db 'TextEdit '
i_end:
openfile_path: ;¯®«­ë© ¯ãâì ª ä ©«ã á ª®â®àë¬ ¨¤¥â à ¡®â 
rb 4096
dir_mem rb 32+304*count_of_dir_list_files
wnd_s_pos: ;¬¥áâ® ¤«ï ­ áâ஥ª áâ à⮢®© ¯®§¨æ¨¨ ®ª­ 
rq 1
@ -588,8 +570,6 @@ stacktop:
rb 4096
plugin_path:
rb 4096
openfile_path: ;¯®«­ë© ¯ãâì ª ä ©«ã á ª®â®àë¬ ¨¤¥â à ¡®â 
rb 4096
text_work_area: ;¯ãâì ª ä ©«ã, ª®â®àë© ¯®ª §ë¢ ¥âáï ¢ ®ª­¥
rb 4096
filename_area: ;¨¬ï ä ©«  ¤«ï ¤¨ «®£  ®âªàëâ¨ï/§ ªàëâ¨ï