Rev 7757 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 7757 | Rev 7771 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | #include "..\lib\collection.h" |
1 | #include "..\lib\collection.h" |
Line 2... | Line 2... | ||
2 | 2 | ||
3 | struct _history { |
3 | struct _history { |
4 | collection items; |
4 | collection items; |
- | 5 | int active; |
|
5 | int active; |
6 | void clear(); |
6 | int add(); |
7 | int add(); |
7 | int back(); |
8 | int back(); |
8 | int forward(); |
9 | int forward(); |
9 | dword current(); |
10 | dword current(); |
Line 34... | Line 35... | ||
34 | 35 | ||
35 | dword _history::current() |
36 | dword _history::current() |
36 | { |
37 | { |
37 | return items.get(active-1); |
38 | return items.get(active-1); |
38 | } |
39 | } |
- | 40 | ||
- | 41 | :void _history::clear() |
|
- | 42 | { |
|
- | 43 | items.drop(); |
|
- | 44 | active=0; |
|
- | 45 | } |