Subversion Repositories Kolibri OS

Rev

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

Rev 6008 Rev 6021
Line 168... Line 168...
168
					
168
					
169
					if (adif_x>adif_y)
169
					if (adif_x>adif_y)
170
					{
170
					{
171
						if (dif_x > 150)
171
						if (dif_x > 150)
172
						{
172
						{
173
							if (History.forward())
173
							if (history.forward())
174
								{
174
								{
175
									strcpy(#path, History.current());
175
									strcpy(#path, history.current());
176
									files.KeyHome();
176
									files.KeyHome();
177
									Open_Dir(#path,WITH_REDRAW);
177
									Open_Dir(#path,WITH_REDRAW);
178
								}
178
								}
179
							stats = 0;
179
							stats = 0;
Line 322... Line 322...
322
				{
322
				{
323
					case 21: //Back
323
					case 21: //Back
324
							GoBack();
324
							GoBack();
325
							break;
325
							break;
326
					case 22: //Forward
326
					case 22: //Forward
327
							if (History.forward())
327
							if (history.forward())
328
							{
328
							{
329
								strcpy(#path, History.current());
329
								strcpy(#path, history.current());
330
								files.KeyHome();
330
								files.KeyHome();
331
								Open_Dir(#path,WITH_REDRAW);
331
								Open_Dir(#path,WITH_REDRAW);
332
							}
332
							}
333
							break;
333
							break;
334
					case 23:
334
					case 23:
Line 741... Line 741...
741
		if (buf) free(buf);
741
		if (buf) free(buf);
742
		errornum = GetDir(#buf, #files.count, dir_path, DIRS_NOROOT);
742
		errornum = GetDir(#buf, #files.count, dir_path, DIRS_NOROOT);
743
		if (ESBYTE[dir_path+1]!='\0') chrcat(dir_path, '/');
743
		if (ESBYTE[dir_path+1]!='\0') chrcat(dir_path, '/');
744
		if (errornum)
744
		if (errornum)
745
		{
745
		{
746
			History.add(#path);
746
			history.add(#path);
747
			GoBack();
747
			GoBack();
748
			Write_Error(errornum);
748
			Write_Error(errornum);
749
			return;
749
			return;
750
		}
750
		}
751
		maxcount = sizeof(file_mas)/sizeof(dword)-1;
751
		maxcount = sizeof(file_mas)/sizeof(dword)-1;
Line 759... Line 759...
759
			PathShow.area_size_x = Form.cwidth-306;
759
			PathShow.area_size_x = Form.cwidth-306;
760
			DrawBar(PathShow.start_x-3, PathShow.start_y-4, PathShow.area_size_x+2, 15, 0xFFFfff);
760
			DrawBar(PathShow.start_x-3, PathShow.start_y-4, PathShow.area_size_x+2, 15, 0xFFFfff);
761
			PathShow_prepare stdcall(#PathShow);
761
			PathShow_prepare stdcall(#PathShow);
762
			PathShow_draw stdcall(#PathShow);
762
			PathShow_draw stdcall(#PathShow);
763
		}
763
		}
764
		History.add(#path);
764
		history.add(#path);
765
		files.visible = files.h / files.item_h;
765
		files.visible = files.h / files.item_h;
766
		if (files.count < files.visible) files.visible = files.count;
766
		if (files.count < files.visible) files.visible = files.count;
767
		if (redraw!=ONLY_SHOW) Sorting();
767
		if (redraw!=ONLY_SHOW) Sorting();
768
		list_full_redraw = true;
768
		list_full_redraw = true;
769
		if (redraw!=ONLY_OPEN)&&(!_not_draw) List_ReDraw();
769
		if (redraw!=ONLY_OPEN)&&(!_not_draw) List_ReDraw();
Line 997... Line 997...
997
inline fastcall void GoBack()
997
inline fastcall void GoBack()
998
{
998
{
999
	char cur_folder[4096];
999
	char cur_folder[4096];
1000
	strcpy(#cur_folder, #path);
1000
	strcpy(#cur_folder, #path);
1001
	cur_folder[strlen(#cur_folder)-1]=0x00; //delete last '/'
1001
	cur_folder[strlen(#cur_folder)-1]=0x00; //delete last '/'
1002
	if (History.back()) {
1002
	if (history.back()) {
1003
		strcpy(#path, History.current());
1003
		strcpy(#path, history.current());
1004
		SelectFileByName(#cur_folder+strrchr(#cur_folder,'/'));
1004
		SelectFileByName(#cur_folder+strrchr(#cur_folder,'/'));
1005
	}
1005
	}
1006
}
1006
}
Line 1007... Line 1007...
1007
 
1007