Subversion Repositories Kolibri OS

Rev

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

Rev 5511 Rev 5512
Line 41... Line 41...
41
	?define ERROR_1 "Žè¨¡ª  ¯à¨ § £à㧪¥ ¡¨¡«¨®â¥ª¨ /rd/1/lib/box_lib.obj"
41
	?define ERROR_1 "Žè¨¡ª  ¯à¨ § £à㧪¥ ¡¨¡«¨®â¥ª¨ /rd/1/lib/box_lib.obj"
42
	?define T_PASTE_WINDOW "Š®¯¨àãî..."
42
	?define T_PASTE_WINDOW "Š®¯¨àãî..."
43
	?define T_PASTE_WINDOW_TEXT "Š®¯¨àã¥âáï ä ©«:"
43
	?define T_PASTE_WINDOW_TEXT "Š®¯¨àã¥âáï ä ©«:"
44
	?define T_CANCEL_PASTE "Š®¯¨à®¢ ­¨¥ ¯à¥ªà é¥­®.  ¯ª  ᪮¯¨à®¢ ­  ­¥ ¯®«­®áâìî."
44
	?define T_CANCEL_PASTE "Š®¯¨à®¢ ­¨¥ ¯à¥ªà é¥­®.  ¯ª  ᪮¯¨à®¢ ­  ­¥ ¯®«­®áâìî."
45
	?define T_SELECT_APP_TO_OPEN_WITH "‚ë¡¥à¨â¥ ¯à®£à ¬¬ã ¤«ï ®âªàëâ¨ï ä ©« "
45
	?define T_SELECT_APP_TO_OPEN_WITH "‚ë¡¥à¨â¥ ¯à®£à ¬¬ã ¤«ï ®âªàëâ¨ï ä ©« "
-
 
46
	?define DEL_MORE_FILES_1 "íâ¨ í«¥¬¥­âë ("
-
 
47
	?define DEL_MORE_FILES_2 " èâ.)?"
46
#elif LANG_EST
48
#elif LANG_EST
47
	?define T_FILE "Fail"
49
	?define T_FILE "Fail"
48
	?define T_TYPE "Tüüp"
50
	?define T_TYPE "Tüüp"
49
	?define T_SIZE "Suurus"
51
	?define T_SIZE "Suurus"
50
	?define T_NEW_FOLDER "Uus kataloog"
52
	?define T_NEW_FOLDER "Uus kataloog"
Line 59... Line 61...
59
	?define ERROR_1 "Viga teegi laadimisel /rd/1/lib/box_lib.obj"
61
	?define ERROR_1 "Viga teegi laadimisel /rd/1/lib/box_lib.obj"
60
	?define T_PASTE_WINDOW "Kopeerin..."
62
	?define T_PASTE_WINDOW "Kopeerin..."
61
	?define T_PASTE_WINDOW_TEXT "Kopeerin faili:"
63
	?define T_PASTE_WINDOW_TEXT "Kopeerin faili:"
62
	?define T_CANCEL_PASTE "Copy process terminated. Folder copied incompletely."
64
	?define T_CANCEL_PASTE "Copy process terminated. Folder copied incompletely."
63
	?define T_SELECT_APP_TO_OPEN_WITH "Select application to open file"
65
	?define T_SELECT_APP_TO_OPEN_WITH "Select application to open file"
-
 
66
	?define DEL_MORE_FILES_1 "íâ¨ í«¥¬¥­âë ("
-
 
67
	?define DEL_MORE_FILES_2 " èâ.)?"
64
#else
68
#else
65
	?define T_FILE "File"
69
	?define T_FILE "File"
66
	?define T_TYPE "Type"
70
	?define T_TYPE "Type"
67
	?define T_SIZE "Size"
71
	?define T_SIZE "Size"
68
	?define T_NEW_FOLDER "New folder"
72
	?define T_NEW_FOLDER "New folder"
Line 77... Line 81...
77
	?define ERROR_1 "Error while loading library /rd/1/lib/box_lib.obj"
81
	?define ERROR_1 "Error while loading library /rd/1/lib/box_lib.obj"
78
	?define T_PASTE_WINDOW "Copying..."
82
	?define T_PASTE_WINDOW "Copying..."
79
	?define T_PASTE_WINDOW_TEXT "Copying file:"
83
	?define T_PASTE_WINDOW_TEXT "Copying file:"
80
	?define T_CANCEL_PASTE "Copy process terminated. Folder copied incompletely."
84
	?define T_CANCEL_PASTE "Copy process terminated. Folder copied incompletely."
81
	?define T_SELECT_APP_TO_OPEN_WITH "Select application to open file"
85
	?define T_SELECT_APP_TO_OPEN_WITH "Select application to open file"
-
 
86
	?define DEL_MORE_FILES_1 "íâ¨ í«¥¬¥­âë ("
-
 
87
	?define DEL_MORE_FILES_2 " èâ.)?"
82
#endif
88
#endif
Line 83... Line 89...
83
 
89
 
Line 84... Line 90...
84
enum {ONLY_SHOW, WITH_REDRAW, ONLY_OPEN}; //OpenDir
90
enum {ONLY_SHOW, WITH_REDRAW, ONLY_OPEN}; //OpenDir
85
 
91
 
86
#define TITLE "Eolite File Manager v2.62"
92
#define TITLE "Eolite File Manager v2.63"
Line 87... Line 93...
87
#define ABOUT_TITLE "Eolite v2.62"
93
#define ABOUT_TITLE "Eolite v2.63"
88
dword col_padding, col_selec, col_lpanel;
94
dword col_padding, col_selec, col_lpanel;
89
 
95
 
Line 378... Line 384...
378
							Copy(#file_path, NOCUT);
384
							Copy(#file_path, NOCUT);
379
							break;
385
							break;
380
					case 022: //Ctrl+V
386
					case 022: //Ctrl+V
381
							CreateThread(#Paste,#copy_stak+4092);
387
							CreateThread(#Paste,#copy_stak+4092);
382
							break;
388
							break;
-
 
389
					case 001: //Ctrl+A
-
 
390
							debugln("press Ctrl+A");
-
 
391
							for (i=0; i
-
 
392
							{
-
 
393
								selected_offset = file_mas[i]*304 + buf+32 + 7;
-
 
394
								ESBYTE[selected_offset] = 1;
-
 
395
							}
-
 
396
							List_ReDraw();
-
 
397
							break;
-
 
398
					case 021: //Ctrl+U
-
 
399
							debugln("press Ctrl+A");
-
 
400
							for (i=0; i
-
 
401
							{
-
 
402
								selected_offset = file_mas[i]*304 + buf+32 + 7;
-
 
403
								ESBYTE[selected_offset] = 0;
-
 
404
							}
-
 
405
							List_ReDraw();
-
 
406
							break;
383
					case ASCII_KEY_ESC:
407
					case ASCII_KEY_ESC:
384
							IF (rename_active==1) ReName(false);
408
							IF (rename_active==1) ReName(false);
385
							break;
409
							break;
386
					case ASCII_KEY_ENTER:
410
					case ASCII_KEY_ENTER:
387
							IF (rename_active==1) {ReName(true); break;}
411
							IF (rename_active==1) {ReName(true); break;}
Line 726... Line 750...
726
}
750
}
Line 727... Line 751...
727
 
751
 
728
 
752
 
-
 
753
void Del_Form()
-
 
754
{
-
 
755
	dword selected_offset2;
729
void Del_Form()
756
	int cont = 0;
730
{
757
	byte f_count[128];
731
	int dform_x=files.w-220/2+files.x;
758
	int dform_x=files.w-220/2+files.x;
732
	if (strcmp(#file_name,".")==0) || (strcmp(#file_name,"..")==0) return;
759
	if (strcmp(#file_name,".")==0) || (strcmp(#file_name,"..")==0) return;
733
	if (del_active==2)
760
	if (del_active==2)
Line 737... Line 764...
737
	else
764
	else
738
	{
765
	{
739
		if (!files.count) return;
766
		if (!files.count) return;
740
		DrawPopup(dform_x,160,220,80,1,sc.work,sc.work_graph);
767
		DrawPopup(dform_x,160,220,80,1,sc.work,sc.work_graph);
741
		WriteText(-strlen(T_DELETE_FILE)*3+110+dform_x,175,0x80,sc.work_text,T_DELETE_FILE);
768
		WriteText(-strlen(T_DELETE_FILE)*3+110+dform_x,175,0x80,sc.work_text,T_DELETE_FILE);
-
 
769
		for (i=0; i
-
 
770
		{
-
 
771
			selected_offset2 = file_mas[i]*304 + buf+32 + 7;
-
 
772
			if (ESBYTE[selected_offset2]) cont++;
-
 
773
		}
-
 
774
		if (cont)
-
 
775
		{
-
 
776
			strcpy(#f_count, DEL_MORE_FILES_1);
-
 
777
			strcat(#f_count, itoa(cont));
-
 
778
			strcat(#f_count, DEL_MORE_FILES_2);
-
 
779
			WriteText(-strlen(#f_count)*3+110+dform_x,190,0x80,sc.work_text,#f_count);
-
 
780
		}
-
 
781
		else
-
 
782
		{
742
		IF (strlen(#file_name)<28) 
783
			IF (strlen(#file_name)<28) 
743
		{
784
			{
744
			WriteText(strlen(#file_name)*3+110+dform_x+2,190,0x80,sc.work_text,"?");
785
				WriteText(strlen(#file_name)*3+110+dform_x+2,190,0x80,sc.work_text,"?");
745
			WriteText(-strlen(#file_name)*3+110+dform_x,190,0x80,sc.work_text,#file_name);
786
				WriteText(-strlen(#file_name)*3+110+dform_x,190,0x80,sc.work_text,#file_name);
746
		}
787
			}
Line 748... Line 789...
748
		{
789
			{
749
			WriteText(164+dform_x,190,0x80,0,"...?");
790
				WriteText(164+dform_x,190,0x80,0,"...?");
750
			ESI = 24;
791
				ESI = 24;
751
			WriteText(dform_x+20,190,0,0,#file_name);
792
				WriteText(dform_x+20,190,0,0,#file_name);
752
		}
793
			}
-
 
794
		}
753
		DrawFlatButton(dform_x+27,208,70,20,301,0xFFB6B5,T_YES);
795
		DrawFlatButton(dform_x+27,208,70,20,301,0xFFB6B5,T_YES);
754
		DrawFlatButton(dform_x+120,208,70,20,302,0xC6DFC6,T_NO);		
796
		DrawFlatButton(dform_x+120,208,70,20,302,0xC6DFC6,T_NO);		
755
		del_active=1;
797
		del_active=1;
756
	}
798
	}
757
}
799
}