Rev 6404 | Rev 6504 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 6404 | Rev 6406 | ||
---|---|---|---|
Line 65... | Line 65... | ||
65 | byte list_full_redraw; |
65 | byte list_full_redraw; |
Line 66... | Line 66... | ||
66 | 66 | ||
67 | dword buf; |
67 | dword buf; |
68 | dword file_mas[6898]; |
68 | dword file_mas[6898]; |
69 | int selected_count; |
69 | int selected_count; |
Line 70... | Line 70... | ||
70 | 70 | int count_dir; |
|
71 | 71 | ||
72 | byte |
72 | byte |
73 | path[4096], |
73 | path[4096], |
Line 561... | Line 561... | ||
561 | DrawRectangle(1,40,Form.cwidth-3,Form.cheight - 42,col_graph); |
561 | DrawRectangle(1,40,Form.cwidth-3,Form.cheight - 42,col_graph); |
562 | DrawRectangle(0,39,Form.cwidth-1,Form.cheight - 40,col_palette[4]); //bg |
562 | DrawRectangle(0,39,Form.cwidth-1,Form.cheight - 40,col_palette[4]); //bg |
563 | for (i=0; i<5; i++) DrawBar(0, 34+i, Form.cwidth, 1, col_palette[8-i]); |
563 | for (i=0; i<5; i++) DrawBar(0, 34+i, Form.cwidth, 1, col_palette[8-i]); |
564 | llist_copy(#files_active, #files); |
564 | llist_copy(#files_active, #files); |
565 | strcpy(#active_path, #path); |
565 | strcpy(#active_path, #path); |
566 | DrawFilePanels(); |
- | |
567 | DrawStatusBar(); |
566 | DrawStatusBar(); |
- | 567 | DrawFilePanels(); |
|
568 | if (del_active) Del_Form(); |
568 | if (del_active) Del_Form(); |
569 | if (new_element_active) NewElement_Form(new_element_active, #new_element_name); |
569 | if (new_element_active) NewElement_Form(new_element_active, #new_element_name); |
570 | } |
570 | } |
Line 571... | Line 571... | ||
571 | 571 | ||
Line 585... | Line 585... | ||
585 | if (two_panels) && (files.x<5) DrawBar(files.x+files.w+16,files.y,1,files.h,col_graph); |
585 | if (two_panels) && (files.x<5) DrawBar(files.x+files.w+16,files.y,1,files.h,col_graph); |
586 | } |
586 | } |
Line 587... | Line 587... | ||
587 | 587 | ||
588 | void DrawStatusBar() |
588 | void DrawStatusBar() |
589 | { |
589 | { |
590 | DrawBar(1, Form.cheight - 18, Form.cwidth-2, 17, col_palette); |
590 | DrawBar(1, Form.cheight - 18, Form.cwidth-2, 17, system.color.work); |
591 | sprintf(#status_bar_str, STATUS_STR, files.count, selected_count); |
591 | sprintf(#status_bar_str, STATUS_STR, files.count-1, count_dir-1, files.count-count_dir, selected_count); |
592 | WriteText(6,Form.cheight - 13,0x80,0x000000,#status_bar_str); |
592 | WriteText(6,Form.cheight - 13,0x80,0x000000,#status_bar_str); |
Line 593... | Line 593... | ||
593 | } |
593 | } |
594 | 594 | ||
Line 751... | Line 751... | ||
751 | DrawBar(files.x+files.w-68,y,1,files.item_h,system.color.work); //gray line 2 |
751 | DrawBar(files.x+files.w-68,y,1,files.item_h,system.color.work); //gray line 2 |
752 | } |
752 | } |
Line 753... | Line 753... | ||
753 | 753 | ||
754 | 754 | ||
755 | void Open_Dir(dword dir_path, redraw){ |
755 | void Open_Dir(dword dir_path, redraw){ |
756 | int errornum, maxcount; |
756 | int errornum, maxcount, i; |
757 | 757 | count_dir = 0; |
|
758 | if (redraw!=ONLY_SHOW) |
758 | if (redraw!=ONLY_SHOW) |
759 | { |
759 | { |
760 | if (ESBYTE[dir_path+1]!='\0') ESBYTE[dir_path+strlen(dir_path)-1] = '\0'; |
760 | if (ESBYTE[dir_path+1]!='\0') ESBYTE[dir_path+strlen(dir_path)-1] = '\0'; |
Line 770... | Line 770... | ||
770 | } |
770 | } |
771 | maxcount = sizeof(file_mas)/sizeof(dword)-1; |
771 | maxcount = sizeof(file_mas)/sizeof(dword)-1; |
772 | if (files.count>maxcount) files.count = maxcount; |
772 | if (files.count>maxcount) files.count = maxcount; |
773 | if (files.count>0) && (files.cur_y-files.first==-1) files.cur_y=0; |
773 | if (files.count>0) && (files.cur_y-files.first==-1) files.cur_y=0; |
774 | } |
774 | } |
- | 775 | for (i=0; i |
|
- | 776 | { |
|
- | 777 | if (TestBit(ESDWORD[i*304+buf+32], 4) ) count_dir++; |
|
- | 778 | } |
|
775 | if (files.count!=-1) |
779 | if (files.count!=-1) |
776 | { |
780 | { |
777 | if(!_not_draw) if (show_breadcrumb) DrawBreadCrumbs(); else DrawPathBar(); |
781 | if(!_not_draw) if (show_breadcrumb) DrawBreadCrumbs(); else DrawPathBar(); |
778 | history.add(#path); |
782 | history.add(#path); |
779 | SystemDiscs.Draw(); |
783 | SystemDiscs.Draw(); |
780 | files.visible = files.h / files.item_h; |
784 | files.visible = files.h / files.item_h; |
781 | if (files.count < files.visible) files.visible = files.count; |
785 | if (files.count < files.visible) files.visible = files.count; |
782 | if (redraw!=ONLY_SHOW) Sorting(); |
786 | if (redraw!=ONLY_SHOW) Sorting(); |
783 | list_full_redraw = true; |
787 | list_full_redraw = true; |
784 | if (redraw!=ONLY_OPEN)&&(!_not_draw) List_ReDraw(); |
788 | if (redraw!=ONLY_OPEN)&&(!_not_draw) {DrawStatusBar(); List_ReDraw();} |
785 | } |
789 | } |
786 | if (files.count==-1) && (redraw!=ONLY_OPEN) |
790 | if (files.count==-1) && (redraw!=ONLY_OPEN) |
787 | { |
791 | { |
788 | files.KeyHome(); |
792 | files.KeyHome(); |
789 | if(!_not_draw) { list_full_redraw=true; List_ReDraw(); } |
793 | if(!_not_draw) { list_full_redraw=true; DrawStatusBar(); List_ReDraw(); } |
790 | } |
794 | } |
791 | } |
795 | } |
Line 792... | Line 796... | ||
792 | 796 |