Home | History | Annotate | Download | only in lxdialog

Lines Matching defs:dialog

22 #include "dialog.h"
27 static void print_buttons(WINDOW * dialog, int height, int width, int selected)
32 print_button(dialog, " Yes ", y, x, selected == 0);
33 print_button(dialog, " No ", y, x + 13, selected == 1);
35 wmove(dialog, y, x + 1 + 13 * selected);
36 wrefresh(dialog);
40 * Display a dialog box with two buttons - Yes and No
45 WINDOW *dialog;
53 /* center dialog box on screen */
59 dialog = newwin(height, width, y, x);
60 keypad(dialog, TRUE);
62 draw_box(dialog, 0, 0, height, width,
63 dlg.dialog.atr, dlg.border.atr);
64 wattrset(dialog, dlg.border.atr);
65 mvwaddch(dialog, height - 3, 0, ACS_LTEE);
67 waddch(dialog, ACS_HLINE);
68 wattrset(dialog, dlg.dialog.atr);
69 waddch(dialog, ACS_RTEE);
71 print_title(dialog, title, width);
73 wattrset(dialog, dlg.dialog.atr);
74 print_autowrap(dialog, prompt, width - 2, 1, 3);
76 print_buttons(dialog, height, width, 0);
79 key = wgetch(dialog);
83 delwin(dialog);
87 delwin(dialog);
95 print_buttons(dialog, height, width, button);
96 wrefresh(dialog);
100 delwin(dialog);
103 key = on_key_esc(dialog);
106 delwin(dialog);
112 delwin(dialog);