Subversion Repositories Kolibri OS

Compare Revisions

Regard whitespace Rev 5462 → Rev 5463

/programs/cmm/eolite/include/properties.h
51,17 → 51,18
dword mouse_ddd2;
char path_to_file[4096]="\0";
char file_name2[4096]="\0";
edit_box file_name_ed = {150,50,25,0xffffff,0x94AECE,0x000000,0xffffff,2,4098,#file_name2,#mouse_ddd2, 1000000000000000b,2,2};
edit_box path_to_file_ed = {150,100,46,0xffffff,0x94AECE,0x000000,0xffffff,2,4098,#path_to_file,#mouse_ddd2, 1000000000000000b,2,2};
edit_box file_name_ed = {195,50,25,0xffffff,0x94AECE,0x000000,0xffffff,2,4098,#file_name2,#mouse_ddd2, 1000000000000000b,2,2};
edit_box path_to_file_ed = {145,100,46,0xffffff,0x94AECE,0x000000,0xffffff,2,4098,#path_to_file,#mouse_ddd2, 1000000000000000b,2,2};
frame flags_frame = { 0, 280, 10, 83, 106, 0x000111, 0xFFFfff, 1, FLAGS, 0, 0, 6, 0x000111, 0xCCCccc };
 
frame flags_frame = { 0, 180, 10, 80, 106, 0x000111, 0xFFFfff, 1, FLAGS, 0, 0, 6, 0x000111, 0xCCCccc };
checkbox2 HIDDEN_chb = {22*65536+15, 120*65536+15, 5, 0xffffff, 0x9098B0, 0x80000000, PR_T_HIDDEN, CH_FLAG_MIDDLE, 0};
checkbox2 SYSTEM_chb = {22*65536+15, 140*65536+15, 5, 0xffffff, 0x9098B0, 0x80000000, PR_T_SYSTEM, CH_FLAG_MIDDLE, 0};
checkbox2 ONLY_READ_chb = {22*65536+15, 160*65536+15, 5, 0xffffff, 0x9098B0, 0x80000000, PR_T_ONLY_READ, CH_FLAG_MIDDLE, 0};
byte HIDDEN_chb,
SYSTEM_chb,
ONLY_READ_chb;
 
int file_count, dir_count, size_dir;
char folder_info[200];
BDVK file_info2;
BDVK file_info_general;
BDVK file_info_dirsize;
 
void GetSizeDir(dword way)
{
83,8 → 84,8
}
else
{
GetFileInfo(#cur_file, #file_info2);
size_dir = size_dir + file_info2.sizelo;
GetFileInfo(#cur_file, #file_info_dirsize);
size_dir = size_dir + file_info_dirsize.sizelo;
file_count++;
}
}
96,7 → 97,6
byte id;
unsigned int key;
dword file_name_off;
BDVK file_info;
proc_info settings_form;
strcpy(#folder_info, "\0");
103,7 → 103,7
file_count = 0;
dir_count = 0;
size_dir = 0;
GetFileInfo(#file_path, #file_info);
GetFileInfo(#file_path, #file_info_general);
strcpy(#file_name2, #file_name);
file_name_ed.size = strlen(#file_name2);
strcpy(#path_to_file, #path);
133,11 → 133,11
break;
case evReDraw:
DefineAndDrawWindow(Form.left + 150,150,300,238+GetSkinHeight(),0x34,sc.work,WINDOW_TITLE_PROPERTIES);
DefineAndDrawWindow(Form.left + 150,150,270,240+GetSkinHeight(),0x34,sc.work,WINDOW_TITLE_PROPERTIES);
GetProcessInfo(#settings_form, SelfInfo);
DrawFlatButton(208, settings_form.cheight - 34, 70, 22, 10, 0xE4DFE1, BTN_CLOSE);
DrawFlatButton(settings_form.cwidth - 70 - 13, settings_form.cheight - 34, 70, 22, 10, 0xE4DFE1, BTN_CLOSE);
DrawBar(10, 10, 32, 32, 0xFFFfff);
if (! TestBit(file_info.attr, 4) )
if (! TestBit(file_info_general.attr, 4) )
Put_icon(#file_name2+strrchr(#file_name2,'.'), 18, 20, 0xFFFfff, 0);
else
Put_icon("<DIR>", 18, 20, 0xFFFfff, 0);
157,7 → 157,7
WriteText(10, 65, 0x80, 0x000000, PR_T_SIZE);
if (!itdir)
{
WriteText(100, 65, 0x80, 0x000000, ConvertSize(file_info.sizelo));
WriteText(100, 65, 0x80, 0x000000, ConvertSize(file_info_general.sizelo));
}
else
{
170,16 → 170,22
WriteText(100, 65, 0x80, 0x000000, ConvertSize(size_dir));
}
 
flags_frame.size_x = - flags_frame.start_x * 2 + settings_form.cwidth - 60;
flags_frame.size_x = - flags_frame.start_x * 2 + settings_form.cwidth - 2;
flags_frame.font_color = sc.work_text;
flags_frame.font_backgr_color = sc.work;
flags_frame.ext_col = sc.work_graph;
frame_draw stdcall (#flags_frame);
 
if (TestBit(file_info.attr, 0)) ONLY_READ_chb.flags = 110b;
if (TestBit(file_info.attr, 1)) HIDDEN_chb.flags = 110b;
if (TestBit(file_info.attr, 2)) SYSTEM_chb.flags = 110b;
check_box_draw stdcall (#HIDDEN_chb);
check_box_draw stdcall (#SYSTEM_chb);
check_box_draw stdcall (#ONLY_READ_chb);
DrawPropertiesCheckBoxes();
}
}
 
void DrawPropertiesCheckBoxes()
{
ONLY_READ_chb = TestBit(file_info_general.attr, 0);
HIDDEN_chb = TestBit(file_info_general.attr, 1);
SYSTEM_chb = TestBit(file_info_general.attr, 2);
CheckBox2(22, 120, 20, PR_T_ONLY_READ, ONLY_READ_chb);
CheckBox2(22, 142, 21, PR_T_HIDDEN, HIDDEN_chb);
CheckBox2(22, 164, 22, PR_T_SYSTEM, SYSTEM_chb);
}