Rev 8392 | Rev 8397 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 8392 | Rev 8396 | ||
---|---|---|---|
Line 9... | Line 9... | ||
9 | // // |
9 | // // |
10 | // LIB // |
10 | // LIB // |
11 | // // |
11 | // // |
12 | //===================================================// |
12 | //===================================================// |
Line 13... | Line 13... | ||
13 | 13 | ||
14 | #define MEMSIZE 1024 * 1000 |
14 | #define MEMSIZE 1024 * 200 |
15 | #include "..\lib\gui.h" |
15 | #include "..\lib\gui.h" |
16 | #include "..\lib\draw_buf.h" |
16 | #include "..\lib\draw_buf.h" |
17 | #include "..\lib\list_box.h" |
17 | #include "..\lib\list_box.h" |
18 | #include "..\lib\cursor.h" |
18 | #include "..\lib\cursor.h" |
Line 39... | Line 39... | ||
39 | //===================================================// |
39 | //===================================================// |
40 | // // |
40 | // // |
41 | // DATA // |
41 | // DATA // |
42 | // // |
42 | // // |
43 | //===================================================// |
43 | //===================================================// |
44 | char version[]="WebView 2.8 BETA 5"; |
44 | char version[]="WebView 3 GOLD"; |
Line 45... | Line 45... | ||
45 | 45 | ||
Line 46... | Line 46... | ||
46 | #define DEFAULT_URL URL_SERVICE_HOMEPAGE |
46 | #define DEFAULT_URL URL URL_SERVICE_HOMEPAG |
47 | 47 | ||
Line 48... | Line 48... | ||
48 | bool debug_mode = false; |
48 | bool debug_mode = false; |
Line 49... | Line 49... | ||
49 | bool show_images = false; |
49 | bool show_images = true; |
Line 712... | Line 712... | ||
712 | WB1.custom_encoding = CH_CP866; |
712 | WB1.custom_encoding = CH_CP866; |
713 | ShowSource(WB1.bufpointer, _in_bufsize); |
713 | ShowSource(WB1.bufpointer, _in_bufsize); |
714 | } else { |
714 | } else { |
715 | WB1.DrawPage(); |
715 | WB1.DrawPage(); |
716 | } |
716 | } |
717 | GetImg(true); |
717 | if (WB1.img_url.count) GetImg(true); |
718 | } |
718 | } |
719 | } |
719 | } |
Line 720... | Line 720... | ||
720 | 720 | ||
721 | bool UrlExtIs(dword base, ext) |
721 | bool UrlExtIs(dword base, ext) |
Line 922... | Line 922... | ||
922 | { |
922 | { |
923 | int i; |
923 | int i; |
924 | if (!show_images) return; |
924 | if (!show_images) return; |
925 | http_get_type = IMG; |
925 | http_get_type = IMG; |
Line 926... | Line 926... | ||
926 | 926 | ||
927 | for (i = 0; i < WB1.img.url.count; i++) |
927 | for (i = 0; i < WB1.img_url.count; i++) |
928 | { |
928 | { |
929 | cur_img_url = WB1.img.url.get(i); |
929 | cur_img_url = WB1.img_url.get(i); |
930 | if (cache.has(cur_img_url)==false) { |
930 | if (cache.has(cur_img_url)==false) { |
931 | prbar.max = WB1.img.url.count; |
931 | prbar.max = WB1.img_url.count; |
932 | prbar.value = i; |
932 | prbar.value = i; |
933 | if (GetUrl(cur_img_url)) {DrawProgress(); return;} |
933 | if (GetUrl(cur_img_url)) {DrawProgress(); return;} |
934 | } |
934 | } |
935 | } |
935 | } |