Lines Matching full:choice
52 * Print list item. The 'selected' parameter is true if 'choice' is the
60 int choice, in print_item() argument
74 (void) wmove(win, choice, 0); in print_item()
78 (void) wmove(win, choice, data->check_x); in print_item()
91 (void) wmove(win, choice, data->item_x); in print_item()
101 print_list(ALL_DATA * data, int choice, int scrollamt, int max_choice) in print_list() argument
112 i, i == choice); in print_list()
132 check_hotkey(DIALOG_LISTITEM * items, int choice) in check_hotkey() argument
138 ? items[choice].text in check_hotkey()
139 : items[choice].name))) { in check_hotkey()
197 int choice = dlg_default_listitem(items); in dlg_checklist() local
364 /* ensure we are scrolled to show the current choice */ in dlg_checklist()
366 if (choice >= (max_choice + scrollamt - 1)) { in dlg_checklist()
367 scrollamt = MAX(0, choice - max_choice + 1); in dlg_checklist()
368 choice = max_choice - 1; in dlg_checklist()
370 print_list(&all, choice, scrollamt, max_choice); in dlg_checklist()
385 wmove(dialog, all.box_y + choice + 1, all.box_x + all.check_x + 2); in dlg_checklist()
401 choice = (key - KEY_MAX); in dlg_checklist()
402 print_list(&all, choice, scrollamt, max_choice); in dlg_checklist()
420 int current = scrollamt + choice; in dlg_checklist()
430 &items[scrollamt + choice], in dlg_checklist()
432 choice, TRUE); in dlg_checklist()
447 choice, TRUE); in dlg_checklist()
452 print_list(&all, choice, scrollamt, max_choice); in dlg_checklist()
466 for (j = scrollamt + choice + 1; j < item_no; j++) { in dlg_checklist()
474 for (j = 0; j <= scrollamt + choice; j++) { in dlg_checklist()
514 if (choice) in dlg_checklist()
522 i = MIN(choice + max_choice, item_no - scrollamt - 1); in dlg_checklist()
525 i = choice - 1; in dlg_checklist()
526 if (choice == 0 && scrollamt == 0) in dlg_checklist()
530 i = choice + 1; in dlg_checklist()
531 if (scrollamt + choice >= item_no - 1) in dlg_checklist()
542 if (i != choice) { in dlg_checklist()
547 choice = 0; in dlg_checklist()
549 choice = max_choice - 1; in dlg_checklist()
552 print_list(&all, choice, scrollamt, max_choice); in dlg_checklist()
554 choice = i; in dlg_checklist()
555 print_list(&all, choice, scrollamt, max_choice); in dlg_checklist()
607 *current_item = (scrollamt + choice); in dlg_checklist()