diff --git a/programs/cmm/eolite/Eolite.c b/programs/cmm/eolite/Eolite.c index dc2c82dced..37a7b74ff0 100644 --- a/programs/cmm/eolite/Eolite.c +++ b/programs/cmm/eolite/Eolite.c @@ -12,13 +12,14 @@ #include "..\lib\strings.h" #include "..\lib\mem.h" #include "..\lib\dll.h" -#include "..\lib\lib.obj\libini.h" -#include "..\lib\lib.obj\box_lib.h" #include "..\lib\file_system.h" #include "..\lib\figures.h" #include "..\lib\list_box.h" #include "..\lib\copyf.h" #include "..\lib\random.h" +//obj +#include "..\lib\lib.obj\libini.h" +#include "..\lib\lib.obj\box_lib.h" //images #include "imgs\toolbar.txt" #include "imgs\left_p.txt" @@ -82,8 +83,8 @@ enum {ONLY_SHOW, WITH_REDRAW, ONLY_OPEN}; //OpenDir -#define TITLE "Eolite File Manager v2.58" -#define ABOUT_TITLE "Eolite v2.58" +#define TITLE "Eolite File Manager v2.6" +#define ABOUT_TITLE "Eolite v2.6" dword col_padding, col_selec, col_lpanel; int toolbar_buttons_x[7]={9,46,85,134,167,203}; @@ -597,7 +598,7 @@ void List_ReDraw() void Line_ReDraw(dword color, filenum){ dword text_col=0, - ext1, + ext1, attr, file_offet, file_name_off, y=filenum*files.line_h+files.y; @@ -610,12 +611,12 @@ void Line_ReDraw(dword color, filenum){ if (files.line_h>15) DrawBar(files.x+3,y,16,files.line_h-15,color); file_offet = file_mas[filenum+files.first]*304 + buf+32; - file.attr = ESDWORD[file_offet]; + attr = ESDWORD[file_offet]; file.selected = ESBYTE[file_offet+7]; file.sizelo = ESDWORD[file_offet+32]; file_name_off = file_offet+40; - if (! TestBit(file.attr, 4) ) //file or folder? + if (! TestBit(attr, 4) ) //file or folder? { Put_icon(file_name_off+_strrchr(file_name_off,'.'), files.x+3, files.line_h/2-7+y, color, 0); WriteText(7-strlen(ConvertSize(file.sizelo))*6+Form.cwidth - 76,files.line_h-6/2+y,0x80,0,ConvertSize(file.sizelo)); @@ -626,10 +627,10 @@ void Line_ReDraw(dword color, filenum){ Put_icon(ext1, files.x+3, files.line_h/2-7+y, color, 0); } - if (TestBit(file.attr, 1)) || (TestBit(file.attr, 2)) text_col=0xA6A6B7; //system or hiden? + if (TestBit(attr, 1)) || (TestBit(attr, 2)) text_col=0xA6A6B7; //system or hiden? if (color!=0xFFFfff) { - itdir = TestBit(file.attr, 4); + itdir = TestBit(attr, 4); strcpy(#file_name, file_name_off); strcpy(#file_path, #path); strcat(#file_path, #file_name); diff --git a/programs/cmm/eolite/include/properties.h b/programs/cmm/eolite/include/properties.h index de50f36063..f7803cbf83 100644 --- a/programs/cmm/eolite/include/properties.h +++ b/programs/cmm/eolite/include/properties.h @@ -4,25 +4,9 @@ ?define PR_T_NAME "Имя:" ?define PR_T_DEST "Расположение:" ?define PR_T_SIZE "Размер:" - ?define SET_3 "Создан" - ?define SET_4 "Открыт" - ?define SET_5 "Изменен" - ?define SET_6 "Файлов: " - ?define SET_7 " Папок: " - ?define PR_T_CONTAINS "Содержит: " - ?define FLAGS " Аттрибуты " - ?define PR_T_HIDDEN "Скрытый" - ?define PR_T_SYSTEM "Системный" - ?define PR_T_ONLY_READ "Только чтение" -#elif LANG_EST - ?define WINDOW_TITLE_PROPERTIES "Свойства" - ?define BTN_CLOSE "Закрыть" - ?define PR_T_NAME "Имя:" - ?define PR_T_DEST "Расположение:" - ?define PR_T_SIZE "Размер:" - ?define SET_3 "Создан" - ?define SET_4 "Открыт" - ?define SET_5 "Изменен" + ?define SET_3 "Создан:" + ?define SET_4 "Открыт:" + ?define SET_5 "Изменен:" ?define SET_6 "Файлов: " ?define SET_7 " Папок: " ?define PR_T_CONTAINS "Содержит: " @@ -36,9 +20,9 @@ ?define PR_T_NAME "Name:" ?define PR_T_DEST "Destination:" ?define PR_T_SIZE "Size:" - ?define SET_3 "Created" - ?define SET_4 "Opened" - ?define SET_5 "Modified" + ?define SET_3 "Created:" + ?define SET_4 "Opened:" + ?define SET_5 "Modified:" ?define SET_6 "Files: " ?define SET_7 " Folders: " ?define PR_T_CONTAINS "Contains: " @@ -53,17 +37,14 @@ char path_to_file[4096]="\0"; char file_name2[4096]="\0"; edit_box file_name_ed = {195,50,25,0xffffff,0x94AECE,0x000000,0xffffff,2,4098,#file_name2,#mouse_ddd2, 1000000000000000b,2,2}; edit_box path_to_file_ed = {145,100,46,0xffffff,0x94AECE,0x000000,0xffffff,2,4098,#path_to_file,#mouse_ddd2, 1000000000000000b,2,2}; -frame flags_frame = { 0, 280, 10, 83, 106, 0x000111, 0xFFFfff, 1, FLAGS, 0, 0, 6, 0x000111, 0xCCCccc }; - -byte HIDDEN_chb, - SYSTEM_chb, - ONLY_READ_chb; +frame flags_frame = { 0, 280, 10, 83, 151, 0x000111, 0xFFFfff, 1, FLAGS, 0, 0, 6, 0x000111, 0xCCCccc }; int file_count, dir_count, size_dir; char folder_info[200]; BDVK file_info_general; BDVK file_info_dirsize; + void GetSizeDir(dword way) { dword dirbuf, fcount, i, filename; @@ -135,14 +116,14 @@ void properties_dialog() break; case evReDraw: - DefineAndDrawWindow(Form.left + 150,150,270,240+GetSkinHeight(),0x34,sc.work,WINDOW_TITLE_PROPERTIES); + DefineAndDrawWindow(Form.left + 150,150,270,285+GetSkinHeight(),0x34,sc.work,WINDOW_TITLE_PROPERTIES); GetProcessInfo(#settings_form, SelfInfo); DrawFlatButton(settings_form.cwidth - 70 - 13, settings_form.cheight - 34, 70, 22, 10, 0xE4DFE1, BTN_CLOSE); DrawBar(10, 10, 32, 32, 0xFFFfff); - if (! TestBit(file_info_general.attr, 4) ) - Put_icon(#file_name2+strrchr(#file_name2,'.'), 18, 20, 0xFFFfff, 0); - else + if ( file_info_general.isfolder ) Put_icon("