Lines Matching defs:dialog
24 #include "dialog.h"
95 static void print_buttons(WINDOW * dialog, int height, int width, int selected)
100 print_button(dialog, "Select", y, x, selected == 0);
101 print_button(dialog, " Help ", y, x + 14, selected == 1);
103 wmove(dialog, y, x + 1 + 14 * selected);
104 wrefresh(dialog);
108 * Display a dialog box with a list of options that can be turned on or off
116 WINDOW *dialog, *list;
136 /* center dialog box on screen */
142 dialog = newwin(height, width, y, x);
143 keypad(dialog, TRUE);
145 draw_box(dialog, 0, 0, height, width,
146 dlg.dialog.atr, dlg.border.atr);
147 wattrset(dialog, dlg.border.atr);
148 mvwaddch(dialog, height - 3, 0, ACS_LTEE);
150 waddch(dialog, ACS_HLINE);
151 wattrset(dialog, dlg.dialog.atr);
152 waddch(dialog, ACS_RTEE);
154 print_title(dialog, title, width);
156 wattrset(dialog, dlg.dialog.atr);
157 print_autowrap(dialog, prompt, width - 2, 1, 3);
164 list = subwin(dialog, list_height, list_width, y + box_y + 1,
170 draw_box(dialog, box_y, box_x, list_height + 2, list_width + 2,
192 print_arrows(dialog, choice, item_count(), scroll,
195 print_buttons(dialog, height, width, 0);
197 wnoutrefresh(dialog);
202 key = wgetch(dialog);
228 print_arrows(dialog, choice, item_count(),
231 wnoutrefresh(dialog);
256 print_arrows(dialog, choice, item_count(),
259 wnoutrefresh(dialog);
274 wnoutrefresh(dialog);
294 delwin(dialog);
302 print_buttons(dialog, height, width, button);
303 wrefresh(dialog);
310 key = on_key_esc(dialog);
314 delwin(dialog);
323 delwin(dialog);