• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /asus-wl-520gu-7.0.1.45/src/router/config/

Lines Matching refs:dialog

22 #include "dialog.h"
30 print_buttons(WINDOW *dialog, int height, int width, int selected)
35 print_button (dialog, " Ok ", y, x, selected==0);
36 print_button (dialog, " Help ", y, x + 14, selected==1);
38 wmove(dialog, y, x+1+14*selected);
39 wrefresh(dialog);
43 * Display a dialog box for inputing a string
52 WINDOW *dialog;
54 /* center dialog box on screen */
61 dialog = newwin (height, width, y, x);
62 keypad (dialog, TRUE);
64 draw_box (dialog, 0, 0, height, width, dialog_attr, border_attr);
65 wattrset (dialog, border_attr);
66 mvwaddch (dialog, height-3, 0, ACS_LTEE);
68 waddch (dialog, ACS_HLINE);
69 wattrset (dialog, dialog_attr);
70 waddch (dialog, ACS_RTEE);
81 wattrset (dialog, title_attr);
82 mvwaddch (dialog, 0, (width - strlen(title))/2 - 1, ' ');
83 waddstr (dialog, (char *)title);
84 waddch (dialog, ' ');
87 wattrset (dialog, dialog_attr);
88 print_autowrap (dialog, prompt, width - 2, 1, 3);
92 getyx (dialog, y, x);
95 draw_box (dialog, y + 1, box_x - 1, 3, box_width + 2,
98 print_buttons(dialog, height, width, 0);
101 wmove (dialog, box_y, box_x);
102 wattrset (dialog, inputbox_attr);
115 waddch (dialog, instr[scroll + i]);
117 waddstr (dialog, instr);
119 wmove (dialog, box_y, box_x + input_x);
121 wrefresh (dialog);
124 key = wgetch (dialog);
139 wattrset (dialog, inputbox_attr);
143 wmove (dialog, box_y, box_x);
145 waddch (dialog, instr[scroll + input_x + i] ?
151 mvwaddch (dialog, box_y, input_x + box_x, ' ');
152 wmove (dialog, box_y, input_x + box_x);
153 wrefresh (dialog);
159 wattrset (dialog, inputbox_attr);
164 wmove (dialog, box_y, box_x);
166 waddch (dialog, instr[scroll + i]);
168 wmove (dialog, box_y, input_x++ + box_x);
169 waddch (dialog, key);
171 wrefresh (dialog);
181 delwin (dialog);
185 delwin (dialog);
192 print_buttons(dialog, height, width, 1);
196 print_buttons(dialog, height, width, 0);
197 wmove (dialog, box_y, box_x + input_x);
198 wrefresh (dialog);
202 print_buttons(dialog, height, width, 0);
212 print_buttons(dialog, height, width, 0);
216 print_buttons(dialog, height, width, 1);
220 print_buttons(dialog, height, width, 0);
221 wmove (dialog, box_y, box_x + input_x);
222 wrefresh (dialog);
228 delwin (dialog);
238 delwin (dialog);