Rev 4042 | Rev 4057 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4042 | Rev 4049 | ||
---|---|---|---|
Line 4... | Line 4... | ||
4 | #ifndef AUTOBUILD |
4 | #ifndef AUTOBUILD |
5 | #include "lang.h--" |
5 | #include "lang.h--" |
6 | #endif |
6 | #endif |
Line 7... | Line 7... | ||
7 | 7 | ||
8 | //libraries |
8 | //libraries |
9 | #define MEMSIZE 0xA0000 |
9 | #define MEMSIZE 0xD0000 |
10 | #include "..\lib\kolibri.h" |
10 | #include "..\lib\kolibri.h" |
11 | #include "..\lib\strings.h" |
11 | #include "..\lib\strings.h" |
12 | #include "..\lib\mem.h" |
12 | #include "..\lib\mem.h" |
13 | #include "..\lib\dll.h" |
13 | #include "..\lib\dll.h" |
Line 36... | Line 36... | ||
36 | ?define NOT_CREATE_FILE "¥ 㤠«®áì ᮧ¤ âì ä ©«." |
36 | ?define NOT_CREATE_FILE "¥ 㤠«®áì ᮧ¤ âì ä ©«." |
37 | ?define ERROR_1 "訡ª ¯à¨ § £à㧪¥ ¡¨¡«¨®â¥ª¨ /rd/1/lib/box_lib.obj" |
37 | ?define ERROR_1 "訡ª ¯à¨ § £à㧪¥ ¡¨¡«¨®â¥ª¨ /rd/1/lib/box_lib.obj" |
38 | ?define T_PASTE_WINDOW "®¯¨àãî..." |
38 | ?define T_PASTE_WINDOW "®¯¨àãî..." |
39 | ?define T_PASTE_WINDOW_TEXT "®¯¨àã¥âáï ä ©«:" |
39 | ?define T_PASTE_WINDOW_TEXT "®¯¨àã¥âáï ä ©«:" |
40 | ?define T_CANCEL_PASTE "®¯¨à®¢ ¨¥ ¯à¥ªà 饮. ¯ª ᪮¯¨à®¢ ¥ ¯®«®áâìî." |
40 | ?define T_CANCEL_PASTE "®¯¨à®¢ ¨¥ ¯à¥ªà 饮. ¯ª ᪮¯¨à®¢ ¥ ¯®«®áâìî." |
- | 41 | ?define T_SELECT_APP_TO_OPEN_WITH "ë¡¥à¨â¥ ¯à®£à ¬¬ã ¤«ï ®âªàëâ¨ï ä ©« " |
|
41 | #elif LANG_EST |
42 | #elif LANG_EST |
42 | ?define T_FILE "Fail" |
43 | ?define T_FILE "Fail" |
43 | ?define T_TYPE "Tüüp" |
44 | ?define T_TYPE "Tüüp" |
44 | ?define T_SIZE "Suurus" |
45 | ?define T_SIZE "Suurus" |
45 | ?define T_NEW_FOLDER "Uus kataloog" |
46 | ?define T_NEW_FOLDER "Uus kataloog" |
Line 53... | Line 54... | ||
53 | ?define NOT_CREATE_FILE "Faili ei saa luua." |
54 | ?define NOT_CREATE_FILE "Faili ei saa luua." |
54 | ?define ERROR_1 "Viga teegi laadimisel /rd/1/lib/box_lib.obj" |
55 | ?define ERROR_1 "Viga teegi laadimisel /rd/1/lib/box_lib.obj" |
55 | ?define T_PASTE_WINDOW "Kopeerin..." |
56 | ?define T_PASTE_WINDOW "Kopeerin..." |
56 | ?define T_PASTE_WINDOW_TEXT "Kopeerin faili:" |
57 | ?define T_PASTE_WINDOW_TEXT "Kopeerin faili:" |
57 | ?define T_CANCEL_PASTE "Copy process terminated. Folder copied incompletely." |
58 | ?define T_CANCEL_PASTE "Copy process terminated. Folder copied incompletely." |
- | 59 | ?define T_SELECT_APP_TO_OPEN_WITH "Select application to open file" |
|
58 | #else |
60 | #else |
59 | ?define T_FILE "File" |
61 | ?define T_FILE "File" |
60 | ?define T_TYPE "Type" |
62 | ?define T_TYPE "Type" |
61 | ?define T_SIZE "Size" |
63 | ?define T_SIZE "Size" |
62 | ?define T_NEW_FOLDER "New folder" |
64 | ?define T_NEW_FOLDER "New folder" |
Line 70... | Line 72... | ||
70 | ?define NOT_CREATE_FILE "File can not be created." |
72 | ?define NOT_CREATE_FILE "File can not be created." |
71 | ?define ERROR_1 "Error while loading library /rd/1/lib/box_lib.obj" |
73 | ?define ERROR_1 "Error while loading library /rd/1/lib/box_lib.obj" |
72 | ?define T_PASTE_WINDOW "Copying..." |
74 | ?define T_PASTE_WINDOW "Copying..." |
73 | ?define T_PASTE_WINDOW_TEXT "Copying file:" |
75 | ?define T_PASTE_WINDOW_TEXT "Copying file:" |
74 | ?define T_CANCEL_PASTE "Copy process terminated. Folder copied incompletely." |
76 | ?define T_CANCEL_PASTE "Copy process terminated. Folder copied incompletely." |
- | 77 | ?define T_SELECT_APP_TO_OPEN_WITH "Select application to open file" |
|
75 | #endif |
78 | #endif |
Line 76... | Line 79... | ||
76 | 79 | ||
Line 77... | Line 80... | ||
77 | enum {ONLY_SHOW, WITH_REDRAW, ONLY_OPEN}; //OpenDir |
80 | enum {ONLY_SHOW, WITH_REDRAW, ONLY_OPEN}; //OpenDir |
78 | 81 | ||
79 | #define TITLE "Eolite File Manager v1.98.8" |
82 | #define TITLE "Eolite File Manager v1.99" |
80 | #define ABOUT_TITLE "Eolite v1.98.8" |
83 | #define ABOUT_TITLE "Eolite v1.99" |
81 | dword col_work = 0xE4DFE1; |
84 | dword col_work = 0xE4DFE1; |
82 | dword col_border = 0x9098B0; //A0A0B8; //0x819FC5; |
85 | dword col_border = 0x9098B0; //A0A0B8; //0x819FC5; |
83 | dword col_padding = 0xC8C9C9; |
86 | dword col_padding = 0xC8C9C9; |
Line 420... | Line 423... | ||
420 | SelectFile(#copy_to+strrchr(#copy_to,'/')); |
423 | SelectFile(#copy_to+strrchr(#copy_to,'/')); |
421 | } |
424 | } |
422 | if (id==100) Open(); |
425 | if (id==100) Open(); |
423 | if (id==201) |
426 | if (id==201) |
424 | { |
427 | { |
425 | pause(10); |
- | |
426 | SwitchToAnotherThread(); |
428 | SwitchToAnotherThread(); |
427 | CreateThread(#OpenWith,#open_with_stak); |
429 | CreateThread(#OpenWith,#open_with_stak); |
428 | } |
430 | } |
429 | if (id==202) FnProcess(3); //F3 |
431 | if (id==202) FnProcess(3); //F3 |
430 | if (id==203) FnProcess(4); //F4 |
432 | if (id==203) FnProcess(4); //F4 |
Line 568... | Line 570... | ||
568 | off=file_mas[filenum+files.first]*304 + buf+72; |
570 | off=file_mas[filenum+files.first]*304 + buf+72; |
569 | attr = ESDWORD[off - 40]; |
571 | attr = ESDWORD[off - 40]; |
Line 570... | Line 572... | ||
570 | 572 | ||
571 | if (! TestBit(attr, 4) ) //file or folder? |
573 | if (! TestBit(attr, 4) ) //file or folder? |
572 | { |
574 | { |
573 | Put_icon(off+_strrchr(off,'.'), files.line_h/2-7+y, color); |
575 | Put_icon(off+_strrchr(off,'.'), files.x+3, files.line_h/2-7+y, color); |
574 | 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 |
575 | } |
577 | } |
576 | else |
578 | else |
577 | if (!strcmp("..",off)) |
579 | if (!strcmp("..",off)) |
578 | Put_icon("..", files.line_h/2-7+y, color); |
580 | Put_icon("..", files.x+3, files.line_h/2-7+y, color); |
579 | else |
581 | else |
580 | Put_icon(" |
582 | Put_icon(" |
581 | 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? |
582 | if (color!=0xFFFfff) |
584 | if (color!=0xFFFfff) |
583 | { |
585 | { |
584 | itdir = TestBit(attr, 4); |
586 | itdir = TestBit(attr, 4); |