WebView 1.85: russification, new feature to search the web, allow to set background color of the text, add help page, more hotkeys

Pixie: better icon of audio button

git-svn-id: svn://kolibrios.org@7743 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
2020-03-21 18:49:45 +00:00
parent ce732ebdd3
commit a1815a31ee
13 changed files with 162 additions and 53 deletions

View File

@@ -1,3 +1,26 @@
#ifdef LANG_RUS
#define HISTORY_HEADER "<html>
<head>
<title><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></title>
</head>
<body>
<h1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></h1>
<br>
<b><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></b><br>
"
#else
#define HISTORY_HEADER "<html>
<head>
<title>History</title>
</head>
<body>
<h1>History</h1>
<br>
<b>Visited pages</b><br>
"
#endif
ShowHistory()
{
int i;
@@ -6,16 +29,16 @@ ShowHistory()
free(history_pointer);
history_pointer = malloc(history.items.data_size+256);
strcat(history_pointer, "<html><head><title>History</title></head><body><h1>History</h1>");
strcat(history_pointer, "<br><b>Visited pages</b><br>");
strcat(history_pointer, HISTORY_HEADER);
for (i=0; i<history.items.count; i++)
{
strcat(history_pointer, "<a href='");
strcat(history_pointer, "\t<a href='");
strcat(history_pointer, history.items.get(i));
strcat(history_pointer, "'>");
strcat(history_pointer, history.items.get(i));
strcat(history_pointer, "</a><br>");
}
/*
strcat(history_pointer, "<br><b>Cached images</b><br>");
for (i=1; i<ImgCache.pics_count; i++)
{
@@ -24,13 +47,13 @@ ShowHistory()
strcat(history_pointer, "'>");
strcat(history_pointer, #pics[i].path);
strcat(history_pointer, "</a><br>");
/*
strcat(history_pointer, "<img src='");
strcat(history_pointer, #pics[i].path);
strcat(history_pointer, "'><br>");
strcat(history_pointer, #pics[i].path);
*/
// strcat(history_pointer, "<img src='");
// strcat(history_pointer, #pics[i].path);
// strcat(history_pointer, "'><br>");
// strcat(history_pointer, #pics[i].path);
}
*/
strcat(history_pointer, "</body></html>");
WB1.LoadInternalPage(history_pointer, strlen(history_pointer));
}