Installer import into contrib (real import this time)
[dragonfly.git] / contrib / bsdinstaller-1.1.6 / src / frontends / ncurses / curses_xlat.h
1 /*
2  * curses_xlat.h
3  * $Id: curses_xlat.h,v 1.3 2005/02/08 05:54:44 cpressey Exp $
4  */
5
6 #ifndef __CURSES_XLAT_H
7 #define __CURSES_XLAT_H
8
9 /*
10  * Info structure attached to each curses form's userdata pointer.
11  * Lets us get back to the underlying dfui form and track columns widths.
12  */
13 struct curses_form_userdata {
14         const struct dfui_form *f;
15         int widths[256];
16 };
17
18 int                      curses_form_create_widget_row(struct curses_form *,
19                                 struct curses_widget *, const struct dfui_dataset *,
20                                 int, int, int);
21 struct curses_form      *curses_form_construct_from_dfui_form(const struct dfui_form *);
22 struct curses_form      *curses_form_construct_from_dfui_progress(const struct dfui_progress *,
23                                                                   struct curses_widget **,
24                                                                   struct curses_widget **,
25                                                                   struct curses_widget **);
26 void                     curses_widgets_update_from_dfui_progress(const struct dfui_progress *,
27                                                                   struct curses_widget *,
28                                                                   struct curses_widget *,
29                                                                   struct curses_widget *);
30 struct dfui_response    *response_construct_from_curses_form(const struct dfui_form *,
31                                                              const struct curses_form *,
32                                                              const struct curses_widget *);
33
34 #endif /* !__CURSES_XLAT_H */