2015-02-22 19:42:51 +01:00
|
|
|
|
#ifdef LANG_RUS
|
2015-02-23 14:34:27 +01:00
|
|
|
|
?define WINDOW_TITLE_PROPERTIES "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>⢠"
|
2015-02-22 19:42:51 +01:00
|
|
|
|
?define BTN_CLOSE "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
|
2015-08-06 19:54:42 +02:00
|
|
|
|
?define BTN_APPLY "<EFBFBD>ਬ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
|
|
|
|
|
?define QUEST_1 "<EFBFBD>ਬ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20>ᥬ <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
|
2016-02-21 22:57:22 +01:00
|
|
|
|
?define QUEST_2 "䠩<EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>?"
|
2015-02-24 01:01:08 +01:00
|
|
|
|
?define PR_T_NAME "<EFBFBD><EFBFBD><EFBFBD>:"
|
|
|
|
|
?define PR_T_DEST "<EFBFBD><EFBFBD>ᯮ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:"
|
|
|
|
|
?define PR_T_SIZE "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:"
|
2015-12-14 15:50:28 +01:00
|
|
|
|
?define CREATED_OPENED_MODIFIED "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:\n<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:\n<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:"
|
2015-02-22 19:42:51 +01:00
|
|
|
|
?define SET_6 "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: "
|
|
|
|
|
?define SET_7 " <20><><EFBFBD><EFBFBD><EFBFBD>: "
|
2015-02-24 01:01:08 +01:00
|
|
|
|
?define PR_T_CONTAINS "<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ন<EFBFBD>: "
|
2015-02-23 14:12:43 +01:00
|
|
|
|
?define FLAGS " <20><><EFBFBD>ਡ<EFBFBD><E0A8A1><EFBFBD> "
|
2015-02-24 01:01:08 +01:00
|
|
|
|
?define PR_T_HIDDEN "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
|
|
|
|
|
?define PR_T_SYSTEM "<EFBFBD><EFBFBD><EFBFBD>⥬<EFBFBD><EFBFBD><EFBFBD>"
|
|
|
|
|
?define PR_T_ONLY_READ "<EFBFBD><EFBFBD><EFBFBD>쪮 <20>⥭<EFBFBD><E2A5AD>"
|
2015-07-21 03:10:37 +02:00
|
|
|
|
?define SET_BYTE_LANG "<EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
|
2015-09-29 22:05:29 +02:00
|
|
|
|
#else // Apply to all subfolders
|
2016-02-22 03:11:59 +01:00
|
|
|
|
?define WINDOW_TITLE_PROPERTIES "Properties"
|
2015-02-23 14:12:43 +01:00
|
|
|
|
?define BTN_CLOSE "Close"
|
2015-08-06 19:54:42 +02:00
|
|
|
|
?define BTN_APPLY "Apply"
|
2015-09-29 22:05:29 +02:00
|
|
|
|
?define QUEST_1 "Apply to all subfolders"
|
2016-02-21 22:57:22 +01:00
|
|
|
|
?define QUEST_2 "files and Folders?"
|
2015-02-24 01:01:08 +01:00
|
|
|
|
?define PR_T_NAME "Name:"
|
|
|
|
|
?define PR_T_DEST "Destination:"
|
|
|
|
|
?define PR_T_SIZE "Size:"
|
2015-12-14 15:50:28 +01:00
|
|
|
|
?define CREATED_OPENED_MODIFIED "Created:\nOpened:\nModified:"
|
2015-02-23 14:12:43 +01:00
|
|
|
|
?define SET_6 "Files: "
|
|
|
|
|
?define SET_7 " Folders: "
|
2015-02-24 01:01:08 +01:00
|
|
|
|
?define PR_T_CONTAINS "Contains: "
|
2015-02-23 14:12:43 +01:00
|
|
|
|
?define FLAGS " Attributes "
|
2015-02-24 01:01:08 +01:00
|
|
|
|
?define PR_T_HIDDEN "Hidden"
|
|
|
|
|
?define PR_T_SYSTEM "System"
|
|
|
|
|
?define PR_T_ONLY_READ "Read-only"
|
2015-07-21 03:10:37 +02:00
|
|
|
|
?define SET_BYTE_LANG "byte"
|
2015-02-22 19:42:51 +01:00
|
|
|
|
#endif
|
|
|
|
|
|
2017-10-03 14:10:48 +02:00
|
|
|
|
char path_to_file[4096];
|
|
|
|
|
char file_name2[4096];
|
2018-09-15 12:48:42 +02:00
|
|
|
|
edit_box file_name_ed = {230,59,32,0xffffff,0x94AECE,0xFFFfff,0xffffff,0x10000000,sizeof(file_name2),#file_name2,NULL, 1000000000000000b,2,2};
|
|
|
|
|
edit_box path_to_file_ed = {160,120,79,0xffffff,0x94AECE,0xFFFfff,0xffffff,2,sizeof(path_to_file),#path_to_file,NULL, 1000000000000000b,2,2};
|
2015-02-22 19:42:51 +01:00
|
|
|
|
|
2015-02-24 18:47:47 +01:00
|
|
|
|
BDVK file_info_general;
|
|
|
|
|
BDVK file_info_dirsize;
|
2015-02-22 19:42:51 +01:00
|
|
|
|
|
2018-04-19 22:12:07 +02:00
|
|
|
|
bool quest_active;
|
|
|
|
|
|
2018-09-15 12:48:42 +02:00
|
|
|
|
_dir_size more_files_count;
|
|
|
|
|
|
2018-04-19 22:12:07 +02:00
|
|
|
|
checkbox ch_read_only = { PR_T_ONLY_READ, NULL };
|
|
|
|
|
checkbox ch_hidden = { PR_T_HIDDEN, NULL };
|
|
|
|
|
checkbox ch_system = { PR_T_SYSTEM, NULL };
|
|
|
|
|
|
|
|
|
|
void SetPropertiesFile(dword cur_file, bdvk_pointer)
|
|
|
|
|
{
|
|
|
|
|
GetFileInfo(cur_file, bdvk_pointer);
|
|
|
|
|
ESI = bdvk_pointer;
|
|
|
|
|
ESI.BDVK.readonly = ch_read_only.checked;
|
|
|
|
|
ESI.BDVK.hidden = ch_hidden.checked;
|
|
|
|
|
ESI.BDVK.system = ch_system.checked;
|
|
|
|
|
SetFileInfo(cur_file, bdvk_pointer);
|
|
|
|
|
}
|
2015-08-06 19:54:42 +02:00
|
|
|
|
|
|
|
|
|
void SetPropertiesDir(dword way)
|
|
|
|
|
{
|
|
|
|
|
dword dirbuf, fcount, i, filename;
|
|
|
|
|
dword cur_file;
|
2016-02-19 01:33:21 +01:00
|
|
|
|
if (dir_exists(way))
|
2015-08-06 19:54:42 +02:00
|
|
|
|
{
|
|
|
|
|
cur_file = malloc(4096);
|
|
|
|
|
GetDir(#dirbuf, #fcount, way, DIRS_ONLYREAL);
|
|
|
|
|
for (i=0; i<fcount; i++)
|
|
|
|
|
{
|
|
|
|
|
filename = i*304+dirbuf+72;
|
|
|
|
|
strcpy(cur_file, way);
|
|
|
|
|
chrcat(cur_file, '/');
|
|
|
|
|
strcat(cur_file, filename);
|
|
|
|
|
if ( TestBit(ESDWORD[filename-40], 4) )
|
|
|
|
|
{
|
|
|
|
|
SetPropertiesDir(cur_file);
|
|
|
|
|
}
|
2018-04-19 22:12:07 +02:00
|
|
|
|
SetPropertiesFile(cur_file, #file_info_dirsize);
|
2015-08-06 19:54:42 +02:00
|
|
|
|
}
|
|
|
|
|
free(cur_file);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void SetProperties(byte prop)
|
2015-05-10 03:12:52 +02:00
|
|
|
|
{
|
2015-08-06 19:54:42 +02:00
|
|
|
|
dword cur_file;
|
2018-10-01 18:41:14 +02:00
|
|
|
|
dword i;
|
2015-08-06 19:54:42 +02:00
|
|
|
|
|
|
|
|
|
if (prop==1) || (prop==2)
|
|
|
|
|
{
|
|
|
|
|
if (selected_count)
|
|
|
|
|
{
|
|
|
|
|
cur_file = malloc(4096);
|
|
|
|
|
for (i=0; i<files.count; i++)
|
|
|
|
|
{
|
2016-11-01 13:14:17 +01:00
|
|
|
|
if (getElementSelectedFlag(i) == true)
|
2015-08-06 19:54:42 +02:00
|
|
|
|
{
|
|
|
|
|
strcpy(cur_file, #path);
|
|
|
|
|
strcat(cur_file, file_mas[i]*304+buf+72);
|
2018-04-19 22:12:07 +02:00
|
|
|
|
SetPropertiesDir(cur_file);
|
2015-08-06 19:54:42 +02:00
|
|
|
|
if (prop==2)
|
|
|
|
|
{
|
2016-02-19 01:33:21 +01:00
|
|
|
|
if (dir_exists(cur_file))
|
2015-08-06 19:54:42 +02:00
|
|
|
|
{
|
|
|
|
|
SetPropertiesDir(cur_file);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
free(cur_file);
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
2018-04-19 22:12:07 +02:00
|
|
|
|
SetPropertiesFile(#file_path, #file_info_general);
|
2015-08-06 19:54:42 +02:00
|
|
|
|
if (prop==2) SetPropertiesDir(#file_path);
|
|
|
|
|
}
|
|
|
|
|
quest_active = 0;
|
|
|
|
|
DrawPropertiesWindow();
|
|
|
|
|
}
|
2015-05-10 03:12:52 +02:00
|
|
|
|
else
|
|
|
|
|
{
|
2018-04-19 22:12:07 +02:00
|
|
|
|
SetPropertiesFile(#file_path, #file_info_general);
|
2015-05-10 03:12:52 +02:00
|
|
|
|
}
|
2015-08-06 19:54:42 +02:00
|
|
|
|
cmd_free=3;
|
|
|
|
|
_not_draw = true;
|
2016-11-01 13:14:17 +01:00
|
|
|
|
Open_Dir(#path,WITH_REDRAW);
|
|
|
|
|
_not_draw = false;
|
|
|
|
|
EventRedrawWindow(Form.left,Form.top);
|
2015-08-06 19:54:42 +02:00
|
|
|
|
ExitProcess();
|
|
|
|
|
}
|
|
|
|
|
|
2016-02-21 22:57:22 +01:00
|
|
|
|
void ShowConfirmQuestionPopin()
|
2015-08-06 19:54:42 +02:00
|
|
|
|
{
|
2016-02-21 22:57:22 +01:00
|
|
|
|
quest_active = 1;
|
2016-02-22 02:41:13 +01:00
|
|
|
|
DrawPopup(15,80,250,90,1,system.color.work, system.color.work_graph);
|
|
|
|
|
WriteText(35, 102, 0x90, 0x000000, QUEST_1);
|
|
|
|
|
WriteText(65, 117, 0x90, 0x000000, QUEST_2);
|
2018-05-13 18:06:20 +02:00
|
|
|
|
DrawStandartCaptButton(62,138,301,T_YES);
|
|
|
|
|
DrawStandartCaptButton(155,138,302,T_NO);
|
2015-05-10 03:12:52 +02:00
|
|
|
|
}
|
2015-02-27 21:25:28 +01:00
|
|
|
|
|
2015-03-08 16:25:21 +01:00
|
|
|
|
void GetSizeMoreFiles(dword way)
|
|
|
|
|
{
|
|
|
|
|
char cur_file[4096];
|
2018-10-01 18:41:14 +02:00
|
|
|
|
dword i;
|
2015-12-13 02:30:37 +01:00
|
|
|
|
|
2015-03-08 16:25:21 +01:00
|
|
|
|
for (i=0; i<files.count; i++)
|
2016-11-01 13:14:17 +01:00
|
|
|
|
{
|
|
|
|
|
if (getElementSelectedFlag(i) == true)
|
|
|
|
|
{
|
2016-10-30 20:17:46 +01:00
|
|
|
|
sprintf(#cur_file,"%s/%s",way,file_mas[i]*304+buf+72);
|
2015-08-07 04:11:35 +02:00
|
|
|
|
if (TestBit(ESDWORD[file_mas[i]*304+buf+32], 4) )
|
2015-03-08 16:25:21 +01:00
|
|
|
|
{
|
2018-09-15 12:48:42 +02:00
|
|
|
|
more_files_count.calculate_loop(#cur_file);
|
|
|
|
|
more_files_count.folders++;
|
2015-03-08 16:25:21 +01:00
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
2015-12-13 02:30:37 +01:00
|
|
|
|
GetFileInfo(#cur_file, #file_info_dirsize);
|
2018-09-15 12:48:42 +02:00
|
|
|
|
more_files_count.bytes += file_info_dirsize.sizelo;
|
|
|
|
|
more_files_count.files++;
|
2015-03-08 16:25:21 +01:00
|
|
|
|
}
|
2016-11-01 13:14:17 +01:00
|
|
|
|
}
|
2015-03-08 16:25:21 +01:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2015-02-22 19:42:51 +01:00
|
|
|
|
void properties_dialog()
|
|
|
|
|
{
|
2018-04-19 22:12:07 +02:00
|
|
|
|
int id;
|
2015-02-22 19:42:51 +01:00
|
|
|
|
|
2015-08-06 19:54:42 +02:00
|
|
|
|
if (selected_count)
|
|
|
|
|
{
|
2018-09-15 12:48:42 +02:00
|
|
|
|
more_files_count.get(NULL);
|
2015-08-06 19:54:42 +02:00
|
|
|
|
GetSizeMoreFiles(#path);
|
2018-04-19 22:12:07 +02:00
|
|
|
|
ch_read_only.checked = 0;
|
|
|
|
|
ch_hidden.checked = 0;
|
|
|
|
|
ch_system.checked = 0;
|
2015-08-06 19:54:42 +02:00
|
|
|
|
}
|
2015-03-08 16:25:21 +01:00
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
GetFileInfo(#file_path, #file_info_general);
|
|
|
|
|
strcpy(#file_name2, #file_name);
|
2015-07-21 03:10:37 +02:00
|
|
|
|
file_name_ed.size = strlen(#file_name2);
|
2018-09-15 12:48:42 +02:00
|
|
|
|
if(itdir) dir_size.get(#file_path);
|
2018-04-19 22:12:07 +02:00
|
|
|
|
ch_read_only.checked = file_info_general.readonly;
|
|
|
|
|
ch_hidden.checked = file_info_general.hidden;
|
|
|
|
|
ch_system.checked = file_info_general.system;
|
2015-03-08 16:25:21 +01:00
|
|
|
|
}
|
2015-02-22 19:42:51 +01:00
|
|
|
|
strcpy(#path_to_file, #path);
|
|
|
|
|
path_to_file_ed.size = strlen(#path_to_file);
|
|
|
|
|
|
2018-04-16 00:44:36 +02:00
|
|
|
|
SetEventMask(EVM_REDRAW + EVM_KEY + EVM_BUTTON + EVM_MOUSE + EVM_MOUSE_FILTER);
|
2015-02-22 19:42:51 +01:00
|
|
|
|
loop() switch(WaitEvent())
|
|
|
|
|
{
|
|
|
|
|
case evButton:
|
|
|
|
|
id=GetButtonID();
|
2018-04-19 22:12:07 +02:00
|
|
|
|
ch_read_only.click(id);
|
|
|
|
|
ch_hidden.click(id);
|
|
|
|
|
ch_system.click(id);
|
2015-08-06 19:54:42 +02:00
|
|
|
|
if (quest_active)
|
|
|
|
|
{
|
|
|
|
|
IF (id==301) SetProperties(2);
|
|
|
|
|
IF (id==302) SetProperties(1);
|
2016-02-21 22:57:22 +01:00
|
|
|
|
quest_active=false;
|
2015-08-06 19:54:42 +02:00
|
|
|
|
break;
|
|
|
|
|
}
|
2015-07-21 03:10:37 +02:00
|
|
|
|
if (id==1) || (id==10)
|
|
|
|
|
{
|
|
|
|
|
cmd_free=3;
|
|
|
|
|
ExitProcess();
|
|
|
|
|
}
|
2015-08-06 19:54:42 +02:00
|
|
|
|
IF (id==11)
|
2015-07-23 13:54:26 +02:00
|
|
|
|
{
|
2015-08-06 19:54:42 +02:00
|
|
|
|
if (selected_count) || (itdir)
|
|
|
|
|
{
|
2016-02-21 22:57:22 +01:00
|
|
|
|
ShowConfirmQuestionPopin();
|
2015-08-06 19:54:42 +02:00
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
SetProperties(0);
|
|
|
|
|
}
|
|
|
|
|
break;
|
2015-07-23 13:54:26 +02:00
|
|
|
|
}
|
2015-02-22 19:42:51 +01:00
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
case evMouse:
|
|
|
|
|
edit_box_mouse stdcall (#file_name_ed);
|
|
|
|
|
edit_box_mouse stdcall (#path_to_file_ed);
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
case evKey:
|
2015-08-10 12:55:14 +02:00
|
|
|
|
GetKeys();
|
2015-08-09 23:59:25 +02:00
|
|
|
|
|
2015-08-06 19:54:42 +02:00
|
|
|
|
if (quest_active)
|
|
|
|
|
{
|
2015-08-10 12:55:14 +02:00
|
|
|
|
IF (key_scancode==SCAN_CODE_ENTER) SetProperties(2);
|
|
|
|
|
IF (key_scancode==SCAN_CODE_ESC) SetProperties(1);
|
2016-02-21 22:57:22 +01:00
|
|
|
|
quest_active=false;
|
2015-08-06 19:54:42 +02:00
|
|
|
|
break;
|
|
|
|
|
}
|
2015-08-10 12:55:14 +02:00
|
|
|
|
if (key_scancode==SCAN_CODE_ESC)
|
2015-07-21 03:10:37 +02:00
|
|
|
|
{
|
|
|
|
|
cmd_free=3;
|
|
|
|
|
ExitProcess();
|
|
|
|
|
}
|
2015-08-10 12:55:14 +02:00
|
|
|
|
if (key_scancode==SCAN_CODE_ENTER)
|
2015-08-09 23:59:25 +02:00
|
|
|
|
{
|
|
|
|
|
if (selected_count) || (itdir)
|
|
|
|
|
{
|
2016-02-21 22:57:22 +01:00
|
|
|
|
ShowConfirmQuestionPopin();
|
2015-08-09 23:59:25 +02:00
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
SetProperties(0);
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
}
|
2015-02-22 19:42:51 +01:00
|
|
|
|
edit_box_key stdcall(#file_name_ed);
|
|
|
|
|
edit_box_key stdcall(#path_to_file_ed);
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
case evReDraw:
|
2015-08-06 19:54:42 +02:00
|
|
|
|
DrawPropertiesWindow();
|
|
|
|
|
}
|
|
|
|
|
}
|
2015-02-23 14:12:43 +01:00
|
|
|
|
|
2015-08-06 19:54:42 +02:00
|
|
|
|
void DrawPropertiesWindow()
|
|
|
|
|
{
|
2018-09-15 12:48:42 +02:00
|
|
|
|
proc_info settings_form;
|
|
|
|
|
char element_size_label[32];
|
|
|
|
|
char folder_info[200];
|
2016-11-25 15:15:30 +01:00
|
|
|
|
dword ext1;
|
2018-09-15 12:48:42 +02:00
|
|
|
|
dword element_size;
|
2018-04-19 22:12:07 +02:00
|
|
|
|
incn y;
|
2016-11-25 15:15:30 +01:00
|
|
|
|
char temp_path[sizeof(file_path)];
|
2018-04-16 00:44:36 +02:00
|
|
|
|
DefineAndDrawWindow(Form.left + 150,150,315,360+skin_height,0x34,system.color.work,WINDOW_TITLE_PROPERTIES,0);
|
2015-08-06 19:54:42 +02:00
|
|
|
|
GetProcessInfo(#settings_form, SelfInfo);
|
2017-10-03 14:10:48 +02:00
|
|
|
|
|
2018-05-13 18:06:20 +02:00
|
|
|
|
DrawStandartCaptButton(settings_form.cwidth - 96, settings_form.cheight-34, 10, BTN_CLOSE);
|
|
|
|
|
DrawStandartCaptButton(settings_form.cwidth -208, settings_form.cheight-34, 11, BTN_APPLY);
|
2015-08-06 19:54:42 +02:00
|
|
|
|
|
2017-10-03 14:10:48 +02:00
|
|
|
|
WriteText(10, 78, 0x90, system.color.work_text, PR_T_DEST);
|
|
|
|
|
edit_box_draw stdcall (#path_to_file_ed);
|
|
|
|
|
|
|
|
|
|
WriteText(10, 97, 0x90, system.color.work_text, PR_T_SIZE);
|
2016-04-19 20:42:13 +02:00
|
|
|
|
|
2017-10-03 14:10:48 +02:00
|
|
|
|
if (selected_count)
|
|
|
|
|
{
|
2017-10-11 00:26:56 +02:00
|
|
|
|
PropertiesDrawIcon(NULL, "<lot>");
|
2018-09-15 12:48:42 +02:00
|
|
|
|
sprintf(#folder_info,"%s%d%s%d",SET_6,more_files_count.files,SET_7,more_files_count.folders);
|
2017-10-03 14:10:48 +02:00
|
|
|
|
WriteText(file_name_ed.left+4, 30, 0x90, system.color.work_text, #folder_info);
|
2018-09-15 12:48:42 +02:00
|
|
|
|
sprintf(#element_size_label,"%s (%d %s)",ConvertSize64(more_files_count.bytes, NULL),more_files_count.bytes,SET_BYTE_LANG);
|
2017-10-03 14:10:48 +02:00
|
|
|
|
WriteText(120, 97, 0x90, system.color.work_text, #element_size_label);
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
if ( file_info_general.isfolder )
|
|
|
|
|
PropertiesDrawIcon(NULL, "<DIR>");
|
|
|
|
|
else {
|
|
|
|
|
sprintf(#temp_path,"%s/%s",#path,#file_name2);
|
|
|
|
|
ext1 = strrchr(#file_name2,'.');
|
|
|
|
|
if (ext1) ext1 += #file_name2;
|
|
|
|
|
PropertiesDrawIcon(#temp_path, ext1);
|
2015-08-06 19:54:42 +02:00
|
|
|
|
}
|
2018-04-16 00:44:36 +02:00
|
|
|
|
WriteText(file_name_ed.left, file_name_ed.top-15, 0x80, system.color.work_text, PR_T_NAME);
|
|
|
|
|
DrawEditBox(#file_name_ed);
|
2017-10-03 14:10:48 +02:00
|
|
|
|
|
|
|
|
|
if (!itdir) element_size = file_info_general.sizelo;
|
2016-04-19 20:42:13 +02:00
|
|
|
|
else
|
|
|
|
|
{
|
2017-10-03 14:10:48 +02:00
|
|
|
|
WriteText(10,116, 0x90, system.color.work_text, PR_T_CONTAINS);
|
2018-09-15 12:48:42 +02:00
|
|
|
|
sprintf(#folder_info,"%s%d%s%d",SET_6,dir_size.files,SET_7,dir_size.folders);
|
2017-10-03 14:10:48 +02:00
|
|
|
|
WriteText(120, 116, 0x90, system.color.work_text, #folder_info);
|
2018-09-15 12:48:42 +02:00
|
|
|
|
element_size = dir_size.bytes;
|
2016-04-19 20:42:13 +02:00
|
|
|
|
}
|
2017-10-03 14:10:48 +02:00
|
|
|
|
WriteTextLines(10, 136, 0x90, system.color.work_text, CREATED_OPENED_MODIFIED, 20);
|
2018-04-03 17:45:21 +02:00
|
|
|
|
DrawDate(120, 136, system.color.work_text, #file_info_general.datecreate);
|
|
|
|
|
DrawDate(120, 156, system.color.work_text, #file_info_general.datelastaccess);
|
|
|
|
|
DrawDate(120, 176, system.color.work_text, #file_info_general.datelastedit);
|
2017-10-03 14:10:48 +02:00
|
|
|
|
|
|
|
|
|
sprintf(#element_size_label,"%s (%d %s)",ConvertSize64(element_size, NULL),element_size,SET_BYTE_LANG);
|
|
|
|
|
WriteText(120, 99, 0x90, system.color.work_text, #element_size_label);
|
2015-02-22 19:42:51 +01:00
|
|
|
|
}
|
2018-04-16 00:44:36 +02:00
|
|
|
|
DrawFrame(10, 212, -10*2 + settings_form.cwidth - 2, 92, FLAGS);
|
2018-04-19 22:12:07 +02:00
|
|
|
|
y.n = 212; //212 => attributes_frame.y
|
|
|
|
|
ch_read_only.draw(24, y.inc(18));
|
|
|
|
|
ch_hidden.draw(24, y.inc(24));
|
|
|
|
|
ch_system.draw(24, y.inc(24));
|
2017-10-03 14:10:48 +02:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void PropertiesDrawIcon(dword file_path, extension)
|
|
|
|
|
{
|
2018-04-16 00:44:36 +02:00
|
|
|
|
#define ICON_PADDING 11
|
|
|
|
|
DrawBar(20-ICON_PADDING, 30-ICON_PADDING-1, ICON_PADDING*2+16, ICON_PADDING*2+16, 0xFFFfff);
|
2018-10-02 16:01:29 +02:00
|
|
|
|
DrawIconByExtension(file_path, extension, -icon_size/2+28, -icon_size/2+38, 0xFFFfff);
|
2015-02-24 18:47:47 +01:00
|
|
|
|
}
|