forked from KolibriOS/kolibrios
HTMLv 0.75: new futures and bags.
git-svn-id: svn://kolibrios.org@2413 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
36
programs/network/htmlv/browser/include/history.h
Normal file
36
programs/network/htmlv/browser/include/history.h
Normal file
@@ -0,0 +1,36 @@
|
||||
struct UrlsHistory {
|
||||
byte UrlHistory[6000];
|
||||
void AddUrl();
|
||||
void GoBack();
|
||||
dword CurrentUrl();
|
||||
};
|
||||
|
||||
UrlsHistory BrowserHistory;
|
||||
|
||||
void UrlsHistory::GoBack()
|
||||
{
|
||||
//WriteDebug(#UrlHistory);
|
||||
|
||||
|
||||
j = strlen(#UrlHistory);
|
||||
WHILE(UrlHistory[j] <>'|') && (j > 0) j--;
|
||||
IF (j > 0) UrlHistory[j] = 0x00;
|
||||
WHILE(UrlHistory[j] <>'|') && (j > 0) {
|
||||
copystr(#UrlHistory[j], #URL);
|
||||
j--;
|
||||
}
|
||||
UrlHistory[j] = 0x00;
|
||||
WB1.ShowPage(#URL);
|
||||
}
|
||||
|
||||
void UrlsHistory::AddUrl()
|
||||
{
|
||||
IF (strlen(#UrlHistory)>6000) copystr(#UrlHistory+5000,#UrlHistory);
|
||||
copystr("|", #UrlHistory + strlen(#UrlHistory));
|
||||
copystr(#URL, #UrlHistory + strlen(#UrlHistory));
|
||||
}
|
||||
|
||||
dword UrlsHistory::CurrentUrl()
|
||||
{
|
||||
EAX=#UrlHistory + find_symbol(#UrlHistory, '|');
|
||||
}
|
Reference in New Issue
Block a user