Lines Matching refs:choice
31 static void print_item(WINDOW * win, int choice, int selected) in print_item() argument
41 wmove(win, choice, 0); in print_item()
45 wmove(win, choice, check_x); in print_item()
52 mvwaddch(win, choice, item_x, list_item[0]); in print_item()
56 wmove(win, choice, check_x + 1); in print_item()
65 static void print_arrows(WINDOW * win, int choice, int item_no, int scroll, in print_arrows() argument
85 if ((height < item_no) && (scroll + choice < item_no - 1)) { in print_arrows()
121 int key = 0, button = 0, choice = 0, scroll = 0, max_choice; in dialog_checklist() local
127 choice = item_n(); in dialog_checklist()
129 choice = item_n(); in dialog_checklist()
188 if (choice >= list_height) { in dialog_checklist()
189 scroll = choice - list_height + 1; in dialog_checklist()
190 choice -= scroll; in dialog_checklist()
196 print_item(list, i, i == choice); in dialog_checklist()
199 print_arrows(dialog, choice, item_count(), scroll, in dialog_checklist()
220 if (!choice) { in dialog_checklist()
235 print_arrows(dialog, choice, item_count(), in dialog_checklist()
243 i = choice - 1; in dialog_checklist()
245 if (choice == max_choice - 1) { in dialog_checklist()
246 if (scroll + choice >= item_count() - 1) in dialog_checklist()
263 print_arrows(dialog, choice, item_count(), in dialog_checklist()
271 i = choice + 1; in dialog_checklist()
273 if (i != choice) { in dialog_checklist()
275 item_set(scroll + choice); in dialog_checklist()
276 print_item(list, choice, FALSE); in dialog_checklist()
278 choice = i; in dialog_checklist()
279 item_set(scroll + choice); in dialog_checklist()
280 print_item(list, choice, TRUE); in dialog_checklist()
298 item_set(scroll + choice); in dialog_checklist()