Lines Matching full:choice
18 static void print_item(WINDOW * win, int choice, int selected) in print_item() argument
28 wmove(win, choice, 0); in print_item()
32 wmove(win, choice, check_x); in print_item()
39 mvwaddch(win, choice, item_x, list_item[0]); in print_item()
43 wmove(win, choice, check_x + 1); in print_item()
52 static void print_arrows(WINDOW * win, int choice, int item_no, int scroll, in print_arrows() argument
72 if ((height < item_no) && (scroll + choice < item_no - 1)) { in print_arrows()
108 int key = 0, button = 0, choice = 0, scroll = 0, max_choice; in dialog_checklist() local
114 choice = item_n(); in dialog_checklist()
116 choice = item_n(); in dialog_checklist()
175 if (choice >= list_height) { in dialog_checklist()
176 scroll = choice - list_height + 1; in dialog_checklist()
177 choice -= scroll; in dialog_checklist()
183 print_item(list, i, i == choice); in dialog_checklist()
186 print_arrows(dialog, choice, item_count(), scroll, in dialog_checklist()
191 wmove(list, choice, check_x + 1); in dialog_checklist()
206 if (!choice) { in dialog_checklist()
221 print_arrows(dialog, choice, item_count(), in dialog_checklist()
229 i = choice - 1; in dialog_checklist()
231 if (choice == max_choice - 1) { in dialog_checklist()
232 if (scroll + choice >= item_count() - 1) in dialog_checklist()
249 print_arrows(dialog, choice, item_count(), in dialog_checklist()
257 i = choice + 1; in dialog_checklist()
259 if (i != choice) { in dialog_checklist()
261 item_set(scroll + choice); in dialog_checklist()
262 print_item(list, choice, FALSE); in dialog_checklist()
264 choice = i; in dialog_checklist()
265 item_set(scroll + choice); in dialog_checklist()
266 print_item(list, choice, TRUE); in dialog_checklist()
284 item_set(scroll + choice); in dialog_checklist()