• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500-V1.0.1.40_1.0.68/src/router/config/

Lines Matching defs:dialog

24 #include "dialog.h"
103 print_buttons( WINDOW *dialog, int height, int width, int selected)
108 print_button (dialog, "Select", y, x, selected == 0);
109 print_button (dialog, " Help ", y, x + 14, selected == 1);
111 wmove(dialog, y, x+1 + 14*selected);
112 wrefresh (dialog);
116 * Display a dialog box with a list of options that can be turned on or off
127 WINDOW *dialog, *list;
148 /* center dialog box on screen */
154 dialog = newwin (height, width, y, x);
155 keypad (dialog, TRUE);
157 draw_box (dialog, 0, 0, height, width, dialog_attr, border_attr);
158 wattrset (dialog, border_attr);
159 mvwaddch (dialog, height-3, 0, ACS_LTEE);
161 waddch (dialog, ACS_HLINE);
162 wattrset (dialog, dialog_attr);
163 waddch (dialog, ACS_RTEE);
174 wattrset (dialog, title_attr);
175 mvwaddch (dialog, 0, (width - strlen(title))/2 - 1, ' ');
176 waddstr (dialog, (char *)title);
177 waddch (dialog, ' ');
180 wattrset (dialog, dialog_attr);
181 print_autowrap (dialog, prompt, width - 2, 1, 3);
188 list = subwin (dialog, list_height, list_width, y+box_y+1, x+box_x+1);
193 draw_box (dialog, box_y, box_x, list_height + 2, list_width + 2,
215 print_arrows(dialog, choice, item_no, scroll,
218 print_buttons(dialog, height, width, 0);
221 wnoutrefresh (dialog);
225 key = wgetch (dialog);
252 print_arrows(dialog, choice, item_no, scroll,
255 wrefresh (dialog);
280 print_arrows(dialog, choice, item_no, scroll,
283 wrefresh (dialog);
298 wrefresh (dialog);
306 delwin (dialog);
315 print_buttons(dialog, height, width, button);
316 wrefresh (dialog);
339 wrefresh (dialog);
345 delwin (dialog);
360 delwin (dialog);