Rev 5987 | Rev 5996 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 5987 | Rev 5991 | ||
---|---|---|---|
Line 120... | Line 120... | ||
120 | dword IPC_LEN,IPC_ID; |
120 | dword IPC_LEN,IPC_ID; |
121 | char IPC_BUF[10]; |
121 | char IPC_BUF[10]; |
122 | rand_n = random(40); |
122 | rand_n = random(40); |
Line 123... | Line 123... | ||
123 | 123 | ||
124 | load_dll(boxlib, #box_lib_init,0); |
124 | load_dll(boxlib, #box_lib_init,0); |
Line 125... | Line 125... | ||
125 | load_dll(libini, #lib_init,1); |
125 | load_dll(libini, #lib_init,1); |
126 | 126 | ||
Line 127... | Line 127... | ||
127 | eolite_ini_path = abspath("Eolite.ini"); |
127 | eolite_ini_path = abspath("Eolite.ini"); |
Line 368... | Line 368... | ||
368 | if (key_scancode == SCAN_CODE_ESC) Del_File(false); |
368 | if (key_scancode == SCAN_CODE_ESC) Del_File(false); |
369 | break; |
369 | break; |
370 | } |
370 | } |
371 | if (new_element_active) |
371 | if (new_element_active) |
372 | { |
372 | { |
373 | if (key_scancode == SCAN_CODE_ESC) NewElement(0); |
373 | if (key_scancode == SCAN_CODE_ENTER) NewElement(true); |
374 | if (key_scancode == SCAN_CODE_ENTER) NewElement(1); |
374 | if (key_scancode == SCAN_CODE_ESC) NewElement(false); |
375 | EAX= key_ascii << 8; |
375 | EAX= key_ascii << 8; |
376 | edit_box_key stdcall (#new_file_ed); |
376 | edit_box_key stdcall (#new_file_ed); |
377 | break; |
377 | break; |
378 | } |
378 | } |
379 | if (files.ProcessKey(key_scancode)) |
379 | if (files.ProcessKey(key_scancode)) |
Line 505... | Line 505... | ||
505 | if (action_buf) |
505 | if (action_buf) |
506 | { |
506 | { |
507 | if (action_buf==OPERATION_END) |
507 | if (action_buf==OPERATION_END) |
508 | { |
508 | { |
509 | FnProcess(5); |
509 | FnProcess(5); |
510 | SelectFileByName(#copy_to+strrchr(#copy_to,'/')); |
510 | if (copy_stak) SelectFileByName(#copy_to+strrchr(#copy_to,'/')); |
511 | } |
511 | } |
512 | if (action_buf==100) Open(0); |
512 | if (action_buf==100) Open(0); |
513 | if (action_buf==201) ShowOpenWithDialog(); |
513 | if (action_buf==201) ShowOpenWithDialog(); |
514 | if (action_buf==202) FnProcess(3); //F3 |
514 | if (action_buf==202) FnProcess(3); //F3 |
515 | if (action_buf==203) FnProcess(4); //F4 |
515 | if (action_buf==203) FnProcess(4); //F4 |
Line 521... | Line 521... | ||
521 | if (action_buf==109) FnProcess(5); |
521 | if (action_buf==109) FnProcess(5); |
522 | if (action_buf==110) FnProcess(8); |
522 | if (action_buf==110) FnProcess(8); |
523 | action_buf=0; |
523 | action_buf=0; |
524 | } |
524 | } |
525 | } |
525 | } |
526 | - | ||
527 | if(cmd_free) |
526 | if(cmd_free) |
528 | { |
527 | { |
529 | if(cmd_free==1) free(menu_stak); |
528 | if(cmd_free==1) menu_stak=free(menu_stak); |
530 | else if(cmd_free==2)free(about_stak); |
529 | else if(cmd_free==2) about_stak=free(about_stak); |
531 | else if(cmd_free==3)free(properties_stak); |
530 | else if(cmd_free==3) properties_stak=free(properties_stak); |
532 | else if(cmd_free==4)free(settings_stak); |
531 | else if(cmd_free==4) settings_stak=free(settings_stak); |
533 | else if(cmd_free==5)free(copy_stak); |
532 | else if(cmd_free==5) copy_stak=free(copy_stak); |
- | 533 | else if(cmd_free==6) delete_stak=free(delete_stak); |
|
534 | cmd_free = false; |
534 | cmd_free = false; |
535 | } |
535 | } |
536 | } |
536 | } |
537 | } |
537 | } |
Line 660... | Line 660... | ||
660 | } |
660 | } |
Line 661... | Line 661... | ||
661 | 661 | ||
662 | 662 | ||
663 | void Line_ReDraw(dword bgcol, filenum){ |
663 | void Line_ReDraw(dword bgcol, filenum){ |
664 | dword text_col=0, |
664 | dword text_col=0, |
665 | ext1, attr, |
665 | ext1, attr, |
666 | file_offet, |
666 | file_offet, |
667 | file_name_off, |
667 | file_name_off, |
668 | y=filenum*files.item_h+files.y; |
668 | y=filenum*files.item_h+files.y; |
669 | BDVK file; |
669 | BDVK file; |
670 | if (filenum==-1) return; |
670 | if (filenum==-1) return; |
671 | DrawBar(files.x,y,3,files.item_h,bgcol); |
671 | DrawBar(files.x,y,3,files.item_h,bgcol); |
672 | DrawBar(files.x+19,y,files.w-19,files.item_h,bgcol); |
672 | DrawBar(files.x+19,y,files.w-19,files.item_h,bgcol); |
Line 884... | Line 884... | ||
884 | copy_bar.value = 0; |
884 | copy_bar.value = 0; |
885 | operation_flag = DELETE_FLAG; |
885 | operation_flag = DELETE_FLAG; |
Line 886... | Line 886... | ||
886 | 886 | ||
887 | if (selected_count) |
887 | if (selected_count) |
888 | { |
888 | { |
889 | for (i=0; i |
889 | for (i=0; i |
890 | { |
890 | { |
891 | selected_offset2 = file_mas[i]*304 + buf+32 + 7; |
891 | selected_offset2 = file_mas[i]*304 + buf+32 + 7; |
892 | if (ESBYTE[selected_offset2]) { |
892 | if (ESBYTE[selected_offset2]) { |
893 | sprintf(#del_from,"%s%s",#path,file_mas[i]*304+buf+72); |
893 | sprintf(#del_from,"%s%s",#path,file_mas[i]*304+buf+72); |
894 | GetFileInfo(#del_from, #file_info_count); |
894 | GetFileInfo(#del_from, #file_info_count); |
895 | if ( file_info_count.isfolder ) DirFileCount(#del_from); |
895 | if ( file_info_count.isfolder ) DirFileCount(#del_from); |
896 | else file_count_copy++; |
896 | else file_count_copy++; |
897 | } |
897 | } |
898 | } |
898 | } |
899 | } |
899 | } |
900 | else |
900 | else |
901 | { |
901 | { |
902 | if (itdir) DirFileCount(#file_path); |
902 | if (itdir) DirFileCount(#file_path); |
903 | else file_count_copy++; |
903 | else file_count_copy++; |
Line 904... | Line 904... | ||
904 | } |
904 | } |
Line 905... | Line -... | ||
905 | - | ||
906 | copy_bar.max = file_count_copy; |
- | |
907 | - | ||
908 | //if (dodel==true) |
- | |
909 | //{ |
905 | |
910 | //del_active=2; |
906 | copy_bar.max = file_count_copy; |
911 | //if (itdir) ShowMessage(WAIT_DELETING_FOLDER, 0); |
907 | |
912 | del_error = 0; |
908 | del_error = 0; |
913 | DisplayOperationForm(); |
909 | DisplayOperationForm(); |
914 | if (selected_count) |
- | |
915 | { |
- | |
916 | for (i=0; i |
- | |
917 | { |
- | |
918 | selected_offset2 = file_mas[i]*304 + buf+32 + 7; |
- | |
919 | if (ESBYTE[selected_offset2]) { |
- | |
920 | sprintf(#del_from,"%s%s",#path,file_mas[i]*304+buf+72); |
- | |
921 | Del_File2(#del_from, 1); |
- | |
922 | } |
- | |
923 | } |
910 | if (selected_count) |
- | 911 | { |
|
- | 912 | for (i=0; i |
|
- | 913 | { |
|
924 | } |
914 | selected_offset2 = file_mas[i]*304 + buf+32 + 7; |
- | 915 | if (ESBYTE[selected_offset2]) { |
|
925 | else |
916 | sprintf(#del_from,"%s%s",#path,file_mas[i]*304+buf+72); |
926 | { |
- | |
- | 917 | Del_File2(#del_from, 1); |
|
927 | Del_File2(#file_path, 1); |
918 | } |
928 | } |
919 | } |
929 | if (del_error) Write_Error(del_error); |
920 | } |
- | 921 | else |
|
930 | DialogExit(); |
922 | { |
931 | //} |
923 | Del_File2(#file_path, 1); |
932 | //del_active=0; |
924 | } |
933 | //DeleteButton(301); |
925 | if (del_error) Write_Error(del_error); |
Line 934... | Line 926... | ||
934 | //DeleteButton(302); |
926 | cmd_free = 6; |
935 | //Open_Dir(#path,WITH_REDRAW); |
927 | DialogExit(); |
936 | } |
928 | } |
Line 947... | Line 939... | ||
947 | 939 | ||
948 | void SelectFileByName(dword that_file) |
940 | void SelectFileByName(dword that_file) |
949 | { |
941 | { |
950 | int ind; |
942 | int ind; |
951 | files.KeyHome(); |
943 | files.KeyHome(); |
952 | Open_Dir(#path,ONLY_OPEN); |
944 | Open_Dir(#path,ONLY_OPEN); |
953 | if (!real_files_names_case) strttl(that_file); |
945 | if (!real_files_names_case) strttl(that_file); |
954 | for (ind=files.count-1; ind>=0; ind--;) { if (!strcmp(file_mas[ind]*304+buf+72,that_file)) break; } |
946 | for (ind=files.count-1; ind>=0; ind--;) { if (!strcmp(file_mas[ind]*304+buf+72,that_file)) break; } |
955 | files.cur_y = ind - 1; |
947 | files.cur_y = ind - 1; |
956 | files.KeyDown(); |
948 | files.KeyDown(); |