Rev 5441 | Rev 5444 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 5441 | Rev 5443 | ||
---|---|---|---|
Line 81... | Line 81... | ||
81 | ?define T_SELECT_APP_TO_OPEN_WITH "Select application to open file" |
81 | ?define T_SELECT_APP_TO_OPEN_WITH "Select application to open file" |
82 | #endif |
82 | #endif |
Line 83... | Line 83... | ||
83 | 83 | ||
Line 84... | Line 84... | ||
84 | enum {ONLY_SHOW, WITH_REDRAW, ONLY_OPEN}; //OpenDir |
84 | enum {ONLY_SHOW, WITH_REDRAW, ONLY_OPEN}; //OpenDir |
85 | 85 | ||
86 | #define TITLE "Eolite File Manager v2.50" |
86 | #define TITLE "Eolite File Manager v2.51" |
Line 87... | Line 87... | ||
87 | #define ABOUT_TITLE "Eolite v2.50" |
87 | #define ABOUT_TITLE "Eolite v2.51" |
88 | dword col_padding, col_selec, col_lpanel; |
88 | dword col_padding, col_selec, col_lpanel; |
89 | 89 | ||
Line 199... | Line 199... | ||
199 | if (files.current!=id) |
199 | if (files.current!=id) |
200 | { |
200 | { |
201 | if (id |
201 | if (id |
202 | } |
202 | } |
203 | else |
203 | else |
204 | Open(); |
204 | Open(0); |
205 | } |
205 | } |
206 | }; |
206 | }; |
207 | // } select/open file |
207 | // } select/open file |
Line 208... | Line 208... | ||
208 | 208 | ||
Line 383... | Line 383... | ||
383 | case 027: //Esc |
383 | case 027: //Esc |
384 | IF (rename_active==1) ReName(false); |
384 | IF (rename_active==1) ReName(false); |
385 | break; |
385 | break; |
386 | case 013: //Enter |
386 | case 013: //Enter |
387 | IF (rename_active==1) {ReName(true); break;} |
387 | IF (rename_active==1) {ReName(true); break;} |
388 | Open(); |
388 | Open(0); |
389 | break; |
389 | break; |
390 | case 074: //menu |
390 | case 074: //menu |
391 | menu_call_mouse=0; |
391 | menu_call_mouse=0; |
392 | SwitchToAnotherThread(); |
392 | SwitchToAnotherThread(); |
393 | CreateThread(#FileMenu,#menu_stak+4092); |
393 | CreateThread(#FileMenu,#menu_stak+4092); |
394 | break; |
394 | break; |
395 | case 173: //Ctrl+Enter |
395 | case 173: //Ctrl+Enter |
396 | if (!itdir) ShowOpenWithDialog(); |
396 | if (!itdir) ShowOpenWithDialog(); |
- | 397 | else Open(1); |
|
397 | break; |
398 | break; |
398 | case 178: //up |
399 | case 178: //up |
399 | List_Current(-1); |
400 | List_Current(-1); |
400 | break; |
401 | break; |
401 | case 177: //down |
402 | case 177: //down |
Line 419... | Line 420... | ||
419 | case 185: //ins |
420 | case 185: //ins |
420 | selected_offset = file_mas[files.current+files.first]*304 + buf+32 + 7; |
421 | selected_offset = file_mas[files.current+files.first]*304 + buf+32 + 7; |
421 | if (ESBYTE[selected_offset]) ESBYTE[selected_offset]=0; else ESBYTE[selected_offset] = 1; |
422 | if (ESBYTE[selected_offset]) ESBYTE[selected_offset]=0; else ESBYTE[selected_offset] = 1; |
422 | List_Current(1); |
423 | List_Current(1); |
423 | break; |
424 | break; |
424 | case 050...059: //F1-F10 |
425 | case 048...059: //F1-F10 |
425 | FnProcess(key-49); |
426 | FnProcess(key-49); |
426 | break; |
427 | break; |
427 | default: |
428 | default: |
428 | for (i=files.current+files.first+1; i |
429 | for (i=files.current+files.first+1; i |
429 | { |
430 | { |
Line 460... | Line 461... | ||
460 | if (id==COPY_PASTE_END) |
461 | if (id==COPY_PASTE_END) |
461 | { |
462 | { |
462 | FnProcess(5); |
463 | FnProcess(5); |
463 | SelectFile(#copy_to+strrchr(#copy_to,'/')); |
464 | SelectFile(#copy_to+strrchr(#copy_to,'/')); |
464 | } |
465 | } |
465 | if (id==100) Open(); |
466 | if (id==100) Open(0); |
466 | if (id==201) ShowOpenWithDialog(); |
467 | if (id==201) ShowOpenWithDialog(); |
467 | if (id==202) FnProcess(3); //F3 |
468 | if (id==202) FnProcess(3); //F3 |
468 | if (id==203) FnProcess(4); //F4 |
469 | if (id==203) FnProcess(4); //F4 |
469 | if (id==104) Copy(#file_path, NOCUT); |
470 | if (id==104) Copy(#file_path, NOCUT); |
470 | if (id==105) Copy(#file_path, CUT); |
471 | if (id==105) Copy(#file_path, CUT); |
Line 886... | Line 887... | ||
886 | strcpy(#cur_folder, #path+i); |
887 | strcpy(#cur_folder, #path+i); |
887 | path[i]=0x00; |
888 | path[i]=0x00; |
888 | SelectFile(#cur_folder); |
889 | SelectFile(#cur_folder); |
889 | } |
890 | } |
Line 890... | Line 891... | ||
890 | 891 | ||
891 | void Open() |
892 | void Open(int rez) |
- | 893 | { |
|
- | 894 | byte temp[4096]; |
|
- | 895 | if (rez) |
|
- | 896 | { |
|
- | 897 | if (!strcmp(#file_name,"..")) return; |
|
- | 898 | strcpy(#temp, #file_path); |
|
- | 899 | if (path[strlen(#temp)-1]!='/') chrcat(#temp, '/'); //need "/" in the end |
|
- | 900 | RunProgram("/sys/File Managers/Eolite", #temp); |
|
- | 901 | return; |
|
892 | { |
902 | } |
893 | if (!files.count) return; |
903 | if (!files.count) return; |
894 | if (!itdir) |
904 | if (!itdir) |
895 | { |
905 | { |
896 | if (strrchr(#file_name, '.')==0) RunProgram(#file_path, ""); else RunProgram("/sys/@open", #file_path); |
906 | if (strrchr(#file_name, '.')==0) RunProgram(#file_path, ""); else RunProgram("/sys/@open", #file_path); |