Subversion Repositories Kolibri OS

Rev

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

Rev 5685 Rev 5690
Line 9... Line 9...
9
 
9
 
10
//libraries
10
//libraries
11
#define MEMSIZE 0x100000
11
#define MEMSIZE 0x100000
12
#include "..\lib\strings.h"
12
#include "..\lib\strings.h"
13
#include "..\lib\gui.h"
-
 
14
#include "..\lib\encoding.h"
13
#include "..\lib\gui.h"
15
#include "..\lib\file_system.h"
14
#include "..\lib\file_system.h"
16
#include "..\lib\mem.h"
15
#include "..\lib\mem.h"
17
#include "..\lib\draw_buf.h"
16
#include "..\lib\draw_buf.h"
18
#include "..\lib\list_box.h"
17
#include "..\lib\list_box.h"
Line 21... Line 20...
21
//*.obj libraries
20
//*.obj libraries
22
#include "..\lib\obj\box_lib.h"
21
#include "..\lib\obj\box_lib.h"
23
#include "..\lib\obj\libio_lib.h"
22
#include "..\lib\obj\libio_lib.h"
24
#include "..\lib\obj\libimg_lib.h"
23
#include "..\lib\obj\libimg_lib.h"
25
#include "..\lib\obj\http.h"
24
#include "..\lib\obj\http.h"
-
 
25
#include "..\lib\obj\iconv.h"
Line 26... Line 26...
26
 
26
 
27
//useful patterns
27
//useful patterns
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
 
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.15";
33
	char version[]=" ’¥ªáâ®¢ë© ¡à ã§¥à 1.16";
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.15";
40
	char version[]=" Text-based Browser 1.16";
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"
Line 126... Line 126...
126
	CursorPointer.Load(#CursorFile);
126
	CursorPointer.Load(#CursorFile);
127
	load_dll(boxlib, #box_lib_init,0);
127
	load_dll(boxlib, #box_lib_init,0);
128
	load_dll(libio, #libio_init,1);
128
	load_dll(libio, #libio_init,1);
129
	load_dll(libimg, #libimg_init,1);
129
	load_dll(libimg, #libimg_init,1);
130
	load_dll(libHTTP, #http_lib_init,1);
130
	load_dll(libHTTP, #http_lib_init,1);
-
 
131
	load_dll(iconv_lib, #iconv_open,0);
131
	Libimg_LoadImage(#skin, abspath("wv_skin.png"));
132
	Libimg_LoadImage(#skin, abspath("wv_skin.png"));
132
	SetSkinColors();
133
	SetSkinColors();
Line 133... Line 134...
133
	
134
	
134
	WB1.DrawBuf.zoom = 1;
135
	WB1.DrawBuf.zoom = 1;
Line 330... Line 331...
330
	DrawRectangle(scroll_wv.start_x, scroll_wv.start_y, scroll_wv.size_x, scroll_wv.size_y-1, scroll_wv.bckg_col);
331
	DrawRectangle(scroll_wv.start_x, scroll_wv.start_y, scroll_wv.size_x, scroll_wv.size_y-1, scroll_wv.bckg_col);
331
	DrawProgress();
332
	DrawProgress();
332
}
333
}
Line 333... Line 334...
333
 
334
 
334
 
335
 
335
void ChangeCharset(byte new_charset)
336
void ChangeCharset1(byte new_charset)
336
{
337
{
337
	BufEncode(new_charset);
338
	BufEncode(new_charset);
Line 347... Line 348...
347
		return;
348
		return;
348
	}
349
	}
349
	switch (id)
350
	switch (id)
350
	{
351
	{
351
		case 011: //Ctrk+K 
352
		case 011: //Ctrk+K 
352
			ChangeCharset(_KOI);
353
			ChangeCharset1(_KOI);
353
			return;
354
			return;
Line 354... Line 355...
354
 
355
 
355
		case 021: //Ctrl+U
356
		case 021: //Ctrl+U
356
			ChangeCharset(_UTF);
357
			ChangeCharset1(_UTF);
Line 357... Line 358...
357
			return;
358
			return;
358
 
359
 
359
		case 004: //Ctrl+D
360
		case 004: //Ctrl+D
Line 360... Line 361...
360
			ChangeCharset(_DOS);
361
			ChangeCharset1(_DOS);
361
			return;
362
			return;
362
 
363
 
Line 363... Line 364...
363
		case 005: //Win encoding
364
		case 005: //Win encoding
364
			ChangeCharset(_WIN);
365
			ChangeCharset1(_WIN);
365
			return;
366
			return;