Lines Matching refs:choice
31 static void print_item(WINDOW * win, int choice, int selected) in print_item() argument
37 wmove(win, choice, 0); in print_item()
41 wmove(win, choice, check_x); in print_item()
47 mvwaddch(win, choice, item_x, item_str()[0]); in print_item()
51 wmove(win, choice, check_x + 1); in print_item()
59 static void print_arrows(WINDOW * win, int choice, int item_no, int scroll, in print_arrows() argument
79 if ((height < item_no) && (scroll + choice < item_no - 1)) { in print_arrows()
115 int key = 0, button = 0, choice = 0, scroll = 0, max_choice; in dialog_checklist() local
121 choice = item_n(); in dialog_checklist()
123 choice = item_n(); in dialog_checklist()
181 if (choice >= list_height) { in dialog_checklist()
182 scroll = choice - list_height + 1; in dialog_checklist()
183 choice -= scroll; in dialog_checklist()
189 print_item(list, i, i == choice); in dialog_checklist()
192 print_arrows(dialog, choice, item_count(), scroll, in dialog_checklist()
213 if (!choice) { in dialog_checklist()
228 print_arrows(dialog, choice, item_count(), in dialog_checklist()
236 i = choice - 1; in dialog_checklist()
238 if (choice == max_choice - 1) { in dialog_checklist()
239 if (scroll + choice >= item_count() - 1) in dialog_checklist()
256 print_arrows(dialog, choice, item_count(), in dialog_checklist()
264 i = choice + 1; in dialog_checklist()
266 if (i != choice) { in dialog_checklist()
268 item_set(scroll + choice); in dialog_checklist()
269 print_item(list, choice, FALSE); in dialog_checklist()
271 choice = i; in dialog_checklist()
272 item_set(scroll + choice); in dialog_checklist()
273 print_item(list, choice, TRUE); in dialog_checklist()
291 item_set(scroll + choice); in dialog_checklist()