Lines Matching defs:FIELD
39 /* Define the types of field justification that can be used. */
56 /* field options */
57 #define O_VISIBLE (0x001) /* Field is visible */
58 #define O_ACTIVE (0x002) /* Field is active in the form */
59 #define O_PUBLIC (0x004) /* The contents entered into the field is echoed */
60 #define O_EDIT (0x008) /* Can edit the field */
61 #define O_WRAP (0x010) /* The field contents can line wrap */
62 #define O_BLANK (0x020) /* Blank the field on modification */
63 #define O_AUTOSKIP (0x040) /* Skip to next field when current is full */
64 #define O_NULLOK (0x080) /* Field is allowed to contain no data */
65 #define O_STATIC (0x100) /* Field is not dynamic */
66 #define O_PASSOK (0x200) /* An umodified field is OK */
82 #define REQ_NEXT_FIELD (KEY_MAX + 0x105) /* move to the next field */
83 #define REQ_PREV_FIELD (KEY_MAX + 0x106) /* move to the previous field */
84 #define REQ_FIRST_FIELD (KEY_MAX + 0x107) /* goto the first field */
85 #define REQ_LAST_FIELD (KEY_MAX + 0x108) /* goto the last field */
87 #define REQ_SNEXT_FIELD (KEY_MAX + 0x109) /* move to the next field
89 #define REQ_SPREV_FIELD (KEY_MAX + 0x10a) /* move to the prev field
92 sorted field */
94 field */
96 #define REQ_LEFT_FIELD (KEY_MAX + 0x10d) /* go left one field */
97 #define REQ_RIGHT_FIELD (KEY_MAX + 0x10e) /* go right one field */
98 #define REQ_UP_FIELD (KEY_MAX + 0x10f) /* go up one field */
99 #define REQ_DOWN_FIELD (KEY_MAX + 0x110) /* go down one field */
102 in field */
104 char in field */
106 the field */
108 in the field */
110 the field */
112 in the field */
114 the field */
115 #define REQ_END_FIELD (KEY_MAX + 0x118) /* go to the end of the field */
120 #define REQ_LEFT_CHAR (KEY_MAX + 0x11b) /* move left in the field */
121 #define REQ_RIGHT_CHAR (KEY_MAX + 0x11c) /* move right in the field */
122 #define REQ_UP_CHAR (KEY_MAX + 0x11d) /* move up in the field */
123 #define REQ_DOWN_CHAR (KEY_MAX + 0x11e) /* move down in the field */
137 #define REQ_CLR_EOF (KEY_MAX + 0x127) /* clear to the end of the field */
138 #define REQ_CLR_FIELD (KEY_MAX + 0x128) /* clear the field */
143 #define REQ_SCR_FLINE (KEY_MAX + 0x12b) /* scroll field forward one line */
144 #define REQ_SCR_BLINE (KEY_MAX + 0x12c) /* scroll field backward
146 #define REQ_SCR_FPAGE (KEY_MAX + 0x12d) /* scroll field forward one page */
147 #define REQ_SCR_BPAGE (KEY_MAX + 0x12e) /* scroll field backward
149 #define REQ_SCR_FHPAGE (KEY_MAX + 0x12f) /* scroll field forward
151 #define REQ_SCR_BHPAGE (KEY_MAX + 0x130) /* scroll field backward
167 #define REQ_VALIDATION (KEY_MAX + 0x137) /* validate the field */
168 #define REQ_PREV_CHOICE (KEY_MAX + 0x138) /* display previous field choice */
169 #define REQ_NEXT_CHOICE (KEY_MAX + 0x139) /* display next field choice */
185 typedef struct _form_field FIELD;
196 /* definition of a field in the form */
198 unsigned int rows; /* rows in the field */
199 unsigned int cols; /* columns in the field */
206 int index; /* index of this field in form fields array. */
207 int nbuf; /* number of buffers associated with this field */
209 int justification; /* justification style of the field */
210 int overlay; /* set to true if field is in overlay mode */
214 _FORMI_FIELD_LINES *start_line; /* start line in field (vert scroll) */
215 unsigned int row_count; /* number of rows actually used in field */
216 unsigned int row_xpos; /* char offset of cursor in field, not same
218 unsigned int cursor_xpos; /* x pos of cursor in field */
219 unsigned int cursor_ypos; /* y pos of cursor in field */
221 short page; /* number of the page this field is on */
225 Form_Options opts; /* options for the field */
226 FORM *parent; /* the form this field is bound to, if any */
227 FIELD *up; /* field above this one */
228 FIELD *down; /* field below this one */
229 FIELD *left; /* field to the left of this one */
230 FIELD *right; /* field to the right of this one */
232 FIELD *link; /* used if fields are linked */
233 FIELDTYPE *type; /* type struct for the field */
235 char *args; /* args for field type. */
238 FORM_STR *buffers; /* array of buffers for the field */
252 /* definition of a field type. */
261 int (*field_check)(FIELD *, char *); /* field validation routine */
263 int (*next_choice)(FIELD *, char *); /* function to select next
265 int (*prev_choice)(FIELD *, char *); /* function to select prev
274 int wrap; /* wrap from last field to first field if true */
285 current field changes */
287 before current field changes */
289 int cur_field; /* current field */
294 TAILQ_HEAD(_formi_sort_head, _form_field) sorted_fields; /* sorted field
296 FIELD **fields; /* array of fields attached to this form. */
302 FIELD *current_field(FORM *);
305 FIELD *dup_field(FIELD *, int, int);
306 int dynamic_field_info(FIELD *, int *, int *, int *);
307 char *field_arg(FIELD *);
308 chtype field_back(FIELD *);
309 char *field_buffer(FIELD *, int);
311 chtype field_fore(FIELD *);
312 int field_index(FIELD *);
313 int field_info(FIELD *, int *, int *, int *, int *, int *, int *);
315 int field_just(FIELD *);
316 Form_Options field_opts(FIELD *);
317 int field_opts_off(FIELD *, Form_Options);
318 int field_opts_on(FIELD *, Form_Options);
319 int field_pad(FIELD *);
320 int field_status(FIELD *);
322 FIELDTYPE *field_type(FIELD *);
323 void *field_userptr(FIELD *);
325 FIELD **form_fields(FORM *);
336 int free_field(FIELD *);
339 FIELD *link_field(FIELD *, int, int);
341 int move_field(FIELD *, int, int);
342 FIELD *new_field(int, int, int, int, int, int);
343 FIELDTYPE *new_fieldtype(int (* field_check)(FIELD *, char *),
345 FORM *new_form(FIELD **);
346 int new_page(FIELD *);
350 int set_current_field(FORM *, FIELD *);
351 int set_field_back(FIELD *, chtype);
352 int set_field_buffer(FIELD *, int, const char *);
353 int set_field_fore(FIELD *, chtype);
355 int set_field_just(FIELD *, int);
356 int set_field_opts(FIELD *, Form_Options);
357 int set_field_pad(FIELD *, int);
358 FIELD *, int, char *, ...) __printflike(3, 4);
359 int set_field_status(FIELD *, int);
361 int set_field_type(FIELD *, FIELDTYPE *, ...);
362 int set_field_userptr(FIELD *, void *);
366 int set_fieldtype_choice(FIELDTYPE *, int (*)(FIELD *, char *),
367 int (*)(FIELD *, char *));
368 int set_form_fields(FORM *, FIELD **);
376 int set_max_field(FIELD *, int);
377 int set_new_page(FIELD *, int);