Subversion Repositories Kolibri OS

Rev

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

Rev 7720 Rev 7738
Line 5... Line 5...
5
#ifndef AUTOBUILD
5
#ifndef AUTOBUILD
6
	#include "lang.h--"
6
	#include "lang.h--"
7
#endif
7
#endif
Line 8... Line 8...
8
 
8
 
9
//libraries
9
//libraries
10
#define MEMSIZE 4096 * 200
10
#define MEMSIZE 1024 * 800
11
#include "..\lib\gui.h"
11
#include "..\lib\gui.h"
12
#include "..\lib\draw_buf.h"
12
#include "..\lib\draw_buf.h"
13
#include "..\lib\list_box.h"
13
#include "..\lib\list_box.h"
14
#include "..\lib\cursor.h"
14
#include "..\lib\cursor.h"
Line 29... Line 29...
29
_http http = {0, 0, 0, 0, 0, 0, 0};
29
_http http = {0, 0, 0, 0, 0, 0, 0};
Line 30... Line 30...
30
 
30
 
Line 31... Line 31...
31
char homepage[] = FROM "html\\homepage.htm""\0";
31
char homepage[] = FROM "html\\homepage.htm""\0";
32
 
32
 
33
#ifdef LANG_RUS
33
#ifdef LANG_RUS
34
char version[]="’¥ªáâ®¢ë© ¡à ã§¥à 1.8d";
34
char version[]="’¥ªáâ®¢ë© ¡à ã§¥à 1.82";
35
?define IMAGES_CACHE_CLEARED "Šíè ª à⨭®ª ®ç¨é¥­"
35
?define IMAGES_CACHE_CLEARED "Šíè ª à⨭®ª ®ç¨é¥­"
36
?define T_LAST_SLIDE "â® ¯®á«¥¤­¨© á« ©¤"
36
?define T_LAST_SLIDE "â® ¯®á«¥¤­¨© á« ©¤"
37
char loading[] = "‡ £à㧪  áâà ­¨æë...
";
37
char loading[] = "‡ £à㧪  áâà ­¨æë...
";
Line 44... Line 44...
44
Œ¥­¥¤¦¥à § £à㧮ª";
44
Œ¥­¥¤¦¥à § £à㧮ª";
45
char link_menu[] =
45
char link_menu[] =
46
"Š®¯¨à®¢ âì áá뫪ã
46
"Š®¯¨à®¢ âì áá뫪ã
47
‘ª ç âì ᮤ¥à¦¨¬®¥ áá뫪¨";
47
‘ª ç âì ᮤ¥à¦¨¬®¥ áá뫪¨";
48
#else
48
#else
49
char version[]="Text-based Browser 1.8d";
49
char version[]="Text-based Browser 1.82";
50
?define IMAGES_CACHE_CLEARED "Images cache cleared"
50
?define IMAGES_CACHE_CLEARED "Images cache cleared"
51
?define T_LAST_SLIDE "This slide is the last"
51
?define T_LAST_SLIDE "This slide is the last"
52
char loading[] = "Loading...
";
52
char loading[] = "Loading...
";
53
char page_not_found[] = FROM "html\\page_not_found_en.htm""\0";
53
char page_not_found[] = FROM "html\\page_not_found_en.htm""\0";
54
char accept_language[]= "Accept-Language: en\n";
54
char accept_language[]= "Accept-Language: en\n";
Line 240... Line 240...
240
		Form.cheight - TOOLBAR_H - STATUSBAR_H, basic_line_h);
240
		Form.cheight - TOOLBAR_H - STATUSBAR_H, basic_line_h);
241
	WB1.list.wheel_size = 7 * basic_line_h;
241
	WB1.list.wheel_size = 7 * basic_line_h;
242
	WB1.list.column_max = WB1.list.w - scroll_wv.size_x / WB1.list.font_w;
242
	WB1.list.column_max = WB1.list.w - scroll_wv.size_x / WB1.list.font_w;
243
	WB1.list.visible = WB1.list.h;
243
	WB1.list.visible = WB1.list.h;
244
	if (WB1.list.w!=WB1.DrawBuf.bufw) {
244
	if (WB1.list.w!=WB1.DrawBuf.bufw) {
245
		WB1.DrawBuf.Init(WB1.list.x, WB1.list.y, WB1.list.w, 32700);
245
		WB1.DrawBuf.Init(WB1.list.x, WB1.list.y, WB1.list.w, 800*20);
246
		ProcessEvent(REFRESH_BUTTON);
246
		ProcessEvent(REFRESH_BUTTON);
247
	}
247
	}
248
}
248
}
Line 522... Line 522...
522
	//#1
522
	//#1
523
	if (URL[0] == '#')
523
	if (URL[0] == '#')
524
	{
524
	{
525
		if (URL[1] == NULL) {
525
		if (URL[1] == NULL) {
526
			WB1.list.first = 0;
526
			WB1.list.first = 0;
527
			strcpy(#URL, history.current());
-
 
528
		}
527
		}
529
		else {
528
		else {
530
			strlcpy(#anchor, #URL+strrchr(#URL, '#'), sizeof(anchor));
529
			if (anchors.get_anchor_pos(#URL+1)!=-1) WB1.list.first = anchors.get_anchor_pos(#URL+1);
531
			strcpy(#URL, history.current());
-
 
532
		}
530
		}
-
 
531
		strlcpy(#anchor, #URL, sizeof(anchor));
-
 
532
		strcpy(#URL, history.current());
-
 
533
		strcpy(#editURL, #URL);
-
 
534
		strcat(#editURL, #anchor);
-
 
535
		DrawEditBoxWebView();
533
		ShowPage();			
536
		WB1.DrawPage();
534
		return;
537
		return;
535
	}
538
	}
536
	//liner.ru#1
539
	//liner.ru#1
537
	if (strrchr(#URL, '#')!=0)
540
	if (strrchr(#URL, '#')!=0)
538
	{
541
	{