Lines Matching refs:menu

286 static struct menu *current_menu;
293 static void conf(struct menu *menu, struct menu *active_menu);
372 static void show_help(struct menu *menu) in show_help() argument
377 menu_get_ext_help(menu, &help); in show_help()
379 show_helptext(menu_get_prompt(menu), str_get(&help)); in show_help()
454 static void build_conf(struct menu *menu) in build_conf() argument
458 struct menu *child; in build_conf()
468 visible = menu_is_visible(menu); in build_conf()
469 if (show_all_options && !menu_has_prompt(menu)) in build_conf()
474 sym = menu->sym; in build_conf()
475 prop = menu->prompt; in build_conf()
477 if (prop && menu != current_menu) { in build_conf()
478 const char *prompt = menu_get_prompt(menu); in build_conf()
484 menu->data ? "-->" : "++>", in build_conf()
489 menu_is_empty(menu) ? "----" : "--->"); in build_conf()
491 item_set_data(menu); in build_conf()
492 if (single_menu_mode && menu->data) in build_conf()
500 item_set_data(menu); in build_conf()
508 item_set_data(menu); in build_conf()
518 struct symbol *def_sym = sym_calc_choice(menu); in build_conf()
519 struct menu *def_menu = NULL; in build_conf()
522 for (child = menu->list; child; child = child->next) { in build_conf()
529 item_set_data(menu); in build_conf()
531 item_add_str("%*c%s", indent + 1, ' ', menu_get_prompt(menu)); in build_conf()
536 if (menu == current_menu) { in build_conf()
537 item_make("---%*c%s", indent + 1, ' ', menu_get_prompt(menu)); in build_conf()
539 item_set_data(menu); in build_conf()
551 item_set_data(menu); in build_conf()
567 item_set_data(menu); in build_conf()
575 item_add_str("%*c%s%s", tmp, ' ', menu_get_prompt(menu), in build_conf()
579 item_set_data(menu); in build_conf()
582 item_add_str("%*c%s%s", indent + 1, ' ', menu_get_prompt(menu), in build_conf()
585 if (menu->prompt->type == P_MENU) { in build_conf()
586 item_add_str(" %s", menu_is_empty(menu) ? "----" : "--->"); in build_conf()
593 for (child = menu->list; child; child = child->next) in build_conf()
598 static void conf_choice(struct menu *menu) in conf_choice() argument
600 const char *prompt = menu_get_prompt(menu); in conf_choice()
601 struct menu *child; in conf_choice()
604 active = sym_calc_choice(menu); in conf_choice()
610 current_menu = menu; in conf_choice()
611 for (child = menu->list; child; child = child->next) { in conf_choice()
623 if (child->sym == sym_calc_choice(menu)) in conf_choice()
640 choice_set_value(menu, child->sym); in conf_choice()
649 show_help(menu); in conf_choice()
659 static void conf_string(struct menu *menu) in conf_string() argument
661 const char *prompt = menu_get_prompt(menu); in conf_string()
667 switch (sym_get_type(menu->sym)) { in conf_string()
683 sym_get_string_value(menu->sym)); in conf_string()
686 if (sym_set_string_value(menu->sym, dialog_input_result)) in conf_string()
691 show_help(menu); in conf_string()
753 static void conf(struct menu *menu, struct menu *active_menu) in conf() argument
755 struct menu *submenu; in conf()
756 const char *prompt = menu_get_prompt(menu); in conf()
762 if (menu != &rootmenu) in conf()
763 stpart.text = menu_get_prompt(menu); in conf()
770 current_menu = menu; in conf()
771 build_conf(menu); in conf()