Subversion Repositories Kolibri OS

Rev

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

Rev 8947 Rev 8949
Line 113... Line 113...
113
		{
113
		{
114
			for (i=0; i
114
			for (i=0; i
115
			{
115
			{
116
				if (getElementSelectedFlag(i) == true) 
116
				if (getElementSelectedFlag(i) == true) 
117
				{
117
				{
118
					sprintf(#pcur_file,"%s/%s",#path,items.get(i)*304+buf+72);
118
					sprintf(#pcur_file,"%s/%s",path,items.get(i)*304+buf+72);
119
					SetPropertiesFile(#pcur_file, #file_info_general);
119
					SetPropertiesFile(#pcur_file, #file_info_general);
120
					if (SET_PROPERTIES_ALL_SUBFOLDER == mode) {
120
					if (SET_PROPERTIES_ALL_SUBFOLDER == mode) {
121
						if (dir_exists(#pcur_file)) SetPropertiesDir(#pcur_file);
121
						if (dir_exists(#pcur_file)) SetPropertiesDir(#pcur_file);
122
					}
122
					}
123
				}
123
				}
Line 129... Line 129...
129
			if (SET_PROPERTIES_ALL_SUBFOLDER == mode) SetPropertiesDir(#file_path);
129
			if (SET_PROPERTIES_ALL_SUBFOLDER == mode) SetPropertiesDir(#file_path);
130
		}
130
		}
131
	}
131
	}
Line 132... Line 132...
132
 
132
 
133
	cmd_free=3;
133
	cmd_free=3;
134
	Open_Dir(#path,ONLY_OPEN);
134
	Open_Dir(path,ONLY_OPEN);
135
	ExitProcess();
135
	ExitProcess();
Line 136... Line 136...
136
}
136
}
137
 
137
 
Line 175... Line 175...
175
	int id;
175
	int id;
Line 176... Line 176...
176
	
176
	
177
	if (selected_count)
177
	if (selected_count)
178
	{
178
	{
179
		more_files_count.get(NULL);
179
		more_files_count.get(NULL);
180
		GetSizeMoreFiles(#path);
180
		GetSizeMoreFiles(path);
181
		ch_read_only.checked = 0;
181
		ch_read_only.checked = 0;
182
		ch_hidden.checked = 0;
182
		ch_hidden.checked = 0;
183
		ch_system.checked = 0;
183
		ch_system.checked = 0;
184
	}
184
	}
Line 189... Line 189...
189
		if(itdir) dir_size.get(#file_path);
189
		if(itdir) dir_size.get(#file_path);
190
		ch_read_only.checked = file_info_general.readonly;
190
		ch_read_only.checked = file_info_general.readonly;
191
		ch_hidden.checked = file_info_general.hidden;
191
		ch_hidden.checked = file_info_general.hidden;
192
		ch_system.checked = file_info_general.system;
192
		ch_system.checked = file_info_general.system;
193
	}
193
	}
194
	edit_box_set_text stdcall (#path_to_file_ed, #path);
194
	edit_box_set_text stdcall (#path_to_file_ed, path);
Line 195... Line 195...
195
	
195
	
196
	SetEventMask(EVM_REDRAW + EVM_KEY + EVM_BUTTON + EVM_MOUSE + EVM_MOUSE_FILTER);
196
	SetEventMask(EVM_REDRAW + EVM_KEY + EVM_BUTTON + EVM_MOUSE + EVM_MOUSE_FILTER);
197
	loop() switch(WaitEvent())
197
	loop() switch(WaitEvent())
198
	{
198
	{
Line 291... Line 291...
291
	else
291
	else
292
	{
292
	{
293
		if ( file_info_general.isfolder )
293
		if ( file_info_general.isfolder )
294
				PropertiesDrawIcon(NULL, "");
294
				PropertiesDrawIcon(NULL, "");
295
		else {
295
		else {
296
			sprintf(#temp_path,"%s/%s",#path,#file_name2);
296
			sprintf(#temp_path,"%s/%s",path,#file_name2);
297
			ext1 = strrchr(#file_name2,'.');
297
			ext1 = strrchr(#file_name2,'.');
298
			if (ext1) ext1 += #file_name2;
298
			if (ext1) ext1 += #file_name2;
299
			PropertiesDrawIcon(#temp_path, ext1);
299
			PropertiesDrawIcon(#temp_path, ext1);
300
		}
300
		}
301
		WriteText(file_name_ed.left, file_name_ed.top-15, 0x80, sc.work_text, PR_T_NAME);
301
		WriteText(file_name_ed.left, file_name_ed.top-15, 0x80, sc.work_text, PR_T_NAME);