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
This commit is contained in:
Serhii Sakhno 2013-12-21 13:45:34 +00:00
parent 2a1c464735
commit 22c10107e7
4 changed files with 7 additions and 2 deletions

View File

@ -96,4 +96,5 @@ SelectionColor=94AECE
LineHeight=18 LineHeight=18
ShowDeviceName=1 ShowDeviceName=1
RealFileNamesCase=0 RealFileNamesCase=0
DrwRamDiskSpace=1

View File

@ -79,8 +79,8 @@
enum {ONLY_SHOW, WITH_REDRAW, ONLY_OPEN}; //OpenDir enum {ONLY_SHOW, WITH_REDRAW, ONLY_OPEN}; //OpenDir
#define TITLE "Eolite File Manager v2.15" #define TITLE "Eolite File Manager v2.15.1"
#define ABOUT_TITLE "Eolite v2.15" #define ABOUT_TITLE "Eolite v2.15.1"
dword col_padding, col_selec, col_lpanel; dword col_padding, col_selec, col_lpanel;
int toolbar_buttons_x[7]={9,46,85,134,167,203}; int toolbar_buttons_x[7]={9,46,85,134,167,203};
@ -103,6 +103,7 @@ byte
rename_active=0, rename_active=0,
del_active=0, del_active=0,
show_dev_name=1, show_dev_name=1,
drw_ram_disk_space=1,
real_files_names_case=0, real_files_names_case=0,
sort_num=2, sort_num=2,
itdir; itdir;

View File

@ -34,6 +34,7 @@ void GetIni(byte onload)
IF (!strcmp(#parametr,"LineHeight")) files.line_h = atoi(#option); IF (!strcmp(#parametr,"LineHeight")) files.line_h = atoi(#option);
IF (!strcmp(#parametr,"ShowDeviceName")) show_dev_name=atoi(#option); IF (!strcmp(#parametr,"ShowDeviceName")) show_dev_name=atoi(#option);
IF (!strcmp(#parametr,"RealFileNamesCase")) real_files_names_case=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) IF (parametr) && (!strcmp(#file_name+strrchr(#file_name,'.'),#parametr)) && (!onload)
{ {

View File

@ -120,6 +120,8 @@ void SystemDiscsDraw()
case 'r': case 'r':
dev_icon=0; dev_icon=0;
strcpy(#disc_name, "System "); strcpy(#disc_name, "System ");
if (!drw_ram_disk_space)
break;
DrawRamDiskSpace(); DrawRamDiskSpace();
break; break;
case 'c': case 'c':