Lines Matching refs:choice

31 static void print_item(WINDOW *win, unsigned char *tag, unsigned char *item, int status, int choice, int selected, dialogMenuItem *me, int list_width, int item_x, int check_x);
43 choice, l, k, scroll, max_choice, item_no = 0, *status;
60 choice = scroll = button = 0;
175 print_item(list, items[i * 3], items[i * 3 + 1], status[i], i, i == choice, DREF(ditems, i), list_width, item_x, check_x);
199 wmove(list, choice, check_x+1);
212 print_item(list, items[i * 3], items[i * 3 + 1], status[i], i, i == choice, DREF(ditems, i), list_width, item_x, check_x);
215 wmove(list, choice, check_x+1);
295 wmove(list, choice, check_x+1);
304 if (!choice) {
320 wmove(list, choice, check_x+1);
327 i = choice - 1;
330 if (choice == max_choice - 1) {
331 if (scroll + choice < item_no - 1) {
350 wmove(list, choice, check_x+1);
357 i = choice + 1;
365 if (ditems[scroll + choice].fire) {
370 st = ditems[scroll + choice].fire(&ditems[scroll + choice]); /* Call "fire" action */
382 status[scroll + i], i, i == choice, DREF(ditems, scroll + i), list_width, item_x, check_x);
402 status[scroll + choice] = ditems[scroll + choice].checked ?
403 ditems[scroll + choice].checked(&ditems[scroll + choice]) : FALSE;
404 lbra = ditems[scroll + choice].lbra;
405 rbra = ditems[scroll + choice].rbra;
406 mark = ditems[scroll + choice].mark;
409 status[scroll + choice] = !status[scroll + choice];
410 wmove(list, choice, check_x);
418 wprintw(list, "%c%c%c", lbra, status[scroll + choice] ? mark : ' ', rbra);
424 if (i != choice) {
427 print_item(list, items[(scroll + choice) * 3], items[(scroll + choice) * 3 + 1],
428 status[scroll + choice], choice, FALSE, DREF(ditems, scroll + choice), list_width, item_x, check_x);
431 choice = i;
432 print_item(list, items[(scroll + choice) * 3], items[(scroll + choice) * 3 + 1], status[scroll + choice], choice, TRUE, DREF(ditems, scroll + choice), list_width, item_x, check_x);
433 wmove(list, choice, check_x+1); /* Restore cursor to previous position */
469 choice = 0;
479 choice = max_choice - 1;
598 print_item(list, items[(scroll + i) * 3], items[(scroll + i) * 3 + 1], status[scroll + i], i, i == choice, DREF(ditems, scroll + i), list_width, item_x, check_x);
612 wmove(list, choice, check_x+1);
632 print_item(WINDOW *win, unsigned char *tag, unsigned char *item, int status, int choice, int selected, dialogMenuItem *me, int list_width, int item_x, int check_x)
638 wmove(win, choice, 0);
641 wmove(win, choice, check_x);
652 wmove(win, choice, item_x);