Lines Matching defs:dialog
4 * timebox.c -- implements the timebox dialog
24 #include <dialog.h>
122 CleanupResult(int code, WINDOW *dialog, char *prompt, DIALOG_VARS * save_vars)
124 dlg_del_window(dialog);
135 * Display a dialog box for entering a date
182 WINDOW *dialog;
211 dialog = dlg_new_window(height, width,
216 return CleanupResult(DLG_EXIT_ERROR, dialog, prompt, &save_vars);
219 dlg_register_window(dialog, "timebox", binding);
220 dlg_register_buttons(dialog, "timebox", buttons);
222 dlg_draw_box2(dialog, 0, 0, height, width, dialog_attr, border_attr, border2_attr);
223 dlg_draw_bottom_box2(dialog, border_attr, border2_attr, dialog_attr);
224 dlg_draw_title(dialog, title);
225 dlg_draw_helpline(dialog, FALSE);
227 (void) wattrset(dialog, dialog_attr);
228 dlg_print_autowrap(dialog, prompt, height, width);
236 dialog,
245 return CleanupResult(DLG_EXIT_ERROR, dialog, prompt, &save_vars);
248 mvwprintw(dialog, hr_box.y, hr_box.x + ONE_WIDE + MARGIN, ":");
250 dialog,
259 return CleanupResult(DLG_EXIT_ERROR, dialog, prompt, &save_vars);
262 mvwprintw(dialog, mn_box.y, mn_box.x + ONE_WIDE + MARGIN, ":");
264 dialog,
273 return CleanupResult(DLG_EXIT_ERROR, dialog, prompt, &save_vars);
276 dlg_trace_win(dialog);
283 dlg_draw_buttons(dialog, height - 2, 0, buttons, button, FALSE, width);
285 dlg_set_focus(dialog, obj->window);
287 key = dlg_mouse_wgetch(dialog, &fkey);
351 dlg_del_window(dialog);
417 return CleanupResult(result, dialog, prompt, &save_vars);