Lines Matching defs:dialog
9 #include "dialog.h"
14 static void print_buttons(WINDOW * dialog, int height, int width, int selected)
19 print_button(dialog, " Yes ", y, x, selected == 0);
20 print_button(dialog, " No ", y, x + 13, selected == 1);
22 wmove(dialog, y, x + 1 + 13 * selected);
23 wrefresh(dialog);
27 * Display a dialog box with two buttons - Yes and No
32 WINDOW *dialog;
40 /* center dialog box on screen */
46 dialog = newwin(height, width, y, x);
47 keypad(dialog, TRUE);
49 draw_box(dialog, 0, 0, height, width,
50 dlg.dialog.atr, dlg.border.atr);
51 wattrset(dialog, dlg.border.atr);
52 mvwaddch(dialog, height - 3, 0, ACS_LTEE);
54 waddch(dialog, ACS_HLINE);
55 wattrset(dialog, dlg.dialog.atr);
56 waddch(dialog, ACS_RTEE);
58 print_title(dialog, title, width);
60 wattrset(dialog, dlg.dialog.atr);
61 print_autowrap(dialog, prompt, width - 2, 1, 3);
63 print_buttons(dialog, height, width, 0);
66 key = wgetch(dialog);
70 delwin(dialog);
74 delwin(dialog);
82 print_buttons(dialog, height, width, button);
83 wrefresh(dialog);
87 delwin(dialog);
90 key = on_key_esc(dialog);
93 delwin(dialog);
99 delwin(dialog);