186d7f5d3SJohn Marino /* 286d7f5d3SJohn Marino * curses_xlat.h 386d7f5d3SJohn Marino * $Id: curses_xlat.h,v 1.3 2005/02/08 05:54:44 cpressey Exp $ 486d7f5d3SJohn Marino */ 586d7f5d3SJohn Marino 686d7f5d3SJohn Marino #ifndef __CURSES_XLAT_H 786d7f5d3SJohn Marino #define __CURSES_XLAT_H 886d7f5d3SJohn Marino 986d7f5d3SJohn Marino /* 1086d7f5d3SJohn Marino * Info structure attached to each curses form's userdata pointer. 1186d7f5d3SJohn Marino * Lets us get back to the underlying dfui form and track columns widths. 1286d7f5d3SJohn Marino */ 1386d7f5d3SJohn Marino struct curses_form_userdata { 1486d7f5d3SJohn Marino const struct dfui_form *f; 1586d7f5d3SJohn Marino int widths[256]; 1686d7f5d3SJohn Marino }; 1786d7f5d3SJohn Marino 1886d7f5d3SJohn Marino int curses_form_create_widget_row(struct curses_form *, 1986d7f5d3SJohn Marino struct curses_widget *, const struct dfui_dataset *, 2086d7f5d3SJohn Marino int, int, int); 2186d7f5d3SJohn Marino struct curses_form *curses_form_construct_from_dfui_form(const struct dfui_form *); 2286d7f5d3SJohn Marino struct curses_form *curses_form_construct_from_dfui_progress(const struct dfui_progress *, 2386d7f5d3SJohn Marino struct curses_widget **, 2486d7f5d3SJohn Marino struct curses_widget **, 2586d7f5d3SJohn Marino struct curses_widget **); 2686d7f5d3SJohn Marino void curses_widgets_update_from_dfui_progress(const struct dfui_progress *, 2786d7f5d3SJohn Marino struct curses_widget *, 2886d7f5d3SJohn Marino struct curses_widget *, 2986d7f5d3SJohn Marino struct curses_widget *); 3086d7f5d3SJohn Marino struct dfui_response *response_construct_from_curses_form(const struct dfui_form *, 3186d7f5d3SJohn Marino const struct curses_form *, 3286d7f5d3SJohn Marino const struct curses_widget *); 3386d7f5d3SJohn Marino 3486d7f5d3SJohn Marino #endif /* !__CURSES_XLAT_H */ 35