Lines Matching refs:choice

31 static void print_item(WINDOW * win, const char *item, int status, int choice,  in print_item()  argument
38 wmove(win, choice, 0); in print_item()
42 wmove(win, choice, check_x); in print_item()
47 mvwaddch(win, choice, item_x, item[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()
116 int key = 0, button = 0, choice = 0, scroll = 0, max_choice, *status; in dialog_checklist() local
130 if ((!choice && status[i]) in dialog_checklist()
132 choice = i + 1; in dialog_checklist()
134 if (choice) in dialog_checklist()
135 choice--; in dialog_checklist()
183 if (choice >= list_height) { in dialog_checklist()
184 scroll = choice - list_height + 1; in dialog_checklist()
185 choice -= scroll; in dialog_checklist()
191 status[i + scroll], i, i == choice); in dialog_checklist()
194 print_arrows(dialog, choice, item_no, scroll, in dialog_checklist()
214 if (!choice) { in dialog_checklist()
228 print_arrows(dialog, choice, item_no, in dialog_checklist()
236 i = choice - 1; in dialog_checklist()
238 if (choice == max_choice - 1) { in dialog_checklist()
239 if (scroll + choice >= item_no - 1) in dialog_checklist()
255 print_arrows(dialog, choice, item_no, in dialog_checklist()
263 i = choice + 1; in dialog_checklist()
265 if (i != choice) { in dialog_checklist()
267 print_item(list, items[(scroll + choice) * 3 + 1], in dialog_checklist()
268 status[scroll + choice], choice, FALSE); in dialog_checklist()
270 choice = i; in dialog_checklist()
271 print_item(list, items[(scroll + choice) * 3 + 1], in dialog_checklist()
272 status[scroll + choice], choice, TRUE); in dialog_checklist()
282 fprintf(stderr, "%s", items[(scroll + choice) * 3]); in dialog_checklist()
300 if (!status[scroll + choice]) { in dialog_checklist()
303 status[scroll + choice] = 1; in dialog_checklist()
306 status[scroll + i], i, i == choice); in dialog_checklist()
315 fprintf(stderr, "%s", items[(scroll + choice) * 3]); in dialog_checklist()