Lines Matching full:choice

49  * Print list item.  The 'selected' parameter is true if 'choice' is the
57 int choice, in print_item() argument
71 (void) wmove(win, choice, 0); in print_item()
75 (void) wmove(win, choice, data->check_x); in print_item()
85 (void) wmove(win, choice, data->item_x + INDENT * i); in print_item()
90 (void) wmove(win, choice, data->item_x + INDENT * depths); in print_item()
102 int choice, in print_list() argument
116 i, i == choice); in print_list()
136 check_hotkey(DIALOG_LISTITEM * items, int choice) in check_hotkey() argument
142 ? items[choice].text in check_hotkey()
143 : items[choice].name))) { in check_hotkey()
201 int choice = dlg_default_listitem(items); in dlg_treeview() local
337 /* ensure we are scrolled to show the current choice */ in dlg_treeview()
338 if (choice >= (max_choice + scrollamt)) { in dlg_treeview()
339 scrollamt = choice - max_choice + 1; in dlg_treeview()
340 choice = max_choice - 1; in dlg_treeview()
353 print_list(&all, choice, scrollamt, max_choice); in dlg_treeview()
363 wmove(dialog, box_y + choice + 1, box_x + all.check_x + 2); in dlg_treeview()
378 choice = (key - KEY_MAX); in dlg_treeview()
379 print_list(&all, choice, scrollamt, max_choice); in dlg_treeview()
395 int current = scrollamt + choice; in dlg_treeview()
415 print_list(&all, choice, scrollamt, max_choice); in dlg_treeview()
427 for (j = scrollamt + choice + 1; j < item_no; j++) { in dlg_treeview()
435 for (j = 0; j <= scrollamt + choice; j++) { in dlg_treeview()
475 if (choice) in dlg_treeview()
483 i = MIN(choice + max_choice, item_no - scrollamt - 1); in dlg_treeview()
486 i = choice - 1; in dlg_treeview()
487 if (choice == 0 && scrollamt == 0) in dlg_treeview()
491 i = choice + 1; in dlg_treeview()
492 if (scrollamt + choice >= item_no - 1) in dlg_treeview()
503 if (i != choice) { in dlg_treeview()
507 choice = 0; in dlg_treeview()
509 choice = max_choice - 1; in dlg_treeview()
512 print_list(&all, choice, scrollamt, max_choice); in dlg_treeview()
514 choice = i; in dlg_treeview()
515 print_list(&all, choice, scrollamt, max_choice); in dlg_treeview()
566 *current_item = (scrollamt + choice); in dlg_treeview()