Rev 1464 | Rev 1489 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1464 | Rev 1467 | ||
---|---|---|---|
Line 23... | Line 23... | ||
23 | include '../../macros.inc' |
23 | include '../../macros.inc' |
24 | include '../../develop/libraries/box_lib/load_lib.mac' |
24 | include '../../develop/libraries/box_lib/load_lib.mac' |
25 | include '../../develop/libraries/box_lib/trunk/box_lib.mac' |
25 | include '../../develop/libraries/box_lib/trunk/box_lib.mac' |
Line 26... | Line 26... | ||
26 | 26 | ||
- | 27 | include 'lang.inc' |
|
- | 28 | include '../../develop/libraries/box_lib/asm/trunk/opendial.mac' |
|
- | 29 | use_OpenDialog |
|
27 | include 'lang.inc' |
30 | |
28 | include 't_data.inc' |
31 | include 't_data.inc' |
29 | include 'strlen.inc' |
32 | include 'strlen.inc' |
30 | include 't_draw.inc' ;draw main window functions |
33 | include 't_draw.inc' ;draw main window functions |
Line 45... | Line 48... | ||
45 | mcall 40,0x27 |
48 | mcall 40,0x27 |
Line 46... | Line 49... | ||
46 | 49 | ||
47 | mov esi,file_name |
50 | mov esi,file_name |
48 | call strlen |
51 | call strlen |
49 | mov ecx,eax |
52 | mov ecx,eax |
50 | mov edi,buf_cmd_lin |
53 | mov edi,openfile_path |
Line 51... | Line 54... | ||
51 | rep movsb ;ª®¯¨à㥬 ¨¬ï ä ©« ¢ ¡ãä¥à edit1 |
54 | rep movsb ;ª®¯¨à㥬 ¨¬ï ä ©« ¢ ¡ãä¥à edit1 |
Line 52... | Line 55... | ||
52 | 55 | ||
Line 65... | Line 68... | ||
65 | @@: |
68 | @@: |
Line 66... | Line 69... | ||
66 | 69 | ||
67 | ;--------------------------------------------------------------------- |
70 | ;--------------------------------------------------------------------- |
68 | stdcall [ted_init], tedit0 |
71 | stdcall [ted_init], tedit0 |
- | 72 | stdcall dword[tl_data_init], tree1 |
|
- | 73 | ||
69 | stdcall dword[tl_data_init], tree1 |
74 | ; OpenDialog initialisation |
Line 70... | Line 75... | ||
70 | ;--------------------------------------------------------------------- |
75 | init_OpenDialog OpenDialog_data |
71 | 76 | ||
72 | ; init bmp file |
77 | ; init bmp file |
73 | mov ecx,1200*18 |
78 | mov ecx,1200*18 |
Line 168... | Line 173... | ||
168 | copy_path ebx,fn_syntax_dir,file_name_rez,0x0 |
173 | copy_path ebx,fn_syntax_dir,file_name_rez,0x0 |
169 | copy_path file_name_rez,sys_path,file_name,0x0 |
174 | copy_path file_name_rez,sys_path,file_name,0x0 |
170 | stdcall [ted_init_syntax_file], tedit0,run_file_70,file_name |
175 | stdcall [ted_init_syntax_file], tedit0,run_file_70,file_name |
Line 171... | Line 176... | ||
171 | 176 | ||
172 | ;--- get cmd line --- |
177 | ;--- get cmd line --- |
173 | cmp byte[buf_cmd_lin+3],0 ;buf_cmd_lin |
178 | cmp byte[openfile_path+3],0 ;openfile_path |
174 | je @f ;if file names exist |
179 | je @f ;if file names exist |
175 | mov esi,buf_cmd_lin |
180 | mov esi,openfile_path |
176 | call strlen ;eax=strlen |
181 | call strlen ;eax=strlen |
177 | mov [edit1.size],eax |
182 | mov [edit1.size],eax |
178 | call but_no_msg_OpenFile |
183 | call but_no_msg_OpenFile |
Line 179... | Line 184... | ||
179 | @@: |
184 | @@: |
180 | 185 | ||
- | 186 | align 4 |
|
- | 187 | red_win: |
|
- | 188 | call draw_window |
|
- | 189 | ||
- | 190 | align 4 |
|
- | 191 | still: |
|
- | 192 | mov eax,10 |
|
- | 193 | mcall |
|
- | 194 | ||
- | 195 | cmp al,1 ;¨§¬. ¯®«®¦¥¨¥ ®ª |
|
- | 196 | jz red_win |
|
- | 197 | cmp al,2 |
|
- | 198 | jz key |
|
- | 199 | cmp al,3 |
|
- | 200 | jz button |
|
- | 201 | cmp al,6 |
|
- | 202 | jz mouse |
|
- | 203 | ||
- | 204 | jmp still |
|
- | 205 | ||
181 | align 4 |
206 | align 4 |
Line 182... | Line 207... | ||
182 | red_win: |
207 | draw_window: |
183 | mcall 12,1 |
208 | mcall 12,1 |
184 | 209 | ||
185 | xor eax,eax |
210 | xor eax,eax |
186 | mov ebx,10*65536+485 |
211 | mov ebx,10*65536+485 |
187 | mov ecx,10*65536+280 |
212 | mov ecx,10*65536+320 |
188 | mov edx,[sc.work] |
213 | mov edx,[sc.work] |
Line 200... | Line 225... | ||
200 | mov ecx,ted_wnd_t |
225 | mov ecx,ted_wnd_t |
201 | mov bx,word [procinfo.client_box.width] |
226 | mov bx,word [procinfo.client_box.width] |
202 | inc bx |
227 | inc bx |
203 | int 0x40 |
228 | int 0x40 |
Line -... | Line 229... | ||
- | 229 | ||
- | 230 | mov eax,4 |
|
- | 231 | mov ebx,185*65536+9 |
|
- | 232 | mov ecx,[sc.work_text] |
|
- | 233 | or ecx,0x80000000 |
|
- | 234 | mov edx,txtFile |
|
- | 235 | int 0x40 |
|
204 | 236 | ||
205 | stdcall [edit_box_draw], dword edit1 |
237 | stdcall [edit_box_draw], dword edit1 |
Line 206... | Line 238... | ||
206 | stdcall [menu_bar_draw], dword menu_data_1 |
238 | stdcall [menu_bar_draw], dword menu_data_1 |
Line 229... | Line 261... | ||
229 | je @f |
261 | je @f |
230 | stdcall [ted_draw], tedit0 |
262 | stdcall [ted_draw], tedit0 |
231 | @@: |
263 | @@: |
Line 232... | Line 264... | ||
232 | 264 | ||
233 | mcall 12,2 |
- | |
234 | - | ||
235 | align 4 |
- | |
236 | still: |
- | |
237 | mov eax,10 |
- | |
238 | mcall |
- | |
239 | - | ||
240 | cmp al,1 ;¨§¬. ¯®«®¦¥¨¥ ®ª |
- | |
241 | jz red_win |
- | |
242 | cmp al,2 |
265 | mcall 12,2 |
243 | jz key |
- | |
244 | cmp al,3 |
- | |
245 | jz button |
- | |
246 | cmp al,6 |
- | |
247 | jz mouse |
- | |
248 | - | ||
249 | jmp still |
- | |
Line 250... | Line 266... | ||
250 | 266 | ret |
|
251 | 267 | ||
252 | align 4 |
268 | align 4 |
Line 488... | Line 504... | ||
488 | 504 | ||
489 | 505 | ||
Line 490... | Line 506... | ||
490 | txtErrIni0 db '¥ ®âªàë«áï ä ©« á ¨ª®ª ¬¨',0 |
506 | txtErrIni0 db '¥ ®âªàë«áï ä ©« á ¨ª®ª ¬¨',0 |
491 | err_ini0 db 0 |
507 | err_ini0 db 0 |
Line 492... | Line -... | ||
492 | - | ||
493 | edit1 edit_box 250, 220, 5, 0xffffff, 0xff80, 0xff0000, 0xff, 0x4080, 300, buf_cmd_lin, mouse_dd, 0 |
508 | |
Line 494... | Line 509... | ||
494 | edit2 edit_box TED_PANEL_WIDTH-1, 0, 20, 0xffffff, 0xff80, 0xff0000, 0xff, 0x4080, 300, buf_find, mouse_dd, 0 |
509 | edit1 edit_box 250, 220, 5, 0xffffff, 0xff80, 0xff0000, 0xff, 0x4080, 4090, openfile_path, mouse_dd, 0 |
495 | 510 | edit2 edit_box TED_PANEL_WIDTH-1, 0, 20, 0xffffff, 0xff80, 0xff0000, 0xff, 0x4080, 300, buf_find, mouse_dd, 0 |
|
496 | buf_cmd_lin db 302 dup(0) |
511 | |
Line 520... | Line 535... | ||
520 | lib1 l_libs msgbox_name, sys_path, file_name, system_dir1, err_message_found_lib1, head_f_l0, msgbox_lib_import, err_message_import1, head_f_i0 |
535 | lib1 l_libs msgbox_name, sys_path, file_name, system_dir1, err_message_found_lib1, head_f_l0, msgbox_lib_import, err_message_import1, head_f_i0 |
521 | load_lib_end: |
536 | load_lib_end: |
Line 522... | Line 537... | ||
522 | 537 | ||
- | 538 | ||
523 | 539 | i_end: |
|
524 | i_end: |
540 | rb 1024 |
525 | align 16 |
541 | align 16 |
526 | procinfo process_information |
542 | procinfo process_information |
527 | thread: |
543 | thread: |
Line 531... | Line 547... | ||
531 | rb 4096 |
547 | rb 4096 |
532 | file_name: |
548 | file_name: |
533 | rb 4096 |
549 | rb 4096 |
534 | file_name_rez: |
550 | file_name_rez: |
535 | rb 4096 |
551 | rb 4096 |
- | 552 | plugin_path: |
|
- | 553 | rb 4096 |
|
- | 554 | openfile_path: |
|
- | 555 | rb 4096 |
|
- | 556 | filename_area: |
|
- | 557 | rb 256 |
|
536 | file_info: |
558 | file_info: |
537 | rb 40 |
559 | rb 40 |
538 | mem:--y--> |
560 | mem:--y--> |