Lines Matching refs:menu
277 static struct menu *current_menu;
284 static void conf(struct menu *menu, struct menu *active_menu);
285 static void conf_choice(struct menu *menu);
286 static void conf_string(struct menu *menu);
294 static void show_help(struct menu *menu);
360 struct menu **targets;
435 struct menu *targets[JUMP_NB]; in search_conf()
466 static void build_conf(struct menu *menu) in build_conf() argument
470 struct menu *child; in build_conf()
480 visible = menu_is_visible(menu); in build_conf()
481 if (show_all_options && !menu_has_prompt(menu)) in build_conf()
486 sym = menu->sym; in build_conf()
487 prop = menu->prompt; in build_conf()
489 if (prop && menu != current_menu) { in build_conf()
490 const char *prompt = menu_get_prompt(menu); in build_conf()
497 menu->data ? "-->" : "++>", in build_conf()
502 menu_is_empty(menu) ? "----" : "--->"); in build_conf()
504 item_set_data(menu); in build_conf()
505 if (single_menu_mode && menu->data) in build_conf()
513 item_set_data(menu); in build_conf()
521 item_set_data(menu); in build_conf()
532 struct menu *def_menu = NULL; in build_conf()
535 for (child = menu->list; child; child = child->next) { in build_conf()
556 item_set_data(menu); in build_conf()
560 item_set_data(menu); in build_conf()
563 item_add_str("%*c%s", indent + 1, ' ', _(menu_get_prompt(menu))); in build_conf()
577 if (menu == current_menu) { in build_conf()
578 item_make("---%*c%s", indent + 1, ' ', _(menu_get_prompt(menu))); in build_conf()
580 item_set_data(menu); in build_conf()
588 item_set_data(menu); in build_conf()
597 item_set_data(menu); in build_conf()
613 item_set_data(menu); in build_conf()
621 item_add_str("%*c%s%s", tmp, ' ', _(menu_get_prompt(menu)), in build_conf()
625 item_set_data(menu); in build_conf()
629 item_add_str("%*c%s%s", indent + 1, ' ', _(menu_get_prompt(menu)), in build_conf()
632 if (menu->prompt->type == P_MENU) { in build_conf()
633 item_add_str(" %s", menu_is_empty(menu) ? "----" : "--->"); in build_conf()
640 for (child = menu->list; child; child = child->next) in build_conf()
645 static void conf(struct menu *menu, struct menu *active_menu) in conf() argument
647 struct menu *submenu; in conf()
648 const char *prompt = menu_get_prompt(menu); in conf()
654 if (menu != &rootmenu) in conf()
655 stpart.text = menu_get_prompt(menu); in conf()
662 current_menu = menu; in conf()
663 build_conf(menu); in conf()
789 static void show_help(struct menu *menu) in show_help() argument
794 menu_get_ext_help(menu, &help); in show_help()
796 show_helptext(_(menu_get_prompt(menu)), str_get(&help)); in show_help()
800 static void conf_choice(struct menu *menu) in conf_choice() argument
802 const char *prompt = _(menu_get_prompt(menu)); in conf_choice()
803 struct menu *child; in conf_choice()
806 active = sym_get_choice_value(menu->sym); in conf_choice()
812 current_menu = menu; in conf_choice()
813 for (child = menu->list; child; child = child->next) { in conf_choice()
825 if (child->sym == sym_get_choice_value(menu->sym)) in conf_choice()
851 show_help(menu); in conf_choice()
861 static void conf_string(struct menu *menu) in conf_string() argument
863 const char *prompt = menu_get_prompt(menu); in conf_string()
869 switch (sym_get_type(menu->sym)) { in conf_string()
885 sym_get_string_value(menu->sym)); in conf_string()
888 if (sym_set_string_value(menu->sym, dialog_input_result)) in conf_string()
893 show_help(menu); in conf_string()