2 * \brief Header: quick dialog engine
8 /*** typedefs(not structures) and defined constants **********************************************/
10 #define QUICK_CHECKBOX(x, xdiv, y, ydiv, txt, st) \
12 .widget_type = quick_checkbox, \
14 .x_divisions = xdiv, \
16 .y_divisions = ydiv, \
27 #define QUICK_BUTTON(x, xdiv, y, ydiv, txt, act, cb) \
29 .widget_type = quick_button, \
31 .x_divisions = xdiv, \
33 .y_divisions = ydiv, \
45 #define QUICK_INPUT(x, xdiv, y, ydiv, txt, len_, flags_, hname, res) \
47 .widget_type = quick_input, \
49 .x_divisions = xdiv, \
51 .y_divisions = ydiv, \
65 #define QUICK_LABEL(x, xdiv, y, ydiv, txt) \
67 .widget_type = quick_label, \
69 .x_divisions = xdiv, \
71 .y_divisions = ydiv, \
81 #define QUICK_RADIO(x, xdiv, y, ydiv, cnt, items_, val) \
83 .widget_type = quick_radio, \
85 .x_divisions = xdiv, \
87 .y_divisions = ydiv, \
99 #define QUICK_GROUPBOX(x, xdiv, y, ydiv, w, h, t) \
101 .widget_type = quick_groupbox, \
103 .x_divisions = xdiv, \
105 .y_divisions = ydiv, \
119 .widget_type = quick_end, \
137 /*** enums ***************************************************************************************/
151 /*** structures declarations (and typedefs of structures)*****************************************/
153 /* The widget is placed on relative_?/divisions_? of the parent widget */
164 widget_options_t options
;
166 /* widget parameters */
172 int *state
; /* in/out */
186 int flags
; /* 1 -- is_password, 2 -- INPUT_COMPLETE_CD */
187 const char *histname
;
200 int *value
; /* in/out */
215 int xpos
, ypos
; /* if -1, then center the dialog */
218 QuickWidget
*widgets
;
220 gboolean i18n
; /* If true, internationalization has happened */
223 /*** global variables defined in .c file *********************************************************/
225 /*** declarations of public functions ************************************************************/
227 int quick_dialog_skip (QuickDialog
* qd
, int nskip
);
229 /*** inline functions ****************************************************************************/
232 quick_dialog (QuickDialog
* qd
)
234 return quick_dialog_skip (qd
, 0);
237 #endif /* MC__QUICK_H */