• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/router/busybox-1.x/scripts/kconfig/lxdialog/

Lines Matching defs:choice

66 static void do_print_item(WINDOW * win, const char *item, int choice,
78 wmove(win, choice, 0);
89 mvwaddstr(win, choice, item_x, menu_item);
92 mvwaddch(win, choice, item_x + j, menu_item[j]);
95 wmove(win, choice, item_x + 1);
101 #define print_item(index, choice, selected) \
104 do_print_item(menu, items[(index) * 2 + 1], choice, selected, hotkey); \
186 int key = 0, button = 0, scroll = 0, choice = 0;
231 /* Set choice to default item */
234 choice = i;
238 if ((fscanf(f, "%d\n", &scroll) == 1) && (scroll <= choice) &&
239 (scroll + max_choice > choice) && (scroll >= 0) &&
242 choice = choice - scroll;
251 if ((choice >= max_choice) || (f == NULL && choice >= max_choice / 2)) {
252 if (choice >= item_no - max_choice / 2)
255 scroll = first_item = choice - max_choice / 2;
256 choice = choice - scroll;
261 print_item(first_item + i, i, i == choice);
270 wmove(menu, choice, item_x + 1);
282 for (i = choice + 1; i < max_choice; i++) {
300 print_item(scroll + choice, choice, FALSE);
303 if (choice < 2 && scroll) {
309 choice = MAX(choice - 1, 0);
312 print_item(scroll+choice, choice, FALSE);
314 if ((choice > max_choice - 3) &&
322 choice = MIN(choice + 1, max_choice - 1);
331 if (choice > 0)
332 choice--;
343 if (choice + 1 < max_choice)
344 choice++;
348 choice = i;
350 print_item(scroll + choice, choice, TRUE);
383 fprintf(stderr, "%s\n", items[(scroll + choice) * 2]);
406 items[(scroll + choice) * 2],
407 items[(scroll + choice) * 2 + 1] +
408 first_alpha(items [(scroll + choice) * 2 + 1], ""));
411 items[(scroll + choice) * 2]);