Rev 8821 | Rev 8854 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 8821 | Rev 8826 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | //Leency, Veliant, Punk_Joker, PavelYakov & KolibriOS Team 2008-2021 |
1 | //Leency, Veliant, Punk_Joker, PavelYakov & KolibriOS Team 2008-2021 |
2 | //GNU GPL license. |
2 | //GNU GPL license. |
Line 3... | Line 3... | ||
3 | 3 | ||
Line 4... | Line 4... | ||
4 | // 70.5 - get volume info and label |
4 | // 70.5 - get volume info and label |
5 | 5 | ||
Line 6... | Line 6... | ||
6 | #define TITLE "Eolite File Manager 4.70" |
6 | #define TITLE "Eolite File Manager 4.80" |
7 | #define ABOUT_TITLE "EOLITE 4.70" |
7 | #define ABOUT_TITLE "EOLITE 4.80" |
8 | 8 | ||
Line 653... | Line 653... | ||
653 | } |
653 | } |
Line 654... | Line 654... | ||
654 | 654 | ||
655 | void DrawFilePanels() |
655 | void DrawFilePanels() |
656 | { |
656 | { |
- | 657 | int files_y; |
|
- | 658 | int w2 = -Form.cwidth-1/2+Form.cwidth; |
|
657 | int files_y; |
659 | int h2; |
658 | if (!two_panels.checked) |
660 | if (!two_panels.checked) |
659 | { |
661 | { |
660 | DrawDeviceAndActionsLeftPanel(); |
662 | DrawDeviceAndActionsLeftPanel(); |
661 | files.SetSizes(192, 57, Form.cwidth - 210, Form.cheight - 59 - status_bar_h, files.item_h); |
663 | files.SetSizes(192, 57, Form.cwidth - 210, Form.cheight - 59 - status_bar_h, files.item_h); |
Line 668... | Line 670... | ||
668 | llist_copy(#files, #files_inactive); |
670 | llist_copy(#files, #files_inactive); |
669 | strcpy(#path, #inactive_path); |
671 | strcpy(#path, #inactive_path); |
670 | col.selec = col.selec_inactive; |
672 | col.selec = col.selec_inactive; |
671 | SystemDiscs.Draw(); |
673 | SystemDiscs.Draw(); |
672 | files_y = files.y; |
674 | files_y = files.y; |
- | 675 | h2 = Form.cheight-files_y-2 - status_bar_h; |
|
Line 673... | Line 676... | ||
673 | 676 | ||
674 | if (active_panel==1) |
677 | if (active_panel==1) |
675 | { |
678 | { |
676 | llist_copy(#files, #files_inactive); |
679 | llist_copy(#files, #files_inactive); |
677 | strcpy(#path, #inactive_path); |
680 | strcpy(#path, #inactive_path); |
678 | col.selec = col.selec_inactive; //this is a bad code: need to use some var to set inactive panel for DrawList(); |
681 | col.selec = col.selec_inactive; //this is a bad code: need to use some var to set inactive panel for DrawList(); |
679 | files.SetSizes(Form.cwidth/2, files_y, Form.cwidth/2 -17, Form.cheight-files_y-2 - status_bar_h, files.item_h); |
682 | files.SetSizes(Form.cwidth/2, files_y, w2-17, h2, files.item_h); |
680 | DrawList(); |
683 | DrawList(); |
681 | Open_Dir(#path,WITH_REDRAW); |
684 | Open_Dir(#path,WITH_REDRAW); |
682 | llist_copy(#files, #files_active); |
685 | llist_copy(#files, #files_active); |
683 | strcpy(#path, #active_path); |
686 | strcpy(#path, #active_path); |
684 | col.selec = col.selec_active; |
687 | col.selec = col.selec_active; |
685 | files.SetSizes(2, files_y, Form.cwidth/2-2-17, Form.cheight-files_y-2 - status_bar_h, files.item_h); |
688 | files.SetSizes(2, files_y, Form.cwidth/2-2-17, h2, files.item_h); |
686 | DrawList(); |
689 | DrawList(); |
687 | Open_Dir(#path,WITH_REDRAW); |
690 | Open_Dir(#path,WITH_REDRAW); |
688 | } |
691 | } |
689 | if (active_panel==2) |
692 | if (active_panel==2) |
690 | { |
693 | { |
691 | files.SetSizes(2, files_y, Form.cwidth/2-2-17, Form.cheight-files_y-2 - status_bar_h, files.item_h); |
694 | files.SetSizes(2, files_y, Form.cwidth/2-2-17, h2, files.item_h); |
692 | DrawList(); |
695 | DrawList(); |
693 | Open_Dir(#path,WITH_REDRAW); |
696 | Open_Dir(#path,WITH_REDRAW); |
694 | llist_copy(#files, #files_active); |
697 | llist_copy(#files, #files_active); |
695 | strcpy(#path, #active_path); |
698 | strcpy(#path, #active_path); |
696 | col.selec = col.selec_active; |
699 | col.selec = col.selec_active; |
697 | files.SetSizes(Form.cwidth/2, files_y, Form.cwidth/2 -17, Form.cheight-files_y-2 - status_bar_h, files.item_h); |
700 | files.SetSizes(Form.cwidth/2, files_y, w2 -17, h2, files.item_h); |
698 | DrawList(); |
701 | DrawList(); |
699 | Open_Dir(#path,WITH_REDRAW); |
702 | Open_Dir(#path,WITH_REDRAW); |
700 | } |
703 | } |
701 | } |
704 | } |