Subversion Repositories Kolibri OS

Rev

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

Rev 7770 Rev 7771
Line 5... Line 5...
5
#define NOLINE    0
5
#define NOLINE    0
6
#define UNDERLINE 1
6
#define UNDERLINE 1
Line 7... Line 7...
7
 
7
 
Line -... Line 8...
-
 
8
#define MAXLINKS 2000
-
 
9
 
-
 
10
bool open_new_window=false;
8
#define MAXLINKS 2000
11
bool open_new_tab=false;
9
 
12
 
10
struct array_link {
13
struct array_link {
11
	dword link;
14
	dword link;
12
	unsigned int x,y,w,h;
15
	unsigned int x,y,w,h;
Line 52... Line 55...
52
dword LinksArray::GetURL(int id)
55
dword LinksArray::GetURL(int id)
53
{
56
{
54
	return links[id].link;
57
	return links[id].link;
55
}
58
}
Line 56... Line -...
56
 
-
 
57
bool open_new_window=false;
59
 
58
void LinksArray::Clear()
60
void LinksArray::Clear()
59
{
61
{
60
	page_links.drop();
62
	page_links.drop();
61
	page_links.realloc_size = 4096 * 32;
63
	page_links.realloc_size = 4096 * 32;
Line 93... Line 95...
93
				DrawRectangle(links[active].x, -list_first + links[active].y, 
95
				DrawRectangle(links[active].x, -list_first + links[active].y, 
94
				links[active].w, links[active].h, 0);
96
				links[active].w, links[active].h, 0);
95
				return false;
97
				return false;
96
			}
98
			}
97
			if (mouse.mkm) && (mouse.up) {
99
			if (mouse.mkm) && (mouse.up) {
-
 
100
				if (key_modifier&KEY_LSHIFT) || (key_modifier&KEY_RSHIFT) {
98
				open_new_window = true;
101
					open_new_window = true;
99
				EventClickLink(PageLinks.GetURL(PageLinks.active));
102
					EventClickLink(PageLinks.GetURL(PageLinks.active));
100
				open_new_window = false;
103
					open_new_window = false;
-
 
104
				} else {
-
 
105
					open_new_tab = true;
-
 
106
					EventClickLink(PageLinks.GetURL(PageLinks.active));
-
 
107
					open_new_tab = false;
-
 
108
				}
101
				return false;
109
				return false;
102
			}
110
			}
103
			if (mouse.lkm) && (mouse.up) { 
111
			if (mouse.lkm) && (mouse.up) { 
104
				CursorPointer.Restore();
112
				CursorPointer.Restore();
105
				EventClickLink(PageLinks.GetURL(PageLinks.active));
113
				EventClickLink(PageLinks.GetURL(PageLinks.active));