• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500-V1.0.1.40_1.0.68/src/router/busybox-1.x/scripts/kconfig/lxdialog/

Lines Matching defs:dialog

22 #include "dialog.h"
29 static void print_buttons(WINDOW * dialog, int height, int width, int selected)
34 print_button(dialog, " Ok ", y, x, selected == 0);
35 print_button(dialog, " Help ", y, x + 14, selected == 1);
37 wmove(dialog, y, x + 1 + 14 * selected);
38 wrefresh(dialog);
42 * Display a dialog box for inputing a string
50 WINDOW *dialog;
52 /* center dialog box on screen */
58 dialog = newwin(height, width, y, x);
59 keypad(dialog, TRUE);
61 draw_box(dialog, 0, 0, height, width, dialog_attr, border_attr);
62 wattrset(dialog, border_attr);
63 mvwaddch(dialog, height - 3, 0, ACS_LTEE);
65 waddch(dialog, ACS_HLINE);
66 wattrset(dialog, dialog_attr);
67 waddch(dialog, ACS_RTEE);
69 print_title(dialog, title, width);
71 wattrset(dialog, dialog_attr);
72 print_autowrap(dialog, prompt, width - 2, 1, 3);
76 getyx(dialog, y, x);
79 draw_box(dialog, y + 1, box_x - 1, 3, box_width + 2, border_attr, dialog_attr);
81 print_buttons(dialog, height, width, 0);
84 wmove(dialog, box_y, box_x);
85 wattrset(dialog, inputbox_attr);
98 waddch(dialog, instr[scroll + i]);
100 waddstr(dialog, instr);
103 wmove(dialog, box_y, box_x + input_x);
105 wrefresh(dialog);
108 key = wgetch(dialog);
123 wattrset(dialog, inputbox_attr);
126 wmove(dialog, box_y, box_x);
128 waddch(dialog,
135 mvwaddch(dialog, box_y, input_x + box_x, ' ');
136 wmove(dialog, box_y, input_x + box_x);
137 wrefresh(dialog);
143 wattrset(dialog, inputbox_attr);
148 wmove(dialog, box_y, box_x);
150 waddch(dialog, instr [scroll + i]);
152 wmove(dialog, box_y, input_x++ + box_x);
153 waddch(dialog, key);
155 wrefresh(dialog);
165 delwin(dialog);
169 delwin(dialog);
176 print_buttons(dialog, height, width, 1);
180 print_buttons(dialog, height, width, 0);
181 wmove(dialog, box_y, box_x + input_x);
182 wrefresh(dialog);
186 print_buttons(dialog, height, width, 0);
196 print_buttons(dialog, height, width, 0);
200 print_buttons(dialog, height, width, 1);
204 print_buttons(dialog, height, width, 0);
205 wmove(dialog, box_y, box_x + input_x);
206 wrefresh(dialog);
212 delwin(dialog);
222 delwin(dialog);