Rev 3363 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
3363 | leency | 1 | |
5974 | leency | 2 | collection history; |
3 | int history_current; |
||
4 | int add(); |
||
5 | int back(); |
||
6 | int forward(); |
||
7 | } FoldersHistory; |
||
8 | |||
3363 | leency | 9 | |
5974 | leency | 10 | { |
3363 | leency | 11 | if (!strcmp(#path, history.get(history_current-1))) return 0; |
5974 | leency | 12 | history.count = history_current; |
13 | history.add(#path); |
||
14 | history_current++; |
||
15 | return 1; |
||
16 | } |
||
3363 | leency | 17 | |
5974 | leency | 18 | |
19 | { |
||
20 | if (history_current==1) return 0; |
||
21 | history_current--; |
||
22 | strcpy(#path, history.get(history_current-1)); |
||
23 | debugln(#path); |
||
24 | return 1; |
||
25 | } |
||
26 | |||
3363 | leency | 27 | |
5974 | leency | 28 | { |
3363 | leency | 29 | if (history_current==history.count) return 0; |
5974 | leency | 30 | history_current++; |
31 | strcpy(#path, history.get(history_current-1)); |
||
32 | debugln(#path); |
||
33 | return 1; |
||
34 | } |
||
3363 | leency | 35 |