Subversion Repositories Kolibri OS

Rev

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

Rev 7743 Rev 7746
Line 28... Line 28...
28
 
28
 
Line 29... Line 29...
29
_http http = {0, 0, 0, 0, 0, 0, 0};
29
_http http = {0, 0, 0, 0, 0, 0, 0};
30
 
30
 
31
 
31
 
32
#ifdef LANG_RUS
32
#ifdef LANG_RUS
33
char version[]="’¥ªáâ®¢ë© ¡à ã§¥à 1.85";
33
char version[]="’¥ªáâ®¢ë© ¡à ã§¥à 1.9";
34
?define IMAGES_CACHE_CLEARED "Šíè ª à⨭®ª ®ç¨é¥­"
34
?define IMAGES_CACHE_CLEARED "Šíè ª à⨭®ª ®ç¨é¥­"
35
?define T_LAST_SLIDE "â® ¯®á«¥¤­¨© á« ©¤"
35
?define T_LAST_SLIDE "â® ¯®á«¥¤­¨© á« ©¤"
Line 45... Line 45...
45
Œ¥­¥¤¦¥à § £à㧮ª";
45
Œ¥­¥¤¦¥à § £à㧮ª";
46
char link_menu[] =
46
char link_menu[] =
47
"Š®¯¨à®¢ âì áá뫪ã
47
"Š®¯¨à®¢ âì áá뫪ã
48
‘ª ç âì ᮤ¥à¦¨¬®¥ áá뫪¨";
48
‘ª ç âì ᮤ¥à¦¨¬®¥ áá뫪¨";
49
#else
49
#else
50
char version[]="Text-based Browser 1.85";
50
char version[]="Text-based Browser 1.9";
51
?define IMAGES_CACHE_CLEARED "Images cache cleared"
51
?define IMAGES_CACHE_CLEARED "Images cache cleared"
52
?define T_LAST_SLIDE "This slide is the last"
52
?define T_LAST_SLIDE "This slide is the last"
53
char loading[] = "Loading...
";
53
char loading[] = "Loading...
";
54
char page_not_found[] = FROM "html\\page_not_found_en.htm""\0";
54
char page_not_found[] = FROM "html\\page_not_found_en.htm""\0";
55
char homepage[] = FROM "html\\homepage_en.htm""\0";
55
char homepage[] = FROM "html\\homepage_en.htm""\0";
Line 86... Line 86...
86
dword col_bg = 0xE3E2E2;
86
dword col_bg = 0xE3E2E2;
87
dword panel_color  = 0xE3E2E2;
87
dword panel_color  = 0xE3E2E2;
88
dword border_color = 0x8C8C8C;
88
dword border_color = 0x8C8C8C;
Line 89... Line 89...
89
 
89
 
90
bool debug_mode = false;
-
 
Line 91... Line 90...
91
bool old_tag_parser_mode = false;
90
bool debug_mode = false;
92
 
91
 
93
progress_bar wv_progress_bar;
92
progress_bar wv_progress_bar;
Line 113... Line 112...
113
#include "history.h"
112
#include "history.h"
114
#include "show_src.h"
113
#include "show_src.h"
115
#include "download_manager.h"
114
#include "download_manager.h"
Line 116... Line 115...
116
 
115
 
117
char editURL[sizeof(URL)];
116
char editURL[sizeof(URL)];
Line 118... Line 117...
118
edit_box address_box = {250,60,30,0xffffff,0x94AECE,0xffffff,0xffffff,0x10000000,sizeof(URL)-2,#editURL,0,2,19,19};
117
edit_box address_box = {250,60,30,0xffffff,0x94AECE,0xffffff,0xffffff,0x10000000,sizeof(URL)-2,#editURL,0,NULL,19,19};
Line 119... Line 118...
119
 
118
 
120
#define SKIN_Y 24
119
#define SKIN_Y 24
Line 261... Line 260...
261
	basic_line_h = calc(WB1.list.font_h * 130) / 100;
260
	basic_line_h = calc(WB1.list.font_h * 130) / 100;
262
	address_box.width = Form.cwidth - address_box.left - 50;
261
	address_box.width = Form.cwidth - address_box.left - 50;
263
	WB1.list.SetSizes(0, TOOLBAR_H, Form.width - 10 - scroll_wv.size_x, 
262
	WB1.list.SetSizes(0, TOOLBAR_H, Form.width - 10 - scroll_wv.size_x, 
264
		Form.cheight - TOOLBAR_H - STATUSBAR_H, basic_line_h);
263
		Form.cheight - TOOLBAR_H - STATUSBAR_H, basic_line_h);
265
	WB1.list.wheel_size = 7 * basic_line_h;
264
	WB1.list.wheel_size = 7 * basic_line_h;
266
	WB1.list.column_max = WB1.list.w - scroll_wv.size_x / WB1.list.font_w;
265
	WB1.list.column_max = WB1.list.w - scroll_wv.size_x / WB1.list.font_w + 1;
267
	WB1.list.visible = WB1.list.h;
266
	WB1.list.visible = WB1.list.h;
268
	if (WB1.list.w!=WB1.DrawBuf.bufw) {
267
	if (WB1.list.w!=WB1.DrawBuf.bufw) {
269
		WB1.DrawBuf.Init(WB1.list.x, WB1.list.y, WB1.list.w, 800*20);
268
		WB1.DrawBuf.Init(WB1.list.x, WB1.list.y, WB1.list.w, 800*20);
270
		ProcessEvent(REFRESH_BUTTON);
269
		ProcessEvent(REFRESH_BUTTON);
271
	}
270
	}
Line 375... Line 374...
375
		case SCAN_CODE_F12:
374
		case SCAN_CODE_F12:
376
			debug_mode ^= 1;
375
			debug_mode ^= 1;
377
			if (debug_mode) notify("'Debug mode ON'-I");
376
			if (debug_mode) notify("'Debug mode ON'-I");
378
			else notify("'Debug mode OFF'-I");
377
			else notify("'Debug mode OFF'-I");
379
			return;
378
			return;
380
		case SCAN_CODE_F11:
-
 
381
			old_tag_parser_mode ^= 1;
-
 
382
			if (old_tag_parser_mode) notify("'Old tag parser ON'-I");
-
 
383
			else notify("'Old tag parser OFF'-I");
-
 
384
			return;
-
 
385
	}
379
	}
386
}
380
}
Line 387... Line 381...
387
 
381
 
388
void StopLoading()
382
void StopLoading()
Line 396... Line 390...
396
		$pop	EAX							
390
		$pop	EAX							
397
		free(EAX);						// free data
391
		free(EAX);						// free data
398
		http.transfer=0;
392
		http.transfer=0;
399
		bufsize = 0;
393
		bufsize = 0;
400
		bufpointer = free(bufpointer);
394
		bufpointer = free(bufpointer);
-
 
395
		pause(10);
401
	}
396
	}
402
	wv_progress_bar.value = 0;
397
	wv_progress_bar.value = 0;
403
	DrawOmnibox();
398
	DrawOmnibox();
404
}
399
}