Subversion Repositories Kolibri OS

Rev

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

Rev 5996 Rev 6008
Line 819... Line 819...
819
	int dform_x = files.w - 220 / 2 + files.x;
819
	int dform_x = files.w - 220 / 2 + files.x;
820
	if (!strncmp(#file_name,".",2)) || (!strncmp(#file_name,"..",2)) return;
820
	if (!strncmp(#file_name,".",2)) || (!strncmp(#file_name,"..",2)) return;
821
	else
821
	else
822
	{
822
	{
823
		if (!files.count) return;
823
		if (!files.count) return;
824
		DrawPopup(dform_x,160,220,85,1,system.color.work,system.color.work_graph);
824
		DrawEolitePopup(T_YES, T_NO);
825
		WriteText(-strlen(T_DELETE_FILE)*3+110+dform_x,175,0x80,system.color.work_text,T_DELETE_FILE);
825
		WriteText(-strlen(T_DELETE_FILE)*3+110+dform_x,175,0x80,system.color.work_text,T_DELETE_FILE);
826
		for (i=0; i
826
		for (i=0; i
827
		{
827
		{
828
			selected_offset2 = file_mas[i]*304 + buf+32 + 7;
828
			selected_offset2 = file_mas[i]*304 + buf+32 + 7;
829
			if (ESBYTE[selected_offset2]) cont++;
829
			if (ESBYTE[selected_offset2]) cont++;
Line 845... Line 845...
845
				WriteText(164+dform_x,190,0x80,0,"...?");
845
				WriteText(164+dform_x,190,0x80,0,"...?");
846
				ESI = 24;
846
				ESI = 24;
847
				WriteText(dform_x+20,190,0,0,#file_name);
847
				WriteText(dform_x+20,190,0,0,#file_name);
848
			}
848
			}
849
		}
849
		}		
850
		DrawFlatButton(dform_x+27,208,70,20,301,0xFFB6B5,T_YES);
-
 
851
		DrawFlatButton(dform_x+120,208,70,20,302,0xC6DFC6,T_NO);		
-
 
852
		del_active=1;
850
		del_active=1;
853
	}
851
	}
854
}
852
}
Line 855... Line 853...
855
 
853
 
Line 1028... Line 1026...
1028
				if (info_result==5)
1026
				if (info_result==5)
1029
				{
1027
				{
1030
					WriteFile(0, 0, #temp);
1028
					WriteFile(0, 0, #temp);
1031
					if (EAX)
1029
					if (EAX)
1032
					{
1030
					{
1033
						Write_Error(EAX);
1031
						if (EAX==5) notify(NOT_CREATE_FILE);
1034
						ShowMessage(NOT_CREATE_FILE, 150);
1032
						else Write_Error(EAX);
1035
					}
1033
					}
1036
				}
1034
				}
1037
				else
1035
				else
1038
				{
1036
				{
1039
					notify(FS_ITEM_ALREADY_EXISTS);
1037
					notify(FS_ITEM_ALREADY_EXISTS);
Line 1043... Line 1041...
1043
				if (info_result==5)
1041
				if (info_result==5)
1044
				{
1042
				{
1045
					CreateDir(#temp);
1043
					CreateDir(#temp);
1046
					if (EAX)
1044
					if (EAX)
1047
					{
1045
					{
1048
						Write_Error(EAX);
1046
						if (EAX==5) notify(NOT_CREATE_FOLDER);
1049
						ShowMessage(NOT_CREATE_FOLDER, 150);
1047
						else Write_Error(EAX);
1050
					}
1048
					}
1051
				}
1049
				}
1052
				else
1050
				else
1053
				{
1051
				{
1054
					notify(FS_ITEM_ALREADY_EXISTS);
1052
					notify(FS_ITEM_ALREADY_EXISTS);
Line 1060... Line 1058...
1060
					if (itdir)
1058
					if (itdir)
1061
					{
1059
					{
1062
						if (del_rezult = DeleteFile(#file_path))
1060
						if (del_rezult = DeleteFile(#file_path))
1063
						{
1061
						{
1064
							Write_Error(del_rezult);
1062
							Write_Error(del_rezult);
1065
							ShowMessage(T_DEL_ERROR_1, 150);
-
 
1066
							return;
1063
							return;
1067
						}
1064
						}
1068
						if (CreateDir(#temp)) CreateDir(#file_path);
1065
						if (CreateDir(#temp)) CreateDir(#file_path);
1069
						Open_Dir(#path,WITH_REDRAW);
1066
						Open_Dir(#path,WITH_REDRAW);
1070
						SelectFileByName(new_file_ed.text);
1067
						SelectFileByName(new_file_ed.text);
Line 1102... Line 1099...
1102
	{
1099
	{
1103
		new_element_active = crt;
1100
		new_element_active = crt;
1104
		strcpy(#new_element_name, strng);
1101
		strcpy(#new_element_name, strng);
1105
		new_file_ed.size = new_file_ed.pos = strlen(strng);
1102
		new_file_ed.size = new_file_ed.pos = strlen(strng);
1106
	}
1103
	}
1107
	DrawPopup(dform_x,160,220,85,1,system.color.work,system.color.work_graph);
1104
	if (new_element_active==3) DrawEolitePopup(T_RENAME, T_CANCEL);
-
 
1105
	else DrawEolitePopup(T_CREATE, T_CANCEL);
1108
	new_file_ed.left = dform_x+24;
1106
	new_file_ed.left = dform_x+24;
1109
	edit_box_draw  stdcall (#new_file_ed);
1107
	edit_box_draw  stdcall (#new_file_ed);
1110
	DrawRectangle(new_file_ed.left-1, new_file_ed.top-1, new_file_ed.width+2, 16, 0xFFFfff);
1108
	DrawRectangle(new_file_ed.left-1, new_file_ed.top-1, new_file_ed.width+2, 16, 0xFFFfff);
1111
	DrawRectangle(new_file_ed.left-2, new_file_ed.top-2, new_file_ed.width+4, 18, system.color.work_graph);
1109
	DrawRectangle(new_file_ed.left-2, new_file_ed.top-2, new_file_ed.width+4, 18, system.color.work_graph);
1112
	if (new_element_active==3) DrawFlatButton(dform_x+22,208,85,22,301,0xFFB6B5,T_RENAME);
-
 
1113
	else DrawFlatButton(dform_x+27,208,70,22,301,0xFFB6B5,T_CREATE);
-
 
1114
	DrawFlatButton(dform_x+120,208,70,22,302,0xC6DFC6,T_CANCEL);
-
 
1115
}
1110
}
Line 1116... Line 1111...
1116
 
1111
 
1117
void FnProcess(byte N)
1112
void FnProcess(byte N)
1118
{
1113
{