Lines Matching defs:dialog
11 #include "dialog.h"
88 static void print_buttons(WINDOW * dialog, int height, int width, int selected)
93 print_button(dialog, "Select", y, x, selected == 0);
94 print_button(dialog, " Help ", y, x + 14, selected == 1);
96 wmove(dialog, y, x + 1 + 14 * selected);
97 wrefresh(dialog);
101 * Display a dialog box with a list of options that can be turned on or off
109 WINDOW *dialog, *list;
129 /* center dialog box on screen */
135 dialog = newwin(height, width, y, x);
136 keypad(dialog, TRUE);
138 draw_box(dialog, 0, 0, height, width,
139 dlg.dialog.atr, dlg.border.atr);
140 wattrset(dialog, dlg.border.atr);
141 mvwaddch(dialog, height - 3, 0, ACS_LTEE);
143 waddch(dialog, ACS_HLINE);
144 wattrset(dialog, dlg.dialog.atr);
145 waddch(dialog, ACS_RTEE);
147 print_title(dialog, title, width);
149 wattrset(dialog, dlg.dialog.atr);
150 print_autowrap(dialog, prompt, width - 2, 1, 3);
157 list = subwin(dialog, list_height, list_width, y + box_y + 1,
163 draw_box(dialog, box_y, box_x, list_height + 2, list_width + 2,
186 print_arrows(dialog, choice, item_count(), scroll,
189 print_buttons(dialog, height, width, 0);
191 wnoutrefresh(dialog);
196 key = wgetch(dialog);
222 print_arrows(dialog, choice, item_count(),
225 wnoutrefresh(dialog);
250 print_arrows(dialog, choice, item_count(),
253 wnoutrefresh(dialog);
268 wnoutrefresh(dialog);
288 delwin(dialog);
296 print_buttons(dialog, height, width, button);
297 wrefresh(dialog);
304 key = on_key_esc(dialog);
308 delwin(dialog);
317 delwin(dialog);