Lines Matching full:choice

78 print_item(WINDOW *win, DIALOG_FORMITEM * item, int scrollamt, bool choice)  in print_item()  argument
107 this_item_attribute = choice in print_item()
135 print_form(WINDOW *win, DIALOG_FORMITEM * item, int total, int scrollamt, int choice) in print_form() argument
141 count += print_item(win, item + n, scrollamt, n == choice); in print_form()
151 set_choice(DIALOG_FORMITEM item[], int choice, int item_no, bool * noneditable) in set_choice() argument
156 if (!is_readonly(&item[choice])) { in set_choice()
157 result = choice; in set_choice()
193 is_first_field(DIALOG_FORMITEM item[], int choice) in is_first_field() argument
196 while (choice >= 0) { in is_first_field()
197 if (item[choice].text_flen > 0) { in is_first_field()
200 --choice; in is_first_field()
207 is_last_field(DIALOG_FORMITEM item[], int choice, int item_no) in is_last_field() argument
210 while (choice < item_no) { in is_last_field()
211 if (item[choice].text_flen > 0) { in is_last_field()
214 ++choice; in is_last_field()
228 int *choice, in tab_next() argument
231 int old_choice = *choice; in tab_next()
237 *choice += stepsize; in tab_next()
238 if (*choice < 0) { in tab_next()
239 *choice = item_no - 1; in tab_next()
241 } else if (*choice >= item_no) { in tab_next()
242 *choice = 0; in tab_next()
245 } while ((*choice != old_choice) && is_readonly(&(item[*choice]))); in tab_next()
247 if (item[*choice].text_flen > 0) { in tab_next()
248 int lo = MIN(item[*choice].name_y, item[*choice].text_y); in tab_next()
249 int hi = MAX(item[*choice].name_y, item[*choice].text_y); in tab_next()
251 if (old_choice == *choice) in tab_next()
269 *choice = old_choice; in tab_next()
278 } while (*choice != old_choice); in tab_next()
280 return (old_choice != *choice) || (old_scroll != *scrollamt); in tab_next()
284 * Scroll to the next page, putting the choice at the first editable field
289 scroll_next(WINDOW *win, DIALOG_FORMITEM item[], int stepsize, int *choice, int *scrollamt) in scroll_next() argument
292 int old_choice = *choice; in scroll_next()
319 *choice = n; in scroll_next()
324 if (old_choice != *choice) in scroll_next()
327 *scrollamt = *choice; in scroll_next()
333 result = (old_choice != *choice) || (old_scroll != *scrollamt); in scroll_next()
505 int choice = dlg_default_formitem(items); in dlg_form() local
604 choice = set_choice(items, choice, item_no, &non_editable); in dlg_form()
605 current = &items[choice]; in dlg_form()
614 print_form(form, items, item_no, scrollamt, choice); in dlg_form()
647 current = &items[choice]; in dlg_form()
723 if (state == sTEXT && !is_first_field(items, choice)) { in dlg_form()
733 if (choice != new_choice) { in dlg_form()
734 print_item(form, items + choice, scrollamt, FALSE); in dlg_form()
735 choice = new_choice; in dlg_form()
768 if (state == sTEXT && !is_last_field(items, choice, item_no)) { in dlg_form()
775 if (state == sTEXT && choice) { in dlg_form()
776 print_item(form, items + choice, scrollamt, FALSE); in dlg_form()
777 choice = 0; in dlg_form()
824 print_item(form, items + choice, scrollamt, FALSE); in dlg_form()
825 choice = n; in dlg_form()
839 new_choice = choice; in dlg_form()
842 if (choice != new_choice) { in dlg_form()
843 choice = new_choice; in dlg_form()
855 if (choice != new_choice) { in dlg_form()
856 choice = new_choice; in dlg_form()
890 *current_item = choice; in dlg_form()
936 int choice = 0; in dialog_form() local
973 &choice); in dialog_form()
981 dlg_add_help_formitem(&result, &help_result, &listitems[choice]); in dialog_form()