Subversion Repositories Kolibri OS

Rev

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

Rev 3444 Rev 3447
Line 20... Line 20...
20
#include "imgs\left_p.txt"
20
#include "imgs\left_p.txt"
Line 21... Line 21...
21
 
21
 
Line 22... Line 22...
22
 
22
 
23
enum {ONLY_SHOW, WITH_REDRAW, ONLY_OPEN}; //OpenDir
23
enum {ONLY_SHOW, WITH_REDRAW, ONLY_OPEN}; //OpenDir
24
 
24
 
25
#define TITLE "Eolite File Manager v1.88"
25
#define TITLE "Eolite File Manager v1.89"
26
#define ABOUT_TITLE "Eolite v1.88"
26
#define ABOUT_TITLE "Eolite v1.89"
27
dword col_work    = 0xE4DFE1;
27
dword col_work    = 0xE4DFE1;
28
dword col_border  = 0x9098B0; //A0A0B8; //0x819FC5;
28
dword col_border  = 0x9098B0; //A0A0B8; //0x819FC5;
Line 451... Line 451...
451
 
451
 
452
	for (j=0; j
452
	for (j=0; j
453
	//in the bottom
453
	//in the bottom
454
	paint_y = j * files.line_h + files.y;
454
	paint_y = j * files.line_h + files.y;
455
	DrawBar(files.x,paint_y,files.w,onTop(paint_y,6),0xFFFFFF);
455
	DrawBar(files.x,paint_y,files.w,onTop(paint_y,6),0xFFFFFF);
456
	DrawBar(onLeft(168,0),paint_y,1,onTop(paint_y,6),col_work);
456
	DrawBar(Form.cwidth-159,paint_y,1,onTop(paint_y,6),col_work);
457
	DrawBar(onLeft(95,0),paint_y,1,onTop(paint_y,6),col_work);
457
	DrawBar(Form.cwidth-86,paint_y,1,onTop(paint_y,6),col_work);
458
	Scroll();
458
	Scroll();
Line 459... Line 459...
459
}
459
}
460
 
460
 
461
 
461
 
462
void Line_ReDraw(dword color, filenum){
462
void Line_ReDraw(dword color, filenum){
-
 
463
	dword text_col=0, name_len=0, y=filenum*files.line_h+57;
463
	dword text_col=0, name_len=0, y=filenum*files.line_h+57;
464
	DrawBar(files.x,y,3,files.line_h,color); 
464
	DrawBar(192,y,3,files.line_h,color); 
465
	DrawBar(files.x+19,y,files.w-19,files.line_h,color);
Line 465... Line 466...
465
	DrawBar(192+19,y,onLeft(46,192),files.line_h,color); DrawBar(195,y+17,16,1,color);
466
	DrawBar(files.x+3,y+17,16,1,color);
Line 466... Line 467...
466
	if (files.line_h>18) DrawBar(195,y+18,16,files.line_h-18,color);
467
	if (files.line_h>18) DrawBar(files.x+3,y+18,16,files.line_h-18,color);
467
	if (files.line_h>15) DrawBar(195,y,16,files.line_h-15,color); 
468
	if (files.line_h>15) DrawBar(files.x+3,y,16,files.line_h-15,color); 
468
 
-
 
469
	off=file_mas[filenum+files.first]*304 + buf+72;
469
 
470
 
470
	off=file_mas[filenum+files.first]*304 + buf+72;
471
	if (!TestBit(ESDWORD[off-40], 4)) //file or folder?
471
 
472
	{	
472
	if (!TestBit(ESDWORD[off-40], 4)) //file or folder?
473
		strcpy(#temp, off);
473
	{	
474
		Put_icon(#temp+_strrchr(#temp,'.'), files.line_h/2-7+y, color);
474
		Put_icon(off+_strrchr(off,'.'), files.line_h/2-7+y, color);
Line 488... Line 488...
488
		strcat(#file_path, #file_name);
488
		strcat(#file_path, #file_name);
489
		if (text_col==0xA6A6B7) text_col=0xFFFFFF;
489
		if (text_col==0xA6A6B7) text_col=0xFFFFFF;
490
	}
490
	}
491
	if (Form.width>=480)
491
	if (Form.width>=480)
492
	{
492
	{
-
 
493
		FileShow.start_x = files.x + 23;
493
		FileShow.font_color = text_col;
494
		FileShow.font_color = text_col;
494
		FileShow.area_size_x = Form.width - 380;
495
		FileShow.area_size_x = Form.width - 380;
495
		FileShow.text_pointer = off;
496
		FileShow.text_pointer = off;
496
		FileShow.start_y = files.line_h/2-3+y;
497
		FileShow.start_y = files.line_h/2-3+y;
497
		PathShow_prepare stdcall(#FileShow);
498
		PathShow_prepare stdcall(#FileShow);
498
		PathShow_draw stdcall(#FileShow);
499
		PathShow_draw stdcall(#FileShow);
499
	}
500
	}
500
	DrawBar(onLeft(168,0),y,1,files.line_h,col_work); //gray line 1
501
	DrawBar(Form.cwidth-159,y,1,files.line_h,col_work); //gray line 1
501
	DrawBar(onLeft(95,0),y,1,files.line_h,col_work); //gray line 2
502
	DrawBar(Form.cwidth-86,y,1,files.line_h,col_work); //gray line 2
502
}
503
}
Line 503... Line 504...
503
 
504
 
504
 
505
 
Line 707... Line 708...
707
			CreateThread(#about_dialog,#about_stak);
708
			CreateThread(#about_dialog,#about_stak);
708
			break;
709
			break;
709
		case 2:
710
		case 2:
710
			if (!files.count) break;
711
			if (!files.count) break;
711
			edit2.flags=100000000000010b; //set active
712
			edit2.flags = 100000000000010b; //set active
-
 
713
			edit2.left = files.x + 21;
712
			edit2.width=onLeft(24,217);
714
			edit2.width = files.w - 26;
713
			edit2.top=files.current*files.line_h+59;
715
			edit2.top=files.current*files.line_h+59;
714
			edit2.size=edit2.pos=strlen(#file_name);
716
			edit2.size=edit2.pos=strlen(#file_name);
715
			edit_box_draw  stdcall (#edit2);
717
			edit_box_draw  stdcall (#edit2);
716
			DrawBar(213,files.current*files.line_h+58,edit2.width+1,1,0xFFFFCC); //bg
718
			DrawBar(edit2.left,files.current*files.line_h+58,edit2.width+1,1,0xFFFFCC); //bg
717
			rename_active=1;
719
			rename_active=1;
718
			break;
720
			break;
719
		case 3:
721
		case 3:
720
			IF (!itdir) RunProgram("/sys/tinypad", #file_path);
722
			IF (!itdir) RunProgram("/sys/tinypad", #file_path);
721
			break;
723
			break;