Lines Matching refs:menu
276 static struct menu *current_menu;
283 static void conf(struct menu *menu, struct menu *active_menu);
284 static void conf_choice(struct menu *menu);
285 static void conf_string(struct menu *menu);
293 static void show_help(struct menu *menu);
359 struct menu **targets;
434 struct menu *targets[JUMP_NB]; in search_conf()
465 static void build_conf(struct menu *menu) in build_conf() argument
469 struct menu *child; in build_conf()
479 visible = menu_is_visible(menu); in build_conf()
480 if (show_all_options && !menu_has_prompt(menu)) in build_conf()
485 sym = menu->sym; in build_conf()
486 prop = menu->prompt; in build_conf()
488 if (prop && menu != current_menu) { in build_conf()
489 const char *prompt = menu_get_prompt(menu); in build_conf()
495 menu->data ? "-->" : "++>", in build_conf()
500 menu_is_empty(menu) ? "----" : "--->"); in build_conf()
502 item_set_data(menu); in build_conf()
503 if (single_menu_mode && menu->data) in build_conf()
511 item_set_data(menu); in build_conf()
519 item_set_data(menu); in build_conf()
530 struct menu *def_menu = NULL; in build_conf()
533 for (child = menu->list; child; child = child->next) { in build_conf()
554 item_set_data(menu); in build_conf()
558 item_set_data(menu); in build_conf()
561 item_add_str("%*c%s", indent + 1, ' ', menu_get_prompt(menu)); in build_conf()
575 if (menu == current_menu) { in build_conf()
576 item_make("---%*c%s", indent + 1, ' ', menu_get_prompt(menu)); in build_conf()
578 item_set_data(menu); in build_conf()
586 item_set_data(menu); in build_conf()
595 item_set_data(menu); in build_conf()
611 item_set_data(menu); in build_conf()
619 item_add_str("%*c%s%s", tmp, ' ', menu_get_prompt(menu), in build_conf()
623 item_set_data(menu); in build_conf()
627 item_add_str("%*c%s%s", indent + 1, ' ', menu_get_prompt(menu), in build_conf()
630 if (menu->prompt->type == P_MENU) { in build_conf()
631 item_add_str(" %s", menu_is_empty(menu) ? "----" : "--->"); in build_conf()
638 for (child = menu->list; child; child = child->next) in build_conf()
643 static void conf(struct menu *menu, struct menu *active_menu) in conf() argument
645 struct menu *submenu; in conf()
646 const char *prompt = menu_get_prompt(menu); in conf()
652 if (menu != &rootmenu) in conf()
653 stpart.text = menu_get_prompt(menu); in conf()
660 current_menu = menu; in conf()
661 build_conf(menu); in conf()
784 static void show_help(struct menu *menu) in show_help() argument
789 menu_get_ext_help(menu, &help); in show_help()
791 show_helptext(menu_get_prompt(menu), str_get(&help)); in show_help()
795 static void conf_choice(struct menu *menu) in conf_choice() argument
797 const char *prompt = menu_get_prompt(menu); in conf_choice()
798 struct menu *child; in conf_choice()
801 active = sym_get_choice_value(menu->sym); in conf_choice()
807 current_menu = menu; in conf_choice()
808 for (child = menu->list; child; child = child->next) { in conf_choice()
820 if (child->sym == sym_get_choice_value(menu->sym)) in conf_choice()
846 show_help(menu); in conf_choice()
856 static void conf_string(struct menu *menu) in conf_string() argument
858 const char *prompt = menu_get_prompt(menu); in conf_string()
864 switch (sym_get_type(menu->sym)) { in conf_string()
880 sym_get_string_value(menu->sym)); in conf_string()
883 if (sym_set_string_value(menu->sym, dialog_input_result)) in conf_string()
888 show_help(menu); in conf_string()