Lines Matching refs:menu
272 static struct menu *current_menu;
278 static void conf(struct menu *menu);
279 static void conf_choice(struct menu *menu);
280 static void conf_string(struct menu *menu);
285 static void show_help(struct menu *menu);
339 static void build_conf(struct menu *menu) in build_conf() argument
343 struct menu *child; in build_conf()
353 visible = menu_is_visible(menu); in build_conf()
354 if (show_all_options && !menu_has_prompt(menu)) in build_conf()
359 sym = menu->sym; in build_conf()
360 prop = menu->prompt; in build_conf()
362 if (prop && menu != current_menu) { in build_conf()
363 const char *prompt = menu_get_prompt(menu); in build_conf()
370 menu->data ? "-->" : "++>", in build_conf()
376 item_set_data(menu); in build_conf()
377 if (single_menu_mode && menu->data) in build_conf()
385 item_set_data(menu); in build_conf()
393 item_set_data(menu); in build_conf()
404 struct menu *def_menu = NULL; in build_conf()
407 for (child = menu->list; child; child = child->next) { in build_conf()
428 item_set_data(menu); in build_conf()
432 item_set_data(menu); in build_conf()
435 item_add_str("%*c%s", indent + 1, ' ', _(menu_get_prompt(menu))); in build_conf()
449 if (menu == current_menu) { in build_conf()
450 item_make("---%*c%s", indent + 1, ' ', _(menu_get_prompt(menu))); in build_conf()
452 item_set_data(menu); in build_conf()
460 item_set_data(menu); in build_conf()
469 item_set_data(menu); in build_conf()
485 item_set_data(menu); in build_conf()
493 item_add_str("%*c%s%s", tmp, ' ', _(menu_get_prompt(menu)), in build_conf()
497 item_set_data(menu); in build_conf()
501 item_add_str("%*c%s%s", indent + 1, ' ', _(menu_get_prompt(menu)), in build_conf()
504 if (menu->prompt->type == P_MENU) { in build_conf()
512 for (child = menu->list; child; child = child->next) in build_conf()
517 static void conf(struct menu *menu) in conf() argument
519 struct menu *submenu; in conf()
520 const char *prompt = menu_get_prompt(menu); in conf()
522 struct menu *active_menu = NULL; in conf()
528 current_menu = menu; in conf()
529 build_conf(menu); in conf()
532 if (menu == &rootmenu) { in conf()
633 static void show_help(struct menu *menu) in show_help() argument
638 menu_get_ext_help(menu, &help); in show_help()
640 show_helptext(_(menu_get_prompt(menu)), str_get(&help)); in show_help()
644 static void conf_choice(struct menu *menu) in conf_choice() argument
646 const char *prompt = _(menu_get_prompt(menu)); in conf_choice()
647 struct menu *child; in conf_choice()
650 active = sym_get_choice_value(menu->sym); in conf_choice()
656 current_menu = menu; in conf_choice()
657 for (child = menu->list; child; child = child->next) { in conf_choice()
669 if (child->sym == sym_get_choice_value(menu->sym)) in conf_choice()
693 show_help(menu); in conf_choice()
703 static void conf_string(struct menu *menu) in conf_string() argument
705 const char *prompt = menu_get_prompt(menu); in conf_string()
711 switch (sym_get_type(menu->sym)) { in conf_string()
727 sym_get_string_value(menu->sym)); in conf_string()
730 if (sym_set_string_value(menu->sym, dialog_input_result)) in conf_string()
735 show_help(menu); in conf_string()