/programs/cmm/eolite/Eolite.c |
---|
39,11 → 39,13 |
?define NOT_CREATE_FOLDER "¥ 㤠«®áì ᮧ¤ âì ¯ ¯ªã." |
?define NOT_CREATE_FILE "¥ 㤠«®áì ᮧ¤ âì ä ©«." |
?define ERROR_1 "訡ª ¯à¨ § £à㧪¥ ¡¨¡«¨®â¥ª¨ /rd/1/lib/box_lib.obj" |
?define T_PASTE_WINDOW "®¯¨àãî..." |
?define T_PASTE_WINDOW_TITLE "®¯¨àãî..." |
?define T_PASTE_WINDOW_TEXT "®¯¨àã¥âáï ä ©«:" |
?define T_PASTE_WINDOW_BUTTON "à¥à¢ âì" |
?define INFO_AFTER_COPY "®¯¨à®¢ ¨¥ § ¢¥à襮" |
?define T_CANCEL_PASTE "®¯¨à®¢ ¨¥ ¯à¥ªà 饮. ¯ª ᪮¯¨à®¢ ¥ ¯®«®áâìî." |
?define T_SELECT_APP_TO_OPEN_WITH "ë¡¥à¨â¥ ¯à®£à ¬¬ã ¤«ï ®âªàëâ¨ï ä ©« " |
?define DEL_MORE_FILES_1 "íâ¨ í«¥¬¥âë (" |
?define DEL_MORE_FILES_1 "¢ë¡à ë¥ í«¥¬¥âë (" |
?define DEL_MORE_FILES_2 " èâ.)?" |
#elif LANG_EST |
?define T_FILE "Fail" |
59,12 → 61,14 |
?define NOT_CREATE_FOLDER "Kataloogi ei saa luua." |
?define NOT_CREATE_FILE "Faili ei saa luua." |
?define ERROR_1 "Viga teegi laadimisel /rd/1/lib/box_lib.obj" |
?define T_PASTE_WINDOW "Kopeerin..." |
?define T_PASTE_WINDOW_TITLE "Kopeerin..." |
?define T_PASTE_WINDOW_TEXT "Kopeerin faili:" |
?define T_PASTE_WINDOW_BUTTON "Abort" |
?define INFO_AFTER_COPY "Copy finished" |
?define T_CANCEL_PASTE "Copy process terminated. Folder copied incompletely." |
?define T_SELECT_APP_TO_OPEN_WITH "Select application to open file" |
?define DEL_MORE_FILES_1 "íâ¨ í«¥¬¥âë (" |
?define DEL_MORE_FILES_2 " èâ.)?" |
?define DEL_MORE_FILES_1 "selected items(" |
?define DEL_MORE_FILES_2 " pcs.)?" |
#else |
?define T_FILE "File" |
?define T_TYPE "Type" |
79,18 → 83,20 |
?define NOT_CREATE_FOLDER "Folder can not be created." |
?define NOT_CREATE_FILE "File can not be created." |
?define ERROR_1 "Error while loading library /rd/1/lib/box_lib.obj" |
?define T_PASTE_WINDOW "Copying..." |
?define T_PASTE_WINDOW_TITLE "Copying..." |
?define T_PASTE_WINDOW_TEXT "Copying file:" |
?define T_PASTE_WINDOW_BUTTON "Abort" |
?define INFO_AFTER_COPY "Copy finished" |
?define T_CANCEL_PASTE "Copy process terminated. Folder copied incompletely." |
?define T_SELECT_APP_TO_OPEN_WITH "Select application to open file" |
?define DEL_MORE_FILES_1 "íâ¨ í«¥¬¥âë (" |
?define DEL_MORE_FILES_2 " èâ.)?" |
?define DEL_MORE_FILES_1 "selected items(" |
?define DEL_MORE_FILES_2 " pcs.)?" |
#endif |
enum {ONLY_SHOW, WITH_REDRAW, ONLY_OPEN}; //OpenDir |
#define TITLE "Eolite File Manager v2.64" |
#define ABOUT_TITLE "Eolite v2.64" |
#define TITLE "Eolite File Manager v2.65" |
#define ABOUT_TITLE "Eolite v2.65" |
dword col_padding, col_selec, col_lpanel; |
int toolbar_buttons_x[7]={9,46,85,134,167,203}; |
/programs/cmm/eolite/include/copy.h |
---|
1,14 → 1,6 |
//Leency 2008-2014 |
#ifdef LANG_RUS |
?define INFO_AFTER_COPY "®¯¨à®¢ ¨¥ § ¢¥à襮" |
#elif LANG_EST |
?define INFO_AFTER_COPY "Copy finished" |
#else |
?define INFO_AFTER_COPY "Copy finished" |
#endif |
byte copy_to[4096]; |
byte copy_from[4096]; |
byte cut_active=0; |
enum {NOCUT, CUT, COPY_PASTE_END}; |
53,17 → 45,10 |
free(buff_data); |
} |
void copyf_Draw_Progress(dword filename) { |
DrawRectangle(0,0,WIN_COPY_W-5, 15,sc.work); |
WriteText(5,8, 0x80, sc.work_text, T_PASTE_WINDOW_TEXT); |
DrawBar(5, 26, WIN_COPY_W-10, 10, sc.work); |
WriteText(5,26, 0x80, sc.work_text, filename); |
} |
void Paste() |
{ |
char copy_rezult; |
byte copy_from[4096]; |
int j; |
int cnt = 0; |
dword buf; |
87,11 → 72,13 |
notify("Copy directory into itself is a bad idea..."); |
CopyExit(); |
} |
DisplayCopyfForm(); |
if (copy_rezult = copyf(#copy_from,#copy_to)) |
{ |
Write_Error(copy_rezult); |
} |
else if (cut_active) |
{ |
strcpy(#file_path, #copy_from); |
107,9 → 94,40 |
CopyExit(); |
} |
void CopyExit() |
#define WIN_COPY_W 345 |
#define WIN_COPY_H 80 |
proc_info Copy_Form; |
void DisplayCopyfForm() |
{ |
switch(CheckEvent()) |
{ |
case evButton: |
notify(T_CANCEL_PASTE); |
CopyExit(); |
break; |
case evReDraw: |
DefineAndDrawWindow(Form.left+Form.width-200,Form.top+90,WIN_COPY_W,GetSkinHeight()+WIN_COPY_H,0x34,sc.work,T_PASTE_WINDOW_TITLE); |
GetProcessInfo(#Copy_Form, SelfInfo); |
WriteText(45, 11, 0x80, sc.work_text, T_PASTE_WINDOW_TEXT); |
DrawFlatButton(Copy_Form.cwidth - 90, Copy_Form.cheight - 32, 80, 22, 10, sc.work_button, T_PASTE_WINDOW_BUTTON); |
DrawBar(8, 10, 32, 32, 0xFFFfff); |
break; |
} |
} |
void CopyExit() { |
action_buf = COPY_PASTE_END; |
ActivateWindow(GetProcessSlot(Form.ID)); |
ExitProcess(); |
} |
void copyf_Draw_Progress(dword copying_filename) { |
if (Copy_Form.cwidth==0) return; |
DisplayCopyfForm(); |
Put_icon(copying_filename+strrchr(copying_filename,'.'), 16, 19, 0xFFFfff, 0); |
DrawBar(45, 29, Copy_Form.cwidth-40, 10, sc.work); |
WriteText(45, 29, 0x80, sc.work_text, copying_filename); |
} |
/programs/cmm/eolite/include/properties.h |
---|
170,7 → 170,7 |
if (selected_count) |
{ |
Put_icon('', 18, 20, 0xFFFfff, 0); |
Put_icon('', 18, 19, 0xFFFfff, 0); |
strcpy(#folder_info, SET_6); |
strcat(#folder_info, itoa(file_count)); |
strcat(#folder_info, SET_7); |
186,9 → 186,9 |
else |
{ |
if ( file_info_general.isfolder ) |
Put_icon("<DIR>", 18, 20, 0xFFFfff, 0); |
Put_icon("<DIR>", 18, 19, 0xFFFfff, 0); |
else |
Put_icon(#file_name2+strrchr(#file_name2,'.'), 18, 20, 0xFFFfff, 0); |
Put_icon(#file_name2+strrchr(#file_name2,'.'), 18, 19, 0xFFFfff, 0); |
WriteText(50, 13, 0x80, 0x000000, PR_T_NAME); |
edit_box_draw stdcall (#file_name_ed); |