Subversion Repositories Kolibri OS

Rev

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

Rev 7794 Rev 7936
Line 22... Line 22...
22
	collection page_links;
22
	collection page_links;
23
	unsigned int count;
23
	unsigned int count;
24
	unsigned int unic_count;
24
	unsigned int unic_count;
25
	unsigned int active;
25
	unsigned int active;
26
	bool HoverAndProceed();
26
	bool HoverAndProceed();
-
 
27
	bool Click();
27
	void AddLink();
28
	void AddLink();
28
	void AddText();
29
	void AddText();
29
	dword GetURL();
30
	dword GetURL();
30
	void Clear();
31
	void Clear();
31
	void DrawUnderline();
32
	void DrawUnderline();
Line 79... Line 80...
79
	}
80
	}
80
}
81
}
Line 81... Line 82...
81
 
82
 
Line 82... Line 83...
82
PathShow_data status_text = {0, 17,250, 6, 250};
83
PathShow_data status_text = {0, 17,250, 6, 250};
83
 
-
 
84
bool LinksArray::HoverAndProceed(dword mx, my, list_y, list_first)
-
 
85
{
-
 
86
	int i;
-
 
87
	if (!count) return true;
-
 
88
	for (i=0; i
-
 
89
	{
-
 
90
		if (mx>links[i].x) && (my>links[i].y) 
-
 
91
		&& (mx
84
 
92
		&& (my>list_y+list_first)
85
bool LinksArray::Click(dword list_first)
93
		{
86
{
94
			if (mouse.lkm) && (mouse.down) {
87
	if (mouse.lkm) && (mouse.down) {
95
				DrawRectangle(links[active].x, -list_first + links[active].y, 
88
		DrawRectangle(links[active].x, -list_first + links[active].y, 
Line 115... Line 108...
115
			}
108
	}
116
			if (mouse.pkm) && (mouse.up) { 
109
	if (mouse.pkm) && (mouse.up) { 
117
				EventShowLinkMenu();
110
		EventShowLinkMenu();
118
				return false;
111
		return false;
119
			}
112
	}
-
 
113
}
-
 
114
 
-
 
115
bool LinksArray::HoverAndProceed(dword mx, my, list_y, list_first)
-
 
116
{
-
 
117
	int i;
120
			if (active==i) return false;
118
	if (!count) return true;
-
 
119
	for (i=0; i
-
 
120
	{
-
 
121
		if (mx>links[i].x) && (my>links[i].y) 
-
 
122
		&& (mx
-
 
123
		&& (my>list_y+list_first)
-
 
124
		{
-
 
125
			if (active!=i) {
121
			CursorPointer.Load(#CursorFile);
126
				CursorPointer.Load(#CursorFile);
122
			CursorPointer.Set();
127
				CursorPointer.Set();
Line 123... Line 128...
123
 
128
 
124
			if (links[active].underline) {
129
				if (links[active].underline) {
Line 129... Line 134...
129
				DrawUnderline(i, list_first, list_y, page_bg);
134
					DrawUnderline(i, list_first, list_y, page_bg);
130
			}
135
				}
Line 131... Line 136...
131
 
136
 
132
			active = i;
137
				active = i;
-
 
138
				DrawStatusBar(links[active].link);
-
 
139
			}
133
			DrawStatusBar(links[active].link);
140
			Click(list_first);
134
			return true;
141
			return true;
135
		}
142
		}
136
	}
143
	}
137
	if (active!=-1)
144
	if (active!=-1)