Subversion Repositories Kolibri OS

Rev

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

Rev 6931 Rev 6978
Line 1... Line 1...
1
//HTML Viewer in C--
1
//HTML Viewer in C--
2
//Copyright 2007-2013 by Veliant & Leency
2
//Copyright 2007-2017 by Veliant & Leency
3
//Asper, lev, Lrz, Barsuk, Nable...
3
//Asper, lev, Lrz, Barsuk, Nable, hidnplayr...
Line 4... Line 4...
4
 
4
 
5
#ifndef AUTOBUILD
5
#ifndef AUTOBUILD
6
	#include "lang.h--"
6
	#include "lang.h--"
Line 28... Line 28...
28
#include "..\lib\patterns\http_downloader.h"
28
#include "..\lib\patterns\http_downloader.h"
Line 29... Line 29...
29
 
29
 
Line 30... Line 30...
30
char homepage[] = FROM "html\\homepage.htm""\0";
30
char homepage[] = FROM "html\\homepage.htm""\0";
31
 
31
 
32
#ifdef LANG_RUS
32
#ifdef LANG_RUS
33
char version[]="’¥ªáâ®¢ë© ¡à ã§¥à 1.6";
33
char version[]="’¥ªáâ®¢ë© ¡à ã§¥à 1.61";
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[] = "‡ £à㧪  áâà ­¨æë...
";
Line 41... Line 41...
41
¥¤ ªâ¨à®¢ âì ¨á室­¨ª
41
¥¤ ªâ¨à®¢ âì ¨á室­¨ª
42
ˆáâ®à¨ï
42
ˆáâ®à¨ï
43
Žç¨áâ¨âì ªíè ª à⨭®ª
43
Žç¨áâ¨âì ªíè ª à⨭®ª
44
Œ¥­¥¤¦¥à § £à㧮ª";
44
Œ¥­¥¤¦¥à § £à㧮ª";
45
#else
45
#else
46
char version[]="Text-based Browser 1.6";
46
char version[]="Text-based Browser 1.61";
47
?define IMAGES_CACHE_CLEARED "Images cache cleared"
47
?define IMAGES_CACHE_CLEARED "Images cache cleared"
48
?define T_LAST_SLIDE "This slide is the last"
48
?define T_LAST_SLIDE "This slide is the last"
49
char loading[] = "Loading...
";
49
char loading[] = "Loading...
";
50
char page_not_found[] = FROM "html\\page_not_found_en.htm""\0";
50
char page_not_found[] = FROM "html\\page_not_found_en.htm""\0";
51
char accept_language[]= "Accept-Language: en\n";
51
char accept_language[]= "Accept-Language: en\n";
Line 124... Line 124...
124
	SetSkinColors();
124
	SetSkinColors();
125
	CreateDir("/tmp0/1/downloads");
125
	CreateDir("/tmp0/1/downloads");
126
	if (param) strcpy(#URL, #param); else strcpy(#URL, URL_SERVICE_HOME);
126
	if (param) strcpy(#URL, #param); else strcpy(#URL, URL_SERVICE_HOME);
127
	WB1.list.SetFont(8, 14, 10011000b);
127
	WB1.list.SetFont(8, 14, 10011000b);
128
	WB1.list.no_selection = true;
128
	WB1.list.no_selection = true;
129
	SetEventMask(0xa7);
129
	SetEventMask(EVM_REDRAW + EVM_KEY + EVM_BUTTON + EVM_MOUSE + EVM_MOUSE_FILTER + EVM_STACK);
130
	BEGIN_LOOP_APPLICATION:
-
 
131
		WaitEventTimeout(2);
-
 
132
		switch(EAX & 0xFF)
130
	loop() switch(WaitEvent())
133
		{
131
	{
134
			CASE evMouse:
132
		case evMouse:
135
				if (!CheckActiveProcess(Form.ID)) break;
133
			if (!CheckActiveProcess(Form.ID)) break;
136
				edit_box_mouse stdcall (#address_box);
134
			edit_box_mouse stdcall (#address_box);
137
				mouse.get();
135
			mouse.get();
138
				if (WB1.list.MouseOver(mouse.x, mouse.y))
136
			if (WB1.list.MouseOver(mouse.x, mouse.y))
139
				{
137
			{
Line 257... Line 255...
257
							ShowPage();
255
						ShowPage();
258
						}
256
					}
259
					}
257
				}
260
				}
258
			}
261
		}
259
	}
262
	goto BEGIN_LOOP_APPLICATION;
-
 
263
}
260
}
Line 264... Line 261...
264
 
261
 
265
void SetElementSizes()
262
void SetElementSizes()
266
{
263
{