Lines Matching refs:dialog

16 static void print_buttons(WINDOW * dialog, int height, int width, int selected)  in print_buttons()  argument
21 print_button(dialog, " Ok ", y, x, selected == 0); in print_buttons()
22 print_button(dialog, " Help ", y, x + 14, selected == 1); in print_buttons()
24 wmove(dialog, y, x + 1 + 14 * selected); in print_buttons()
25 wrefresh(dialog); in print_buttons()
38 WINDOW *dialog; in dialog_inputbox() local
57 dialog = newwin(height, width, y, x); in dialog_inputbox()
58 keypad(dialog, TRUE); in dialog_inputbox()
60 draw_box(dialog, 0, 0, height, width, in dialog_inputbox()
61 dlg.dialog.atr, dlg.border.atr); in dialog_inputbox()
62 wattrset(dialog, dlg.border.atr); in dialog_inputbox()
63 mvwaddch(dialog, height - 3, 0, ACS_LTEE); in dialog_inputbox()
65 waddch(dialog, ACS_HLINE); in dialog_inputbox()
66 wattrset(dialog, dlg.dialog.atr); in dialog_inputbox()
67 waddch(dialog, ACS_RTEE); in dialog_inputbox()
69 print_title(dialog, title, width); in dialog_inputbox()
71 wattrset(dialog, dlg.dialog.atr); in dialog_inputbox()
72 print_autowrap(dialog, prompt, width - 2, 1, 3); in dialog_inputbox()
76 getyx(dialog, y, x); in dialog_inputbox()
79 draw_box(dialog, y + 1, box_x - 1, 3, box_width + 2, in dialog_inputbox()
80 dlg.dialog.atr, dlg.border.atr); in dialog_inputbox()
82 print_buttons(dialog, height, width, 0); in dialog_inputbox()
85 wmove(dialog, box_y, box_x); in dialog_inputbox()
86 wattrset(dialog, dlg.inputbox.atr); in dialog_inputbox()
95 waddch(dialog, instr[show_x + i]); in dialog_inputbox()
99 waddstr(dialog, instr); in dialog_inputbox()
102 wmove(dialog, box_y, box_x + input_x); in dialog_inputbox()
104 wrefresh(dialog); in dialog_inputbox()
107 key = wgetch(dialog); in dialog_inputbox()
119 wattrset(dialog, dlg.inputbox.atr); in dialog_inputbox()
134 wmove(dialog, box_y, box_x); in dialog_inputbox()
137 waddch(dialog, ' '); in dialog_inputbox()
140 waddch(dialog, instr[show_x + i]); in dialog_inputbox()
142 wmove(dialog, box_y, input_x + box_x); in dialog_inputbox()
143 wrefresh(dialog); in dialog_inputbox()
149 wmove(dialog, box_y, --input_x + box_x); in dialog_inputbox()
152 wmove(dialog, box_y, box_x); in dialog_inputbox()
155 waddch(dialog, ' '); in dialog_inputbox()
158 waddch(dialog, instr[show_x + i]); in dialog_inputbox()
160 wmove(dialog, box_y, box_x); in dialog_inputbox()
168 wmove(dialog, box_y, ++input_x + box_x); in dialog_inputbox()
171 wmove(dialog, box_y, box_x); in dialog_inputbox()
174 waddch(dialog, ' '); in dialog_inputbox()
177 waddch(dialog, instr[show_x + i]); in dialog_inputbox()
179 wmove(dialog, box_y, input_x + box_x); in dialog_inputbox()
187 wattrset(dialog, dlg.inputbox.atr); in dialog_inputbox()
205 wmove(dialog, box_y, box_x); in dialog_inputbox()
208 waddch(dialog, ' '); in dialog_inputbox()
211 waddch(dialog, instr[show_x + i]); in dialog_inputbox()
213 wmove(dialog, box_y, input_x + box_x); in dialog_inputbox()
214 wrefresh(dialog); in dialog_inputbox()
224 delwin(dialog); in dialog_inputbox()
228 delwin(dialog); in dialog_inputbox()
235 print_buttons(dialog, height, width, 1); in dialog_inputbox()
239 print_buttons(dialog, height, width, 0); in dialog_inputbox()
240 wmove(dialog, box_y, box_x + input_x); in dialog_inputbox()
241 wrefresh(dialog); in dialog_inputbox()
245 print_buttons(dialog, height, width, 0); in dialog_inputbox()
255 print_buttons(dialog, height, width, 0); in dialog_inputbox()
259 print_buttons(dialog, height, width, 1); in dialog_inputbox()
263 print_buttons(dialog, height, width, 0); in dialog_inputbox()
264 wmove(dialog, box_y, box_x + input_x); in dialog_inputbox()
265 wrefresh(dialog); in dialog_inputbox()
271 delwin(dialog); in dialog_inputbox()
278 key = on_key_esc(dialog); in dialog_inputbox()
281 delwin(dialog); in dialog_inputbox()
287 delwin(dialog); in dialog_inputbox()