Rev 9289 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 9289 | Rev 9296 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | CustomCursor CursorPointer; |
1 | CustomCursor CursorPointer; |
2 | dword CursorFile = FROM "TWB/pointer.cur"; |
2 | dword CursorFile = FROM "TWB/pointer.cur"; |
3 | #include "..\lib\collection.h" |
3 | #include "..\lib\collection.h" |
Line 4... | Line 4... | ||
4 | 4 | ||
5 | struct PAGE_LINKS { |
5 | struct PAGE_LINKS { |
6 | collection link; |
6 | collection unic_links; |
Line 7... | Line 7... | ||
7 | collection page_links; |
7 | collection element_links; |
8 | 8 | ||
9 | collection_int x; |
9 | collection_int x; |
10 | collection_int y; |
10 | collection_int y; |
Line 22... | Line 22... | ||
22 | void draw_underline(); |
22 | void draw_underline(); |
23 | } links; |
23 | } links; |
Line 24... | Line 24... | ||
24 | 24 | ||
25 | void PAGE_LINKS::add_link(dword lpath) |
25 | void PAGE_LINKS::add_link(dword lpath) |
26 | { |
26 | { |
27 | page_links.add(lpath); |
27 | unic_links.add(lpath); |
Line 28... | Line 28... | ||
28 | } |
28 | } |
29 | 29 | ||
30 | void PAGE_LINKS::add_text(dword _x, _y, _w, _h, _underline_h) |
30 | void PAGE_LINKS::add_text(dword _x, _y, _w, _h, _underline_h) |
31 | { |
31 | { |
32 | x.add(_x); |
32 | x.add(_x); |
33 | y.add(_y); |
33 | y.add(_y); |
34 | w.add(_w); |
34 | w.add(_w); |
35 | h.add(_h); |
35 | h.add(_h); |
36 | underline_h.add(_underline_h); |
36 | underline_h.add(_underline_h); |
37 | link.add(page_links.get_last()); |
37 | element_links.add(unic_links.get_last()); |
Line 38... | Line 38... | ||
38 | id.add(page_links.count); |
38 | id.add(unic_links.count); |
39 | } |
39 | } |
40 | 40 | ||
41 | void PAGE_LINKS::clear() |
41 | void PAGE_LINKS::clear() |
42 | { |
42 | { |
43 | x.drop(); |
43 | x.drop(); |
44 | y.drop(); |
44 | y.drop(); |
- | 45 | w.drop(); |
|
45 | w.drop(); |
46 | h.drop(); |
46 | h.drop(); |
47 | underline_h.drop(); |
Line 47... | Line -... | ||
47 | underline_h.drop(); |
- | |
48 | link.drop(); |
- | |
49 | id.drop(); |
48 | element_links.drop(); |
50 | 49 | unic_links.drop(); |
|
51 | page_links.drop(); |
50 | id.drop(); |
52 | page_links.realloc_size = 4096 * 32; |
51 | |
Line 88... | Line 87... | ||
88 | CursorPointer.Set(); |
87 | CursorPointer.Set(); |
Line 89... | Line 88... | ||
89 | 88 | ||
90 | draw_underline(active, list_first, list_y, link_color_default); |
89 | draw_underline(active, list_first, list_y, link_color_default); |
Line 91... | Line 90... | ||
91 | draw_underline(i, list_first, list_y, DEFAULT_BG_COL); |
90 | draw_underline(i, list_first, list_y, DEFAULT_BG_COL); |
92 | 91 | ||
93 | active_url = link.get(i); |
92 | active_url = element_links.get(i); |
94 | active = i; |
93 | active = i; |
95 | DrawStatusBar(active_url); |
94 | DrawStatusBar(active_url); |
96 | } |
95 | } |