Rev 4274 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4274 | Rev 7824 | ||
---|---|---|---|
Line 13... | Line 13... | ||
13 | CONSOLE_MODE = 32 |
13 | CONSOLE_MODE = 32 |
Line 14... | Line 14... | ||
14 | 14 | ||
15 | MAGIC1 = 6*(text.line_size-1)+14 |
15 | MAGIC1 = 6*(text.line_size-1)+14 |
Line -... | Line 16... | ||
- | 16 | MAX_PATH = 100 |
|
- | 17 | ||
- | 18 | DEFAULT_WIN_W = 450 |
|
- | 19 | DEFAULT_WIN_H = 350 |
|
- | 20 | LINE_H = 25 |
|
16 | MAX_PATH = 100 |
21 | RIGHT_BTN_W = 80 |
Line 17... | Line 22... | ||
17 | 22 | ||
Line 18... | Line 23... | ||
18 | APP_MEMORY = 0x00800000 |
23 | APP_MEMORY = 0x00800000 |
Line 231... | Line 236... | ||
231 | pusha |
236 | pusha |
232 | mcall 12,1 ; Start of draw |
237 | mcall 12,1 ; Start of draw |
Line 233... | Line 238... | ||
233 | 238 | ||
234 | get_sys_colors 1,0 |
239 | get_sys_colors 1,0 |
235 | edit_boxes_set_sys_color edit1,editboxes_end,sc |
240 | edit_boxes_set_sys_color edit1,editboxes_end,sc |
- | 241 | ;check_boxes_set_sys_color2 ch1_dbg,ch1_dbg+ch_struc_size,sc |
|
- | 242 | mov eax,[sc.work_text] |
|
- | 243 | or eax, 0x90000000 |
|
- | 244 | mov [ch1_dbg.text_color], eax |
|
Line 236... | Line 245... | ||
236 | check_boxes_set_sys_color2 ch1_dbg,ch1_dbg+ch_struc_size,sc |
245 | m2m [ch1_dbg.border_color], [sc.work_graph] |
237 | 246 | ||
238 | mov edx,[sc.work] |
247 | mov edx,[sc.work] |
239 | or edx,0x33000000 |
248 | or edx,0x33000000 |
240 | xor eax,eax |
249 | xor eax,eax |
Line 241... | Line 250... | ||
241 | xor esi,esi |
250 | xor esi,esi |
Line 242... | Line 251... | ||
242 | mcall ,<100,280>,<90,260>,,,title ; Draw Window Label Text |
251 | mcall ,<150,DEFAULT_WIN_W>,<150,DEFAULT_WIN_H>,edx,,title |
243 | 252 | ||
244 | mcall 9,PROCESSINFO,-1 |
253 | mcall 9,PROCESSINFO,-1 |
Line 245... | Line 254... | ||
245 | 254 | ||
246 | mov eax,[PROCESSINFO+70] ;status of window |
255 | mov eax,[PROCESSINFO+70] ;get status of window |
247 | test eax,100b |
- | |
- | 256 | test eax,100b |
|
- | 257 | jne .end |
|
248 | jne .end |
258 | |
249 | - | ||
250 | cmp dword[pinfo.box.width],230 ; ïðîâåðÿåì øèðèíó îêíà |
- | |
251 | jge @f |
- | |
252 | mov dword[pinfo.box.width],230 ; åñëè îêíî î÷åíü óçêîå, óâåëè÷èâàåì øèðèíó äëÿ èçáåæàíèÿ ãëþêîâ |
- | |
253 | @@: |
- | |
254 | mpack ecx,1,1 |
259 | cmp dword[pinfo.box.width],230 ; check min-width |
255 | mov ebx,[pinfo.box.width] |
260 | jge @f |
256 | sub ebx,10 |
- | |
257 | mov eax,8 |
- | |
258 | mov edx,0x4000000B |
261 | mcall 67,-1,-1,300,-1 |
259 | mpack ebx,[pinfo.box.width],MAGIC1 |
- | |
260 | msub ebx,MAGIC1+10+1,0 |
- | |
261 | mpack ecx,0, (14*3+16)/3-1 |
- | |
262 | madd ecx,1,0 |
- | |
263 | mcall ,,,0x00000002,[sc.work_button] |
- | |
264 | madd ecx, (14*3+16)/3+1,0 |
- | |
265 | mcall ,,,0x00000003 |
- | |
266 | madd ecx, (14*3+16)/3+1,0 |
- | |
267 | mcall ,,,4 |
- | |
268 | ;button for OpenDialog [..] |
262 | ret |
269 | mov ebx, 5*65536+47 |
- | |
270 | mov ecx, 33*65536+14 |
263 | @@: |
271 | mcall ,,,5 |
- | |
272 | - | ||
273 | mpack ebx,6,0 ; Draw Window Text |
- | |
274 | add ebx,1+ 14/2-3 |
- | |
Line -... | Line 264... | ||
- | 264 | mpack ebx,[pinfo.client_box.width],RIGHT_BTN_W |
|
- | 265 | msub ebx,RIGHT_BTN_W+1,0 |
|
- | 266 | mcall 8,ebx, |
|
- | 267 | mcall ,ebx, |
|
- | 268 | mcall ,ebx, |
|
- | 269 | ||
- | 270 | ||
- | 271 | ;button for OpenDialog [..] |
|
- | 272 | ; mov ebx, 5*65536+47 |
|
- | 273 | ; mov ecx, 33*65536+14 |
|
- | 274 | ; mcall ,,,5 |
|
- | 275 | ||
- | 276 | ; mpack ebx,6,0 ; Draw Window Text |
|
- | 277 | ; add ebx,1+ 14/2-3 |
|
- | 278 | ; mcall 4,,[sc.work_text],text,text.line_size ;InFile |
|
- | 279 | ||
- | 280 | ; add ebx, 16 ;14 |
|
- | 281 | ; add edx,text.line_size |
|
- | 282 | ; mcall ;OutFile |
|
- | 283 | ||
- | 284 | ; mov ecx,[sc.work_button_text] |
|
- | 285 | ; add ebx, 16 ;14 |
|
- | 286 | ; add edx,text.line_size |
|
- | 287 | ; mcall ;Path |
|
- | 288 | ||
275 | mcall 4,,[sc.work_text],text,text.line_size ;InFile |
289 | mcall 8,<5,62>, |
276 | 290 | ||
277 | add ebx, 16 ;14 |
291 | mov ecx, [sc.work_text] |
278 | add edx,text.line_size |
- | |
Line 279... | Line 292... | ||
279 | mcall ;OutFile |
292 | or ecx, $10000000 |
280 | 293 | mcall 4,<6,LINE_H*0+6>,,text+text.line_size*0,text.line_size ;InFile |
|
281 | mov ecx,[sc.work_button_text] |
294 | mcall ,<6,LINE_H*1+6>,,text+text.line_size*1,esi ;OutFile |
282 | add ebx, 16 ;14 |
295 | mov ecx, [sc.work_button_text] |
283 | add edx,text.line_size |
296 | or ecx, $10000000 |
- | 297 | mcall ,<0,LINE_H*2+6>,,text+text.line_size*2,esi ;Path |
|
- | 298 | ||
284 | mcall ;Path |
299 | mov ebx,[pinfo.client_box.width] |
285 | 300 | sub ebx,RIGHT_BTN_W+1-9 |
|
286 | mov ebx,[pinfo.box.width] |
301 | shl ebx,16 |
287 | sub ebx,MAGIC1+10+1-9 |
302 | add ebx,LINE_H/2-6 |
288 | shl ebx,16 |
303 | mov ecx, [sc.work_button_text] |
289 | add ebx,1+( (14*3+16)/3-1)/2-3 |
- | |
290 | mcall ,,[sc.work_button_text],s_compile,7 |
304 | or ecx, $10000000 |
291 | add ebx,(14*3+16)/3+1 |
305 | mcall ,ebx,ecx,s_compile,7 |
292 | mcall ,,,s_run |
306 | add ebx,LINE_H |
293 | add ebx,(14*3+16)/3+1 |
307 | mcall ,ebx,ecx,s_run |
294 | mcall ,,,s_debug |
308 | add ebx,LINE_H |
295 | 309 | mcall ,ebx,ecx,s_debug |
|
296 | mpack ebx,MAGIC1+6,0 |
310 | |
297 | add ebx,1+ 14/2-3+ 14*0 |
311 | mpack ebx,MAGIC1+6,1+ 14/2-3+ 14*0 |
Line 306... | Line 320... | ||
306 | @@: |
320 | @@: |
307 | movzx esi,al |
321 | movzx esi,al |
Line 308... | Line 322... | ||
308 | 322 | ||
Line 309... | Line 323... | ||
309 | call draw_messages |
323 | call draw_messages |
310 | 324 | ||
- | 325 | mov eax,dword [pinfo.client_box.width] |
|
311 | mov eax,dword [pinfo.box.width] |
326 | sub eax,[edit1.left] |
312 | sub eax,127 |
327 | sub eax,RIGHT_BTN_W+6 |
313 | mov dword[edit1.width],eax ; óñòàíàâëèâàåì øèðèíó òåêñòîâûõ ïîëåé |
328 | mov dword[edit1.width],eax ; óñòàíàâëèâàåì øèðèíó òåêñòîâûõ ïîëåé |
Line 314... | Line 329... | ||
314 | mov dword[edit2.width],eax |
329 | mov dword[edit2.width],eax |
Line 400... | Line 415... | ||
400 | @@: |
415 | @@: |
401 | popad |
416 | popad |
402 | ret |
417 | ret |
403 | ;--------------------------------------------------------------------- |
418 | ;--------------------------------------------------------------------- |
404 | draw_messages: |
419 | draw_messages: |
405 | mpack ebx,7-2,[pinfo.box.width] |
420 | mpack ebx,7-2,[pinfo.client_box.width] |
406 | sub ebx,5*2+7*2-1-2*2 |
421 | sub ebx,9 |
407 | mpack ecx,0,[pinfo.box.height] |
422 | mpack ecx,0,[pinfo.client_box.height] |
408 | madd ecx, 14*3+16+1+7+1,-( 14*3+16+1+7*2+25) |
423 | madd ecx, LINE_H*4,-( LINE_H*4+5) |
409 | mov word[bottom_right+2],bx |
424 | mov word[bottom_right+2],bx |
410 | mov word[bottom_right],cx |
425 | mov word[bottom_right],cx |
411 | msub [bottom_right],7,11 |
426 | msub [bottom_right],7,11 |
412 | add [bottom_right],7 shl 16 + 53 |
427 | add [bottom_right],7 shl 16 + 53 |
413 | mcall 13,,,[sc.work] ; clear work area |
428 | mcall 13,,,[sc.work] ; clear work area |
Line 531... | Line 546... | ||
531 | l_libs_start: |
546 | l_libs_start: |
532 | lib0 l_libs lib0_name, cur_dir_path, library_path, system_dir0, err_message_found_lib0, head_f_l, import_box_lib, err_message_import0, head_f_i |
547 | lib0 l_libs lib0_name, cur_dir_path, library_path, system_dir0, err_message_found_lib0, head_f_l, import_box_lib, err_message_import0, head_f_i |
533 | lib1 l_libs lib1_name, cur_dir_path, library_path, system_dir1, err_message_found_lib1, head_f_l, import_proc_lib,err_message_import1, head_f_i |
548 | lib1 l_libs lib1_name, cur_dir_path, library_path, system_dir1, err_message_found_lib1, head_f_l, import_proc_lib,err_message_import1, head_f_i |
534 | load_lib_end: |
549 | load_lib_end: |
Line 535... | Line 550... | ||
535 | 550 | ||
536 | edit1 edit_box 153, 56, 1, 0xffffff, 0xff, 0x80ff, 0, 0x8000, (outfile-infile-1), infile, mouse_dd, 0, 11,11 |
551 | edit1 edit_box 153, 72, 3, 0xffffff, 0xA4C4E4, 0x80ff, 0, 0x10000000,(outfile-infile-1), infile, mouse_dd, 0, 11,11 |
537 | edit2 edit_box 153, 56, 17, 0xffffff, 0xff, 0x80ff, 0, 0x8000,(path-outfile-1), outfile, mouse_dd, 0, 7,7 |
552 | edit2 edit_box 153, 72, LINE_H+3, 0xffffff, 0xA4C4E4, 0x80ff, 0, 0x10000000,(path-outfile-1), outfile, mouse_dd, 0, 7,7 |
538 | edit3 edit_box 153, 56, 33, 0xffffff, 0xff, 0x80ff, 0, 0x8000,(path_end-path-1), path, mouse_dd, 0, 6,6 |
553 | edit3 edit_box 153, 72, LINE_H*2+3, 0xffffff, 0xA4C4E4, 0x80ff, 0, 0x10000000,(path_end-path-1), path, mouse_dd, 0, 6,6 |
539 | editboxes_end: |
554 | editboxes_end: |
540 | ch1_dbg check_box2 (5 shl 16)+12, (49 shl 16)+12, 6, 0xffffff, 0x80ff, 0, s_dbgdescr,ch_flag_bottom |
555 | ch1_dbg check_box2 (5 shl 16)+15, ((LINE_H*3+3) shl 16)+15, 6, 0xffffff, 0x80ff, 0x10000000, s_dbgdescr,ch_flag_top |
541 | ;--------------------------------------------------------------------- |
556 | ;--------------------------------------------------------------------- |
542 | align 4 |
557 | align 4 |
543 | OpenDialog_data: |
558 | OpenDialog_data: |
544 | .type dd 0 |
559 | .type dd 0 |
Line 603... | Line 618... | ||
603 | ;--------------------------------------------------------------------- |
618 | ;--------------------------------------------------------------------- |
604 | start: |
619 | start: |
605 | cmp [_mode],NORMAL_MODE |
620 | cmp [_mode],NORMAL_MODE |
606 | jne @f |
621 | jne @f |
607 | call draw_messages |
622 | call draw_messages |
608 | mov [textxy],7 shl 16 + 70 |
623 | mov [textxy],8 shl 16 + LINE_H*4+4 |
609 | @@: |
624 | @@: |
610 | mov esi,_logo |
625 | mov esi,_logo |
611 | call display_string |
626 | call display_string |
Line 612... | Line 627... | ||
612 | 627 |