Subversion Repositories Kolibri OS

Rev

Rev 4533 | Rev 4536 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4533 Rev 4534
Line 27... Line 27...
27
//images
27
//images
28
#include "img\toolbar_icons.c"
28
#include "img\toolbar_icons.c"
29
#include "img\URLgoto.txt";
29
#include "img\URLgoto.txt";
Line 30... Line 30...
30
 
30
 
31
#ifdef LANG_RUS
31
#ifdef LANG_RUS
32
	char version[]=" ’¥ªáâ®¢ë© ¡à ã§¥à 0.99.64";
32
	char version[]=" ’¥ªáâ®¢ë© ¡à ã§¥à 0.99.65";
33
	?define IMAGES_CACHE_CLEARED "Šíè ª à⨭®ª ®ç¨é¥­"
33
	?define IMAGES_CACHE_CLEARED "Šíè ª à⨭®ª ®ç¨é¥­"
-
 
34
	?define T_LAST_SLIDE "â® ¯®á«¥¤­¨© á« ©¤"
-
 
35
	char loading[] = "Loading...";
-
 
36
	char page_not_found[] = "‘âà ­¨æ  ­¥ ­ ©¤¥­ . ‚®¬®¦­®, URL ᮤ¥à¦¨â ®è¨¡ªã.";
34
	?define T_LAST_SLIDE "â® ¯®á«¥¤­¨© á« ©¤"
37
	char page_not_found_no_internet[] = "‘âà ­¨æ  ­¥ ­ ©¤¥­ . ‚®¬®¦­®, URL ᮤ¥à¦¨â ®è¨¡ªã.
ˆ«¨ ­¥â ¤®áâ㯠 ¢ ˆ­â¥à­¥âë.";
35
#else
38
#else
36
	char version[]=" Text-based Browser 0.99.64";
39
	char version[]=" Text-based Browser 0.99.65";
37
	?define IMAGES_CACHE_CLEARED "Images cache cleared"
40
	?define IMAGES_CACHE_CLEARED "Images cache cleared"
-
 
41
	?define T_LAST_SLIDE "This slide is the last"
-
 
42
	char loading[] = "Loading...";
-
 
43
	char page_not_found[] = "Page not found. Maybe, URL contains some errors.";
38
	?define T_LAST_SLIDE "This slide is the last"
44
	char page_not_found_no_internet[] = "Page not found. Maybe, URL contains some errors.
Or Internet unavailable for your configuration.";
Line 39... Line 45...
39
#endif
45
#endif
40
 
46
 
41
proc_info Form;
47
proc_info Form;
Line 46... Line 52...
46
 
52
 
47
char stak[4096];
53
char stak[4096];
48
mouse m;
54
mouse m;
Line -... Line 55...
-
 
55
int action_buf;
49
int action_buf;
56
 
50
 
57
 
Line -... Line 58...
-
 
58
#include "..\TWB\TWB.c"
-
 
59
#include "menu_rmb.h"
-
 
60
 
-
 
61
char editURL[sizeof(URL)];
-
 
62
int	mouse_twb;
51
#include "..\TWB\TWB.c"
63
edit_box address_box= {250,207,16,0xffffff,0x94AECE,0xffffff,0xffffff,0,sizeof(URL),#editURL,#mouse_twb,2,19,19};
Line 52... Line 64...
52
#include "menu_rmb.h"
64
 
53
 
65
 
Line 419... Line 431...
419
	edit_box_draw stdcall(#address_box);
431
	edit_box_draw stdcall(#address_box);
Line 420... Line 432...
420
 
432
 
421
	if (!filesize)
433
	if (!filesize)
422
	{
434
	{
423
		PageLinks.Clear();
435
		PageLinks.Clear();
-
 
436
		if (GetProcessSlot(downloader_id)<>0) 
424
		DrawBar(WB1.list.x, WB1.list.y, WB1.list.w+scroll_wv.size_x+1, WB1.list.h, 0xFFFFFF); //fill all
437
		{
-
 
438
				filesize = sizeof(loading);
-
 
439
				WB1.ParseHTML(#loading);
425
		if (GetProcessSlot(downloader_id)<>0) WriteText(WB1.list.x + 10, WB1.list.y + 18, 0x80, 0, "Loading...");
440
		}
426
		else
441
		else
-
 
442
		{
-
 
443
			if (strncmp(#URL,"http:",5)==0)
427
		{
444
			{
428
			WriteText(WB1.list.x + 10, WB1.list.y + 18, 0x80, 0, "Page not found. May be, URL contains some errors.");
445
				filesize = sizeof(page_not_found_no_internet);
-
 
446
				WB1.ParseHTML(#page_not_found_no_internet);
-
 
447
			}
-
 
448
			else
-
 
449
			{
-
 
450
				filesize = sizeof(page_not_found);
-
 
451
				WB1.ParseHTML(#page_not_found);
429
			if (!strncmp(#URL,"http:",5)) WriteText(WB1.list.x + 10, WB1.list.y + 32, 0x80, 0, "Or Internet unavilable for your configuration.");
452
			}
430
		}
453
		}
431
		//return;
454
		//return;
432
	}
455
	}
433
	else
456
	else