Lines Matching refs:menu

272 static struct menu *current_menu;
277 static void conf(struct menu *menu);
278 static void conf_choice(struct menu *menu);
279 static void conf_string(struct menu *menu);
284 static void show_help(struct menu *menu);
338 static void build_conf(struct menu *menu) in build_conf() argument
342 struct menu *child; in build_conf()
352 visible = menu_is_visible(menu); in build_conf()
353 if (show_all_options && !menu_has_prompt(menu)) in build_conf()
358 sym = menu->sym; in build_conf()
359 prop = menu->prompt; in build_conf()
361 if (prop && menu != current_menu) { in build_conf()
362 const char *prompt = menu_get_prompt(menu); in build_conf()
369 menu->data ? "-->" : "++>", in build_conf()
375 item_set_data(menu); in build_conf()
376 if (single_menu_mode && menu->data) in build_conf()
384 item_set_data(menu); in build_conf()
392 item_set_data(menu); in build_conf()
403 struct menu *def_menu = NULL; in build_conf()
406 for (child = menu->list; child; child = child->next) { in build_conf()
427 item_set_data(menu); in build_conf()
431 item_set_data(menu); in build_conf()
434 item_add_str("%*c%s", indent + 1, ' ', _(menu_get_prompt(menu))); in build_conf()
448 if (menu == current_menu) { in build_conf()
449 item_make("---%*c%s", indent + 1, ' ', _(menu_get_prompt(menu))); in build_conf()
451 item_set_data(menu); in build_conf()
459 item_set_data(menu); in build_conf()
468 item_set_data(menu); in build_conf()
484 item_set_data(menu); in build_conf()
492 item_add_str("%*c%s%s", tmp, ' ', _(menu_get_prompt(menu)), in build_conf()
496 item_set_data(menu); in build_conf()
500 item_add_str("%*c%s%s", indent + 1, ' ', _(menu_get_prompt(menu)), in build_conf()
503 if (menu->prompt->type == P_MENU) { in build_conf()
511 for (child = menu->list; child; child = child->next) in build_conf()
516 static void conf(struct menu *menu) in conf() argument
518 struct menu *submenu; in conf()
519 const char *prompt = menu_get_prompt(menu); in conf()
521 struct menu *active_menu = NULL; in conf()
527 current_menu = menu; in conf()
528 build_conf(menu); in conf()
531 if (menu == &rootmenu) { in conf()
632 static void show_help(struct menu *menu) in show_help() argument
637 menu_get_ext_help(menu, &help); in show_help()
639 show_helptext(_(menu_get_prompt(menu)), str_get(&help)); in show_help()
643 static void conf_choice(struct menu *menu) in conf_choice() argument
645 const char *prompt = _(menu_get_prompt(menu)); in conf_choice()
646 struct menu *child; in conf_choice()
649 active = sym_get_choice_value(menu->sym); in conf_choice()
655 current_menu = menu; in conf_choice()
656 for (child = menu->list; child; child = child->next) { in conf_choice()
668 if (child->sym == sym_get_choice_value(menu->sym)) in conf_choice()
692 show_help(menu); in conf_choice()
702 static void conf_string(struct menu *menu) in conf_string() argument
704 const char *prompt = menu_get_prompt(menu); in conf_string()
710 switch (sym_get_type(menu->sym)) { in conf_string()
726 sym_get_string_value(menu->sym)); in conf_string()
729 if (sym_set_string_value(menu->sym, dialog_input_result)) in conf_string()
734 show_help(menu); in conf_string()