Subversion Repositories Kolibri OS

Rev

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

Rev 3990 Rev 4026
Line 14... Line 14...
14
#include "..\lib\dll.h"
14
#include "..\lib\dll.h"
15
//*.obj libraries
15
//*.obj libraries
16
#include "..\lib\lib.obj\box_lib.h"
16
#include "..\lib\lib.obj\box_lib.h"
17
#include "..\lib\lib.obj\libio_lib.h"
17
#include "..\lib\lib.obj\libio_lib.h"
18
#include "..\lib\lib.obj\libimg_lib.h"
18
#include "..\lib\lib.obj\libimg_lib.h"
19
#include "..\lib\lib.obj\truetype.h"
19
#include "..\lib\list_box.h"
20
//images
20
//images
21
#include "img\toolbar_icons.c"
21
#include "img\toolbar_icons.c"
22
#include "img\URLgoto.txt";
22
#include "img\URLgoto.txt";
Line -... Line 23...
-
 
23
 
-
 
24
#ifndef AUTOBUILD
-
 
25
	#include "lang.h--"
-
 
26
#endif
-
 
27
 
-
 
28
#ifdef LANG_RUS
-
 
29
	char version[]=" ’¥ªáâ®¢ë© ¡à ã§¥à 0.99.08";
-
 
30
	?define IMAGES_CACHE_CLEARED "Šíè ª à⨭®ª ®ç¨é¥­"
-
 
31
#else
-
 
32
	char version[]=" Text-based Browser 0.99.08";
-
 
33
	?define IMAGES_CACHE_CLEARED "Images cache cleared"
-
 
34
#endif
Line 23... Line 35...
23
 
35
 
24
 
-
 
25
#define URL param
36
 
Line 26... Line 37...
26
int use_truetype = 0;
37
#define URL param
27
char fontlol[64];
38
char fontlol[64];
28
 
39
 
Line 45... Line 56...
45
 
56
 
46
 
57
 
Line -... Line 58...
-
 
58
char stak[512];
-
 
59
mouse m;
47
char stak[512];
60
 
48
mouse m;
61
int action_buf;
Line 49... Line 62...
49
 
62
 
50
#include "TWB.h"
63
#include "TWB.h"
51
#include "include\menu_rmb.h"
64
#include "include\menu_rmb.h"
52
 
65
 
53
 
66
 
Line 54... Line 67...
54
void main()
67
void main()
55
{
68
{
56
	int btn, key;
69
	int btn, key;
57
	int half_scroll_size;
70
	int half_scroll_size;
58
	int scroll_used=0;
-
 
59
	
-
 
Line 60... Line 71...
60
	mem_Init();
71
	int scroll_used=0, show_menu;
61
	if (load_dll2(boxlib, #box_lib_init,0)!=0) {notify("System Error: library doesn't exists /rd/1/lib/box_lib.obj"); ExitProcess();}
72
	
Line 62... Line 73...
62
	if (load_dll2(libio, #libio_init,1)!=0) debug("Error: library doesn't exists - libio"w);
73
	mem_Init();
Line 86... Line 97...
86
					WB1.ParseHTML(buf, filesize);
97
					WB1.ParseHTML(buf, filesize);
87
					//break;
98
					//break;
88
				};*/
99
				};*/
Line 89... Line 100...
89
				
100
				
90
				btn=GetProcessSlot(Form.ID); 
101
				btn=GetProcessSlot(Form.ID); 
Line 91... Line 102...
91
				if (btn<>GetActiveProcess()) break; //åñëè îêíî íå àêòèâíî íà ñîáûòèÿ ìûøè íå ðåàãèðóåì
102
				if (btn<>GetActiveProcess()) break;
Line 92... Line 103...
92
 
103
 
Line 93... Line 104...
93
				edit_box_mouse stdcall (#address_box);
104
				edit_box_mouse stdcall (#address_box);
94
 
105
 
-
 
106
				m.get();
-
 
107
				
-
 
108
				if (m.y>WB1.top) && (m.y
-
 
109
				{
-
 
110
					if (m.pkm)
-
 
111
					{
-
 
112
						show_menu = 1;
95
				m.get();
113
					}
96
				
114
					if (!m.pkm) && (show_menu)
97
				if (m.pkm) && (m.y>WB1.top) && (m.y
115
					{
98
				{
116
						show_menu = 0;
-
 
117
						SwitchToAnotherThread();
Line 99... Line 118...
99
					SwitchToAnotherThread();
118
						CreateThread(#menu_rmb,#stak);
100
					CreateThread(#menu_rmb,#stak);
119
						break; 
101
					break; 
120
					}
102
				}
121
				}
103
 
122
 
104
				if (m.vert==65535) //ïðîêðóòêà êîë¸ñèêîì
123
				if (m.vert==65535)
105
				{
124
				{
106
					if (lines.first==0) break;
125
					if (lines.first==0) break;
107
					if (lines.first>3) lines.first-=2; ELSE lines.first=1;
126
					if (lines.first>3) lines.first-=2; ELSE lines.first=1;
108
					WB1.Scan(ID1);
127
					WB1.Scan(ID1);
-
 
128
					break;
109
					break;
129
				} 
110
				} 
130
				if (m.vert==1)
111
				if (m.vert==1)
131
				{
112
				{
132
					if(lines.visible+lines.first+3>=lines.all) WB1.Scan(181);
113
					if(lines.visible+lines.first+3>=lines.all) WB1.Scan(181);
133
					else
114
					ELSE	{
134
					{
Line 159... Line 179...
159
				
179
				
160
				_EDIT_MARK:
180
				_EDIT_MARK:
161
				if (key<>0x0d) && (key<>183) && (key<>184) {EAX=key<<8; edit_box_key stdcall(#address_box);} //àäðåñíàÿ ñòðîêà
181
				if (key<>0x0d) && (key<>183) && (key<>184) {EAX=key<<8; edit_box_key stdcall(#address_box);} //àäðåñíàÿ ñòðîêà
162
				break;
182
				break;
-
 
183
			case evReDraw:
163
			case evReDraw:
184
				if (action_buf) { WB1.Scan(action_buf); action_buf=0;}
164
				Draw_Window();
185
				Draw_Window();
165
				break;
186
				break;
166
			default:
187
			default:
167
				if (downloader_id<>0)
188
				if (downloader_id<>0)