Lines Matching refs:menu

279 static struct menu *current_menu;
286 static void conf(struct menu *menu, struct menu *active_menu);
287 static void conf_choice(struct menu *menu);
288 static void conf_string(struct menu *menu);
296 static void show_help(struct menu *menu);
357 struct menu **targets;
432 struct menu *targets[JUMP_NB]; in search_conf()
463 static void build_conf(struct menu *menu) in build_conf() argument
467 struct menu *child; in build_conf()
477 visible = menu_is_visible(menu); in build_conf()
478 if (show_all_options && !menu_has_prompt(menu)) in build_conf()
483 sym = menu->sym; in build_conf()
484 prop = menu->prompt; in build_conf()
486 if (prop && menu != current_menu) { in build_conf()
487 const char *prompt = menu_get_prompt(menu); in build_conf()
493 menu->data ? "-->" : "++>", in build_conf()
498 menu_is_empty(menu) ? "----" : "--->"); in build_conf()
500 item_set_data(menu); in build_conf()
501 if (single_menu_mode && menu->data) in build_conf()
509 item_set_data(menu); in build_conf()
517 item_set_data(menu); in build_conf()
528 struct menu *def_menu = NULL; in build_conf()
531 for (child = menu->list; child; child = child->next) { in build_conf()
552 item_set_data(menu); in build_conf()
556 item_set_data(menu); in build_conf()
559 item_add_str("%*c%s", indent + 1, ' ', menu_get_prompt(menu)); in build_conf()
573 if (menu == current_menu) { in build_conf()
574 item_make("---%*c%s", indent + 1, ' ', menu_get_prompt(menu)); in build_conf()
576 item_set_data(menu); in build_conf()
584 item_set_data(menu); in build_conf()
593 item_set_data(menu); in build_conf()
609 item_set_data(menu); in build_conf()
617 item_add_str("%*c%s%s", tmp, ' ', menu_get_prompt(menu), in build_conf()
621 item_set_data(menu); in build_conf()
625 item_add_str("%*c%s%s", indent + 1, ' ', menu_get_prompt(menu), in build_conf()
628 if (menu->prompt->type == P_MENU) { in build_conf()
629 item_add_str(" %s", menu_is_empty(menu) ? "----" : "--->"); in build_conf()
636 for (child = menu->list; child; child = child->next) in build_conf()
641 static void conf(struct menu *menu, struct menu *active_menu) in conf() argument
643 struct menu *submenu; in conf()
644 const char *prompt = menu_get_prompt(menu); in conf()
650 if (menu != &rootmenu) in conf()
651 stpart.text = menu_get_prompt(menu); in conf()
658 current_menu = menu; in conf()
659 build_conf(menu); in conf()
782 static void show_help(struct menu *menu) in show_help() argument
787 menu_get_ext_help(menu, &help); in show_help()
789 show_helptext(menu_get_prompt(menu), str_get(&help)); in show_help()
793 static void conf_choice(struct menu *menu) in conf_choice() argument
795 const char *prompt = menu_get_prompt(menu); in conf_choice()
796 struct menu *child; in conf_choice()
799 active = sym_get_choice_value(menu->sym); in conf_choice()
805 current_menu = menu; in conf_choice()
806 for (child = menu->list; child; child = child->next) { in conf_choice()
818 if (child->sym == sym_get_choice_value(menu->sym)) in conf_choice()
844 show_help(menu); in conf_choice()
854 static void conf_string(struct menu *menu) in conf_string() argument
856 const char *prompt = menu_get_prompt(menu); in conf_string()
862 switch (sym_get_type(menu->sym)) { in conf_string()
878 sym_get_string_value(menu->sym)); in conf_string()
881 if (sym_set_string_value(menu->sym, dialog_input_result)) in conf_string()
886 show_help(menu); in conf_string()