Rev 6059 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 6059 | Rev 6152 | ||
---|---|---|---|
Line 57... | Line 57... | ||
57 | edit_box address_box = {250,56,34,0xffffff,0x94AECE,0xffffff,0xffffff,0,UML,#address,#mouse_address_box,2,19,19}; |
57 | edit_box address_box = {250,56,34,0xffffff,0x94AECE,0xffffff,0xffffff,0,UML,#address,#mouse_address_box,2,19,19}; |
Line 58... | Line 58... | ||
58 | 58 | ||
59 | CustomCursor CursorPointer; |
59 | CustomCursor CursorPointer; |
Line -... | Line 60... | ||
- | 60 | dword CursorFile = FROM "pointer.cur"; |
|
60 | dword CursorFile = FROM "pointer.cur"; |
61 | |
61 | 62 | #include "favicon.h" |
|
62 | #include "ini.h" |
63 | #include "ini.h" |
63 | #include "gui.h" |
64 | #include "gui.h" |
64 | #include "label.h" |
65 | #include "label.h" |
Line 241... | Line 242... | ||
241 | } |
242 | } |
Line 242... | Line 243... | ||
242 | 243 | ||
243 | void EventOpenAddress(dword _new_address) |
244 | void EventOpenAddress(dword _new_address) |
244 | { |
245 | { |
- | 246 | char temp[UML]; |
|
245 | char temp[UML]; |
247 | char favicon_address[UML]; |
246 | if (!ESBYTE[_new_address]) return; |
248 | if (!ESBYTE[_new_address]) return; |
247 | debugln("===================================="); |
249 | debugln("===================================="); |
248 | debug("address: "); |
250 | debug("address: "); |
249 | debugln(_new_address); |
251 | debugln(_new_address); |
Line 259... | Line 261... | ||
259 | So we need to detect what incoming address is |
261 | So we need to detect what incoming address is |
260 | and then halndle it in the propper way. |
262 | and then halndle it in the propper way. |
261 | */ |
263 | */ |
Line 262... | Line 264... | ||
262 | 264 | ||
- | 265 | io.buffer_data = 0; |
|
Line 263... | Line 266... | ||
263 | io.buffer_data = 0; |
266 | favicon.get(NULL); |
264 | 267 | ||
265 | // - build in page |
268 | // - build in page |
266 | if (!strncmp(#address,"aelia:",6)) { |
269 | if (!strncmp(#address,"aelia:",6)) { |
Line 295... | Line 298... | ||
295 | DrawProgress(STEP_2_COUNT_PAGE_HEIGHT-STEP_1_DOWNLOAD_PAGE/2); |
298 | DrawProgress(STEP_2_COUNT_PAGE_HEIGHT-STEP_1_DOWNLOAD_PAGE/2); |
296 | } |
299 | } |
297 | strcpy(#address,downloader.url); |
300 | strcpy(#address,downloader.url); |
298 | DrawAddressBox(); |
301 | DrawAddressBox(); |
299 | io.buffer_data = downloader.bufpointer; |
302 | io.buffer_data = downloader.bufpointer; |
- | 303 | get_absolute_url(#favicon_address, #address, "/favicon.ico"); |
|
- | 304 | favicon.get(#favicon_address); |
|
300 | } |
305 | } |
301 | } |
306 | } |
Line 302... | Line 307... | ||
302 | 307 | ||
303 | if (!io.buffer_data) { |
308 | if (!io.buffer_data) { |
304 | debugln("page not found"); |
309 | debugln("page not found"); |
305 | io.buffer_data = #buidin_page_not_found; |
310 | io.buffer_data = #buidin_page_not_found; |
Line 306... | Line 311... | ||
306 | } |
311 | } |
- | 312 | ||
Line 307... | Line 313... | ||
307 | 313 | history.add(#address); |
|
308 | history.add(#address); |
314 | favicon.draw(address_box.left-18, address_box.top-1); |
309 | 315 | ||
310 | /* |
316 | /* |
Line 436... | Line 442... | ||
436 | DrawScroller(); |
442 | DrawScroller(); |
437 | } |
443 | } |
Line 438... | Line 444... | ||
438 | 444 | ||
439 | void DrawAddressBox() |
445 | void DrawAddressBox() |
440 | { |
446 | { |
441 | address_box.left = 97; |
447 | address_box.left = 97+19; |
442 | address_box.top = 11; |
448 | address_box.top = 11; |
443 | address_box.width = Form.cwidth - address_box.left - 138; |
449 | address_box.width = Form.cwidth - address_box.left - 138; |
444 | DrawRectangle(address_box.left-4, address_box.top-5, address_box.width+6, 23, 0x8C8C8C); |
450 | DrawRectangle(address_box.left-4-19, address_box.top-5, address_box.width+6+19, 23, 0x8C8C8C); |
445 | DrawWideRectangle(address_box.left-3, address_box.top-3, address_box.width+5, 21, 4, address_box.color); |
451 | DrawWideRectangle(address_box.left-3-19, address_box.top-3, address_box.width+5+19, 21, 4, address_box.color); |
446 | address_box.size = address_box.pos = address_box.shift = address_box.shift_old = strlen(#address); |
452 | address_box.size = address_box.pos = address_box.shift = address_box.shift_old = strlen(#address); |
447 | address_box.offset = 0; |
453 | address_box.offset = 0; |
- | 454 | edit_box_draw stdcall(#address_box); |
|
- | 455 | favicon.draw(address_box.left-18, address_box.top-1); |
|
448 | edit_box_draw stdcall(#address_box); |
456 | DrawBar(address_box.left-2, address_box.top+1, 2, 13, 0xFFFfff); |
449 | }>>--->><>20)> |
457 | }>>--->><>20)> |