Lines Matching refs:dialog
4 * pause.c -- implements the pause dialog
27 #include <dialog.h>
77 WINDOW *dialog;
112 /* center dialog box on screen */
116 dialog = dlg_new_window(height, width, y, x);
117 dlg_register_window(dialog, "pause", binding);
118 dlg_register_buttons(dialog, "pause", buttons);
121 nodelay(dialog, TRUE);
124 (void) werase(dialog);
125 dlg_draw_box(dialog, 0, 0, height, width, dialog_attr, border_attr);
127 dlg_draw_title(dialog, title);
128 dlg_draw_helpline(dialog, FALSE);
130 wattrset(dialog, dialog_attr);
131 dlg_print_autowrap(dialog, prompt, height, width);
133 dlg_draw_box(dialog,
144 (void) wmove(dialog, gauge_y + MARGIN, 4);
145 wattrset(dialog, title_attr);
148 (void) waddch(dialog, ' ');
150 (void) wmove(dialog, gauge_y + MARGIN, (width / 2) - 2);
151 (void) wprintw(dialog, "%3d", seconds);
160 wattroff(dialog, A_REVERSE);
162 wattrset(dialog, A_REVERSE);
164 (void) wmove(dialog, gauge_y + MARGIN, 4);
166 chtype ch = winch(dialog);
170 (void) waddch(dialog, ch);
175 dlg_draw_bottom_box(dialog);
176 dlg_draw_buttons(dialog, height - 2, 0, buttons, button, FALSE, width);
178 (void) wrefresh(dialog);
185 key = dlg_mouse_wgetch_nowait(dialog, &fkey);
197 dlg_del_window(dialog); /* delete this window */
205 dlg_draw_buttons(dialog,
214 dlg_draw_buttons(dialog,
236 nodelay(dialog, FALSE);
239 dlg_del_window(dialog);