Rev 3956 | Rev 3991 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3956 | Rev 3980 | ||
---|---|---|---|
Line 71... | Line 71... | ||
71 | ?define T_PASTE_WINDOW_TEXT "Copying file:" |
71 | ?define T_PASTE_WINDOW_TEXT "Copying file:" |
72 | #endif |
72 | #endif |
Line 73... | Line 73... | ||
73 | 73 | ||
Line 74... | Line 74... | ||
74 | enum {ONLY_SHOW, WITH_REDRAW, ONLY_OPEN}; //OpenDir |
74 | enum {ONLY_SHOW, WITH_REDRAW, ONLY_OPEN}; //OpenDir |
75 | 75 | ||
76 | #define TITLE "Eolite File Manager v1.96" |
76 | #define TITLE "Eolite File Manager v1.97" |
77 | #define ABOUT_TITLE "Eolite v1.96" |
77 | #define ABOUT_TITLE "Eolite v1.97" |
78 | dword col_work = 0xE4DFE1; |
78 | dword col_work = 0xE4DFE1; |
79 | dword col_border = 0x9098B0; //A0A0B8; //0x819FC5; |
79 | dword col_border = 0x9098B0; //A0A0B8; //0x819FC5; |
80 | dword col_padding = 0xC8C9C9; |
80 | dword col_padding = 0xC8C9C9; |
Line 664... | Line 664... | ||
664 | DrawFlatButton(dform_x+111,208,70,20,302,0xC6DFC6,T_NO); |
664 | DrawFlatButton(dform_x+111,208,70,20,302,0xC6DFC6,T_NO); |
665 | del_active=1; |
665 | del_active=1; |
666 | } |
666 | } |
Line 667... | Line 667... | ||
667 | 667 | ||
668 | 668 | ||
669 | void Del_File(byte dodel) |
669 | void Del_File2(dword way) |
- | 670 | { |
|
- | 671 | int del_rezult; |
|
- | 672 | dword dirbuf, fcount, i, filename; |
|
670 | { |
673 | char del_from[4096], error; |
- | 674 | del_rezult = DeleteFile(way); |
|
- | 675 | if (del_rezult) |
|
- | 676 | { |
|
- | 677 | error = GetDir(#dirbuf, #fcount, way, DIRS_ONLYREAL); |
|
- | 678 | for (i=0; i |
|
- | 679 | { |
|
- | 680 | filename = i*304+dirbuf+72; |
|
- | 681 | strcpy(#del_from, way); |
|
- | 682 | chrcat(#del_from, '/'); |
|
- | 683 | strcat(#del_from, filename); |
|
- | 684 | if ( TestBit(ESDWORD[filename-40], 4) ) |
|
- | 685 | Del_File2(#del_from); |
|
- | 686 | else |
|
- | 687 | DeleteFile(#del_from); |
|
- | 688 | } |
|
- | 689 | DeleteFile(way); |
|
- | 690 | } |
|
- | 691 | } |
|
- | 692 | ||
671 | int del_rezult; |
693 | |
672 | IF (dodel==true) |
694 | void Del_File(byte dodel) |
673 | { |
695 | { |
674 | del_rezult = DeleteFile(#file_path); |
696 | int del_rezult; |
675 | IF (del_rezult) |
697 | if (dodel==true) |
676 | { |
- | |
677 | Write_Error(del_rezult); |
- | |
678 | IF ( itdir) ShowMessage(T_DEL_ERROR_1); |
- | |
679 | IF (!itdir) ShowMessage(T_DEL_ERROR_2); |
698 | { |
680 | } |
699 | Del_File2(#file_path); |
681 | } |
700 | } |
682 | del_active=0; |
701 | del_active=0; |
683 | DeleteButton(301); DeleteButton(302); |
702 | DeleteButton(301); DeleteButton(302); |