Lines Matching defs:menu
20 static void conf(struct menu *menu);
21 static void check_conf(struct menu *menu);
48 static struct menu *rootEntry;
50 static void print_help(struct menu *menu)
54 menu_get_ext_help(menu, &help);
120 * @choice: menu entry for the choice
122 static void randomize_choice_values(struct menu *choice)
124 struct menu *menu;
133 menu_for_each_sub_entry(menu, choice) {
134 struct symbol *sym = menu->sym;
143 menu_for_each_sub_entry(menu, choice) {
144 struct symbol *sym = menu->sym;
177 struct menu *menu;
232 menu_for_each_entry(menu) {
233 struct symbol *sym = menu->sym;
236 if (!sym || !menu->prompt || sym_has_value(sym) ||
243 randomize_choice_values(menu);
321 static int conf_string(struct menu *menu)
323 struct symbol *sym = menu->sym;
327 printf("%*s%s ", indent - 1, "", menu->prompt->text);
340 print_help(menu);
354 static int conf_sym(struct menu *menu)
356 struct symbol *sym = menu->sym;
360 printf("%*s%s ", indent - 1, "", menu->prompt->text);
417 print_help(menu);
421 static void conf_choice(struct menu *menu)
424 struct menu *child;
430 printf("%*s%s\n", indent - 1, "", menu_get_prompt(menu));
431 def_sym = sym_calc_choice(menu);
434 for (child = menu->list; child; child = child->next) {
475 print_help(menu);
490 for (child = menu->list; child; child = child->next) {
502 choice_set_value(menu, child->sym);
507 static void conf(struct menu *menu)
511 struct menu *child;
513 if (!menu_is_visible(menu))
516 sym = menu->sym;
517 prop = menu->prompt;
527 if (input_mode != oldaskconfig && rootEntry != menu) {
528 check_conf(menu);
533 prompt = menu_get_prompt(menu);
548 conf_choice(menu);
556 conf_string(menu);
559 conf_sym(menu);
566 for (child = menu->list; child; child = child->next)
572 static void check_conf(struct menu *menu)
575 struct menu *child;
577 if (!menu_is_visible(menu))
580 sym = menu->sym;
589 print_help(menu);
595 rootEntry = menu_get_menu_or_parent_menu(menu);
601 for (child = menu->list; child; child = child->next)