Subversion Repositories Kolibri OS

Rev

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

Rev 6746 Rev 6757
Line 343... Line 343...
343
	}
343
	}
344
}
344
}
Line 345... Line 345...
345
 
345
 
346
void DrawPropertiesWindow()
346
void DrawPropertiesWindow()
-
 
347
{
-
 
348
	dword ext1;
347
{
349
	char temp_path[sizeof(file_path)];
348
	DefineAndDrawWindow(Form.left + 150,150,305,360+skin_height,0x34,system.color.work,WINDOW_TITLE_PROPERTIES,0);
350
	DefineAndDrawWindow(Form.left + 150,150,305,360+skin_height,0x34,system.color.work,WINDOW_TITLE_PROPERTIES,0);
349
	if ( !asm test path_to_file_ed.flags, 2)
351
	if ( !asm test path_to_file_ed.flags, 2)
350
	{
352
	{
351
		path_to_file_ed.blur_border_color = system.color.work;
353
		path_to_file_ed.blur_border_color = system.color.work;
Line 379... Line 381...
379
	
381
	
Line 380... Line 382...
380
		WriteText(10, 97, 0x90, system.color.work_text, PR_T_SIZE);
382
		WriteText(10, 97, 0x90, system.color.work_text, PR_T_SIZE);
381
		
383
		
382
		if (selected_count)
384
		if (selected_count)
383
		{
385
		{
384
			DrawIconByExtension(NULL, 18, 49, system.color.work);
386
			DrawIconByExtension(NULL, NULL, 18, 49, system.color.work);
385
			sprintf(#folder_info,"%s%d%s%d",SET_6,file_count,SET_7,dir_count);
387
			sprintf(#folder_info,"%s%d%s%d",SET_6,file_count,SET_7,dir_count);
386
			WriteText(50, 49, 0x90, system.color.work_text, #folder_info);
388
			WriteText(50, 49, 0x90, system.color.work_text, #folder_info);
387
			sprintf(#element_size_label,"%s (%d %s)",ConvertSize(size_dir),size_dir,SET_BYTE_LANG);
389
			sprintf(#element_size_label,"%s (%d %s)",ConvertSize(size_dir),size_dir,SET_BYTE_LANG);
388
			WriteText(120, 97, 0x90, system.color.work_text, #element_size_label);
390
			WriteText(120, 97, 0x90, system.color.work_text, #element_size_label);
389
		}
391
		}
390
		else
392
		else
391
		{
393
		{
392
			if ( file_info_general.isfolder )
394
			if ( file_info_general.isfolder )
-
 
395
					DrawIconByExtension(NULL, "", 18, 49, system.color.work);
-
 
396
			else {
-
 
397
				sprintf(#temp_path,"%s/%s",#path,#file_name2);
-
 
398
				debugln(#temp_path);
393
					DrawIconByExtension("", 18, 49, system.color.work);
399
				ext1 = strrchr(#file_name2,'.');
394
			else
400
				if (ext1) ext1 += #file_name2;
395
					DrawIconByExtension(#file_name2+strrchr(#file_name2,'.'), 18, 49, system.color.work);
401
				DrawIconByExtension(#temp_path, ext1, 18, 49, system.color.work);
396
	
402
			}
Line 397... Line 403...
397
			WriteText(50, 40, 0x90, system.color.work_text, PR_T_NAME);                          
403
			WriteText(50, 40, 0x90, system.color.work_text, PR_T_NAME);                          
398
			edit_box_draw stdcall (#file_name_ed);
404
			edit_box_draw stdcall (#file_name_ed);