Lines Matching defs:dialog

9 #include "dialog.h"
133 static void refresh_text_box(WINDOW *dialog, WINDOW *box, int boxh, int boxw,
139 print_position(dialog);
140 wmove(dialog, cur_y, cur_x); /* Restore cursor position */
141 wrefresh(dialog);
147 * Display text from a file in a dialog box.
157 WINDOW *dialog, *box;
195 /* center dialog box on screen */
201 dialog = newwin(height, width, y, x);
202 keypad(dialog, TRUE);
207 box = subwin(dialog, boxh, boxw, y + 1, x + 1);
208 wattrset(box, dlg.dialog.atr);
209 wbkgdset(box, dlg.dialog.atr & A_COLOR);
214 draw_box(dialog, 0, 0, height, width,
215 dlg.dialog.atr, dlg.border.atr);
217 wattrset(dialog, dlg.border.atr);
218 mvwaddch(dialog, height - 3, 0, ACS_LTEE);
220 waddch(dialog, ACS_HLINE);
221 wattrset(dialog, dlg.dialog.atr);
222 wbkgdset(dialog, dlg.dialog.atr & A_COLOR);
223 waddch(dialog, ACS_RTEE);
225 print_title(dialog, title, width);
227 print_button(dialog, " Exit ", height - 2, width / 2 - 4, TRUE);
228 wnoutrefresh(dialog);
229 getyx(dialog, cur_y, cur_x); /* Save cursor position */
232 attr_clear(box, boxh, boxw, dlg.dialog.atr);
233 refresh_text_box(dialog, box, boxh, boxw, cur_y, cur_x);
236 key = wgetch(dialog);
251 refresh_text_box(dialog, box, boxh, boxw,
262 refresh_text_box(dialog, box, boxh, boxw, cur_y, cur_x);
271 refresh_text_box(dialog, box, boxh, boxw, cur_y, cur_x);
280 refresh_text_box(dialog, box, boxh, boxw, cur_y, cur_x);
289 refresh_text_box(dialog, box, boxh, boxw, cur_y, cur_x);
298 refresh_text_box(dialog, box, boxh, boxw, cur_y, cur_x);
313 refresh_text_box(dialog, box, boxh, boxw, cur_y, cur_x);
323 refresh_text_box(dialog, box, boxh, boxw, cur_y, cur_x);
326 if (on_key_esc(dialog) == KEY_ESC)
332 delwin(dialog);
343 delwin(dialog);