• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/contrib/dialog/

Lines Matching refs:choice

78 print_item(WINDOW *win, DIALOG_FORMITEM * item, int scrollamt, bool choice)
107 this_item_attribute = choice
135 print_form(WINDOW *win, DIALOG_FORMITEM * item, int total, int scrollamt, int choice)
141 count += print_item(win, item + n, scrollamt, n == choice);
151 set_choice(DIALOG_FORMITEM item[], int choice, int item_no, bool * noneditable)
157 if (!is_readonly(&item[choice])) {
158 result = choice;
192 is_first_field(DIALOG_FORMITEM item[], int choice)
195 while (choice >= 0) {
196 if (item[choice].text_flen > 0) {
199 --choice;
206 is_last_field(DIALOG_FORMITEM item[], int choice, int item_no)
209 while (choice < item_no) {
210 if (item[choice].text_flen > 0) {
213 ++choice;
227 int *choice,
230 int old_choice = *choice;
236 *choice += stepsize;
237 if (*choice < 0) {
238 *choice = item_no - 1;
240 } else if (*choice >= item_no) {
241 *choice = 0;
244 } while ((*choice != old_choice) && is_readonly(&(item[*choice])));
246 if (item[*choice].text_flen > 0) {
247 int lo = MIN(item[*choice].name_y, item[*choice].text_y);
248 int hi = MAX(item[*choice].name_y, item[*choice].text_y);
250 if (old_choice == *choice)
268 *choice = old_choice;
277 } while (*choice != old_choice);
279 return (old_choice != *choice) || (old_scroll != *scrollamt);
283 * Scroll to the next page, putting the choice at the first editable field
288 scroll_next(WINDOW *win, DIALOG_FORMITEM item[], int stepsize, int *choice, int *scrollamt)
291 int old_choice = *choice;
317 *choice = n;
322 if (old_choice != *choice)
325 *scrollamt = *choice;
331 result = (old_choice != *choice) || (old_scroll != *scrollamt);
505 int choice = dlg_default_formitem(items);
604 choice = set_choice(items, choice, item_no, &non_editable);
605 current = &items[choice];
613 print_form(form, items, item_no, scrollamt, choice);
646 current = &items[choice];
717 if (state == sTEXT && !is_first_field(items, choice)) {
727 if (choice != new_choice) {
728 print_item(form, items + choice, scrollamt, FALSE);
729 choice = new_choice;
762 if (state == sTEXT && !is_last_field(items, choice, item_no)) {
769 if (state == sTEXT && choice) {
770 print_item(form, items + choice, scrollamt, FALSE);
771 choice = 0;
820 print_item(form, items + choice, scrollamt, FALSE);
821 choice = n;
835 new_choice = choice;
838 if (choice != new_choice) {
839 choice = new_choice;
851 if (choice != new_choice) {
852 choice = new_choice;
886 *current_item = choice;
932 int choice = 0;
969 &choice);
977 dlg_add_help_formitem(&result, &help_result, &listitems[choice]);