• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7800-V1.0.2.28/scripts/config/lxdialog/

Lines Matching refs:choice

67 static void do_print_item(WINDOW * win, const char *item, int choice,
79 wmove(win, choice, 0);
90 mvwaddstr(win, choice, ITEM_IDENT, menu_item);
93 mvwaddch(win, choice, ITEM_IDENT + j, menu_item[j]);
96 wmove(win, choice, ITEM_IDENT + 1);
102 #define print_item(index, choice, selected) \
105 do_print_item(menu, items[(index) * 2 + 1], choice, selected, hotkey); \
187 int key = 0, button = 0, scroll = 0, choice = 0;
230 /* Set choice to default item */
233 choice = i;
237 if ((fscanf(f, "%d\n", &scroll) == 1) && (scroll <= choice) &&
238 (scroll + max_choice > choice) && (scroll >= 0) &&
241 choice = choice - scroll;
250 if ((choice >= max_choice) || (f == NULL && choice >= max_choice / 2)) {
251 if (choice >= item_no - max_choice / 2)
254 scroll = first_item = choice - max_choice / 2;
255 choice = choice - scroll;
260 print_item(first_item + i, i, i == choice);
269 wmove(menu, choice, ITEM_IDENT + 1);
281 for (i = choice + 1; i < max_choice; i++) {
299 print_item(scroll + choice, choice, FALSE);
302 if (choice < 2 && scroll) {
308 choice = MAX(choice - 1, 0);
311 print_item(scroll+choice, choice, FALSE);
313 if ((choice > max_choice - 3) &&
321 choice = MIN(choice + 1, max_choice - 1);
330 if (choice > 0)
331 choice--;
342 if (choice + 1 < max_choice)
343 choice++;
347 choice = i;
349 print_item(scroll + choice, choice, TRUE);
382 fprintf(stderr, "%s\n", items[(scroll + choice) * 2]);
405 items[(scroll + choice) * 2],
406 items[(scroll + choice) * 2 + 1] +
407 first_alpha(items [(scroll + choice) * 2 + 1], ""));
410 items[(scroll + choice) * 2]);