Subversion Repositories Kolibri OS

Compare Revisions

Regard whitespace Rev 9684 → Rev 9685

/programs/cmm/eolite/include/properties.h
120,6 → 120,7
{
GetFileInfo(#cur_file, #file_info_dirsize);
more_files_count.bytes += file_info_dirsize.sizelo;
more_files_count.bytes += file_info_dirsize.sizehi;
more_files_count.files++;
}
}
219,10 → 220,9
void DrawPropertiesWindow()
{
proc_info pform;
char element_size_label[32];
char size_lbl[32];
char folder_info[200];
dword ext1;
dword element_size;
incn y;
char temp_path[PATHLEN];
bool show_date = false;
244,8 → 244,8
PropertiesDrawIcon(NULL, "<lot>");
sprintf(#folder_info,T_FILES_FOLDERS,more_files_count.files,more_files_count.folders);
WriteText(file_name_ed.left+4, 30, 0x90, sc.work_text, #folder_info);
sprintf(#element_size_label,T_PROP_SIZE,ConvertSize64(more_files_count.bytes, NULL),more_files_count.bytes);
WriteText(10, 97, 0x90, sc.work_text, #element_size_label);
sprintf(#size_lbl,T_PROP_SIZE,ConvertSize64(more_files_count.bytes, more_files_count.bytes>>32),more_files_count.bytes);
WriteText(10, 97, 0x90, sc.work_text, #size_lbl);
}
else
{
261,15 → 261,14
DrawEditBox(#file_name_ed);
if (!itdir) {
element_size = file_info_general.sizelo;
sprintf(#size_lbl,T_PROP_SIZE,ConvertSize64(file_info_general.sizelo, file_info_general.sizehi),file_info_general.sizelo);
} else {
sprintf(#folder_info,T_FILES_FOLDERS,dir_size.files,dir_size.folders);
WriteText(10, 117, 0x90, sc.work_text, PR_T_CONTAINS);
WriteText(120, 117, 0x90, sc.work_text, #folder_info);
element_size = dir_size.bytes;
sprintf(#size_lbl,T_PROP_SIZE,ConvertSize64(dir_size.bytes, dir_size.bytes_high),dir_size.bytes);
}
sprintf(#element_size_label,T_PROP_SIZE,ConvertSize64(element_size, NULL),element_size);
WriteText(10, 99, 0x90, sc.work_text, #element_size_label);
WriteText(10, 99, 0x90, sc.work_text, #size_lbl);
}
 
if (show_date) {
/programs/cmm/lib/fs.h
495,6 → 495,7
dword folders;
dword files;
dword bytes;
dword bytes_high;
dword get();
dword calculate_loop();
};
501,7 → 502,7
 
:dword DIR_SIZE::get(dword way1)
{
folders = files = bytes = 0;
folders = files = bytes = bytes_high = 0;
if (!way1) return 0;
calculate_loop(way1);
}
531,6 → 532,7
{
GetFileInfo(cur_file, #dir_info);
bytes += dir_info.sizelo;
bytes_high += dir_info.sizehi;
files++;
}
}