Subversion Repositories Kolibri OS

Rev

Rev 5709 | Rev 5719 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5709 Rev 5710
Line 58... Line 58...
58
	temp[4096],
58
	temp[4096],
59
	itdir;
59
	itdir;
Line 60... Line 60...
60
 
60
 
61
//struct t_settings {
61
//struct t_settings {
62
byte use_big_fonts=false,
-
 
63
	font_type=0x80,
-
 
64
	font_h=9,
62
byte use_big_fonts=false,
65
	sort_num=2,
63
	sort_num=2,
66
	show_dev_name=true,
64
	show_dev_name=true,
67
	real_files_names_case=false,
65
	real_files_names_case=false,
68
	info_after_copy=false,
66
	info_after_copy=false,
Line 613... Line 611...
613
	if (! TestBit(attr, 4) ) //file or folder?
611
	if (! TestBit(attr, 4) ) //file or folder?
614
	{	
612
	{	
615
		ext1 = strrchr(file_name_off,'.') + file_name_off;
613
		ext1 = strrchr(file_name_off,'.') + file_name_off;
616
		if (ext1==file_name_off) ext1 = " \0"; //if no extension then show nothing 
614
		if (ext1==file_name_off) ext1 = " \0"; //if no extension then show nothing 
617
		Put_icon(ext1, files.x+3, files.line_h/2-7+y, color, 0);
615
		Put_icon(ext1, files.x+3, files.line_h/2-7+y, color, 0);
618
		WriteText(7-strlen(ConvertSize(file.sizelo))*6+Form.cwidth - 76, files.line_h - font_h/ 2 + y,font_type,0,ConvertSize(file.sizelo));
616
		WriteText(7-strlen(ConvertSize(file.sizelo))*6+Form.cwidth - 76, files.text_y + y,files.font_type,0,ConvertSize(file.sizelo));
619
	}
617
	}
620
	else
618
	else
621
	{
619
	{
622
		if (!strncmp(file_name_off,"..",3)) ext1=".."; else ext1="";
620
		if (!strncmp(file_name_off,"..",3)) ext1=".."; else ext1="";
623
		Put_icon(ext1, files.x+3, files.line_h/2-7+y, color, 0);		
621
		Put_icon(ext1, files.x+3, files.line_h/2-7+y, color, 0);		
Line 636... Line 634...
636
	{
634
	{
637
		FileShow.start_x = files.x + 23;
635
		FileShow.start_x = files.x + 23;
638
		FileShow.font_color = text_col;
636
		FileShow.font_color = text_col;
639
		FileShow.area_size_x = files.w - 164;
637
		FileShow.area_size_x = files.w - 164;
640
		FileShow.text_pointer = file_name_off;
638
		FileShow.text_pointer = file_name_off;
641
		FileShow.start_y = files.line_h - font_h/ 2 + y;
639
		FileShow.start_y = files.text_y + y;
642
		PathShow_prepare stdcall(#FileShow);
640
		PathShow_prepare stdcall(#FileShow);
643
		PathShow_draw stdcall(#FileShow);
641
		PathShow_draw stdcall(#FileShow);
644
	}
642
	}
645
	DrawBar(Form.cwidth-159,y,1,files.line_h,system.color.work); //gray line 1
643
	DrawBar(Form.cwidth-159,y,1,files.line_h,system.color.work); //gray line 1
646
	DrawBar(Form.cwidth-86,y,1,files.line_h,system.color.work); //gray line 2
644
	DrawBar(Form.cwidth-86,y,1,files.line_h,system.color.work); //gray line 2