Rev 4049 | Rev 4069 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4049 | Rev 4057 | ||
---|---|---|---|
Line 77... | Line 77... | ||
77 | ?define T_SELECT_APP_TO_OPEN_WITH "Select application to open file" |
77 | ?define T_SELECT_APP_TO_OPEN_WITH "Select application to open file" |
78 | #endif |
78 | #endif |
Line 79... | Line 79... | ||
79 | 79 | ||
Line 80... | Line 80... | ||
80 | enum {ONLY_SHOW, WITH_REDRAW, ONLY_OPEN}; //OpenDir |
80 | enum {ONLY_SHOW, WITH_REDRAW, ONLY_OPEN}; //OpenDir |
81 | 81 | ||
82 | #define TITLE "Eolite File Manager v1.99" |
82 | #define TITLE "Eolite File Manager v2.0" |
83 | #define ABOUT_TITLE "Eolite v1.99" |
83 | #define ABOUT_TITLE "Eolite v2.0" |
84 | dword col_work = 0xE4DFE1; |
84 | dword col_work = 0xE4DFE1; |
85 | dword col_border = 0x9098B0; //A0A0B8; //0x819FC5; |
85 | dword col_border = 0x9098B0; //A0A0B8; //0x819FC5; |
86 | dword col_padding = 0xC8C9C9; |
86 | dword col_padding = 0xC8C9C9; |
Line 107... | Line 107... | ||
107 | sort_num=2, |
107 | sort_num=2, |
108 | itdir; |
108 | itdir; |
Line 109... | Line 109... | ||
109 | 109 | ||
110 | proc_info Form; |
110 | proc_info Form; |
111 | mouse m; |
111 | mouse m; |
112 | int mouse_dd, scroll_used, scroll_size, sorting_arrow_x; |
112 | int mouse_dd, scroll_used, scroll_size, sorting_arrow_x, kolibrios_drive; |
113 | dword buf, off; |
113 | dword buf, off; |
114 | dword file_mas[6898]; |
114 | dword file_mas[6898]; |
115 | int j, i; |
115 | int j, i; |
Line 198... | Line 198... | ||
198 | { |
198 | { |
199 | can_show = 0; |
199 | can_show = 0; |
200 | if (m.y>=files.y) |
200 | if (m.y>=files.y) |
201 | { |
201 | { |
202 | SwitchToAnotherThread(); |
202 | SwitchToAnotherThread(); |
203 | CreateThread(#FileMenu,#menu_stak); |
203 | CreateThread(#FileMenu,#menu_stak+4092); |
204 | } |
204 | } |
205 | break; |
205 | break; |
206 | } |
206 | } |
207 | // } file menu |
207 | // } file menu |
Line 285... | Line 285... | ||
285 | break; |
285 | break; |
286 | case 25: //copy |
286 | case 25: //copy |
287 | Copy(#file_path, NOCUT); |
287 | Copy(#file_path, NOCUT); |
288 | break; |
288 | break; |
289 | case 26: //paste |
289 | case 26: //paste |
290 | CreateThread(#Paste,#copy_stak); |
290 | CreateThread(#Paste,#copy_stak+4092); |
291 | break; |
291 | break; |
292 | case 31...33: //sort |
292 | case 31...33: //sort |
293 | IF(sort_num==1) DrawFilledBar(sorting_arrow_x,42,6,10); |
293 | IF(sort_num==1) DrawFilledBar(sorting_arrow_x,42,6,10); |
294 | IF(sort_num==2) DrawFilledBar(sorting_arrow_x,42,6,10); |
294 | IF(sort_num==2) DrawFilledBar(sorting_arrow_x,42,6,10); |
295 | IF(sort_num==3) DrawFilledBar(sorting_arrow_x,42,6,10); |
295 | IF(sort_num==3) DrawFilledBar(sorting_arrow_x,42,6,10); |
Line 358... | Line 358... | ||
358 | break; |
358 | break; |
359 | case 003: //Ctrl+C |
359 | case 003: //Ctrl+C |
360 | Copy(#file_path, NOCUT); |
360 | Copy(#file_path, NOCUT); |
361 | break; |
361 | break; |
362 | case 022: //Ctrl+V |
362 | case 022: //Ctrl+V |
363 | CreateThread(#Paste,#copy_stak); |
363 | CreateThread(#Paste,#copy_stak+4092); |
364 | break; |
364 | break; |
365 | case 027: //Esc |
365 | case 027: //Esc |
366 | IF (rename_active==1) ReName(false); |
366 | IF (rename_active==1) ReName(false); |
367 | break; |
367 | break; |
368 | case 013: //Enter |
368 | case 013: //Enter |
Line 424... | Line 424... | ||
424 | } |
424 | } |
425 | if (id==100) Open(); |
425 | if (id==100) Open(); |
426 | if (id==201) |
426 | if (id==201) |
427 | { |
427 | { |
428 | SwitchToAnotherThread(); |
428 | SwitchToAnotherThread(); |
429 | CreateThread(#OpenWith,#open_with_stak); |
429 | CreateThread(#OpenWith,#open_with_stak+4092); |
430 | } |
430 | } |
431 | if (id==202) FnProcess(3); //F3 |
431 | if (id==202) FnProcess(3); //F3 |
432 | if (id==203) FnProcess(4); //F4 |
432 | if (id==203) FnProcess(4); //F4 |
433 | if (id==104) Copy(#file_path, NOCUT); |
433 | if (id==104) Copy(#file_path, NOCUT); |
434 | if (id==105) Copy(#file_path, CUT); |
434 | if (id==105) Copy(#file_path, CUT); |
435 | if (id==106) CreateThread(#Paste,#copy_stak); |
435 | if (id==106) CreateThread(#Paste,#copy_stak+4092); |
436 | if (id==207) FnProcess(2); |
436 | if (id==207) FnProcess(2); |
437 | if (id==108) Del_Form(); |
437 | if (id==108) Del_Form(); |
438 | if (id==109) FnProcess(5); |
438 | if (id==109) FnProcess(5); |
439 | } |
439 | } |
Line 570... | Line 570... | ||
570 | off=file_mas[filenum+files.first]*304 + buf+72; |
570 | off=file_mas[filenum+files.first]*304 + buf+72; |
571 | attr = ESDWORD[off - 40]; |
571 | attr = ESDWORD[off - 40]; |
Line 572... | Line 572... | ||
572 | 572 | ||
573 | if (! TestBit(attr, 4) ) //file or folder? |
573 | if (! TestBit(attr, 4) ) //file or folder? |
574 | { |
574 | { |
575 | Put_icon(off+_strrchr(off,'.'), files.x+3, files.line_h/2-7+y, color); |
575 | Put_icon(off+_strrchr(off,'.'), files.x+3, files.line_h/2-7+y, color, 0); |
576 | WriteText(7-strlen(ConvertMemSize(ESDWORD[off-8]))*6+onLeft(75,0),files.line_h-6/2+y,0x80,0,ConvertMemSize(ESDWORD[off-8])); //size |
576 | WriteText(7-strlen(ConvertMemSize(ESDWORD[off-8]))*6+onLeft(75,0),files.line_h-6/2+y,0x80,0,ConvertMemSize(ESDWORD[off-8])); //size |
577 | } |
577 | } |
578 | else |
578 | else |
579 | if (!strcmp("..",off)) |
579 | if (!strcmp("..",off)) |
580 | Put_icon("..", files.x+3, files.line_h/2-7+y, color); |
580 | Put_icon("..", files.x+3, files.line_h/2-7+y, color, 0); |
581 | else |
581 | else |
582 | Put_icon(" |
582 | Put_icon(" |
583 | if ( TestBit(attr, 1) ) || ( TestBit(attr, 2) ) text_col=0xA6A6B7; //system or hiden? |
583 | if ( TestBit(attr, 1) ) || ( TestBit(attr, 2) ) text_col=0xA6A6B7; //system or hiden? |
584 | if (color!=0xFFFfff) |
584 | if (color!=0xFFFfff) |
585 | { |
585 | { |
586 | itdir = TestBit(attr, 4); |
586 | itdir = TestBit(attr, 4); |
Line 843... | Line 843... | ||
843 | { |
843 | { |
844 | switch(N) |
844 | switch(N) |
845 | { |
845 | { |
846 | case 1: |
846 | case 1: |
847 | SwitchToAnotherThread(); |
847 | SwitchToAnotherThread(); |
848 | CreateThread(#about_dialog,#about_stak); |
848 | CreateThread(#about_dialog,#about_stak+4092); |
849 | break; |
849 | break; |
850 | case 2: |
850 | case 2: |
851 | if (!files.count) break; |
851 | if (!files.count) break; |
852 | edit2.flags = 100000000000010b; //set active |
852 | edit2.flags = 100000000000010b; //set active |
853 | edit2.left = files.x + 21; |
853 | edit2.left = files.x + 21; |
Line 908... | Line 908... | ||
908 | } |
908 | } |
Line 909... | Line 909... | ||
909 | 909 | ||
Line 910... | Line -... | ||
910 | - | ||
911 | stop: |
910 | |
912 | - | ||
913 | char about_stak[512]; |
911 | stop: |
- | 912 | ||
- | 913 | char menu_stak[4096]; |
|
914 | char menu_stak[512]; |
914 | char copy_stak[4096]; |