Subversion Repositories Kolibri OS

Rev

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

Rev 7278 Rev 7369
Line 76... Line 76...
76
	int j;
76
	int j;
77
	int paste_elements_count = 0;
77
	int paste_elements_count = 0;
78
	dword buf;
78
	dword buf;
79
	dword path_offset;
79
	dword path_offset;
80
	file_count_copy = 0;
80
	dword file_count_paste = 0;
81
	copy_bar.value = 0; 
81
	_dir_size paste_dir_size;
-
 
82
	BDVK file_info_count;
-
 
83
 
-
 
84
	copy_bar.value = 0; 
82
	
85
	
Line 83... Line 86...
83
	buf = Clipboard__GetSlotData(Clipboard__GetSlotCount()-1);
86
	buf = Clipboard__GetSlotData(Clipboard__GetSlotCount()-1);
84
	if (DSDWORD[buf+4] != 3) return;
87
	if (DSDWORD[buf+4] != 3) return;
85
	paste_elements_count = ESINT[buf+8];
88
	paste_elements_count = ESINT[buf+8];
86
	path_offset = buf + 10;
89
	path_offset = buf + 10;
87
	//calculate copy files count for progress bar
90
	//calculate copy files count for progress bar
88
	for (j = 0; j < paste_elements_count; j++) {
91
	for (j = 0; j < paste_elements_count; j++) {
89
		GetFileInfo(path_offset, #file_info_count);
92
		GetFileInfo(path_offset, #file_info_count);
90
		if ( file_info_count.isfolder ) DirFileCount(path_offset);
93
		if ( file_info_count.isfolder ) { 
-
 
94
			paste_dir_size.get(path_offset); 
-
 
95
			file_count_paste += paste_dir_size.files; 
-
 
96
		}
91
		else file_count_copy++;
97
		else file_count_paste++;
92
		path_offset += strlen(path_offset) + 1;
98
		path_offset += strlen(path_offset) + 1;
93
	}
99
	}
94
	copy_bar.max = file_count_copy;
100
	copy_bar.max = file_count_paste;
Line 95... Line 101...
95
	
101
	
96
	if (cut_active)  operation_flag = MOVE_FLAG;
102
	if (cut_active)  operation_flag = MOVE_FLAG;
Line 97... Line 103...
97
	else  operation_flag = COPY_FLAG;
103
	else  operation_flag = COPY_FLAG;