Rev 5519 | Rev 5531 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 5519 | Rev 5530 | ||
---|---|---|---|
Line 30... | Line 30... | ||
30 | #include "..\lib\patterns\libimg_load_skin.h" |
30 | #include "..\lib\patterns\libimg_load_skin.h" |
Line 31... | Line 31... | ||
31 | 31 | ||
Line 32... | Line 32... | ||
32 | char homepage[] = FROM "html\\homepage.htm"; |
32 | char homepage[] = FROM "html\\homepage.htm"; |
33 | 33 | ||
34 | #ifdef LANG_RUS |
34 | #ifdef LANG_RUS |
35 | char version[]=" ¥ªáâ®¢ë© ¡à 㧥à 1.1"; |
35 | char version[]=" ¥ªáâ®¢ë© ¡à 㧥à 1.11"; |
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[] = " £à㧪 áâà ¨æë... |
39 | char page_not_found[] = FROM "html\page_not_found_ru.htm"; |
39 | char page_not_found[] = FROM "html\page_not_found_ru.htm"; |
40 | char accept_language[]= "Accept-Language: ru\n"; |
40 | char accept_language[]= "Accept-Language: ru\n"; |
41 | #else |
41 | #else |
42 | char version[]=" Text-based Browser 1.1"; |
42 | char version[]=" Text-based Browser 1.11"; |
43 | ?define IMAGES_CACHE_CLEARED "Images cache cleared" |
43 | ?define IMAGES_CACHE_CLEARED "Images cache cleared" |
44 | ?define T_LAST_SLIDE "This slide is the last" |
44 | ?define T_LAST_SLIDE "This slide is the last" |
45 | char loading[] = "Loading... |
45 | char loading[] = "Loading... |
Line 198... | Line 198... | ||
198 | if (btn==1) ExitProcess(); |
198 | if (btn==1) ExitProcess(); |
199 | Scan(btn); |
199 | Scan(btn); |
200 | break; |
200 | break; |
201 | case evKey: |
201 | case evKey: |
202 | key = GetKey(); |
202 | key = GetKey(); |
203 | - | ||
204 | if (address_box.flags & 0b10) SWITCH(key) |
203 | if (address_box.flags & 0b10) && (key!=ASCII_KEY_ENTER) |
205 | { CASE 52: CASE 53: CASE 54: CASE 180: CASE 181: CASE 122: goto _EDIT_MARK; } |
- | |
206 | - | ||
207 | Scan(key); |
204 | { |
208 | - | ||
209 | _EDIT_MARK: |
- | |
210 | if (key<>0x0d) && (key<>183) && (key<>184) {EAX=key<<8; edit_box_key stdcall(#address_box);} |
205 | if (key<>0x0d) && (key<>183) && (key<>184) {EAX=key<<8; edit_box_key stdcall(#address_box);} |
- | 206 | } |
|
- | 207 | else Scan(key); |
|
211 | break; |
208 | break; |
- | 209 | ||
212 | case evReDraw: |
210 | case evReDraw: |
213 | if (action_buf) Scan(action_buf); |
211 | if (action_buf) Scan(action_buf); |
214 | DefineAndDrawWindow(GetScreenWidth()-WIN_W/2,GetScreenHeight()-WIN_H/2,WIN_W,WIN_H,0x73,col_bg,0,0); |
212 | DefineAndDrawWindow(GetScreenWidth()-WIN_W/2,GetScreenHeight()-WIN_H/2,WIN_W,WIN_H,0x73,col_bg,0,0); |
215 | GetProcessInfo(#Form, SelfInfo); |
213 | GetProcessInfo(#Form, SelfInfo); |
216 | if (Form.status_window>2) { DrawTitle(#header); break; } |
214 | if (Form.status_window>2) { DrawTitle(#header); break; } |
Line 386... | Line 384... | ||
386 | strcpy(#DL_URL, "http://"); |
384 | strcpy(#DL_URL, "http://"); |
387 | CreateThread(#Downloader,#downloader_stak+4092); |
385 | CreateThread(#Downloader,#downloader_stak+4092); |
388 | } |
386 | } |
389 | return; |
387 | return; |
Line -... | Line 388... | ||
- | 388 | ||
390 | 389 | case ASCII_KEY_BS: |
|
391 | case BACK: |
390 | case BACK: |
392 | if (!BrowserHistory.GoBack()) return; |
391 | if (!BrowserHistory.GoBack()) return; |
393 | OpenPage(); |
392 | OpenPage(); |
394 | return; |
393 | return; |