Rev 7293 | Rev 7425 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 7293 | Rev 7422 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | //HTML Viewer in C-- |
1 | //HTML Viewer in C-- |
2 | //Copyright 2007-2017 by Veliant & Leency |
2 | //Copyright 2007-2018 by Veliant & Leency |
3 | //Asper, lev, Lrz, Barsuk, Nable, hidnplayr... |
3 | //Asper, lev, Lrz, Barsuk, Nable, hidnplayr... |
Line 4... | Line 4... | ||
4 | 4 | ||
5 | #ifndef AUTOBUILD |
5 | #ifndef AUTOBUILD |
6 | #include "lang.h--" |
6 | #include "lang.h--" |
Line 30... | Line 30... | ||
30 | _http http = {0, 0, 0, 0, 0, 0, 0}; |
30 | _http http = {0, 0, 0, 0, 0, 0, 0}; |
Line 31... | Line 31... | ||
31 | 31 | ||
Line 32... | Line 32... | ||
32 | char homepage[] = FROM "html\\homepage.htm""\0"; |
32 | char homepage[] = FROM "html\\homepage.htm""\0"; |
33 | 33 | ||
34 | #ifdef LANG_RUS |
34 | #ifdef LANG_RUS |
35 | char version[]="¥ªáâ®¢ë© ¡à 㧥à 1.8"; |
35 | char version[]="¥ªáâ®¢ë© ¡à 㧥à 1.8b"; |
36 | ?define IMAGES_CACHE_CLEARED "íè ª à⨮ª ®ç¨é¥" |
36 | ?define IMAGES_CACHE_CLEARED "íè ª à⨮ª ®ç¨é¥" |
37 | ?define T_LAST_SLIDE "â® ¯®á«¥¤¨© á« ©¤" |
37 | ?define T_LAST_SLIDE "â® ¯®á«¥¤¨© á« ©¤" |
38 | char loading[] = " £à㧪 áâà ¨æë... |
38 | char loading[] = " £à㧪 áâà ¨æë... |
Line 115... | Line 115... | ||
115 | edit_box address_box = {250,60,30,0xffffff,0x94AECE,0xffffff,0xffffff,0x10000000,sizeof(URL),#editURL,#mouse_twb,2,19,19}; |
115 | edit_box address_box = {250,60,30,0xffffff,0x94AECE,0xffffff,0xffffff,0x10000000,sizeof(URL),#editURL,#mouse_twb,2,19,19}; |
Line 116... | Line 116... | ||
116 | 116 | ||
117 | 117 | ||
- | 118 | void main() |
|
118 | void main() |
119 | { |
119 | { |
120 | int i; |
120 | load_dll(boxlib, #box_lib_init,0); |
121 | load_dll(boxlib, #box_lib_init,0); |
121 | load_dll(libio, #libio_init,1); |
122 | load_dll(libio, #libio_init,1); |
122 | load_dll(libimg, #libimg_init,1); |
123 | load_dll(libimg, #libimg_init,1); |
Line 162... | Line 163... | ||
162 | edit_box_key stdcall(#address_box); |
163 | edit_box_key stdcall(#address_box); |
163 | } |
164 | } |
164 | } |
165 | } |
165 | else |
166 | else |
166 | { |
167 | { |
- | 168 | #define KEY_SCROLL_N 11 |
|
- | 169 | if (SCAN_CODE_UP == key_scancode) for (i=0;i |
|
- | 170 | if (SCAN_CODE_DOWN == key_scancode) for (i=0;i |
|
167 | if (WB1.list.ProcessKey(key_scancode)) WB1.DrawPage(); |
171 | if (WB1.list.ProcessKey(key_scancode)) WB1.DrawPage(); |
168 | else ProcessEvent(key_scancode); |
172 | else ProcessEvent(key_scancode); |
169 | } |
173 | } |
170 | break; |
174 | break; |
Line 540... | Line 544... | ||
540 | 544 | ||
541 | if (strncmp(#URL,"http://",7)!=0) && (strncmp(#URL,"https://",8)!=0) |
545 | if (strncmp(#URL,"http://",7)!=0) && (strncmp(#URL,"https://",8)!=0) |
542 | { |
546 | { |
543 | if (UrlExtIs(".htm")!=true) && (UrlExtIs(".html")!=true) |
547 | if (UrlExtIs(".htm")!=true) && (UrlExtIs(".html")!=true) |
- | 548 | { |
|
- | 549 | if (strchr(#URL, '|')) { |
|
- | 550 | ESBYTE[strchr(#URL, '|')] = NULL; |
|
- | 551 | RunProgram(#URL, strlen(#URL)+1+#URL); |
|
- | 552 | } |
|
544 | { |
553 | else { |
- | 554 | RunProgram("/sys/@open", #URL); |
|
545 | RunProgram("/sys/@open", #URL); |
555 | } |
546 | strcpy(#editURL, history.current()); |
556 | strcpy(#editURL, history.current()); |
547 | strcpy(#URL, history.current()); |
557 | strcpy(#URL, history.current()); |
548 | return; |
558 | return; |
549 | } |
559 | } |