28 |
#include <ctype.h> |
#include <ctype.h> |
29 |
|
|
30 |
#include "parse.h" |
#include "parse.h" |
|
#include "protocol.h" |
|
31 |
#include "gift.h" |
#include "gift.h" |
32 |
#include "misc.h" |
#include "misc.h" |
33 |
#include "screen.h" |
#include "screen.h" |
36 |
#include "ui_draw.h" |
#include "ui_draw.h" |
37 |
#include "ui_main.h" |
#include "ui_main.h" |
38 |
#include "ui_input.h" |
#include "ui_input.h" |
|
#include "get.h" |
|
39 |
#include "format.h" |
#include "format.h" |
40 |
#include "settings.h" |
#include "settings.h" |
|
#include "protocol.h" |
|
41 |
#include "events.h" |
#include "events.h" |
42 |
#include "giftsrv.h" |
#include "giftsrv.h" |
43 |
|
#include "search.h" |
44 |
|
#include "transfer.h" |
45 |
|
|
46 |
#define HITS ((query*)list_selected(&queries)) |
#define HITS ((query*)list_selected(&queries)) |
47 |
|
|
480 |
} |
} |
481 |
|
|
482 |
if (PRESSED(key) || key == 'd' || key == 'D') { |
if (PRESSED(key) || key == 'd' || key == 'D') { |
483 |
download_hit(h, sh); |
download_start(q->searchobj, h->resultobj); |
484 |
if (tree_flat(q)->sel < tree_flat(q)->num - 1) |
if (tree_flat(q)->sel < tree_flat(q)->num - 1) |
485 |
tree_flat(q)->sel++; |
tree_flat(q)->sel++; |
486 |
main_screen_update_results(); |
main_screen_update_results(); |
904 |
return; |
return; |
905 |
|
|
906 |
if (INSTANCEOF(h, subhit)) |
if (INSTANCEOF(h, subhit)) |
907 |
download_hit(NULL, (subhit *) h); |
h = (hit *) tree_parent(h); |
908 |
|
|
909 |
else |
download_start(q->searchobj, h->resultobj); |
|
download_hit((hit *) h, NULL); |
|
910 |
} |
} |
911 |
|
|
912 |
static void mouse_buttonclick(int rx, int ry, void *data) |
static void mouse_buttonclick(int rx, int ry, void *data) |