Subversion Repositories Kolibri OS

Rev

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

Rev 4666 Rev 4698
Line 78... Line 78...
78
	?define T_SELECT_APP_TO_OPEN_WITH "Select application to open file"
78
	?define T_SELECT_APP_TO_OPEN_WITH "Select application to open file"
79
#endif
79
#endif
Line 80... Line 80...
80
 
80
 
Line 81... Line 81...
81
enum {ONLY_SHOW, WITH_REDRAW, ONLY_OPEN}; //OpenDir
81
enum {ONLY_SHOW, WITH_REDRAW, ONLY_OPEN}; //OpenDir
82
 
82
 
83
#define TITLE "Eolite File Manager v2.16.2"
83
#define TITLE "Eolite File Manager v2.17"
Line 84... Line 84...
84
#define ABOUT_TITLE "Eolite v2.16.2"
84
#define ABOUT_TITLE "Eolite v2.17"
85
dword col_padding, col_selec, col_lpanel;
85
dword col_padding, col_selec, col_lpanel;
86
 
86
 
Line 303... Line 303...
303
						break;
303
						break;
304
				case 23: //up!
304
				case 23: //up!
305
						Dir_Up();
305
						Dir_Up();
306
						break;
306
						break;
307
				case 24: //cut
307
				case 24: //cut
-
 
308
						add_to_copy(#file_path);
308
						Copy(#file_path, CUT);
309
						Copy(#file_path, CUT);
309
						break;
310
						break;
310
				case 25: //copy
311
				case 25: //copy
-
 
312
						add_to_copy(#file_path);
311
						Copy(#file_path, NOCUT);
313
						Copy(#file_path, NOCUT);
312
						break;
314
						break;
313
				case 26: //paste
315
				case 26: //paste
314
						CreateThread(#Paste,#copy_stak+4092);
316
						CreateThread(#Paste,#copy_stak+4092);
315
						break;
317
						break;
Line 383... Line 385...
383
					case 014: //Ctrl+N new window
385
					case 014: //Ctrl+N new window
384
							IF (Form.left==98) MoveSize(Form.left-20,Form.top-20,OLD,OLD);
386
							IF (Form.left==98) MoveSize(Form.left-20,Form.top-20,OLD,OLD);
385
							RunProgram("/sys/File Managers/Eolite", #path);
387
							RunProgram("/sys/File Managers/Eolite", #path);
386
							break; 
388
							break; 
387
					case 024: //Ctrl+X
389
					case 024: //Ctrl+X
-
 
390
							add_to_copy(#file_path);
388
							Copy(#file_path, CUT);
391
							Copy(#file_path, CUT);
389
							break;
392
							break;
390
					case 003: //Ctrl+C
393
					case 003: //Ctrl+C
-
 
394
							add_to_copy(#file_path);
391
							Copy(#file_path, NOCUT);
395
							Copy(#file_path, NOCUT);
392
							break;
396
							break;
393
					case 022: //Ctrl+V
397
					case 022: //Ctrl+V
394
							CreateThread(#Paste,#copy_stak+4092);
398
							CreateThread(#Paste,#copy_stak+4092);
395
							break;
399
							break;
Line 427... Line 431...
427
							List_Current(-files.visible+1);
431
							List_Current(-files.visible+1);
428
							break;
432
							break;
429
					case 182: //del
433
					case 182: //del
430
							Del_Form();
434
							Del_Form();
431
							break;
435
							break;
-
 
436
					case 185: //ins
-
 
437
							add_to_copy(#file_path);
-
 
438
							break;
432
					case 050...059: //F1-F10
439
					case 050...059: //F1-F10
433
							FnProcess(key-49);
440
							FnProcess(key-49);
434
							break; 
441
							break; 
435
					default:    
442
					default:    
436
							for (i=files.current+files.first+1; i
443
							for (i=files.current+files.first+1; i
Line 592... Line 599...
592
void Line_ReDraw(dword color, filenum){
599
void Line_ReDraw(dword color, filenum){
593
	dword text_col=0,
600
	dword text_col=0,
594
	      name_len=0,
601
	      name_len=0,
595
	      attr,
602
	      attr,
596
	      y=filenum*files.line_h+files.y;
603
	      y=filenum*files.line_h+files.y;
597
	if (filenum==-1) return;
-
 
598
	DrawBar(files.x,y,3,files.line_h,color); 
604
	DrawBar(files.x,y,3,files.line_h,color); 
599
	DrawBar(files.x+19,y,files.w-19,files.line_h,color);
605
	DrawBar(files.x+19,y,files.w-19,files.line_h,color);
600
	DrawBar(files.x+3,y+17,16,1,color);
606
	DrawBar(files.x+3,y+17,16,1,color);
601
	if (files.line_h>18) DrawBar(files.x+3,y+18,16,files.line_h-18,color);
607
	if (files.line_h>18) DrawBar(files.x+3,y+18,16,files.line_h-18,color);
602
	if (files.line_h>15) DrawBar(files.x+3,y,16,files.line_h-15,color); 
608
	if (files.line_h>15) DrawBar(files.x+3,y,16,files.line_h-15,color); 
Line 605... Line 611...
605
	attr = ESDWORD[off - 40];
611
	attr = ESDWORD[off - 40];
Line 606... Line 612...
606
 
612
 
607
	if (! TestBit(attr, 4) ) //file or folder?
613
	if (! TestBit(attr, 4) ) //file or folder?
608
	{	
614
	{	
609
		Put_icon(off+_strrchr(off,'.'), files.x+3, files.line_h/2-7+y, color, 0);
615
		Put_icon(off+_strrchr(off,'.'), files.x+3, files.line_h/2-7+y, color, 0);
610
		WriteText(7-strlen(ConvertSize(ESDWORD[off-8]))*6+onLeft(75,0),files.line_h-6/2+y,0x80,0,ConvertSize(ESDWORD[off-8])); //size
616
		WriteText(7-strlen(ConvertMemSize(ESDWORD[off-8]))*6+onLeft(75,0),files.line_h-6/2+y,0x80,0,ConvertMemSize(ESDWORD[off-8])); //size
611
	}
617
	}
612
	else
618
	else
613
		if (!strcmp("..",off))
619
		if (!strcmp("..",off))
614
			Put_icon("..", files.x+3, files.line_h/2-7+y, color, 0);
620
			Put_icon("..", files.x+3, files.line_h/2-7+y, color, 0);