| 24 |
#include "log.h" |
#include "log.h" |
| 25 |
#include "login.h" |
#include "login.h" |
| 26 |
#include "menu.h" |
#include "menu.h" |
| 27 |
|
#include "menu_proc.h" |
| 28 |
#include "section_list_display.h" |
#include "section_list_display.h" |
| 29 |
#include "section_list_loader.h" |
#include "section_list_loader.h" |
| 30 |
#include "screen.h" |
#include "screen.h" |
| 53 |
LAST_TOPIC_ARTICLE, |
LAST_TOPIC_ARTICLE, |
| 54 |
SCAN_NEW_ARTICLE, |
SCAN_NEW_ARTICLE, |
| 55 |
VIEW_EX_DIR, |
VIEW_EX_DIR, |
| 56 |
|
SHOW_TOP10, |
| 57 |
}; |
}; |
| 58 |
|
|
| 59 |
static int section_list_draw_items(int page_id, ARTICLE *p_articles[], int article_count, int display_nickname, int ontop_start_offset) |
static int section_list_draw_items(int page_id, ARTICLE *p_articles[], int article_count, int display_nickname, int ontop_start_offset) |
| 366 |
return SHOW_HELP; |
return SHOW_HELP; |
| 367 |
case 'x': |
case 'x': |
| 368 |
return VIEW_EX_DIR; |
return VIEW_EX_DIR; |
| 369 |
|
case Ctrl('H'): |
| 370 |
|
return SHOW_TOP10; |
| 371 |
default: |
default: |
| 372 |
} |
} |
| 373 |
|
|
| 797 |
|
|
| 798 |
// Update current topic |
// Update current topic |
| 799 |
section_topic_view_tid = (p_articles[selected_index]->tid == 0 ? p_articles[selected_index]->aid : p_articles[selected_index]->tid); |
section_topic_view_tid = (p_articles[selected_index]->tid == 0 ? p_articles[selected_index]->aid : p_articles[selected_index]->tid); |
|
log_error("topic_view_tid=%d\n", section_topic_view_tid); |
|
| 800 |
|
|
| 801 |
// Update current aid location |
// Update current aid location |
| 802 |
section_aid_locations[section_index] = p_articles[selected_index]->aid; |
section_aid_locations[section_index] = p_articles[selected_index]->aid; |
| 968 |
if (section_list_draw_screen(sname, stitle, master_list, display_nickname) < 0) |
if (section_list_draw_screen(sname, stitle, master_list, display_nickname) < 0) |
| 969 |
{ |
{ |
| 970 |
log_error("section_list_draw_screen() error\n"); |
log_error("section_list_draw_screen() error\n"); |
| 971 |
|
return -2; |
| 972 |
|
} |
| 973 |
|
break; |
| 974 |
|
case SHOW_TOP10: |
| 975 |
|
show_top10_menu(NULL); |
| 976 |
|
if (section_list_draw_screen(sname, stitle, master_list, display_nickname) < 0) |
| 977 |
|
{ |
| 978 |
|
log_error("section_list_draw_screen() error\n"); |
| 979 |
return -2; |
return -2; |
| 980 |
} |
} |
| 981 |
break; |
break; |