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

Lines Matching defs:choice

67 print_item (WINDOW * win, const char *item, int choice, int selected, int hotkey)
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);
171 int key = 0, button = 0, scroll = 0, choice = 0, first_item = 0, max_choice;
228 * Set 'choice' to default item.
233 if (strcmp(current, items[i]->tag) == 0) choice = i;
240 if ( (fscanf(f,"%d\n",&scroll) == 1) && (scroll <= choice) &&
241 (scroll+max_choice > choice) && (scroll >= 0) &&
244 choice = choice - scroll;
253 if ( (choice >= max_choice) || (f==NULL && choice >= max_choice/2) ) {
254 if (choice >= item_no-max_choice/2)
257 scroll = first_item = choice - max_choice/2;
258 choice = choice - scroll;
263 print_item (menu, items[first_item + i]->name, i, i == choice,
273 wmove (menu, choice, item_x+1);
284 for (i = choice+1; i < max_choice; i++) {
302 print_item (menu, items[scroll + choice]->name, choice, FALSE,
303 (items[scroll + choice]->tag[0] != ':'));
306 if (choice < 2 && scroll) {
317 choice = MAX(choice - 1, 0);
321 print_item (menu, items[scroll + choice]->name, choice, FALSE,
322 (items[scroll + choice]->tag[0] != ':'));
324 if ((choice > max_choice-3) &&
338 choice = MIN(choice+1, max_choice-1);
349 if (choice > 0)
350 choice--;
366 if (choice+1 < max_choice)
367 choice++;
372 choice = i;
374 print_item (menu, items[scroll + choice]->name, choice, TRUE,
375 (items[scroll + choice]->tag[0] != ':'));
407 items[scroll + choice]->selected = 1;
421 items[scroll + choice]->selected = 1;