Subversion Repositories Kolibri OS

Rev

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

Rev 4699 Rev 4846
Line 19... Line 19...
19
#include "..\lib\list_box.h"
19
#include "..\lib\list_box.h"
20
#include "..\lib\copyf.h"
20
#include "..\lib\copyf.h"
21
//images
21
//images
22
#include "imgs\toolbar.txt"
22
#include "imgs\toolbar.txt"
23
#include "imgs\left_p.txt"
23
#include "imgs\left_p.txt"
-
 
24
#include "imgs\icons.txt"
Line 24... Line 25...
24
 
25
 
25
#ifdef LANG_RUS
26
#ifdef LANG_RUS
26
	?define T_FILE "” ©«"
27
	?define T_FILE "” ©«"
27
	?define T_TYPE "’¨¯"
28
	?define T_TYPE "’¨¯"
Line 78... Line 79...
78
	?define T_SELECT_APP_TO_OPEN_WITH "Select application to open file"
79
	?define T_SELECT_APP_TO_OPEN_WITH "Select application to open file"
79
#endif
80
#endif
Line 80... Line 81...
80
 
81
 
Line 81... Line 82...
81
enum {ONLY_SHOW, WITH_REDRAW, ONLY_OPEN}; //OpenDir
82
enum {ONLY_SHOW, WITH_REDRAW, ONLY_OPEN}; //OpenDir
82
 
83
 
83
#define TITLE "Eolite File Manager v2.17"
84
#define TITLE "Eolite File Manager v2.18"
Line 84... Line 85...
84
#define ABOUT_TITLE "Eolite v2.17"
85
#define ABOUT_TITLE "Eolite v2.18"
85
dword col_padding, col_selec, col_lpanel;
86
dword col_padding, col_selec, col_lpanel;
86
 
87
 
Line 313... Line 314...
313
						Copy(#file_path, NOCUT);
314
						Copy(#file_path, NOCUT);
314
						break;
315
						break;
315
				case 26: //paste
316
				case 26: //paste
316
						CreateThread(#Paste,#copy_stak+4092);
317
						CreateThread(#Paste,#copy_stak+4092);
317
						break;
318
						break;
318
				case 27:
-
 
319
						strcpy(#temp, "Ram Disk free space: ");
-
 
320
						i = GetFreeRamDiskClusters() / 2;
-
 
321
						itoa_(#temp+21, i);
-
 
322
						strcat(#temp, "Kb");
-
 
323
						notify(#temp);
-
 
324
						break;
-
 
325
				case 31...33: //sort
319
				case 31...33: //sort
326
						IF(sort_num==1) DrawFilledBar(sorting_arrow_x,42,6,10);
320
						IF(sort_num==1) DrawFilledBar(sorting_arrow_x,42,6,10);
327
						IF(sort_num==2) DrawFilledBar(sorting_arrow_x,42,6,10);
321
						IF(sort_num==2) DrawFilledBar(sorting_arrow_x,42,6,10);
328
						IF(sort_num==3) DrawFilledBar(sorting_arrow_x,42,6,10);
322
						IF(sort_num==3) DrawFilledBar(sorting_arrow_x,42,6,10);
329
						sort_num=id-30;
323
						sort_num=id-30;
Line 598... Line 592...
598
 
592
 
599
void Line_ReDraw(dword color, filenum){
593
void Line_ReDraw(dword color, filenum){
600
	dword text_col=0,
594
	dword text_col=0,
601
	      name_len=0,
595
	      name_len=0,
-
 
596
	      attr,
602
	      attr,
597
	      ext1,
603
	      y=filenum*files.line_h+files.y;
598
	      y=filenum*files.line_h+files.y;
604
	DrawBar(files.x,y,3,files.line_h,color); 
599
	DrawBar(files.x,y,3,files.line_h,color); 
605
	DrawBar(files.x+19,y,files.w-19,files.line_h,color);
600
	DrawBar(files.x+19,y,files.w-19,files.line_h,color);
606
	DrawBar(files.x+3,y+17,16,1,color);
601
	DrawBar(files.x+3,y+17,16,1,color);
Line 614... Line 609...
614
	{	
609
	{	
615
		Put_icon(off+_strrchr(off,'.'), files.x+3, files.line_h/2-7+y, color, 0);
610
		Put_icon(off+_strrchr(off,'.'), files.x+3, files.line_h/2-7+y, color, 0);
616
		WriteText(7-strlen(ConvertSize(ESDWORD[off-8]))*6+onLeft(75,0),files.line_h-6/2+y,0x80,0,ConvertSize(ESDWORD[off-8])); //size
611
		WriteText(7-strlen(ConvertSize(ESDWORD[off-8]))*6+onLeft(75,0),files.line_h-6/2+y,0x80,0,ConvertSize(ESDWORD[off-8])); //size
617
	}
612
	}
618
	else
613
	else
-
 
614
	{
619
		if (!strcmp("..",off))
615
		if (strcmp("..",off)==0) ext1=".."; else ext1="";
620
			Put_icon("..", files.x+3, files.line_h/2-7+y, color, 0);
616
		Put_icon(ext1, files.x+3, files.line_h/2-7+y, color, 0);		
621
		else
617
	}
622
			Put_icon("", files.x+3, files.line_h/2-7+y, color, 0);
-
 
-
 
618
 
623
	if ( TestBit(attr, 1) ) || ( TestBit(attr, 2) ) text_col=0xA6A6B7; //system or hiden?
619
	if ( TestBit(attr, 1) ) || ( TestBit(attr, 2) ) text_col=0xA6A6B7; //system or hiden?
624
	if (color!=0xFFFfff)
620
	if (color!=0xFFFfff)
625
	{
621
	{
626
		itdir = TestBit(attr, 4);
622
		itdir = TestBit(attr, 4);
627
		strcpy(#file_name, off);
623
		strcpy(#file_name, off);