Lines Matching refs:dialog
14 static void print_buttons(WINDOW * dialog, int height, int width, int selected) in print_buttons() argument
19 print_button(dialog, " Yes ", y, x, selected == 0); in print_buttons()
20 print_button(dialog, " No ", y, x + 13, selected == 1); in print_buttons()
22 wmove(dialog, y, x + 1 + 13 * selected); in print_buttons()
23 wrefresh(dialog); in print_buttons()
32 WINDOW *dialog; in dialog_yesno() local
46 dialog = newwin(height, width, y, x); in dialog_yesno()
47 keypad(dialog, TRUE); in dialog_yesno()
49 draw_box(dialog, 0, 0, height, width, in dialog_yesno()
50 dlg.dialog.atr, dlg.border.atr); in dialog_yesno()
51 wattrset(dialog, dlg.border.atr); in dialog_yesno()
52 mvwaddch(dialog, height - 3, 0, ACS_LTEE); in dialog_yesno()
54 waddch(dialog, ACS_HLINE); in dialog_yesno()
55 wattrset(dialog, dlg.dialog.atr); in dialog_yesno()
56 waddch(dialog, ACS_RTEE); in dialog_yesno()
58 print_title(dialog, title, width); in dialog_yesno()
60 wattrset(dialog, dlg.dialog.atr); in dialog_yesno()
61 print_autowrap(dialog, prompt, width - 2, 1, 3); in dialog_yesno()
63 print_buttons(dialog, height, width, 0); in dialog_yesno()
66 key = wgetch(dialog); in dialog_yesno()
70 delwin(dialog); in dialog_yesno()
74 delwin(dialog); in dialog_yesno()
82 print_buttons(dialog, height, width, button); in dialog_yesno()
83 wrefresh(dialog); in dialog_yesno()
87 delwin(dialog); in dialog_yesno()
90 key = on_key_esc(dialog); in dialog_yesno()
93 delwin(dialog); in dialog_yesno()
99 delwin(dialog); in dialog_yesno()