Subversion Repositories Kolibri OS

Rev

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

Rev 7920 Rev 7921
Line 211... Line 211...
211
			file_size stdcall (#param);
211
			file_size stdcall (#param);
212
			if (EAX==-1) notify(T_NOTIFY_APP_PARAM_WRONG);
212
			if (EAX==-1) notify(T_NOTIFY_APP_PARAM_WRONG);
213
			else {
213
			else {
214
				param[strrchr(#param, '/')-1] = '\0';
214
				param[strrchr(#param, '/')-1] = '\0';
215
				strcpy(#path, #param);
215
				strcpy(#path, #param);
216
				//in future we need also to select file
216
				SelectFileByName(#param+strlen(#param)+1);
217
			}
217
			}
218
		}
218
		}
219
	}
219
	}
Line 220... Line 220...
220
	
220
	
Line 710... Line 710...
710
		  file_name_off,
710
		  file_name_off,
711
		  file_size=0,
711
		  file_size=0,
712
		  y=filenum*files.item_h+files.y,
712
		  y=filenum*files.item_h+files.y,
713
		  icon_y = files.item_h-icon_size/2+1+y;
713
		  icon_y = files.item_h-icon_size/2+1+y;
714
		  BDVK file;
714
		  BDVK file;
715
		  char temp_path[sizeof(file_path)];
715
		  char full_path[4096];
716
	char label_file_name[4096];
716
	char label_file_name[4096];
717
	if (filenum==-1) return;
717
	if (filenum==-1) return;
718
	DrawBar(files.x,y,4,files.item_h,bgcol);
718
	DrawBar(files.x,y,4,files.item_h,bgcol);
719
	DrawBar(files.x+4,y,icon_size,icon_y-y,bgcol);
719
	DrawBar(files.x+4,y,icon_size,icon_y-y,bgcol);
720
	if (files.item_h>icon_size) DrawBar(files.x+4,icon_y+icon_size-1,icon_size,y+files.item_h-icon_y-icon_size+1,bgcol);
720
	if (files.item_h>icon_size) DrawBar(files.x+4,icon_y+icon_size-1,icon_size,y+files.item_h-icon_y-icon_size+1,bgcol);
Line 725... Line 725...
725
	attr = ESDWORD[file_offet];
725
	attr = ESDWORD[file_offet];
726
	file.selected = ESBYTE[file_offet+7];
726
	file.selected = ESBYTE[file_offet+7];
727
	file.sizelo   = ESDWORD[file_offet+32];
727
	file.sizelo   = ESDWORD[file_offet+32];
728
	file.sizehi   = ESDWORD[file_offet+36];
728
	file.sizehi   = ESDWORD[file_offet+36];
729
	file_name_off = file_offet+40;
729
	file_name_off = file_offet+40;
730
	sprintf(#temp_path,"%s/%s",#path,file_name_off);
730
	sprintf(#full_path,"%s/%s",#path,file_name_off);
Line 731... Line 731...
731
 
731
 
732
	if (! TestBit(attr, 4) ) //file or folder?
732
	if (! TestBit(attr, 4) ) //file or folder?
733
	{	
733
	{	
734
		ext1 = strrchr(file_name_off,'.') + file_name_off;
734
		ext1 = strrchr(file_name_off,'.') + file_name_off;
Line 740... Line 740...
740
	{
740
	{
741
		if (!strcmp(file_name_off,"..")) ext1=""; else {
741
		if (!strcmp(file_name_off,"..")) ext1=""; else {
742
			ext1="";
742
			ext1="";
743
			WriteTextCenter(files.x+files.w-140, files.text_y+y+1, 72, col.list_gb_text, ext1);
743
			WriteTextCenter(files.x+files.w-140, files.text_y+y+1, 72, col.list_gb_text, ext1);
744
		}
744
		}
745
		if (chrnum(#path, '/')==1) file_size = GetDeviceSizeLabel(#temp_path);
745
		if (chrnum(#path, '/')==1) file_size = GetDeviceSizeLabel(#full_path);
746
	}
746
	}
747
	if (file_size) WriteText(7-strlen(file_size)*6+files.x+files.w-58, 
747
	if (file_size) WriteText(7-strlen(file_size)*6+files.x+files.w-58, 
748
			files.text_y+y+1, files.font_type, col.list_gb_text, file_size);
748
			files.text_y+y+1, files.font_type, col.list_gb_text, file_size);
749
	DrawIconByExtension(#temp_path, ext1, files.x+4, icon_y, bgcol);
749
	DrawIconByExtension(#full_path, ext1, files.x+4, icon_y, bgcol);
Line 750... Line 750...
750
 
750
 
751
	if (TestBit(attr, 1)) || (TestBit(attr, 2)) text_col=col.list_text_hidden; //system or hiden?
751
	if (TestBit(attr, 1)) || (TestBit(attr, 2)) text_col=col.list_text_hidden; //system or hiden?
752
	if (bgcol==col.selec)
752
	if (bgcol==col.selec)
753
	{
753
	{