Lines Matching defs:dialog

24 #include <dialog.h>
25 #include "dialog.priv.h"
42 * Display text from a file in a dialog box.
51 WINDOW *dialog, *text;
93 /* center dialog box on screen */
101 dialog = newwin(height, width, y, x);
102 if (dialog == NULL) {
107 keypad(dialog, TRUE);
111 text = subwin(dialog, height-4, width-2, y+1, x+1);
114 fprintf(stderr, "\nsubwin(dialog,%d,%d,%d,%d) failed, maybe wrong dims\n", height-4,width-2,y+1,x+1);
119 draw_box(dialog, 0, 0, height, width, dialog_attr, border_attr);
121 wattrset(dialog, border_attr);
122 wmove(dialog, height-3, 0);
123 waddch(dialog, ACS_LTEE);
125 waddch(dialog, ACS_HLINE);
126 wattrset(dialog, dialog_attr);
127 waddch(dialog, ACS_RTEE);
128 wmove(dialog, height-2, 1);
130 waddch(dialog, ' ');
133 wattrset(dialog, title_attr);
134 wmove(dialog, 0, (width - strlen(title))/2 - 1);
135 waddch(dialog, ' ');
136 waddstr(dialog, title);
137 waddch(dialog, ' ');
139 display_helpline(dialog, height-1, width);
141 print_button(dialog, " OK ", height-2, width/2-6, TRUE);
142 wnoutrefresh(dialog);
143 getyx(dialog, cur_y, cur_x); /* Save cursor position */
148 print_position(dialog, height, width);
149 wmove(dialog, cur_y, cur_x); /* Restore cursor position */
150 wrefresh(dialog);
153 key = wgetch(dialog);
157 delwin(dialog);
186 print_position(dialog, height, width);
187 wmove(dialog, cur_y, cur_x); /* Restore cursor position */
188 wrefresh(dialog);
218 print_position(dialog, height, width);
219 wmove(dialog, cur_y, cur_x); /* Restore cursor position */
220 wrefresh(dialog);
254 print_position(dialog, height, width);
255 wmove(dialog, cur_y, cur_x); /* Restore cursor position */
256 wrefresh(dialog);
265 print_position(dialog, height, width);
266 wmove(dialog, cur_y, cur_x); /* Restore cursor position */
267 wrefresh(dialog);
287 print_position(dialog, height, width);
288 wmove(dialog, cur_y, cur_x); /* Restore cursor position */
289 wrefresh(dialog);
298 print_position(dialog, height, width);
299 wmove(dialog, cur_y, cur_x); /* Restore cursor position */
300 wrefresh(dialog);
315 wmove(dialog, cur_y, cur_x); /* Restore cursor position */
316 wrefresh(dialog);
327 wmove(dialog, cur_y, cur_x); /* Restore cursor position */
328 wrefresh(dialog);
350 wmove(dialog, cur_y, cur_x); /* Restore cursor position */
351 wrefresh(dialog);
407 print_position(dialog, height, width);
408 wmove(dialog, cur_y, cur_x); /* Restore cursor position */
409 wrefresh(dialog);
422 delwin(dialog);
642 * Display a dialog box and get the search term from user