Subversion Repositories Kolibri OS

Rev

Rev 4991 | Rev 5911 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4991 Rev 5643
Line 43... Line 43...
43
		stdcall [mb_setfunctions],msgbox_2N_funct
43
		stdcall [mb_setfunctions],msgbox_2N_funct
44
		jmp .ret_f
44
		jmp .ret_f
45
	@@:
45
	@@:
46
	call On_NewFile
46
	call On_NewFile
47
	.ret_f:
47
	.ret_f:
-
 
48
		mov byte[openfile_path],0
-
 
49
		mcall 71,1,hed
48
	pop ebx eax
50
	pop ebx eax
49
	ret
51
	ret
Line 50... Line 52...
50
 
52
 
51
align 4
53
align 4
Line 141... Line 143...
141
		stdcall [mb_create],msgbox_9,thread ;message: error run 'open file dialog'
143
		stdcall [mb_create],msgbox_9,thread ;message: error run 'open file dialog'
142
		jmp .ret_f
144
		jmp .ret_f
143
	@@:
145
	@@:
144
	cmp [OpenDialog_data.status],1
146
	cmp [OpenDialog_data.status],1
145
	jne .ret_f
147
	jne .ret_f
146
		stdcall [PathShow_prepare], PathShow_data_1
-
 
147
		stdcall [PathShow_draw], PathShow_data_1
-
 
Line 148... Line 148...
148
 
148
 
149
		;¨é¥¬ ¥áâì «¨ ä ©« ¯®¤á¢¥âª¨ ¤«ï ®âªà뢠¥¬®£® ⥪á⮢®£® ä ©« 
149
		;¨é¥¬ ¥áâì «¨ ä ©« ¯®¤á¢¥âª¨ ¤«ï ®âªà뢠¥¬®£® ⥪á⮢®£® ä ©« 
150
		mov esi,[OpenDialog_data.openfile_path]
150
		mov esi,[OpenDialog_data.openfile_path]
151
		call strlen
151
		call strlen
Line 191... Line 191...
191
	;*** ¢ë§®¢ ¤¨ «®£®¢®£® ®ª­  ¤«ï á®åà ­¥­¨ï ä ©« 
191
	;*** ¢ë§®¢ ¤¨ «®£®¢®£® ®ª­  ¤«ï á®åà ­¥­¨ï ä ©« 
192
	copy_path open_dialog_name,communication_area_default_path,file_name,0
192
	copy_path open_dialog_name,communication_area_default_path,file_name,0
193
	mov [OpenDialog_data.type],1
193
	mov [OpenDialog_data.type],1
194
	stdcall [OpenDialog_Start],OpenDialog_data
194
	stdcall [OpenDialog_Start],OpenDialog_data
195
	cmp [OpenDialog_data.status],1 ;if status==1 then save
195
	cmp [OpenDialog_data.status],1 ;if status==1 then save
196
	jne .end_save_file
-
 
197
		stdcall [PathShow_prepare], PathShow_data_1
-
 
198
		stdcall [ted_save_file],tedit0,run_file_70,openfile_path
-
 
199
	.end_save_file:
-
 
200
	ret
196
	ret
201
endp
197
endp
Line 202... Line 198...
202
 
198
 
203
;description:
199
;description:
Line 257... Line 253...
257
		sub ecx,2 ;ecx = ¬ ªá¨¬ «ì­®¥ ç¨á«® ¡ ©â, ¤«ï ª®â®àëå ¡ë«  ¢ë¤¥«¥­  ¯ ¬ïâì
253
		sub ecx,2 ;ecx = ¬ ªá¨¬ «ì­®¥ ç¨á«® ¡ ©â, ¤«ï ª®â®àëå ¡ë«  ¢ë¤¥«¥­  ¯ ¬ïâì
258
		cmp ebx,ecx
254
		cmp ebx,ecx
259
		jl .ret_f
255
		jl .ret_f
260
			stdcall [mb_create],msgbox_1,thread
256
			stdcall [mb_create],msgbox_1,thread
261
	.ret_f:
257
	.ret_f:
262
	stdcall [PathShow_prepare], PathShow_data_1
-
 
263
	pop edi ecx
258
	pop edi ecx
264
	ret
259
	ret
Line 265... Line 260...
265
 
260
 
266
align 4
261
align 4