Subversion Repositories Kolibri OS

Rev

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

Rev 5753 Rev 5761
Line 268... Line 268...
268
					if (files.first<0) files.first=0;
268
					if (files.first<0) files.first=0;
269
					if (id!=files.first) List_ReDraw();
269
					if (id!=files.first) List_ReDraw();
270
					break;
270
					break;
271
				}
271
				}
Line 272... Line -...
272
 
-
 
273
 
272
 
274
				if (two_panels) && (mouse.y > files.y) && (mouse.down) {
273
				if (two_panels) && (mouse.y > files.y) && (mouse.down) {
275
					if (mouse.x
274
					if (mouse.x
276
					{
275
					{
277
						if (active_panel!=1)
276
						if (active_panel!=1)
Line 584... Line 583...
584
		strcpy(#path, #inactive_path);
583
		strcpy(#path, #inactive_path);
585
		col_selec = 0xCCCccc;
584
		col_selec = 0xCCCccc;
Line 586... Line 585...
586
 
585
 
587
		if (active_panel==1)
586
		if (active_panel==1)
-
 
587
		{
-
 
588
			llist_copy(#files, #files_inactive);
-
 
589
			strcpy(#path, #inactive_path);
588
		{
590
			col_selec = 0xCCCccc;
589
			files.SetSizes(Form.cwidth/2, 57+22, Form.cwidth/2 -17, Form.cheight-59-22, files.line_h);
591
			files.SetSizes(Form.cwidth/2, 57+22, Form.cwidth/2 -17, Form.cheight-59-22, files.line_h);
590
			DrawList();
592
			DrawList();
591
			Open_Dir(#path,WITH_REDRAW);
593
			Open_Dir(#path,WITH_REDRAW);
592
			llist_copy(#files, #files_active);
594
			llist_copy(#files, #files_active);
Line 644... Line 646...
644
	DrawBar(files.x+files.w-68,all_lines_h + files.y,1,files.h - all_lines_h,system.color.work);
646
	DrawBar(files.x+files.w-68,all_lines_h + files.y,1,files.h - all_lines_h,system.color.work);
645
	Scroll();
647
	Scroll();
646
}
648
}
Line 647... Line 649...
647
 
649
 
648
 
650
 
649
void Line_ReDraw(dword color, filenum){
651
void Line_ReDraw(dword bgcol, filenum){
650
	dword text_col=0,
652
	dword text_col=0,
651
	      ext1, attr,
653
	      ext1, attr,
652
	      file_offet,
654
	      file_offet,
653
	      file_name_off,
655
	      file_name_off,
654
	      y=filenum*files.line_h+files.y;
656
	      y=filenum*files.line_h+files.y;
655
	      BDVK file;
657
	      BDVK file;
656
	if (filenum==-1) return;
658
	if (filenum==-1) return;
657
	DrawBar(files.x,y,3,files.line_h,color); 
659
	DrawBar(files.x,y,3,files.line_h,bgcol); 
658
	DrawBar(files.x+19,y,files.w-19,files.line_h,color);
660
	DrawBar(files.x+19,y,files.w-19,files.line_h,bgcol);
659
	DrawBar(files.x+3,y+17,16,1,color);
661
	DrawBar(files.x+3,y+17,16,1,bgcol);
Line 660... Line 662...
660
	if (files.line_h>18) DrawBar(files.x+3,y+18,16,files.line_h-18,color);
662
	if (files.line_h>18) DrawBar(files.x+3,y+18,16,files.line_h-18,bgcol);
661
	if (files.line_h>15) DrawBar(files.x+3,y,16,files.line_h-15,color); 
663
	if (files.line_h>15) DrawBar(files.x+3,y,16,files.line_h-15,bgcol); 
662
 
664
 
663
	file_offet = file_mas[filenum+files.first]*304 + buf+32;
665
	file_offet = file_mas[filenum+files.first]*304 + buf+32;
Line 668... Line 670...
668
 
670
 
669
	if (! TestBit(attr, 4) ) //file or folder?
671
	if (! TestBit(attr, 4) ) //file or folder?
670
	{	
672
	{	
671
		ext1 = strrchr(file_name_off,'.') + file_name_off;
673
		ext1 = strrchr(file_name_off,'.') + file_name_off;
672
		if (ext1==file_name_off) ext1 = " \0"; //if no extension then show nothing 
674
		if (ext1==file_name_off) ext1 = " \0"; //if no extension then show nothing 
673
		Put_icon(ext1, files.x+3, files.line_h/2-7+y, color, 0);
675
		Put_icon(ext1, files.x+3, files.line_h/2-7+y, bgcol, 0);
674
		WriteText(7-strlen(ConvertSize(file.sizelo))*6+files.x+files.w - 58, files.text_y + y,files.font_type,0,ConvertSize(file.sizelo));
676
		WriteText(7-strlen(ConvertSize(file.sizelo))*6+files.x+files.w - 58, files.text_y + y,files.font_type,0,ConvertSize(file.sizelo));
675
	}
677
	}
676
	else
678
	else
677
	{
679
	{
678
		if (!strncmp(file_name_off,"..",3)) ext1=".."; else ext1="";
680
		if (!strncmp(file_name_off,"..",3)) ext1=".."; else ext1="";
679
		Put_icon(ext1, files.x+3, files.line_h/2-7+y, color, 0);		
681
		Put_icon(ext1, files.x+3, files.line_h/2-7+y, bgcol, 0);		
Line 680... Line 682...
680
	}
682
	}
681
 
683
 
682
	if (TestBit(attr, 1)) || (TestBit(attr, 2)) text_col=0xA6A6B7; //system or hiden?
684
	if (TestBit(attr, 1)) || (TestBit(attr, 2)) text_col=0xA6A6B7; //system or hiden?
683
	if (color!=0xFFFfff)
685
	if (bgcol!=0xFFFfff)
684
	{
686
	{
685
		itdir = TestBit(attr, 4);
687
		itdir = TestBit(attr, 4);
686
		strcpy(#file_name, file_name_off);
688
		strcpy(#file_name, file_name_off);
Line 701... Line 703...
701
			PathShow_draw stdcall(#FileShow);
703
			PathShow_draw stdcall(#FileShow);
702
		}		
704
		}		
703
	}
705
	}
704
	else
706
	else
705
	{
707
	{
706
		font.bg_color = color;
708
		font.bg_color = bgcol;
707
		font.text(files.x + 23, files.line_h - font.height / 2 - 1 + y, file_name_off);
709
		font.text(files.x + 23, files.line_h - font.height / 2 - 1 + y, file_name_off);
708
	}
710
	}
709
	DrawBar(files.x+files.w-141,y,1,files.line_h,system.color.work); //gray line 1
711
	DrawBar(files.x+files.w-141,y,1,files.line_h,system.color.work); //gray line 1
710
	DrawBar(files.x+files.w-68,y,1,files.line_h,system.color.work); //gray line 2
712
	DrawBar(files.x+files.w-68,y,1,files.line_h,system.color.work); //gray line 2
711
}
713
}
Line 1101... Line 1103...
1101
			else 
1103
			else 
1102
			{
1104
			{
1103
				Tip(56, T_DEVICES, 55, "-");
1105
				Tip(56, T_DEVICES, 55, "-");
1104
				Open_Dir(#path,WITH_REDRAW);
1106
				Open_Dir(#path,WITH_REDRAW);
1105
				pause(10);
1107
				pause(10);
1106
				LoadIniSettings();
-
 
1107
				GetSystemDiscs();
1108
				GetSystemDiscs();
1108
				Open_Dir(#path,WITH_REDRAW);
1109
				Open_Dir(#path,WITH_REDRAW);
1109
				DrawDeviceAndActionsLeftPanel();				
1110
				DrawDeviceAndActionsLeftPanel();				
1110
			}
1111
			}
1111
			break;
1112
			break;