Lines Matching defs:dialog

9 #include "dialog.h"
26 static void refresh_text_box(WINDOW *dialog, WINDOW *box, int boxh, int boxw,
31 print_position(dialog);
32 wmove(dialog, cur_y, cur_x); /* Restore cursor position */
33 wrefresh(dialog);
38 * Display text from a file in a dialog box.
49 WINDOW *dialog, *box;
87 /* center dialog box on screen */
93 dialog = newwin(height, width, y, x);
94 keypad(dialog, TRUE);
99 box = subwin(dialog, boxh, boxw, y + 1, x + 1);
100 wattrset(box, dlg.dialog.atr);
101 wbkgdset(box, dlg.dialog.atr & A_COLOR);
106 draw_box(dialog, 0, 0, height, width,
107 dlg.dialog.atr, dlg.border.atr);
109 wattrset(dialog, dlg.border.atr);
110 mvwaddch(dialog, height - 3, 0, ACS_LTEE);
112 waddch(dialog, ACS_HLINE);
113 wattrset(dialog, dlg.dialog.atr);
114 wbkgdset(dialog, dlg.dialog.atr & A_COLOR);
115 waddch(dialog, ACS_RTEE);
117 print_title(dialog, title, width);
119 print_button(dialog, " Exit ", height - 2, width / 2 - 4, TRUE);
120 wnoutrefresh(dialog);
121 getyx(dialog, cur_y, cur_x); /* Save cursor position */
124 attr_clear(box, boxh, boxw, dlg.dialog.atr);
125 refresh_text_box(dialog, box, boxh, boxw, cur_y, cur_x, update_text,
129 key = wgetch(dialog);
144 refresh_text_box(dialog, box, boxh, boxw,
156 refresh_text_box(dialog, box, boxh, boxw, cur_y,
166 refresh_text_box(dialog, box, boxh, boxw, cur_y,
176 refresh_text_box(dialog, box, boxh, boxw, cur_y,
186 refresh_text_box(dialog, box, boxh, boxw, cur_y,
196 refresh_text_box(dialog, box, boxh, boxw, cur_y,
212 refresh_text_box(dialog, box, boxh, boxw, cur_y,
223 refresh_text_box(dialog, box, boxh, boxw, cur_y,
227 if (on_key_esc(dialog) == KEY_ESC)
233 delwin(dialog);
246 delwin(dialog);