Lines Matching defs:fields

59 	0, /* number of fields attached */
63 NULL, /* dynamic array of fields that start
66 NULL /* array of fields attached to this form. */
143 if ((form->fields == NULL) || (form->fields[0] == NULL))
150 temp = form->fields[i]->form_row + form->fields[i]->rows;
152 temp = form->fields[i]->form_col + form->fields[i]->cols;
299 * Attach the given fields to the form.
302 set_form_fields(FORM *form, FIELD **fields)
312 if (fields == NULL)
315 while (fields[num_fields] != NULL) {
316 if ((fields[num_fields]->parent != NULL) &&
317 (fields[num_fields]->parent != form))
322 /* disconnect old fields, if any */
323 if (form->fields != NULL) {
325 form->fields[i]->parent = NULL;
326 form->fields[i]->index = -1;
336 /* now connect the new fields to the form */
338 fields[i]->parent = form;
339 fields[i]->index = i;
341 if (fields[i]->page_break == 1)
343 fields[i]->page = maxpg;
346 form->fields = fields;
352 /* sort the fields and set the navigation pointers */
360 * Return the fields attached to the form given.
368 return form->fields;
372 * Return the number of fields attached to the given form.
476 if (form->fields == NULL)
479 return form->fields[form->cur_field];
483 * Allocate a new form with the given fields.
486 new_form(FIELD **fields)
500 if (fields != NULL) { /* attach the fields, if any */
501 if (set_form_fields(new, fields) < 0) {
525 /* detach all the fields from the form */
526 form->fields[i]->parent = NULL;
527 form->fields[i]->index = -1;
543 if ((form == NULL) || (form->fields == NULL)
544 || (form->fields[0] == NULL))
547 cur = form->fields[form->cur_field];
564 if ((form == NULL) || (form->fields == NULL)
565 || (form->fields[0] == NULL))
568 cur = form->fields[form->cur_field];
585 if ((form == NULL) || (form->fields == NULL) ||
586 (form->fields[0] == NULL))
592 cur = form->fields[form->cur_field];