Subversion Repositories Kolibri OS

Rev

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

Rev 5766 Rev 5768
Line 28... Line 28...
28
#include "..\lib\patterns\libimg_load_skin.h"
28
#include "..\lib\patterns\libimg_load_skin.h"
Line 29... Line 29...
29
 
29
 
Line 30... Line 30...
30
char homepage[] = FROM "html\\homepage.htm";
30
char homepage[] = FROM "html\\homepage.htm";
31
 
31
 
32
#ifdef LANG_RUS
32
#ifdef LANG_RUS
33
	char version[]=" ’¥ªáâ®¢ë© ¡à ã§¥à 1.3 UNSTABLE";
33
	char version[]=" ’¥ªáâ®¢ë© ¡à ã§¥à 1.31 UNSTABLE";
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[] = "‡ £à㧪  áâà ­¨æë...
";
37
	char page_not_found[] = FROM "html\page_not_found_ru.htm";
37
	char page_not_found[] = FROM "html\page_not_found_ru.htm";
38
	char accept_language[]= "Accept-Language: ru\n";
38
	char accept_language[]= "Accept-Language: ru\n";
39
#else
39
#else
40
	char version[]=" Text-based Browser 1.3 UNSTABLE";
40
	char version[]=" Text-based Browser 1.31 UNSTABLE";
41
	?define IMAGES_CACHE_CLEARED "Images cache cleared"
41
	?define IMAGES_CACHE_CLEARED "Images cache cleared"
42
	?define T_LAST_SLIDE "This slide is the last"
42
	?define T_LAST_SLIDE "This slide is the last"
43
	char loading[] = "Loading...
";
43
	char loading[] = "Loading...
";
Line 76... Line 76...
76
enum { 
76
enum { 
77
	BACK_BUTTON=1000, 
77
	BACK_BUTTON=1000, 
78
	FORWARD_BUTTON, 
78
	FORWARD_BUTTON, 
79
	REFRESH_BUTTON, 
79
	REFRESH_BUTTON, 
80
	GOTOURL_BUTTON, 
80
	GOTOURL_BUTTON, 
81
	SEARCHWEB_BUTTON, 
-
 
82
	SANDWICH_BUTTON
81
	SANDWICH_BUTTON
83
};
82
};
Line 84... Line 83...
84
 
83
 
85
enum {
-
 
86
	ZOOM2x=1100,
84
enum {
87
	VIEW_SOURCE,
85
	VIEW_SOURCE=1100,
88
	EDIT_SOURCE,
86
	EDIT_SOURCE,
89
	VIEW_HISTORY,
87
	VIEW_HISTORY,
90
	FREE_IMG_CACHE,
88
	FREE_IMG_CACHE,
91
	DOWNLOAD_MANAGER
89
	DOWNLOAD_MANAGER
Line 92... Line 90...
92
};
90
};
93
 
91
 
94
#include "..\TWB\TWB.c"
92
#include "..\TWB\TWB.c"
95
#include "menu_rmb.h"
93
#include "menu.h"
96
#include "history.h"
94
#include "history.h"
97
#include "show_src.h"
95
#include "show_src.h"
Line 422... Line 420...
422
			mouse.y = TOOLBAR_H-6;
420
			mouse.y = TOOLBAR_H-6;
423
			mouse.x = Form.cwidth - 167;
421
			mouse.x = Form.cwidth - 167;
424
			CreateThread(#menu_rmb,#stak+4092);
422
			CreateThread(#menu_rmb,#stak+4092);
425
			return;
423
			return;
Line 426... Line -...
426
 
-
 
427
		case ZOOM2x:
-
 
428
			if (WB1.DrawBuf.zoom==2)
-
 
429
			{
-
 
430
				WB1.DrawBuf.zoom=1;
-
 
431
				WB1.list.SetFont(8, 14, 10111000b);
-
 
432
			}
-
 
433
			else
-
 
434
			{
-
 
435
				WB1.DrawBuf.zoom=2;
-
 
436
				WB1.list.SetFont(8, 14, 10111001b);
-
 
437
			}
-
 
438
			Draw_Window(); 
-
 
439
			return;
-
 
440
 
424
 
441
		case VIEW_SOURCE:
425
		case VIEW_SOURCE:
442
			WB1.list.first = 0;
426
			WB1.list.first = 0;
443
			ShowSource();
427
			ShowSource();
444
			WB1.DrawPage();
428
			WB1.DrawPage();
Line 603... Line 587...
603
		{
587
		{
604
			free(bufpointer);
588
			free(bufpointer);
605
			bufpointer = malloc(bufsize);
589
			bufpointer = malloc(bufsize);
606
			SetPageDefaults();
590
			SetPageDefaults();
607
			ReadFile(0, bufsize, bufpointer, #URL);
591
			ReadFile(0, bufsize, bufpointer, #URL);
608
			//ShowSource();
-
 
609
		}
592
		}
610
		ShowPage();
593
		ShowPage();
611
	}
594
	}
612
}
595
}
Line 631... Line 614...
631
		}
614
		}
632
		else
615
		else
633
			WB1.LoadInternalPage(#page_not_found, sizeof(page_not_found));
616
			WB1.LoadInternalPage(#page_not_found, sizeof(page_not_found));
634
	}
617
	}
635
	else
618
	else
-
 
619
	{
636
		WB1.Prepare();
620
		WB1.Prepare();
-
 
621
	}
Line 637... Line 622...
637
 
622
 
638
	if (!header) strcpy(#header, #version);
623
	if (!header) strcpy(#header, #version);
639
	if (!strcmp(#version, #header)) DrawTitle(#header);
624
	if (!strcmp(#version, #header)) DrawTitle(#header);