Subversion Repositories Kolibri OS

Rev

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

Rev 2591 Rev 2596
Line 1... Line 1...
1
//06.04.2012
1
//06.04.2012
Line -... Line 2...
-
 
2
 
2
 
3
#define MAX_HISTORY_NUM 40
3
path_string history_list[40];
4
path_string history_list[MAX_HISTORY_NUM];
4
int history_num;
5
int history_num;
Line 5... Line 6...
5
int history_current;
6
int history_current;
6
 
7
 
Line 17... Line 18...
17
	return #cur_fol;
18
	return #cur_fol;
18
}
19
}
Line 19... Line 20...
19
 
20
 
20
void HistoryPath(byte action)
21
void HistoryPath(byte action)
21
{
-
 
22
	/*WriteDebug("");
-
 
23
	WriteDebug(IntToStr(history_current));
-
 
24
	for (i=0; i
-
 
25
	{
-
 
26
		WriteDebug(#history_list[i].Item);
-
 
27
		WriteDebug(IntToStr(history_num));
-
 
28
	}*/
-
 
29
	
22
{
30
	if (action==add_new_path)
23
	if (action==add_new_path)
31
	{
24
	{
-
 
25
		if (history_num>0) && (strcmp(#path,#history_list[history_current].Item)==0) return;
-
 
26
			
-
 
27
		if (history_current>=MAX_HISTORY_NUM-1)
-
 
28
		{
-
 
29
			history_current/=2;
-
 
30
			for (i=0; i
-
 
31
			{
-
 
32
				copystr(#history_list[MAX_HISTORY_NUM-i].Item, #history_list[i].Item);
-
 
33
			}	
32
		if (history_num>0) && (strcmp(#path,#history_list[history_current].Item)==0) return;
34
		}
33
		history_current++;
35
		history_current++;
34
		copystr(#path,#history_list[history_current].Item);
36
		copystr(#path,#history_list[history_current].Item);
35
		history_num=history_current;
37
		history_num=history_current;
Line 36... Line 38...
36
	}
38
	}
37
	
39
	
38
	if (action==go_back)
40
	if (action==go_back)
39
	{
-
 
40
		if (history_current<=2) return;
-
 
41
		WriteDebug("");
41
	{
42
		WriteDebug("Fuck!");
42
		if (history_current<=2) return;
43
		history_current--;
43
		history_current--;
Line 44... Line 44...
44
		copystr(#history_list[history_current].Item,#path);
44
		copystr(#history_list[history_current].Item,#path);