Rev 2725 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2725 | Rev 2739 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | struct UrlsHistory { |
1 | struct UrlsHistory { |
2 | dword CurrentUrl(); |
2 | dword CurrentUrl(); |
3 | void AddUrl(); |
3 | void AddUrl(); |
4 | void GoBack(); |
4 | byte GoBack(); |
5 | void GoForward(); |
5 | byte GoForward(); |
6 | }; |
6 | }; |
Line 7... | Line 7... | ||
7 | 7 | ||
Line 8... | Line 8... | ||
8 | UrlsHistory BrowserHistory; |
8 | UrlsHistory BrowserHistory; |
Line 37... | Line 37... | ||
37 | copystr(#URL,#history_list[history_current].Item); |
37 | copystr(#URL,#history_list[history_current].Item); |
38 | history_num=history_current; |
38 | history_num=history_current; |
39 | } |
39 | } |
Line 40... | Line 40... | ||
40 | 40 | ||
41 | 41 | ||
42 | void UrlsHistory::GoBack() |
42 | byte UrlsHistory::GoBack() |
- | 43 | { |
|
43 | { |
44 | if (history_current<=1) return 0; |
44 | if (history_current<=1) return; |
45 | |
- | 46 | history_current--; |
|
45 | history_current--; |
47 | copystr(#history_list[history_current].Item,#URL); |
Line 46... | Line 48... | ||
46 | copystr(#history_list[history_current].Item,#URL); |
48 | return 1; |
47 | } |
49 | } |
48 | 50 | ||
49 | 51 | ||
50 | void UrlsHistory::GoForward() |
52 | byte UrlsHistory::GoForward() |
- | 53 | { |
|
51 | { |
54 | if (history_current==history_num) return 0; |
52 | if (history_current==history_num) return; |
55 | history_current++; |