4 /* Dialog default background repaint routines */
5 void dialog_repaint (struct Dlg_head
*h
, int back
, int title_fore
);
6 void common_dialog_repaint (struct Dlg_head
*h
);
8 /* For common dialogs, just repaint background */
9 int common_dialog_callback (struct Dlg_head
*h
, int id
, int msg
);
11 /* Listbox utility functions */
17 Listbox
*create_listbox_window (int cols
, int lines
, char *title
, char *help
);
18 #define LISTBOX_APPEND_TEXT(l,h,t,d) \
19 listbox_add_item (l->list, 0, h, t, d);
21 int run_listbox (Listbox
*l
);
25 quick_end
, quick_checkbox
,
26 quick_button
, quick_input
,
27 quick_label
, quick_radio
30 /* The widget is placed on relative_?/divisions_? of the parent widget */
31 /* Please note that the contents of the fields in the union are just */
32 /* used for setting up the dialog. They are a convenient place to put */
33 /* the values for a widget */
42 char *text
; /* Text */
43 int hotkey_pos
; /* the hotkey position */
44 int value
; /* Buttons only: value of button */
45 int *result
; /* Checkbutton: where to store result */
46 char **str_result
; /* Input lines: destination */
47 WLay layout
; /* XView Layouting stuff */
48 char *tkname
; /* Name of the widget used for Tk only */
49 void *the_widget
; /* For the quick quick dialog manager */
54 int xpos
, ypos
; /* if -1, then center the dialog */
57 char *class; /* Used for Tk's class name */
59 int i18n
; /* If true, internationalization has happened */
62 int quick_dialog (QuickDialog
*qd
);
63 int quick_dialog_skip (QuickDialog
*qd
, int nskip
);
67 #define CHOOSE_EDITABLE 1
68 #define CHOOSE_BROWSE 0
70 /* Chooser dialog boxes */
76 Chooser
*new_chooser (int lines
, int cols
, char *help
, int flags
);
77 int run_chooser (Chooser
*c
);
78 void destroy_chooser (Chooser
*c
);
80 /* The input dialogs */
81 char *input_dialog (char *header
, char *text
, char *def_text
);
82 char *input_dialog_help (char *header
, char *text
, char *help
, char *def_text
);
83 char *input_expand_dialog (char *header
, char *text
, char *def_text
);
84 char *real_input_dialog (char *header
, char *text
, char *def_text
);
85 char *real_input_dialog_help (char *header
, char *text
, char *help
, char *def_text
);
87 void query_set_sel (int new_sel
);
88 #endif /* __WTOOLS_H */