Rev 6808 | Rev 6978 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 6808 | Rev 6931 | ||
---|---|---|---|
Line 28... | Line 28... | ||
28 | #include "..\lib\patterns\http_downloader.h" |
28 | #include "..\lib\patterns\http_downloader.h" |
Line 29... | Line 29... | ||
29 | 29 | ||
Line 30... | Line 30... | ||
30 | char homepage[] = FROM "html\\homepage.htm""\0"; |
30 | char homepage[] = FROM "html\\homepage.htm""\0"; |
31 | 31 | ||
32 | #ifdef LANG_RUS |
32 | #ifdef LANG_RUS |
33 | char version[]="¥ªáâ®¢ë© ¡à 㧥à 1.58"; |
33 | char version[]="¥ªáâ®¢ë© ¡à 㧥à 1.6"; |
34 | ?define IMAGES_CACHE_CLEARED "íè ª à⨮ª ®ç¨é¥" |
34 | ?define IMAGES_CACHE_CLEARED "íè ª à⨮ª ®ç¨é¥" |
35 | ?define T_LAST_SLIDE "â® ¯®á«¥¤¨© á« ©¤" |
35 | ?define T_LAST_SLIDE "â® ¯®á«¥¤¨© á« ©¤" |
36 | char loading[] = " £à㧪 áâà ¨æë... |
36 | char loading[] = " £à㧪 áâà ¨æë... |
Line 41... | Line 41... | ||
41 | ¥¤ ªâ¨à®¢ âì ¨á室¨ª |
41 | ¥¤ ªâ¨à®¢ âì ¨á室¨ª |
42 | áâ®à¨ï |
42 | áâ®à¨ï |
43 | ç¨áâ¨âì ªíè ª à⨮ª |
43 | ç¨áâ¨âì ªíè ª à⨮ª |
44 | ¥¥¤¦¥à § £à㧮ª"; |
44 | ¥¥¤¦¥à § £à㧮ª"; |
45 | #else |
45 | #else |
46 | char version[]="Text-based Browser 1.58"; |
46 | char version[]="Text-based Browser 1.6"; |
47 | ?define IMAGES_CACHE_CLEARED "Images cache cleared" |
47 | ?define IMAGES_CACHE_CLEARED "Images cache cleared" |
48 | ?define T_LAST_SLIDE "This slide is the last" |
48 | ?define T_LAST_SLIDE "This slide is the last" |
49 | char loading[] = "Loading... |
49 | char loading[] = "Loading... |
50 | char page_not_found[] = FROM "html\\page_not_found_en.htm""\0"; |
50 | char page_not_found[] = FROM "html\\page_not_found_en.htm""\0"; |
51 | char accept_language[]= "Accept-Language: en\n"; |
51 | char accept_language[]= "Accept-Language: en\n"; |
Line 82... | Line 82... | ||
82 | dword col_bg; |
82 | dword col_bg; |
83 | dword panel_color; |
83 | dword panel_color; |
84 | dword border_color; |
84 | dword border_color; |
Line 85... | Line 85... | ||
85 | 85 | ||
86 | progress_bar wv_progress_bar; |
86 | progress_bar wv_progress_bar; |
- | 87 | bool souce_mode = false; |
|
Line 87... | Line 88... | ||
87 | byte souce_mode = false; |
88 | bool open_in_a_new_window = false; |
88 | 89 | ||
89 | enum { |
90 | enum { |
90 | BACK_BUTTON=1000, |
91 | BACK_BUTTON=1000, |
Line 501... | Line 502... | ||
501 | if (http_transfer == 0) return; |
502 | if (http_transfer == 0) return; |
502 | if (wv_progress_bar.max) btn = address_box.width*wv_progress_bar.value/wv_progress_bar.max; else btn = 30; |
503 | if (wv_progress_bar.max) btn = address_box.width*wv_progress_bar.value/wv_progress_bar.max; else btn = 30; |
503 | DrawBar(address_box.left-2, address_box.top+20, btn, 2, wv_progress_bar.progress_color); |
504 | DrawBar(address_box.left-2, address_box.top+20, btn, 2, wv_progress_bar.progress_color); |
504 | } |
505 | } |
Line -... | Line 506... | ||
- | 506 | ||
505 | 507 | ||
506 | char anchor[256]; |
508 | char anchor[256]; |
507 | void ClickLink() |
509 | void ClickLink() |
508 | { |
510 | { |
509 | if (http_transfer > 0) |
511 | if (http_transfer > 0) |
Line 569... | Line 571... | ||
569 | strcpy(#editURL, history.current()); |
571 | strcpy(#editURL, history.current()); |
570 | strcpy(#URL, history.current()); |
572 | strcpy(#URL, history.current()); |
571 | return; |
573 | return; |
572 | } |
574 | } |
573 | } |
575 | } |
- | 576 | if (open_in_a_new_window) |
|
- | 577 | { |
|
- | 578 | RunProgram(#program_path, #URL); |
|
- | 579 | strcpy(#editURL, history.current()); |
|
- | 580 | strcpy(#URL, history.current()); |
|
- | 581 | } |
|
- | 582 | else |
|
- | 583 | { |
|
574 | OpenPage(); |
584 | OpenPage(); |
575 | } |
585 | } |
- | 586 | open_in_a_new_window = false; |
|
- | 587 | } |
|
Line 576... | Line 588... | ||
576 | 588 | ||
577 | void EventShowPageMenu(dword _left, _top) |
589 | void EventShowPageMenu(dword _left, _top) |
578 | { |
590 | { |
579 | menu.show(Form.left+_left-6,Form.top+_top+skin_height+3, 220, #rmb_menu, VIEW_SOURCE); |
591 | menu.show(Form.left+_left-6,Form.top+_top+skin_height+3, 220, #rmb_menu, VIEW_SOURCE); |