From 4c25714a7832e2d8171a20a0195f41cc924e7ee3 Mon Sep 17 00:00:00 2001 From: "Kirill Lipatov (Leency)" Date: Tue, 29 Jun 2021 20:31:23 +0000 Subject: [PATCH] Eolite RC7: - /sys support, use as default path - fix the lag on app open git-svn-id: svn://kolibrios.org@8981 a494cfbc-eb01-0410-851d-a64ba20cac60 --- programs/cmm/eolite/Eolite.c | 10 +++--- programs/cmm/eolite/include/const.h | 19 ++++++----- programs/cmm/eolite/include/gui.h | 13 ++++--- programs/cmm/eolite/include/left_panel.h | 43 ++++++++++++++---------- programs/cmm/eolite/include/settings.h | 2 +- 5 files changed, 51 insertions(+), 36 deletions(-) diff --git a/programs/cmm/eolite/Eolite.c b/programs/cmm/eolite/Eolite.c index 1cb01acb4d..f0d9f1b502 100644 --- a/programs/cmm/eolite/Eolite.c +++ b/programs/cmm/eolite/Eolite.c @@ -9,8 +9,8 @@ TODO: */ #define ABOUT_TITLE "EOLITE 5 RC6" -#define TITLE_EOLITE "Eolite File Manager 5 RC6" -#define TITLE_KFM "Kolibri File Manager 2 RC6"; +#define TITLE_EOLITE "Eolite File Manager 5 RC7" +#define TITLE_KFM "Kolibri File Manager 2 RC7"; #define MEMSIZE 1024 * 250 #include "../lib/clipboard.h" @@ -59,6 +59,7 @@ dword waves_pal[256]; //Folder data dword buf, buf_inactive; collection_int items=0; + collection_int selected=0; int selected_count; int folder_count; dword path; @@ -775,7 +776,8 @@ void Line_ReDraw(dword bgcol, filenum){ ext1=""; WriteTextCenter(files.x+files.w-140, files.text_y+y+1, 72, col.list_gb_text, ext1); } - if (chrnum(path, '/')==1) && (streq(path, "/kolibrios")==false) file_size = GetDeviceSize(#full_path); + if (chrnum(path, '/')==1) && (streq(path, "/kolibrios")==false) + && (streq(path, "/sys")==false) file_size = GetDeviceSize(#full_path); } else { @@ -929,7 +931,7 @@ void Dir_Up() strcpy(#old_folder_name, path+iii); if (iii>1) ESBYTE[path+iii-1]=NULL; else ESBYTE[path+iii]=NULL; SelectFileByName(#old_folder_name); - if(efm)DrawPathBarKfm(); + DrawPathBar(); } void EventOpenSelected() diff --git a/programs/cmm/eolite/include/const.h b/programs/cmm/eolite/include/const.h index ed38afc3a4..7cd36c8d56 100644 --- a/programs/cmm/eolite/include/const.h +++ b/programs/cmm/eolite/include/const.h @@ -171,15 +171,16 @@ enum { char *devinfo = { - "r", 0, T_SYS, - "k", 1, T_PROG, - "f", 2, T_FD, - "c", 3, T_CD, - "h", 4, T_HD, - "b", 4, T_HD, - "s", 4, T_SATA, - "t", 5, T_RAM, - "u", 6, T_USB, + "sy", 0, T_SYS, + "rd", 0, T_SYS, + "ko", 1, T_PROG, + "fd", 2, T_FD, + "cd", 3, T_CD, + "hd", 4, T_HD, + "bd", 4, T_HD, + "sd", 4, T_SATA, + "tm", 5, T_RAM, + "us", 6, T_USB, 0 }; diff --git a/programs/cmm/eolite/include/gui.h b/programs/cmm/eolite/include/gui.h index 8a0e144eea..319c110c4b 100644 --- a/programs/cmm/eolite/include/gui.h +++ b/programs/cmm/eolite/include/gui.h @@ -230,7 +230,7 @@ void DrawPathBarKfm() void DrawBreadCrumbs() collection_int breadCrumb=0; char PathShow_path[4096]; - int btnx; + int btnx, btnw; int i; { breadCrumb.drop(); @@ -247,13 +247,18 @@ void DrawBreadCrumbs() } breadCrumb.add(i+1); - if (!efm) btnx = 250-4; - else btnx = Form.cwidth/2-2*active_panel + DDW + 2; + if (!efm) { + btnx = 250-4; + btnw = Form.cwidth-278; + } else { + btnx = Form.cwidth/2-2*active_panel + DDW + 2; + btnw = 35*active_panel + Form.cwidth/2 - 17 - DDW - 2; + } for (i=0; i