Subversion Repositories Kolibri OS

Rev

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

Rev 8462 Rev 8490
Line 39... Line 39...
39
//===================================================//
39
//===================================================//
40
//                                                   //
40
//                                                   //
41
//                       DATA                        //
41
//                       DATA                        //
42
//                                                   //
42
//                                                   //
43
//===================================================//
43
//===================================================//
44
char version[]="WebView 3.26";
-
 
45
 
-
 
46
#define DEFAULT_URL URL_SERVICE_HOMEPAGE
-
 
47
 
-
 
48
bool debug_mode = false;
44
bool debug_mode = false;
49
bool show_images = true;
45
bool show_images = true;
Line 50... Line 46...
50
 
46
 
Line 142... Line 138...
142
			edit_box_mouse stdcall (#omnibox_edit);
138
			edit_box_mouse stdcall (#omnibox_edit);
143
			mouse.get();
139
			mouse.get();
Line 144... Line 140...
144
 
140
 
Line -... Line 141...
-
 
141
			if (WB1.list.MouseScroll(mouse.vert)) WB1.DrawPage();
145
			if (WB1.list.MouseScroll(mouse.vert)) WB1.DrawPage();
142
 
146
 
143
			if (WB1.list.count > WB1.list.visible) {
147
			scrollbar_v_mouse (#scroll_wv);
144
				scrollbar_v_mouse (#scroll_wv);
148
			if (scroll_wv.delta2) {
145
				if (scroll_wv.delta2) {
149
				WB1.list.first = scroll_wv.position;
146
					WB1.list.first = scroll_wv.position;
150
				WB1.DrawPage();
147
					WB1.DrawPage();
-
 
148
					break;
Line 151... Line 149...
151
				break;
149
				}
152
			}
150
			}
153
 
151
 
154
			if (links.hover(WB1.list.y, WB1.list.first))
152
			if (links.hover(WB1.list.y, WB1.list.first))
Line 185... Line 183...
185
			edit_box_key stdcall(#omnibox_edit);
183
			edit_box_key stdcall(#omnibox_edit);
186
			ProcessKeyEvent();
184
			ProcessKeyEvent();
187
			break;
185
			break;
Line 188... Line 186...
188
 
186
 
189
		case evReDraw:
187
		case evReDraw:
-
 
188
			DefineAndDrawWindow(GetScreenWidth()-WIN_W/2-random(80),GetScreenHeight()-WIN_H/2-random(80),
190
			DefineAndDrawWindow(GetScreenWidth()-800/2-random(80),
189
			//DefineAndDrawWindow(0,0,
191
				GetScreenHeight()-700/2-random(80),800,700,0x73,0,0,0);
190
				WIN_W,WIN_H,0x73,0,0,0);
192
			GetProcessInfo(#Form, SelfInfo);
191
			GetProcessInfo(#Form, SelfInfo);
193
			ProcessMenuClick();
192
			ProcessMenuClick();
194
			sc.get();
193
			sc.get();
195
			if (Form.status_window>2) break;
194
			if (Form.status_window>2) break;
Line 408... Line 407...
408
	else notify("'Debug mode OFF'-I");
407
	else notify("'Debug mode OFF'-I");
409
}
408
}
Line 410... Line 409...
410
 
409
 
411
void EventAllTabsClick(dword _n)
410
void EventAllTabsClick(dword _n)
412
{
-
 
413
	if (http.transfer) return;
411
{
-
 
412
	if (mouse.mkm) {
414
	if (mouse.mkm) {
413
		StopLoading();
415
		EventTabClose(_n);
414
		EventTabClose(_n);
416
	} else {
415
	} else {
417
		EventTabClick(_n);
416
		if (!http.transfer) EventTabClick(_n);
418
	}
417
	}
Line 419... Line 418...
419
}
418
}
420
 
419