Subversion Repositories Kolibri OS

Rev

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

Rev 5747 Rev 5749
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.22";
33
	char version[]=" ’¥ªáâ®¢ë© ¡à ã§¥à 1.23";
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.22";
40
	char version[]=" Text-based Browser 1.23";
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 306... Line 306...
306
{
306
{
307
	address_box.top = TOOLBAR_H-TAB_H/2-7+TAB_H;
307
	address_box.top = TOOLBAR_H-TAB_H/2-7+TAB_H;
308
	address_box.width = Form.cwidth - address_box.left - 25 - 22;
308
	address_box.width = Form.cwidth - address_box.left - 25 - 22;
309
	WB1.list.SetSizes(0, TOOLBAR_H, Form.width - 10 - scroll_wv.size_x / WB1.DrawBuf.zoom, 
309
	WB1.list.SetSizes(0, TOOLBAR_H, Form.width - 10 - scroll_wv.size_x / WB1.DrawBuf.zoom, 
310
		Form.cheight - TOOLBAR_H - STATUSBAR_H, WB1.list.font_h + WB1.DrawBuf.zoom + WB1.DrawBuf.zoom * WB1.DrawBuf.zoom);
310
		Form.cheight - TOOLBAR_H - STATUSBAR_H, WB1.list.font_h + WB1.DrawBuf.zoom + WB1.DrawBuf.zoom * WB1.DrawBuf.zoom);
-
 
311
	WB1.list.wheel_size = 7;
311
	WB1.list.column_max = WB1.list.w - scroll_wv.size_x / WB1.list.font_w;
312
	WB1.list.column_max = WB1.list.w - scroll_wv.size_x / WB1.list.font_w;
312
	WB1.list.visible = WB1.list.h - 5 / WB1.list.line_h;
313
	WB1.list.visible = WB1.list.h - 5 / WB1.list.line_h;
313
	WB1.DrawBuf.Init(WB1.list.x, WB1.list.y, WB1.list.w, WB1.list.line_h);
314
	WB1.DrawBuf.Init(WB1.list.x, WB1.list.y, WB1.list.w, WB1.list.line_h);
314
}
315
}
Line 315... Line 316...
315
 
316
 
316
void Draw_Window()
317
void Draw_Window()
317
{
318
{
318
	int img_off;
319
	int img_off;
-
 
320
	// tab {
319
	// tab {
321
	/*
320
	if (TAB_H)
322
	if (TAB_H)
321
	{
323
	{
322
		DrawBar(0, 0, TAB_W, TAB_H+1, panel_color);
324
		DrawBar(0, 0, TAB_W, TAB_H+1, panel_color);
323
		WriteText(5, 7, 0x80, 0xfdfdFd, "Index.htm");
325
		WriteText(5, 7, 0x80, 0xfdfdFd, "Index.htm");
324
		WriteText(4, 6, 0x80, 0, "Index.htm");		
326
		WriteText(4, 6, 0x80, 0, "Index.htm");		
325
		DrawBar(TAB_W,0, Form.cwidth-TAB_W,TAB_H, col_bg);
327
		DrawBar(TAB_W,0, Form.cwidth-TAB_W,TAB_H, col_bg);
326
		DrawBar(TAB_W-1,TAB_H, Form.cwidth-TAB_W+1,1, border_color);
328
		DrawBar(TAB_W-1,TAB_H, Form.cwidth-TAB_W+1,1, border_color);
327
		img_draw stdcall(skin.image, TAB_W-13, 0, 30, skin.h, 101, 0);
329
		img_draw stdcall(skin.image, TAB_W-13, 0, 30, skin.h, 101, 0);
328
	} 
330
	} 
329
	else DrawBar(0,0, Form.cwidth,1, col_bg);
331
	else */ DrawBar(0,0, Form.cwidth,1, col_bg);
330
	// }
332
	// }
331
	DrawBar(0,TAB_H+1, Form.cwidth,TOOLBAR_H-TAB_H-3, panel_color);
333
	DrawBar(0,TAB_H+1, Form.cwidth,TOOLBAR_H-TAB_H-3, panel_color);
332
	DrawBar(0,TOOLBAR_H-2, Form.cwidth,1, 0xD7D0D3);
334
	DrawBar(0,TOOLBAR_H-2, Form.cwidth,1, 0xD7D0D3);
333
	DrawBar(0,TOOLBAR_H-1, Form.cwidth,1, border_color);
335
	DrawBar(0,TOOLBAR_H-1, Form.cwidth,1, border_color);
Line 492... Line 494...
492
		StopLoading();
494
		StopLoading();
493
		BrowserHistory.current--;
495
		BrowserHistory.current--;
494
	}
496
	}
Line 495... Line 497...
495
 
497
 
496
	strcpy(#URL, PageLinks.GetURL(id-401));	
-
 
497
	//$1 - Condition Script
-
 
498
	if (URL[0] == '$')
-
 
499
	{
-
 
500
		if (URL[1]=='-') && (condition_href) condition_href--;
-
 
501
		else if (URL[1]=='+') 
-
 
502
		{
-
 
503
			if (condition_href
-
 
504
		}
-
 
505
		else condition_href = atoi(#URL+1);
-
 
506
		strcpy(#URL, BrowserHistory.CurrentUrl());
-
 
507
		ShowPage();
-
 
508
		return;
-
 
509
	}
498
	strcpy(#URL, PageLinks.GetURL(id-401));	
510
	//#1
499
	//#1
511
	if (URL[0] == '#')
500
	if (URL[0] == '#')
512
	{
501
	{
513
		strcpy(#anchor, #URL+strrchr(#URL, '#'));		
502
		strcpy(#anchor, #URL+strrchr(#URL, '#'));