From 22c10107e7ca92354e06be8f3be17388fc8e0568 Mon Sep 17 00:00:00 2001 From: Serhii Sakhno Date: Sat, 21 Dec 2013 13:45:34 +0000 Subject: [PATCH] Eolite 2.15.1: add to ini flag show disk free space bar git-svn-id: svn://kolibrios.org@4394 a494cfbc-eb01-0410-851d-a64ba20cac60 --- data/common/File Managers/eolite.ini | 1 + programs/cmm/eolite/Eolite.c | 5 +++-- programs/cmm/eolite/include/ini.h | 1 + programs/cmm/eolite/include/left_panel.h | 2 ++ 4 files changed, 7 insertions(+), 2 deletions(-) diff --git a/data/common/File Managers/eolite.ini b/data/common/File Managers/eolite.ini index d15feb118e..0bb4c5a13c 100644 --- a/data/common/File Managers/eolite.ini +++ b/data/common/File Managers/eolite.ini @@ -96,4 +96,5 @@ SelectionColor=94AECE LineHeight=18 ShowDeviceName=1 RealFileNamesCase=0 +DrwRamDiskSpace=1 diff --git a/programs/cmm/eolite/Eolite.c b/programs/cmm/eolite/Eolite.c index efa2a70a48..34c5bbe6b7 100644 --- a/programs/cmm/eolite/Eolite.c +++ b/programs/cmm/eolite/Eolite.c @@ -79,8 +79,8 @@ enum {ONLY_SHOW, WITH_REDRAW, ONLY_OPEN}; //OpenDir -#define TITLE "Eolite File Manager v2.15" -#define ABOUT_TITLE "Eolite v2.15" +#define TITLE "Eolite File Manager v2.15.1" +#define ABOUT_TITLE "Eolite v2.15.1" dword col_padding, col_selec, col_lpanel; int toolbar_buttons_x[7]={9,46,85,134,167,203}; @@ -103,6 +103,7 @@ byte rename_active=0, del_active=0, show_dev_name=1, + drw_ram_disk_space=1, real_files_names_case=0, sort_num=2, itdir; diff --git a/programs/cmm/eolite/include/ini.h b/programs/cmm/eolite/include/ini.h index 66d99bc8c6..d76ed90741 100644 --- a/programs/cmm/eolite/include/ini.h +++ b/programs/cmm/eolite/include/ini.h @@ -34,6 +34,7 @@ void GetIni(byte onload) IF (!strcmp(#parametr,"LineHeight")) files.line_h = atoi(#option); IF (!strcmp(#parametr,"ShowDeviceName")) show_dev_name=atoi(#option); IF (!strcmp(#parametr,"RealFileNamesCase")) real_files_names_case=atoi(#option); + IF (!strcmp(#parametr,"DrwRamDiskSpace")) drw_ram_disk_space=atoi(#option); IF (parametr) && (!strcmp(#file_name+strrchr(#file_name,'.'),#parametr)) && (!onload) { diff --git a/programs/cmm/eolite/include/left_panel.h b/programs/cmm/eolite/include/left_panel.h index 99842195f4..ac15c3b020 100644 --- a/programs/cmm/eolite/include/left_panel.h +++ b/programs/cmm/eolite/include/left_panel.h @@ -120,6 +120,8 @@ void SystemDiscsDraw() case 'r': dev_icon=0; strcpy(#disc_name, "System "); + if (!drw_ram_disk_space) + break; DrawRamDiskSpace(); break; case 'c':