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()
496 menu->data ? "-->" : "++>", in build_conf()
501 menu_is_empty(menu) ? "----" : "--->"); in build_conf()
503 item_set_data(menu); in build_conf()
504 if (single_menu_mode && menu->data) in build_conf()
512 item_set_data(menu); in build_conf()
520 item_set_data(menu); in build_conf()
531 struct menu *def_menu = NULL; in build_conf()
534 for (child = menu->list; child; child = child->next) { in build_conf()
555 item_set_data(menu); in build_conf()
559 item_set_data(menu); in build_conf()
562 item_add_str("%*c%s", indent + 1, ' ', menu_get_prompt(menu)); in build_conf()
576 if (menu == current_menu) { in build_conf()
577 item_make("---%*c%s", indent + 1, ' ', menu_get_prompt(menu)); in build_conf()
579 item_set_data(menu); in build_conf()
587 item_set_data(menu); in build_conf()
596 item_set_data(menu); in build_conf()
612 item_set_data(menu); in build_conf()
620 item_add_str("%*c%s%s", tmp, ' ', menu_get_prompt(menu), in build_conf()
624 item_set_data(menu); in build_conf()
628 item_add_str("%*c%s%s", indent + 1, ' ', menu_get_prompt(menu), in build_conf()
631 if (menu->prompt->type == P_MENU) { in build_conf()
632 item_add_str(" %s", menu_is_empty(menu) ? "----" : "--->"); in build_conf()
639 for (child = menu->list; child; child = child->next) in build_conf()
644 static void conf(struct menu *menu, struct menu *active_menu) in conf() argument
646 struct menu *submenu; in conf()
647 const char *prompt = menu_get_prompt(menu); in conf()
653 if (menu != &rootmenu) in conf()
654 stpart.text = menu_get_prompt(menu); in conf()
661 current_menu = menu; in conf()
662 build_conf(menu); in conf()
785 static void show_help(struct menu *menu) in show_help() argument
790 menu_get_ext_help(menu, &help); in show_help()
792 show_helptext(menu_get_prompt(menu), str_get(&help)); in show_help()
796 static void conf_choice(struct menu *menu) in conf_choice() argument
798 const char *prompt = menu_get_prompt(menu); in conf_choice()
799 struct menu *child; in conf_choice()
802 active = sym_get_choice_value(menu->sym); in conf_choice()
808 current_menu = menu; in conf_choice()
809 for (child = menu->list; child; child = child->next) { in conf_choice()
821 if (child->sym == sym_get_choice_value(menu->sym)) in conf_choice()
847 show_help(menu); in conf_choice()
857 static void conf_string(struct menu *menu) in conf_string() argument
859 const char *prompt = menu_get_prompt(menu); in conf_string()
865 switch (sym_get_type(menu->sym)) { in conf_string()
881 sym_get_string_value(menu->sym)); in conf_string()
884 if (sym_set_string_value(menu->sym, dialog_input_result)) in conf_string()
889 show_help(menu); in conf_string()