mirror of
https://github.com/KolibriOS/kolibrios.git
synced 2025-09-12 05:26:00 -04:00
WebView 3.9
- new homepages - fix clash on a wrong <kosicon> number - set proper internal page sizes
This commit is contained in:
parent
b8a1487bab
commit
d6c44c6570
@ -270,11 +270,15 @@ void TWebBrowser::tag_h1234_caption()
|
|||||||
void TWebBrowser::tag_kosicon()
|
void TWebBrowser::tag_kosicon()
|
||||||
{
|
{
|
||||||
dword imgbuf[44];
|
dword imgbuf[44];
|
||||||
|
dword maxicon;
|
||||||
dword shared_i18 = memopen("ICONS18", NULL, SHM_READ);
|
dword shared_i18 = memopen("ICONS18", NULL, SHM_READ);
|
||||||
|
maxicon = EDX / 18 / 18 / 4;
|
||||||
if (shared_i18) && (tag.get_number_of("n")) {
|
if (shared_i18) && (tag.get_number_of("n")) {
|
||||||
if (draw_x + 18 > canvas.bufw) NewLine();
|
if (tag.number < maxicon) {
|
||||||
canvas.DrawImage(draw_x, draw_y-2, 18, 18, 18*18*4*tag.number+shared_i18);
|
if (draw_x + 18 > canvas.bufw) NewLine();
|
||||||
draw_x += 22;
|
canvas.DrawImage(draw_x, draw_y-2, 18, 18, 18*18*4*tag.number+shared_i18);
|
||||||
|
draw_x += 22;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -571,10 +571,10 @@ void OpenPage(dword _open_URL)
|
|||||||
//INTERNAL PAGE
|
//INTERNAL PAGE
|
||||||
history.add(#new_url);
|
history.add(#new_url);
|
||||||
WB1.custom_encoding = -1;
|
WB1.custom_encoding = -1;
|
||||||
if (streq(#new_url, URL_SERVICE_HOMEPAGE)) LoadInternalPage(#buildin_page_home, sizeof(buildin_page_home)-1);
|
if (streq(#new_url, URL_SERVICE_HOMEPAGE)) LoadInternalPage(#buildin_page_home, sizeof(buildin_page_home));
|
||||||
else if (streq(#new_url, URL_SERVICE_TEST)) LoadInternalPage(#buildin_page_test, sizeof(buildin_page_test)-1);
|
else if (streq(#new_url, URL_SERVICE_TEST)) LoadInternalPage(#buildin_page_test, sizeof(buildin_page_test));
|
||||||
else if (streq(#new_url, URL_SERVICE_HISTORY)) ShowHistory();
|
else if (streq(#new_url, URL_SERVICE_HISTORY)) ShowHistory();
|
||||||
else LoadInternalPage(#buildin_page_error, sizeof(buildin_page_error)-1);
|
else LoadInternalPage(#buildin_page_error, sizeof(buildin_page_error));
|
||||||
|
|
||||||
} else if (!strncmp(#new_url,"http:",5)) || (!strncmp(#new_url,"https:",6)) {
|
} else if (!strncmp(#new_url,"http:",5)) || (!strncmp(#new_url,"https:",6)) {
|
||||||
//WEB PAGE
|
//WEB PAGE
|
||||||
@ -589,7 +589,7 @@ void OpenPage(dword _open_URL)
|
|||||||
|
|
||||||
if (!http.transfer) {
|
if (!http.transfer) {
|
||||||
history.add(#new_url);
|
history.add(#new_url);
|
||||||
LoadInternalPage(#buildin_page_error, sizeof(buildin_page_error)-1);
|
LoadInternalPage(#buildin_page_error, sizeof(buildin_page_error));
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
//LOCAL PAGE
|
//LOCAL PAGE
|
||||||
@ -712,7 +712,7 @@ void EventSubmitOmnibox()
|
|||||||
|
|
||||||
void LoadInternalPage(dword _bufdata, _in_bufsize){
|
void LoadInternalPage(dword _bufdata, _in_bufsize){
|
||||||
if (!_bufdata) || (!_in_bufsize) {
|
if (!_bufdata) || (!_in_bufsize) {
|
||||||
LoadInternalPage(#buildin_page_error, sizeof(buildin_page_error)-1);
|
LoadInternalPage(#buildin_page_error, sizeof(buildin_page_error));
|
||||||
} else {
|
} else {
|
||||||
WB1.list.first = 0; //scroll page to the top
|
WB1.list.first = 0; //scroll page to the top
|
||||||
DrawOmnibox();
|
DrawOmnibox();
|
||||||
|
@ -112,4 +112,4 @@ char editbox_icons[] = FROM "res/editbox_icons.raw";
|
|||||||
|
|
||||||
#define DEFAULT_URL URL_SERVICE_HOMEPAGE
|
#define DEFAULT_URL URL_SERVICE_HOMEPAGE
|
||||||
|
|
||||||
char version[]="WebView 3.85";
|
char version[]="WebView 3.9";
|
@ -1,17 +1,49 @@
|
|||||||
<html>
|
<html><head><title>New tab</title></head>
|
||||||
<head>
|
<body bgcolor=#fff>
|
||||||
<title>Homepage</title>
|
|
||||||
</head>
|
|
||||||
<body><pre>Welcome to WebView a Text-Based Browser.
|
|
||||||
|
|
||||||
KolibriOS Bookmarks:
|
<table><tr><td width=20><td width=210><pre>
|
||||||
1. <a href=//kolibrios.org>Homepage</a>
|
___________________
|
||||||
2. <a href="//builds.kolibrios.org">Night-builds</a>
|
|# : : #|
|
||||||
3. <a href="//ftp.kolibrios.org">FTP Server</a>
|
| : WebView : |
|
||||||
|
| : TextBased : |
|
||||||
|
| : Browser : |
|
||||||
|
| : : |
|
||||||
|
| :_____________: |
|
||||||
|
| ___________ |
|
||||||
|
| | __ | |
|
||||||
|
| || | | |
|
||||||
|
\____||__|_______|__|<font color=#DDD>lc</font>
|
||||||
|
|
||||||
<font bg=#F8F15B>By the way,</font>
|
<font bg=#F8F15B> web <font bg=#FF5A7E color=#fff> 1.0 <font bg=#47D018> compatable
|
||||||
|
<font bg=#3CE7FF> </font></font></font></font>
|
||||||
|
<td>
|
||||||
|
|
||||||
|
</pre>
|
||||||
|
<kosicon n=58><a href=//kolibrios.org>Homepage</a>
|
||||||
|
<kosicon n=50><a href="//builds.kolibrios.org">Night-builds</a>
|
||||||
|
<kosicon n=50><a href="//ftp.kolibrios.org">FTP Server</a>
|
||||||
|
<pre>
|
||||||
|
|
||||||
|
By the way,
|
||||||
<font color="#555555">• You can check for browser updates from the main menu.
|
<font color="#555555">• You can check for browser updates from the main menu.
|
||||||
• To run a web search, type a text in the adress box and press Ctrl+Enter.
|
• To run a web search, type a text in the adress box and press Ctrl+Enter.
|
||||||
• Pressing F6 moves a text cursor to the omnibox.
|
• Pressing F6 moves a text cursor to the omnibox.
|
||||||
• Click on a label in the bottom right corner to change the encoding of a page.
|
• You can manually change the encoding of a page by clicking on a label in the bottom right corner.
|
||||||
</font>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
~+
|
||||||
|
|
||||||
|
* +
|
||||||
|
' |
|
||||||
|
() .-.,="``"=. - o -
|
||||||
|
'=/_ \ |
|
||||||
|
* | '=._ |
|
||||||
|
\ `=./`, '
|
||||||
|
. '=.__.=' `=' *
|
||||||
|
+ +
|
||||||
|
O * ' .<font color=#DDD>jgs</font>
|
@ -1,15 +1,49 @@
|
|||||||
<html><head><meta charset="cp-866">
|
<html><head><title><EFBFBD>®¢ ï ¢ª« ¤ª </title></head>
|
||||||
<title>„®¬ èïï áâà ¨æ </title></head>
|
<body bgcolor=#fff>
|
||||||
<body><pre>„®¡à® ¯®¦ «®¢ âì ⥪áâ®¢ë© ¡à ã§¥à WebView!
|
|
||||||
|
|
||||||
<EFBFBD>¥áãàáë KolibriOS:<ol>
|
<table><tr><td width=20><td width=210><pre>
|
||||||
<li><a href=//kolibrios.org>Žä¨æ¨ «ìë© á ©â</a>
|
___________________
|
||||||
<li><a href="//builds.kolibrios.org"><EFBFBD>®çë¥ á¡®àª¨</a>
|
|# : : #|
|
||||||
<li><a href="//ftp.kolibrios.org">FTP á¥à¢¥à</a></ol>
|
| : WebView : |
|
||||||
|
| : ’¥ªáâ®¢ë© : |
|
||||||
|
| : <20>à ã§¥à : |
|
||||||
|
| : : |
|
||||||
|
| :_____________: |
|
||||||
|
| ___________ |
|
||||||
|
| | __ | |
|
||||||
|
| || | | |
|
||||||
|
\____||__|_______|__|<font color=#DDD>lc</font>
|
||||||
|
|
||||||
<font bg=#F8F15B>Šáâ â¨,</font>
|
<font bg=#F8F15B> web <font bg=#FF5A7E color=#fff> 1.0 <font bg=#47D018> compatable
|
||||||
|
<font bg=#3CE7FF> </font></font></font></font>
|
||||||
|
<td>
|
||||||
|
|
||||||
|
</pre>
|
||||||
|
<kosicon n=58><a href=//kolibrios.org>Žä¨æ¨ «ìë© á ©â</a>
|
||||||
|
<kosicon n=50><a href="//builds.kolibrios.org"><EFBFBD>®çë¥ á¡®àª¨</a>
|
||||||
|
<kosicon n=50><a href="//ftp.kolibrios.org">FTP á¥à¢¥à</a>
|
||||||
|
<pre>
|
||||||
|
|
||||||
|
Šáâ â¨,
|
||||||
<font color="#555555">• ˆ§ £« ¢®£® ¬¥î ¬®¦® ¯à®¢¥à¨âì «¨ç¨¥ ®¡®¢«¥¨©
|
<font color="#555555">• ˆ§ £« ¢®£® ¬¥î ¬®¦® ¯à®¢¥à¨âì «¨ç¨¥ ®¡®¢«¥¨©
|
||||||
• „«ï ¯®¨áª ¢ Google ¡¥à¨â¥ â¥áâ ¢ ¤à¥á®© áâப¥ ¨ ¦¬¨â¥ Ctrl+Enter
|
• „«ï ¯®¨áª ¢ Google ¡¥à¨â¥ â¥áâ ¢ ¤à¥á®© áâப¥ ¨ ¦¬¨â¥ Ctrl+Enter
|
||||||
• Š« ¢¨è F6 ¯¥à¥¬¥é ¥â ⥪áâ®¢ë© ªãàá®à ¢ ®¬¨¡®ªá.
|
• Š« ¢¨è F6 ¯¥à¥¬¥é ¥â ⥪áâ®¢ë© ªãàá®à ¢ ®¬¨¡®ªá.
|
||||||
• Œ®¦® ¨§¬¥¨âì ª®¤¨à®¢ªã áâà ¨æë, ¤«ï í⮣® ¦¬¨â¥ ¤¯¨áì ¢ ¯à ¢®¬ ¨¦¥¬ 㣫㠮ª .
|
• Œ®¦® ¨§¬¥¨âì ª®¤¨à®¢ªã áâà ¨æë, ¤«ï í⮣® ¦¬¨â¥ ¤¯¨áì ¢ ¯à ¢®¬ ¨¦¥¬ 㣫㠮ª .
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
~+
|
||||||
|
|
||||||
|
* +
|
||||||
|
' |
|
||||||
|
() .-.,="``"=. - o -
|
||||||
|
'=/_ \ |
|
||||||
|
* | '=._ |
|
||||||
|
\ `=./`, '
|
||||||
|
. '=.__.=' `=' *
|
||||||
|
+ +
|
||||||
|
O * ' .<font color=#DDD>jgs</font>
|
Loading…
x
Reference in New Issue
Block a user