Lines Matching refs:choice
19 static void print_item(WINDOW * win, int choice, int selected) in print_item() argument
29 wmove(win, choice, 0); in print_item()
33 wmove(win, choice, check_x); in print_item()
40 mvwaddch(win, choice, item_x, list_item[0]); in print_item()
44 wmove(win, choice, check_x + 1); in print_item()
53 static void print_arrows(WINDOW * win, int choice, int item_no, int scroll, in print_arrows() argument
73 if ((height < item_no) && (scroll + choice < item_no - 1)) { in print_arrows()
109 int key = 0, button = 0, choice = 0, scroll = 0, max_choice; in dialog_checklist() local
115 choice = item_n(); in dialog_checklist()
117 choice = item_n(); in dialog_checklist()
176 if (choice >= list_height) { in dialog_checklist()
177 scroll = choice - list_height + 1; in dialog_checklist()
178 choice -= scroll; in dialog_checklist()
184 print_item(list, i, i == choice); in dialog_checklist()
187 print_arrows(dialog, choice, item_count(), scroll, in dialog_checklist()
208 if (!choice) { in dialog_checklist()
223 print_arrows(dialog, choice, item_count(), in dialog_checklist()
231 i = choice - 1; in dialog_checklist()
233 if (choice == max_choice - 1) { in dialog_checklist()
234 if (scroll + choice >= item_count() - 1) in dialog_checklist()
251 print_arrows(dialog, choice, item_count(), in dialog_checklist()
259 i = choice + 1; in dialog_checklist()
261 if (i != choice) { in dialog_checklist()
263 item_set(scroll + choice); in dialog_checklist()
264 print_item(list, choice, FALSE); in dialog_checklist()
266 choice = i; in dialog_checklist()
267 item_set(scroll + choice); in dialog_checklist()
268 print_item(list, choice, TRUE); in dialog_checklist()
286 item_set(scroll + choice); in dialog_checklist()