Subversion Repositories Kolibri OS

Rev

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

Rev 111 Rev 7134
Line 288... Line 288...
288
;------------------------------------------------------------------------------
288
;------------------------------------------------------------------------------
289
;///// DRAW WINDOW ////////////////////////////////////////////////////////////
289
;///// DRAW WINDOW ////////////////////////////////////////////////////////////
290
;------------------------------------------------------------------------------
290
;------------------------------------------------------------------------------
Line 291... Line 291...
291
 
291
 
292
func draw_window
292
__func draw_window
Line 293... Line 293...
293
        mcall   MF_WINPROPS,WP_GETSYSCLRS,sc,sizeof.system_colors
293
        mcall   MF_WINPROPS,WP_GETSYSCLRS,sc,sizeof.system_colors
294
 
294
 
295
        mcall   MF_WNDDRAW,WD_BEGINDRAW
295
        mcall   MF_WNDDRAW,WD_BEGINDRAW
Line 338... Line 338...
338
;------------------------------------------------------------------------------
338
;------------------------------------------------------------------------------
339
;//////////////////////////////////////////////////////////////////////////////
339
;//////////////////////////////////////////////////////////////////////////////
340
;------------------------------------------------------------------------------
340
;------------------------------------------------------------------------------
Line 341... Line 341...
341
 
341
 
342
func draw_window_full
342
__func draw_window_full
343
        call    draw_window
343
        call    draw_window
344
        mov     edx,1
344
        mov     edx,1
345
        call    get_files_data
345
        call    get_files_data
346
        mov     al,1
346
        mov     al,1
Line 358... Line 358...
358
 
358
 
Line 359... Line 359...
359
align 4
359
align 4
360
len dd ?
360
len dd ?
Line 361... Line 361...
361
 
361
 
362
func get_normal_path
362
__func get_normal_path
363
        pusha
363
        pusha
364
        mov     ecx,5
364
        mov     ecx,5
365
        rep     movsb
365
        rep     movsb
366
        dec     esi
366
        dec     esi
Line 392... Line 392...
392
 
392
 
Line 393... Line 393...
393
; EAX = length needed
393
; EAX = length needed
394
; ECX = current length
394
; ECX = current length
395
; EDI = path string
395
; EDI = path string
396
func get_path_ellipses
396
__func get_path_ellipses
397
        cmp     ecx,eax
397
        cmp     ecx,eax
398
        jbe     @f
398
        jbe     @f
399
        pushad
399
        pushad
400
        lea     esi,[edi+ecx+3+6]       ; ... + /??/?/
400
        lea     esi,[edi+ecx+3+6]       ; ... + /??/?/
401
        sub     esi,eax
401
        sub     esi,eax
Line 414... Line 414...
414
;------------------------------------------------------------------------------
414
;------------------------------------------------------------------------------
415
;//////////////////////////////////////////////////////////////////////////////
415
;//////////////////////////////////////////////////////////////////////////////
416
;------------------------------------------------------------------------------
416
;------------------------------------------------------------------------------
Line 417... Line 417...
417
 
417
 
418
func draw_path
418
__func draw_path
419
        pushad
419
        pushad
420
        cmp     [active_panel],0
420
        cmp     [active_panel],0
421
        jne    ._00
421
        jne    ._00
422
        mov     esi,f_path0
422
        mov     esi,f_path0
Line 442... Line 442...
442
;//////////////////////////////////////////////////////////////////////////////
442
;//////////////////////////////////////////////////////////////////////////////
443
;------------------------------------------------------------------------------
443
;------------------------------------------------------------------------------
444
 
444
 
Line 445... Line 445...
445
; AL = panel
445
; AL = panel
446
func draw_files
446
__func draw_files
447
        push    eax
447
        push    eax
448
        mmov    ecx,oY+tH*2-1,tH*FPC
448
        mmov    ecx,oY+tH*2-1,tH*FPC
449
        mov     edx,[fc.background]
449
        mov     edx,[fc.background]
450
        cmp     al,0
450
        cmp     al,0
451
        mov     eax,MF_FILLRECT
451
        mov     eax,MF_FILLRECT
Line 517... Line 517...
517
;------------------------------------------------------------------------------
517
;------------------------------------------------------------------------------
518
;//////////////////////////////////////////////////////////////////////////////
518
;//////////////////////////////////////////////////////////////////////////////
519
;------------------------------------------------------------------------------
519
;------------------------------------------------------------------------------
Line 520... Line 520...
520
 
520
 
521
func draw_bottom_keys
521
__func draw_bottom_keys
522
        pushad
522
        pushad
523
        mcall2  MF_FILLRECT,oX-1,tW*80+1,oY+tH*24-1,tH+1,[fc.pathbg]
523
        mcall2  MF_FILLRECT,oX-1,tW*80+1,oY+tH*24-1,tH+1,[fc.pathbg]
524
        dec     ecx
524
        dec     ecx
525
        mcall1  ,oX+tW-1,tW*6+1,,[fc.keysbg]
525
        mcall1  ,oX+tW-1,tW*6+1,,[fc.keysbg]
Line 549... Line 549...
549
 
549
 
Line 550... Line 550...
550
; ESI = X1*65536+X2
550
; ESI = X1*65536+X2
551
; EDI = Y1*65536+Y2
551
; EDI = Y1*65536+Y2
552
; EDX = color
552
; EDX = color
553
func draw_frame
553
__func draw_frame
554
        mov     ecx,edi
554
        mov     ecx,edi
555
        mov     ebx,edi
555
        mov     ebx,edi
556
        shr     ebx,16
556
        shr     ebx,16
557
        mov     cx,bx
557
        mov     cx,bx
558
        mcall   MF_DRAWLINE,esi
558
        mcall   MF_DRAWLINE,esi
Line 576... Line 576...
576
;//////////////////////////////////////////////////////////////////////////////
576
;//////////////////////////////////////////////////////////////////////////////
577
;------------------------------------------------------------------------------
577
;------------------------------------------------------------------------------
578
 
578
 
Line 579... Line 579...
579
; EDX = pointer to file data
579
; EDX = pointer to file data
580
func get_file_color
580
__func get_file_color
581
        push    esi
581
        push    esi
582
        mov     cl,[edx+11]
582
        mov     cl,[edx+11]
583
        test    cl,(FA_HIDDEN or FA_SYSTEM)
583
        test    cl,(FA_HIDDEN or FA_SYSTEM)
584
        jz      @f
584
        jz      @f
585
        mov     ecx,[fc.system]
585
        mov     ecx,[fc.system]
Line 630... Line 630...
630
;//////////////////////////////////////////////////////////////////////////////
630
;//////////////////////////////////////////////////////////////////////////////
631
;------------------------------------------------------------------------------
631
;------------------------------------------------------------------------------
632
 
632
 
Line 633... Line 633...
633
; EDI = color
633
; EDI = color
634
func draw_sel
634
__func draw_sel
635
        pushad
635
        pushad
636
        cmp     [active_panel],0
636
        cmp     [active_panel],0
637
        jne    ._00
637
        jne    ._00
638
        mov     eax,[d_lpos]
638
        mov     eax,[d_lpos]
639
        sub     eax,[d_ltop]
639
        sub     eax,[d_ltop]
Line 713... Line 713...
713
;//////////////////////////////////////////////////////////////////////////////
713
;//////////////////////////////////////////////////////////////////////////////
714
;------------------------------------------------------------------------------
714
;------------------------------------------------------------------------------
715
 
715
 
Line 716... Line 716...
716
; AL = panel
716
; AL = panel
717
func draw_file_info
717
__func draw_file_info
718
        push    eax
718
        push    eax
719
        mmov    ecx,oY+tH*21,tH
719
        mmov    ecx,oY+tH*21,tH
720
        mov     edx,[fc.background]
720
        mov     edx,[fc.background]
721
        cmp     al,0
721
        cmp     al,0
722
        mov     eax,MF_FILLRECT
722
        mov     eax,MF_FILLRECT
Line 788... Line 788...
788
;------------------------------------------------------------------------------
788
;------------------------------------------------------------------------------
789
;//////////////////////////////////////////////////////////////////////////////
789
;//////////////////////////////////////////////////////////////////////////////
790
;------------------------------------------------------------------------------
790
;------------------------------------------------------------------------------
Line 791... Line 791...
791
 
791
 
792
func get_file_name
792
__func get_file_name
793
        pushad
793
        pushad
794
        mov     eax,[esi+0]
794
        mov     eax,[esi+0]
795
        mov     [f_name+0],eax
795
        mov     [f_name+0],eax
796
        mov     eax,[esi+4]
796
        mov     eax,[esi+4]
Line 808... Line 808...
808
;//////////////////////////////////////////////////////////////////////////////
808
;//////////////////////////////////////////////////////////////////////////////
809
;------------------------------------------------------------------------------
809
;------------------------------------------------------------------------------
810
 
810
 
Line 811... Line 811...
811
; ESI = pointer to file data
811
; ESI = pointer to file data
812
func get_file_info
812
__func get_file_info
813
        pushad
813
        pushad
814
        mov     eax,[esi+12]
814
        mov     eax,[esi+12]
815
        mov     dword[f_info],FS_READ
815
        mov     dword[f_info],FS_READ
816
        mov     [f_info+4],eax
816
        mov     [f_info+4],eax
817
        mov     dword[f_info+12],read_area
817
        mov     dword[f_info+12],read_area
Line 886... Line 886...
886
;//////////////////////////////////////////////////////////////////////////////
886
;//////////////////////////////////////////////////////////////////////////////
887
;------------------------------------------------------------------------------
887
;------------------------------------------------------------------------------
888
 
888
 
Line 889... Line 889...
889
; DL = panel
889
; DL = panel
890
func get_files_data
890
__func get_files_data
891
        pushad
891
        pushad
892
        mov     [d_tcnt],0
892
        mov     [d_tcnt],0
893
        mov     [d_ttsz],0
893
        mov     [d_ttsz],0
894
        cmp     dl,0
894
        cmp     dl,0
895
        jne    ._00
895
        jne    ._00
Line 983... Line 983...
983
;------------------------------------------------------------------------------
983
;------------------------------------------------------------------------------
984
;//////////////////////////////////////////////////////////////////////////////
984
;//////////////////////////////////////////////////////////////////////////////
985
;------------------------------------------------------------------------------
985
;------------------------------------------------------------------------------
Line 986... Line 986...
986
 
986
 
987
func execute_current_file
987
__func execute_current_file
988
        pushad
988
        pushad
989
        cmp     [active_panel],0
989
        cmp     [active_panel],0
990
        jne    ._00
990
        jne    ._00
991
        mov     esi,[d_lpos]
991
        mov     esi,[d_lpos]
Line 1078... Line 1078...
1078
;------------------------------------------------------------------------------
1078
;------------------------------------------------------------------------------
1079
;//////////////////////////////////////////////////////////////////////////////
1079
;//////////////////////////////////////////////////////////////////////////////
1080
;------------------------------------------------------------------------------
1080
;------------------------------------------------------------------------------
Line 1081... Line 1081...
1081
 
1081
 
1082
func delete_current_file
1082
__func delete_current_file
1083
        pushad
1083
        pushad
1084
        popad
1084
        popad
1085
        ret
1085
        ret